maint.mk: improve "can not" detection and generalize rule name
[gnulib.git] / ChangeLog
1 2011-05-11  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: improve "can not" detection and generalize rule name
4         * top/maint.mk (sc_prohibit_misc): Renamed from sc_prohibit_can_not,
5         since we'll probably add a few more word pairs here.
6         Use the same technique as in sc_prohibit_doubled_word, so that
7         we recognize "can not" also when the words are separated by a newline.
8         Suggested by Eric Blake.
9         (perl_filename_lineno_text_): Define.  Factored out of...
10         (prohibit_doubled_word_): ...here.  Use the new definition.
11         (prohibit_misc_): New var.  Use it here, too.
12         (prohibit_misc_RE_): New overridable variable.
13
14 2011-05-10  Eric Blake  <eblake@redhat.com>
15
16         fclose: avoid double close race when possible
17         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18         all but WINDOWS_SOCKETS.
19
20 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21
22         openat: correct new comment
23         * lib/openat-proc.c (openat_proc_name): Correct the comment.
24
25 2011-05-10  Jim Meyering  <meyering@redhat.com>
26
27         openat: add comments
28         * lib/openat-proc.c (openat_proc_name): Add comments,
29         mostly from Eric Blake.
30
31 2011-05-09  Eric Blake  <eblake@redhat.com>
32
33         openat: reduce syscalls in first probe of /proc
34         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
35         be a directory.  Simplify the probe for .. bugs.
36         * modules/openat (Depends-on): Drop same-inode.
37         Reported by Bastien ROUCARIES.
38
39 2011-05-09  Jim Meyering  <meyering@redhat.com>
40
41         maint.mk: change semantics/name of tight_scope variables
42         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
43         Rename variables to align with semantics that make them more useful.
44
45         maint.mk: tweak new rule's name not to impinge
46         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
47         (sc_tight_scope): Use new rule name rather than $@-0.
48
49         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
50         * top/maint.mk (sc_tight_scope): New rule.
51         (sc_tight_scope-0): New rule, ifdef'd out.
52         (_gl_TS_dir): Default.
53         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55
56 2011-05-09  Simon Josefsson  <simon@josefsson.org>
57
58         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
59         Haible <bruno@clisp.org>.
60
61 2011-05-08  Bruno Haible  <bruno@clisp.org>
62
63         Comments.
64         * m4/isnanf.m4: Add comment.
65         * m4/isnanl.m4: Likewise.
66
67 2011-05-08  Bruno Haible  <bruno@clisp.org>
68
69         glob: Remove obsolete macro.
70         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
71
72 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
73
74         intprops: Sun C 5.11 supports __typeof__
75         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
76         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
77         which is new.
78         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
79
80         intprops: switch to usual gnulib indenting and naming
81         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
82         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
83
84         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
85
86 2011-05-08  Jim Meyering  <meyering@redhat.com>
87
88         maint.mk: suppress "Entering/Leaving directory" diag in announcement
89         * top/maint.mk (release-prep): Use make's --no-print-directory
90         option when generating the announcement.  This eliminates the
91         pesky "make[2]: Entering/Leaving directory" diagnostics in the
92         generated announcement template.
93
94 2011-05-08  Bruno Haible  <bruno@clisp.org>
95
96         tzset: Fix gettimeofday wrapper on Solaris 2.6.
97         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
98         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
99
100 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
101
102         ignore-value, verify: Omit include files from lib_SOURCES.
103         * modules/ignore-value, modules/verify (Makefile.am):
104         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
105         that leads Automake to duplicate use of am__objects_... variables
106         in Makefile.in.  See
107         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
108
109 2011-05-07  Bruno Haible  <bruno@clisp.org>
110
111         fclose: Simplify autoconf macro.
112         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
113         defined.
114
115 2011-05-07  Bruno Haible  <bruno@clisp.org>
116
117         canonicalize-lgpl: Fix autoconf macro ordering bug.
118         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
119         gl_STDLIB_H_DEFAULTS.
120
121 2011-05-06  Eric Blake  <eblake@redhat.com>
122
123         maintainer-makefile: make sc_po_check easier to tune
124         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
125         to probe for strings, such as an alternate location for gnulib.
126
127         fclose: guarantee behavior on seekable stdin
128         * modules/fclose (Depends-on): Add fflush.
129         * doc/posix-functions/fclose.texi (fclose): Document this.
130         * tests/test-fclose.c (main): Make test for this unconditional.
131
132 2011-05-06  Bruno Haible  <bruno@clisp.org>
133
134         fflush, fpurge: Relicense under LGPLv2+.
135         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
136         * modules/fpurge (License): Likewise.
137         With permission from Eric Blake and Jim Meyering.
138         Suggested by Eric Blake.
139
140 2011-05-06  Karl Berry  <karl@gnu.org>
141
142         * MODULES.html.sh (func_all_modules): remove exit.
143
144 2011-05-06  Jim Meyering  <meyering@redhat.com>
145
146         maint.mk: use info-gnu@ as the default only for a stable release
147         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
148         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
149         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
151
152 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
153
154         assert-h: new module, which supports C1X-style static_assert
155         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
156         * lib/verify.h: Revamp so that this can be copied into assert.h,
157         while retaining the ability to use it standalone as before.
158         Rename private identifiers so as not to encroach on the
159         standard C namespace, since this is now used by assert.h.
160         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
161         the old verify_true.
162         (_GL_VERIFY_TRUE): New macro, with much of the contents of
163         the old verify_true.  Use _GL_VERIFY_TYPE.
164         (_GL_VERIFY): New macro, with much of the contents of the old verify.
165         (static_assert): New macro, if _GL_STATIC_ASSERT_H
166         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
167         defined when this file is copied into the replacement assert.h.
168         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
169         and _Static_assert is not built in.
170         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
171         defined, and use the new macros mentioned above.
172         * doc/posix-headers/assert.texi: Document this.
173
174 2011-05-05  Bruno Haible  <bruno@clisp.org>
175
176         fclose, fflush: Respect rules for use of AC_LIBOBJ.
177         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
178         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
179         gl_REPLACE_FCLOSE here.
180         * modules/fflush (Depends-on): Remove fclose.
181         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
182         combination with module 'fclose'.
183
184 2011-05-05  Bruno Haible  <bruno@clisp.org>
185
186         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
187         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
188         gl_FUNC_FFLUSH.
189         (gl_FUNC_FFLUSH): Use it.
190         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
192         gl_REPLACE_FSEEKO here.
193
194 2011-05-05  Bruno Haible  <bruno@clisp.org>
195
196         tzset: Relicense under LGPL.
197         * modules/tzset (License): Change to LGPL.
198         No agreement needed; it's a no-op.
199
200         strtoimax, strtoumax: Relicense under LGPL.
201         * modules/strtoimax (License): Change to LGPL.
202         * modules/strtoumax (License): Likewise.
203         With permission from Jim Meyering, Paul Eggert:
204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
206
207         getgroups: Relicense under LGPL.
208         * modules/getgroups (License): Change to LGPL.
209         With permission from Jim Meyering, Paul Eggert, Eric Blake:
210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
213
214         nanosleep: Relicense under LGPL.
215         * modules/nanosleep (License): Change to LGPL.
216         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
217         Haible:
218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
222
223         futimens: Relicense under LGPL.
224         * modules/futimens (License): Change to LGPL.
225         With permission from Eric Blake:
226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
227
228         fflush: Relicense under LGPL.
229         * modules/fflush (License): Change to LGPL.
230         With permission from Eric Blake, Bruno Haible, Jim Meyering:
231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
234
235         tmpfile: Relicense under LGPL.
236         * modules/tmpfile (License): Change to LGPL.
237         With permission from Ben Pfaff:
238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
239
240         isfinite: Relicense under LGPL.
241         * modules/isfinite (License): Change to LGPL.
242         With permission from Ben Pfaff, Bruno Haible:
243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
245
246         acosl..tanl: Relicense under LGPL.
247         * modules/acosl (License): Change to LGPL.
248         * modules/asinl (License): Likewise.
249         * modules/atanl (License): Likewise.
250         * modules/cosl (License): Likewise.
251         * modules/expl (License): Likewise.
252         * modules/logl (License): Likewise.
253         * modules/sinl (License): Likewise.
254         * modules/sqrtl (License): Likewise.
255         * modules/tanl (License): Likewise.
256         Source code originally from glibc and Paolo Bonzini. Agreements:
257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
259
260 2011-05-05  Bruno Haible  <bruno@clisp.org>
261
262         signal: Define sighandler_t.
263         * lib/signal.in.h (sighandler_t): New type.
264         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
265         whether sighandler_t is defined.
266         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
267         * modules/signal (Depends-on): Add extensions.
268         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
269         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
270         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
271
272 2011-05-05  Eric Blake  <eblake@redhat.com>
273
274         maint: remove useless REPLACE_*_H macros
275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
276         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
277         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
278         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
279         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
280         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
281         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
282         * m4/btowc.m4: Update callers.
283         * m4/dirfd.m4: Likewise.
284         * m4/duplocale.m4: Likewise.
285         * m4/fchdir.m4: Likewise.
286         * m4/fdopendir.m4: Likewise.
287         * m4/inet_ntop.m4: Likewise.
288         * m4/inet_pton.m4: Likewise.
289         * m4/ioctl.m4: Likewise.
290         * m4/mbrlen.m4: Likewise.
291         * m4/mbrtowc.m4: Likewise.
292         * m4/mbsinit.m4: Likewise.
293         * m4/mbsnrtowcs.m4: Likewise.
294         * m4/mbsrtowcs.m4: Likewise.
295         * m4/poll.m4: Likewise.
296         * m4/setlocale.m4: Likewise.
297         * m4/wcrtomb.m4: Likewise.
298         * m4/wcsnrtombs.m4: Likewise.
299         * m4/wcsrtombs.m4: Likewise.
300         * m4/wctob.m4: Likewise.
301         * m4/wcwidth.m4: Likewise.
302         * modules/posix_spawn: Likewise.
303         * modules/posix_spawn_file_actions_addclose: Likewise.
304         * modules/posix_spawn_file_actions_adddup2: Likewise.
305         * modules/posix_spawn_file_actions_addopen: Likewise.
306         * modules/posix_spawn_file_actions_destroy: Likewise.
307         * modules/posix_spawn_file_actions_init: Likewise.
308         * modules/posix_spawnattr_destroy: Likewise.
309         * modules/posix_spawnattr_getflags: Likewise.
310         * modules/posix_spawnattr_getpgroup: Likewise.
311         * modules/posix_spawnattr_getschedparam: Likewise.
312         * modules/posix_spawnattr_getschedpolicy: Likewise.
313         * modules/posix_spawnattr_getsigdefault: Likewise.
314         * modules/posix_spawnattr_getsigmask: Likewise.
315         * modules/posix_spawnattr_init: Likewise.
316         * modules/posix_spawnattr_setflags: Likewise.
317         * modules/posix_spawnattr_setpgroup: Likewise.
318         * modules/posix_spawnattr_setschedparam: Likewise.
319         * modules/posix_spawnattr_setschedpolicy: Likewise.
320         * modules/posix_spawnattr_setsigdefault: Likewise.
321         * modules/posix_spawnattr_setsigmask: Likewise.
322         * modules/posix_spawnp: Likewise.
323
324 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
325
326         Add option to do-release-commit-and-tag to specify branch.
327         * build-aux/do-release-commit-and-tag: Add --branch.
328
329 2011-05-03  Bruno Haible  <bruno@clisp.org>
330
331         Avoid unnecessary compilation units, through conditional dependencies.
332         * modules/accept (Depends-on): Add conditions to the dependencies.
333         * modules/acosl (Depends-on): Likewise.
334         * modules/argz (Depends-on): Likewise.
335         * modules/asinl (Depends-on): Likewise.
336         * modules/atanl (Depends-on): Likewise.
337         * modules/atoll (Depends-on): Likewise.
338         * modules/bind (Depends-on): Likewise.
339         * modules/btowc (Depends-on): Likewise.
340         * modules/canonicalize-lgpl (Depends-on): Likewise.
341         * modules/ceil (Depends-on): Likewise.
342         * modules/ceilf (Depends-on): Likewise.
343         * modules/ceill (Depends-on): Likewise.
344         * modules/chdir-long (Depends-on): Likewise.
345         * modules/chown (Depends-on): Likewise.
346         * modules/close (Depends-on): Likewise.
347         * modules/connect (Depends-on): Likewise.
348         * modules/cosl (Depends-on): Likewise.
349         * modules/dirfd (Depends-on): Likewise.
350         * modules/dprintf (Depends-on): Likewise.
351         * modules/dprintf-posix (Depends-on): Likewise.
352         * modules/error (Depends-on): Likewise.
353         * modules/euidaccess (Depends-on): Likewise.
354         * modules/expl (Depends-on): Likewise.
355         * modules/faccessat (Depends-on): Likewise.
356         * modules/fchdir (Depends-on): Likewise.
357         * modules/fclose (Depends-on): Likewise.
358         * modules/fcntl (Depends-on): Likewise.
359         * modules/fdopendir (Depends-on): Likewise.
360         * modules/fflush (Depends-on): Likewise.
361         * modules/floor (Depends-on): Likewise.
362         * modules/floorf (Depends-on): Likewise.
363         * modules/floorl (Depends-on): Likewise.
364         * modules/fnmatch (Depends-on): Likewise.
365         * modules/fopen (Depends-on): Likewise.
366         * modules/fprintf-posix (Depends-on): Likewise.
367         * modules/frexp (Depends-on): Likewise.
368         * modules/frexp-nolibm (Depends-on): Likewise.
369         * modules/frexpl (Depends-on): Likewise.
370         * modules/frexpl-nolibm (Depends-on): Likewise.
371         * modules/fseek (Depends-on): Likewise.
372         * modules/fsusage (Depends-on): Likewise.
373         * modules/ftell (Depends-on): Likewise.
374         * modules/ftello (Depends-on): Likewise.
375         * modules/futimens (Depends-on): Likewise.
376         * modules/getcwd (Depends-on): Likewise.
377         * modules/getcwd-lgpl (Depends-on): Likewise.
378         * modules/getdelim (Depends-on): Likewise.
379         * modules/getdomainname (Depends-on): Likewise.
380         * modules/getgroups (Depends-on): Likewise.
381         * modules/gethostname (Depends-on): Likewise.
382         * modules/getline (Depends-on): Likewise.
383         * modules/getlogin_r (Depends-on): Likewise.
384         * modules/getopt-posix (Depends-on): Likewise.
385         * modules/getpeername (Depends-on): Likewise.
386         * modules/getsockname (Depends-on): Likewise.
387         * modules/getsockopt (Depends-on): Likewise.
388         * modules/getsubopt (Depends-on): Likewise.
389         * modules/getusershell (Depends-on): Likewise.
390         * modules/glob (Depends-on): Likewise.
391         * modules/grantpt (Depends-on): Likewise.
392         * modules/iconv_open (Depends-on): Likewise.
393         * modules/iconv_open-utf (Depends-on): Likewise.
394         * modules/inet_ntop (Depends-on): Likewise.
395         * modules/inet_pton (Depends-on): Likewise.
396         * modules/ioctl (Depends-on): Likewise.
397         * modules/isapipe (Depends-on): Likewise.
398         * modules/isfinite (Depends-on): Likewise.
399         * modules/isinf (Depends-on): Likewise.
400         * modules/lchown (Depends-on): Likewise.
401         * modules/ldexpl (Depends-on): Likewise.
402         * modules/link (Depends-on): Likewise.
403         * modules/linkat (Depends-on): Likewise.
404         * modules/listen (Depends-on): Likewise.
405         * modules/logl (Depends-on): Likewise.
406         * modules/lstat (Depends-on): Likewise.
407         * modules/mbrlen (Depends-on): Likewise.
408         * modules/mbrtowc (Depends-on): Likewise.
409         * modules/mbsinit (Depends-on): Likewise.
410         * modules/mbsnrtowcs (Depends-on): Likewise.
411         * modules/mbsrtowcs (Depends-on): Likewise.
412         * modules/mbtowc (Depends-on): Likewise.
413         * modules/memcmp (Depends-on): Likewise.
414         * modules/mkdir (Depends-on): Likewise.
415         * modules/mkdtemp (Depends-on): Likewise.
416         * modules/mkfifo (Depends-on): Likewise.
417         * modules/mkfifoat (Depends-on): Likewise.
418         * modules/mknod (Depends-on): Likewise.
419         * modules/mkostemp (Depends-on): Likewise.
420         * modules/mkostemps (Depends-on): Likewise.
421         * modules/mkstemp (Depends-on): Likewise.
422         * modules/mkstemps (Depends-on): Likewise.
423         * modules/mktime (Depends-on): Likewise.
424         * modules/nanosleep (Depends-on): Likewise.
425         * modules/open (Depends-on): Likewise.
426         * modules/openat (Depends-on): Likewise.
427         * modules/perror (Depends-on): Likewise.
428         * modules/poll (Depends-on): Likewise.
429         * modules/popen (Depends-on): Likewise.
430         * modules/posix_spawn (Depends-on): Likewise.
431         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
432         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
433         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
434         * modules/posix_spawnp (Depends-on): Likewise.
435         * modules/pread (Depends-on): Likewise.
436         * modules/printf-posix (Depends-on): Likewise.
437         * modules/ptsname (Depends-on): Likewise.
438         * modules/putenv (Depends-on): Likewise.
439         * modules/pwrite (Depends-on): Likewise.
440         * modules/readline (Depends-on): Likewise.
441         * modules/readlink (Depends-on): Likewise.
442         * modules/readlinkat (Depends-on): Likewise.
443         * modules/recv (Depends-on): Likewise.
444         * modules/recvfrom (Depends-on): Likewise.
445         * modules/regex (Depends-on): Likewise.
446         * modules/remove (Depends-on): Likewise.
447         * modules/rename (Depends-on): Likewise.
448         * modules/renameat (Depends-on): Likewise.
449         * modules/rmdir (Depends-on): Likewise.
450         * modules/round (Depends-on): Likewise.
451         * modules/roundf (Depends-on): Likewise.
452         * modules/roundl (Depends-on): Likewise.
453         * modules/rpmatch (Depends-on): Likewise.
454         * modules/select (Depends-on): Likewise.
455         * modules/send (Depends-on): Likewise.
456         * modules/sendto (Depends-on): Likewise.
457         * modules/setenv (Depends-on): Likewise.
458         * modules/setlocale (Depends-on): Likewise.
459         * modules/setsockopt (Depends-on): Likewise.
460         * modules/shutdown (Depends-on): Likewise.
461         * modules/sigaction (Depends-on): Likewise.
462         * modules/signbit (Depends-on): Likewise.
463         * modules/sigprocmask (Depends-on): Likewise.
464         * modules/sinl (Depends-on): Likewise.
465         * modules/sleep (Depends-on): Likewise.
466         * modules/snprintf (Depends-on): Likewise.
467         * modules/snprintf-posix (Depends-on): Likewise.
468         * modules/socket (Depends-on): Likewise.
469         * modules/sprintf-posix (Depends-on): Likewise.
470         * modules/sqrtl (Depends-on): Likewise.
471         * modules/stat (Depends-on): Likewise.
472         * modules/strchrnul (Depends-on): Likewise.
473         * modules/strdup-posix (Depends-on): Likewise.
474         * modules/strerror (Depends-on): Likewise.
475         * modules/strerror_r-posix (Depends-on): Likewise.
476         * modules/strndup (Depends-on): Likewise.
477         * modules/strnlen (Depends-on): Likewise.
478         * modules/strptime (Depends-on): Likewise.
479         * modules/strsep (Depends-on): Likewise.
480         * modules/strsignal (Depends-on): Likewise.
481         * modules/strstr-simple (Depends-on): Likewise.
482         * modules/strtod (Depends-on): Likewise.
483         * modules/strtoimax (Depends-on): Likewise.
484         * modules/strtok_r (Depends-on): Likewise.
485         * modules/strtoumax (Depends-on): Likewise.
486         * modules/symlink (Depends-on): Likewise.
487         * modules/symlinkat (Depends-on): Likewise.
488         * modules/tanl (Depends-on): Likewise.
489         * modules/tcgetsid (Depends-on): Likewise.
490         * modules/tmpfile (Depends-on): Likewise.
491         * modules/trunc (Depends-on): Likewise.
492         * modules/truncf (Depends-on): Likewise.
493         * modules/truncl (Depends-on): Likewise.
494         * modules/uname (Depends-on): Likewise.
495         * modules/unlink (Depends-on): Likewise.
496         * modules/unlockpt (Depends-on): Likewise.
497         * modules/unsetenv (Depends-on): Likewise.
498         * modules/usleep (Depends-on): Likewise.
499         * modules/utimensat (Depends-on): Likewise.
500         * modules/vasprintf (Depends-on): Likewise.
501         * modules/vdprintf (Depends-on): Likewise.
502         * modules/vdprintf-posix (Depends-on): Likewise.
503         * modules/vfprintf-posix (Depends-on): Likewise.
504         * modules/vprintf-posix (Depends-on): Likewise.
505         * modules/vsnprintf (Depends-on): Likewise.
506         * modules/vsnprintf-posix (Depends-on): Likewise.
507         * modules/vsprintf-posix (Depends-on): Likewise.
508         * modules/wcrtomb (Depends-on): Likewise.
509         * modules/wcscasecmp (Depends-on): Likewise.
510         * modules/wcscspn (Depends-on): Likewise.
511         * modules/wcsdup (Depends-on): Likewise.
512         * modules/wcsncasecmp (Depends-on): Likewise.
513         * modules/wcsnrtombs (Depends-on): Likewise.
514         * modules/wcspbrk (Depends-on): Likewise.
515         * modules/wcsrtombs (Depends-on): Likewise.
516         * modules/wcsspn (Depends-on): Likewise.
517         * modules/wcsstr (Depends-on): Likewise.
518         * modules/wcstok (Depends-on): Likewise.
519         * modules/wcswidth (Depends-on): Likewise.
520         * modules/wctob (Depends-on): Likewise.
521         * modules/wctomb (Depends-on): Likewise.
522         * modules/wctype (Depends-on): Likewise.
523         * modules/wcwidth (Depends-on): Likewise.
524         * modules/write (Depends-on): Likewise.
525
526 2011-05-03  Bruno Haible  <bruno@clisp.org>
527
528         Support for conditional dependencies.
529         * doc/gnulib.texi (Module description): Document the syntax of
530         conditional dependencies.
531         * gnulib-tool: New option --conditional-dependencies.
532         (func_usage): Document it.
533         (cond_dependencies): New variable.
534         (func_get_automake_snippet_conditional,
535         func_get_automake_snippet_unconditional): New functions, extracted from
536         func_get_automake_snippet.
537         (func_get_automake_snippet): Use them.
538         (sed_first_32_chars): New variable.
539         (func_module_shellfunc_name): New function.
540         (func_module_shellvar_name): New function.
541         (func_module_conditional_name): New function.
542         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
543         func_cond_module_condition): New functions.
544         (func_modules_transitive_closure): Add support for conditional
545         dependencies.
546         (func_emit_lib_Makefile_am): For a conditional module, enclose the
547         conditional automake snippet in an automake conditional.
548         (func_emit_autoconf_snippets): Emit shell functions that contain the
549         code for conditional modules.
550         (func_import, func_create_testdir): Update specification.
551
552 2011-05-03  Eric Blake  <eblake@redhat.com>
553
554         test-getaddrinfo: report error information
555         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
556
557 2011-05-03  Jim Meyering  <meyering@redhat.com>
558
559         bootstrap: avoid build failure when $GZIP is set
560         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
561         program name.  If defined at all, it is supposed to list gzip options.
562         Reported by Alan Curry in http://debbugs.gnu.org/8609
563
564 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
565
566         readme-release: new module with release instructions
567         * modules/readme-release: New module.
568         * top/README-release: New file, from coreutils, grep, diffutils.
569         * MODULES.html.sh (Support for maintaining and releasing): Add it.
570
571 2011-05-02  Eric Blake  <eblake@redhat.com>
572
573         fflush: also replace fclose when fixing fflush
574         * modules/fflush (Depends-on): Add fclose.
575         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
576         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
577         memstreams with no backing fd.
578         * doc/posix-functions/fclose.texi (fclose): Document the use of
579         fflush module to fix the bug.
580         * tests/test-fclose.c (main): Relax test when fclose is used in
581         isolation.
582
583         fclose: add some tests
584         * modules/fclose-tests: New test module.
585         * tests/test-fclose.c: New file.
586         * doc/posix-functions/fclose.texi (fclose): Document the bug.
587
588         fclose: reduced dependencies
589         * modules/fclose (Depends-on): Switch from fflush/fseeko to
590         simpler lseek.
591         * lib/fclose.c (rpl_fclose): Likewise.
592         Reported by Simon Josefsson.
593
594         exit: drop remaining clients
595         * modules/argmatch (Depends-on): Replace exit with stdlib.
596         * modules/copy-file (Depends-on): Likewise.
597         * modules/execute (Depends-on): Likewise.
598         * modules/exitfail (Depends-on): Likewise.
599         * modules/obstack (Depends-on): Likewise.
600         * modules/pagealign_alloc (Depends-on): Likewise.
601         * modules/pipe-filter-gi (Depends-on): Likewise.
602         * modules/pipe-filter-ii (Depends-on): Likewise.
603         * modules/savewd (Depends-on): Likewise.
604         * modules/spawn-pipe (Depends-on): Likewise.
605         * modules/wait-process (Depends-on): Likewise.
606         * modules/xsetenv (Depends-on): Likewise.
607         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
608         * modules/git-merge-changelog (Depends-on): Likewise.
609         * modules/long-options (Depends-on): Likewise.
610         * modules/pt_chown (Depends-on): Likewise.
611         * modules/sysexits (Depends-on): Likewise.
612
613         freading: relax license from LGPLv3+ to LGPLv2+
614         * modules/freading (License): Relax LGPL version.
615
616 2011-05-02  Bruno Haible  <bruno@clisp.org>
617
618         fchdir: Remove unused dependencies.
619         * modules/fchdir (Depends-on): Remove include_next.
620
621 2011-05-02  Bruno Haible  <bruno@clisp.org>
622
623         gnulib-tool: Refactor.
624         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
625         from func_emit_autoconf_snippets.
626         (func_emit_autoconf_snippets): Use it.
627
628 2011-05-02  Simon Josefsson  <simon@josefsson.org>
629
630         * NEWS: Document removal of 'exit'.
631         * modules/exit: Remove file.
632
633 2011-05-01  Bruno Haible  <bruno@clisp.org>
634
635         Update DEPENDENCIES.
636         * DEPENDENCIES (gettext): Recommend the newest release.
637         Reported by Simon Josefsson.
638
639 2011-05-01  Bruno Haible  <bruno@clisp.org>
640
641         gnulib-tool: Reduce code duplication.
642         * gnulib-tool (func_emit_autoconf_snippets): New function.
643         (func_import, func_create_testdir): Use it.
644
645 2011-04-30  Eric Blake  <eblake@redhat.com>
646
647         fclose: don't fail on non-seekable input stream
648         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
649         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
650         since fflush is allowed to fail in that case.
651
652 2011-04-30  Bruno Haible  <bruno@clisp.org>
653
654         dup3: cleanup
655         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
656
657 2011-04-30  Bruno Haible  <bruno@clisp.org>
658
659         netdb: Make it work in C++ mode.
660         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
661         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
662         module.
663         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
664         gl_MODULE_INDICATOR_FOR_TESTS.
665         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
666         * modules/netdb-c++-tests: New file.
667         * tests/test-netdb-c++.cc: New file.
668
669 2011-04-30  Bruno Haible  <bruno@clisp.org>
670
671         New modules 'vfscanf', 'vscanf'.
672         * modules/vfscanf: New file.
673         * modules/vscanf: New file.
674         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
675         here.
676         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
677         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
678
679 2011-04-30  Bruno Haible  <bruno@clisp.org>
680
681         passfd: Add comments.
682         * lib/passfd.c: Add comments about platforms.
683
684 2011-04-30  Bruno Haible  <bruno@clisp.org>
685
686         sys_uio: Make <sys/uio.h> self-contained.
687         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
688         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
689
690 2011-04-30  Bruno Haible  <bruno@clisp.org>
691
692         sys_socket: Ensure 'struct iovec' definition.
693         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
694         <sys/socket.h>.
695         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
696
697 2011-04-30  Bruno Haible  <bruno@clisp.org>
698
699         sys_uio: Protect definition of 'struct iovec'.
700         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
701         it as a C struct.
702
703 2011-04-30  Bruno Haible  <bruno@clisp.org>
704
705         manywarnings: fix indentation
706         * m4/manywarnings.m4: Indent by 2 spaces consistently.
707
708 2011-04-30  Pádraig Brady <P@draigBrady.com>
709
710         manywarnings: add -Wno-missing-field-initializers if needed.
711         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
712         option if it's needed to allow initialization with { 0, }
713
714 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
715
716         announce-gen: cosmetic improvement
717         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
718
719 2011-04-29  Jim Meyering  <meyering@redhat.com>
720
721         vc-list-files: indent with spaces, not TABs
722         * build-aux/vc-list-files: Convert leading TABs to spaces,
723         to match the style of most other files in gnulib.
724
725         announce-gen: indent with spaces, not TABs
726         * build-aux/announce-gen: Convert all TABs to spaces, to match
727         the style of most other files in gnulib.
728
729 2011-04-29  Eric Blake  <eblake@redhat.com>
730
731         quotearg: avoid uninitialized variable use
732         * lib/quotearg.c (quoting_options_from_style): Initialize
733         remaining fields, and ensure that custom styles are only used via
734         quoting_options rather than quoting_style.
735
736 2011-04-29  Jim Meyering  <meyering@redhat.com>
737
738         maint.mk: remove unused VC-tag variable
739         * top/maint.mk (VC-tag): Remove unused variable.
740
741 2011-04-29  Bruno Haible  <bruno@clisp.org>
742
743         netdb: fix gai_strerror replacements
744         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
745         * modules/netdb: Substitute it.
746
747 2011-04-29  Jim Meyering  <meyering@redhat.com>
748
749         test-getcwd.c: avoid new set-but-not-used warning
750         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
751         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
752         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
753         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
754
755         test-hash.c: avoid a new shadowing warning
756         * tests/test-hash.c (main): Don't shadow "dup".
757
758 2011-04-28  Eric Blake  <eblake@redhat.com>
759
760         getaddrinfo: fix gai_strerror signature
761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
762         and work around mingw with UNICODE defined.
763         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
764         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
765         * modules/netdb (Makefile.am): Substitute it.
766         * lib/netdb.in.h (gai_strerror): Declare replacement.
767         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
768         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
769         the fix.
770
771         getsockopt: avoid compiler warning
772         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
773         Reported by Matthias Bolte.
774
775         tests: drop unused link dependency
776         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
777         * modules/dirent-safer-tests (Makefile.am): Likewise.
778         * modules/fdopendir-tests (Makefile.am): Likewise.
779         * modules/mkfifoat-tests (Makefile.am): Likewise.
780         * modules/openat-safer-tests (Makefile.am): Likewise.
781         * modules/openat-tests (Makefile.am): Likewise.
782         * modules/readlinkat-tests (Makefile.am): Likewise.
783         * modules/symlinkat-tests (Makefile.am): Likewise.
784         * modules/linkat-tests (Makefile.am): Likewise.
785         (Depends-on): Switch to filenamecat-lgpl.
786         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
787         LIBINTL.
788         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
789         * tests/test-linkat.c (main): Don't require xalloc.
790
791         hash, mgetgroups: drop xalloc dependency
792         * lib/hash.c (includes): Adjust includes.
793         * lib/mgetgroups.c (includes): Likewise.
794         (xgetgroups): Move...
795         * lib/xgetgroups.c: ...to new file.
796         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
797         * modules/xgetgroups: New file, split from...
798         * modules/mgetgroups: ...here.
799         (Depends-on): Add xalloc-oversized.
800         * modules/hash (Depends-on): Likewise.
801         * modules/hash-tests (Depends-on): Drop xalloc.
802         (test_hash_LDADD): Drop unused library.
803         * tests/test-hash.c (main): Break xalloc dependency.
804         (includes): Drop unused include.
805
806         xalloc-oversized: new module
807         * modules/xalloc-oversized: New module.
808         * modules/xalloc (Depends-on): Add it.
809         * lib/xalloc.h (xalloc_oversized): Move...
810         * lib/xalloc-oversized.h: ...into new file.
811
812         utimecmp: drop dependency on xmalloc
813         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
814         due to memory pressure.
815         * modules/utimecmp (Depends-on): Drop xalloc.
816
817 2011-04-27  Eric Blake  <eblake@redhat.com>
818
819         getcwd: fix mingw bugs
820         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
821         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
822         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
823
824 2011-04-27  Bruno Haible  <bruno@clisp.org>
825
826         mkstemps: Ensure declaration on MacOS X 10.5.
827         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
828         * doc/glibc-functions/mkstemps.texi: Document header file problem on
829         MacOS X.
830
831 2011-04-27  Bruno Haible  <bruno@clisp.org>
832
833         mkstemp: More documentation.
834         * doc/posix-functions/mkstemp.texi: Document header file problem on
835         MacOS X.
836
837 2011-04-27  Bruno Haible  <bruno@clisp.org>
838
839         mkstemp: Tweak configure message when cross-compiling.
840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
841         result as a guess.
842
843 2011-04-27  Bruno Haible  <bruno@clisp.org>
844
845         clean-temp: Clarify what it does.
846         * lib/clean-temp.h: Add more comments.
847         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
848         module.
849         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
850         * doc/glibc-functions/mkstemps.texi: Likewise.
851         * doc/glibc-functions/mkostemps.texi: Likewise.
852
853 2011-04-27  Eric Blake  <eblake@redhat.com>
854
855         fchdir: avoid extra chdir and fix test
856         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
857         getcwd-lgpl.
858         * lib/fchdir.c (get_name): Any absolute name will do; it does not
859         have to be canonical.
860         (canonicalize_file_name): Drop unused macro.
861         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
862
863         filenamecat-lgpl: fix licence
864         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
865         when it was first created.
866
867         linkat, renameat: add missing dependency
868         * modules/linkat (Depends-on): Require getcwd-lgpl.
869         * modules/renameat (Depends-on): Likewise.
870
871         tests: reduce dependencies
872         * tests/test-linkat.c (main): Use lighter-weight getcwd.
873         * tests/test-renameat.c (main): Likewise.
874         * modules/linkat-tests (Depends-on): Relax dependency.
875         * modules/renameat-tests (Depends-on): Likewise.
876         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
877         dependency explicit.
878
879         save-cwd: reduce default dependency
880         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
881         * lib/save-cwd.c: Update comments.
882         * NEWS: Document the semantic change.
883
884         getcwd: enhance tests
885         * tests/test-getcwd-lgpl.c: New file, taken from...
886         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
887         repeat long path stress tests from m4 probe.
888         * modules/getcwd-lgpl-tests: New module.
889         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
890         * m4/getcwd-abort-bug.m4: Update comment.
891         * m4/getcwd-path-max.m4: Likewise.
892
893         getcwd-lgpl: new module
894         * modules/getcwd-lgpl: New module.
895         * lib/getcwd-lgpl.c: New file.
896         * doc/posix-functions/getcwd.texi (getcwd): Document it.
897         * MODULES.html.sh (lacking POSIX:2008): Likewise.
898         * modules/getcwd (configure.ac): Set C witness.
899         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
900
901         getcwd: tweak comments
902         * m4/getcwd-abort-bug.m4: Fix comments.
903         * m4/getcwd-path-max.m4: Likewise.
904         * m4/getcwd.m4: Likewise.
905
906 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
907         and Eric Blake  <eblake@redhat.com>
908
909         mkstemp: replace if system version uses wrong permissions
910         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
911         read/write mode bits set in file created by mkstemp.
912         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
913
914 2011-04-27  Eric Blake  <eblake@redhat.com>
915
916         passfd: avoid compiler warning
917         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
918         Reported by Laine Stump.
919
920 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
921
922         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
923         required by the NetBSD (and perhaps other 4.4BSD derived) join.
924
925 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
926         and Eric Blake  <eblake@redhat.com>
927
928         mkstemp: mention clean-temp module
929         * lib/mkstemp.c: Add comment.
930         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
931
932 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
933
934         inttypes: also provide default values for 32-bit tests
935         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
936         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
937
938 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
939
940         strtoumax: remove dependency on strtoimax
941         This is like the strtoull change of yesterday.
942         * modules/strtoumax (Files): Add lib/strtoimax.c.
943         (Depends-on): Remove strtoimax and add verify.
944
945         inttypes-incomplete: new module
946         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
947         all but the PRI* and SCN* parts of gl_INTTYPES_H.
948         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
949         of gl_INTTYPES_H.
950         (gl_INTTYPES_H): Rewrite in terms of these new macros.
951         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
952         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
953         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
954         * modules/strtoumax, modules/xstrtol (Depends-on):
955         Depend on inttypes-incomplete, not inttypes.
956         * modules/inttypes-incomplete: New module, containing the contents
957         of the old modules/inttypes module, except that the Files: section
958         omits m4/inttypes-pri.m4, and the configure.ac section invokes
959         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
960         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
961         (Depends-on): Depend only on inttypes-incomplete.
962         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
963
964         inttypes: omit now-redundant strtoimax and strtoumax work
965         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
966         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
967
968         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
969         This supports apps that need pointers to strtoimax and strtoumax,
970         and ports to HP-UX 11.00 64.bit, which has macros that expand to
971         nonexistent functions.  See
972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
973         et seq.
974         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
975         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
976         a macro.
977         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
978
979 2011-04-25  Simon Josefsson  <simon@josefsson.org>
980
981         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
982
983 2011-04-25  Bruno Haible  <bruno@clisp.org>
984
985         strtol, strtoul: Mark modules as obsolete.
986         * modules/strtol (Status, Notice): New sections.
987         * modules/strtoul (Status, Notice): New sections.
988
989 2011-04-25  Bruno Haible  <bruno@clisp.org>
990
991         strtod: Remove check for strtod, unless supporting old platforms.
992         * modules/strtod-obsolete: New file.
993         * m4/strtod-obsolete.m4: New file.
994         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
995         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
996         * modules/strtod (Depends-on): Add strtod-obsolete.
997         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
998
999 2011-04-25  Bruno Haible  <bruno@clisp.org>
1000
1001         strcase: Make module obsolete.
1002         * modules/strcase (Status, Notice): New sections.
1003
1004 2011-04-25  Bruno Haible  <bruno@clisp.org>
1005
1006         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1007         * modules/dup2-obsolete: New file.
1008         * m4/dup2-obsolete.m4: New file.
1009         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1010         gl_FUNC_DUP2_OBSOLETE is not also defined.
1011         * modules/dup2 (Depends-on): Add dup2-obsolete.
1012         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1013
1014 2011-04-25  Bruno Haible  <bruno@clisp.org>
1015
1016         strnlen: Avoid memchr related link error on old obsolete platforms.
1017         * modules/memchr-obsolete: New file.
1018         * m4/memchr-obsolete.m4: New file.
1019         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1020         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1021         * modules/memchr (Depends-on): Add memchr-obsolete.
1022         * modules/strnlen (Depends-on): Likewise.
1023         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1024
1025 2011-04-25  Jim Meyering  <meyering@redhat.com>
1026
1027         maint.mk: makefile_at_at_check extend and clean up
1028         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1029         in addition to */Makefile.am.
1030         Exempt legitimate uses of @VAR@ notation, e.g.,
1031         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1032         Remove obsolete coreutils-specific comment.
1033         Prompted by discussion here:
1034         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1035
1036 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         strtoul: remove dependency on strtol
1039         This is so that 'configure' need not check for strtol merely because
1040         the application needs strtoul.
1041         * modules/strtoul (Files): Add lib/strtol.c.
1042         (Depends-on): Remove strtol.
1043
1044         strtoull: remove dependency on strtoul
1045         This is like the strtoll change.
1046         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1047         (Depends-on): Remove strtoul.
1048
1049         strtoll: remove dependency on strtol
1050         This is so that 'configure' need not check for strtol merely because
1051         the application needs strtoll.
1052         * modules/strtoll (Files): Add lib/strtol.c.
1053         (Depends-on): Remove strtol.
1054
1055 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         inttypes: Move some configure check to module 'imaxdiv'.
1058         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1059         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1060         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1061
1062 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1063
1064         inttypes: Move some configure check to module 'imaxabs'.
1065         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1066         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1067         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1068
1069 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1070
1071         inttypes: Remove configure tests that are not needed since 2009-12-31.
1072         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1073         gl_cv_header_working_inttypes_h.
1074
1075 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         * modules/strnlen (Depends-on): Remove memchr.
1078         The strnlen implementation doesn't need the memchr module's fixes; see
1079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1080
1081         strtol: remove dependency on wchar
1082         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1083         * modules/strtol (Depends-on): Remove wchar.
1084
1085 2011-04-21  Eric Blake  <eblake@redhat.com>
1086
1087         passfd: fix test regression on Linux
1088         * modules/passfd-tests (configure.ac): Correct socketpair check.
1089
1090         passfd: speed up configure and drop unused code
1091         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1092         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1093         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1094         Instead of probing at configure for unix_scm_rights_bsd44_way,
1095         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1096         check to a struct member probe.
1097         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1098         (sendfd, recvfd): Update preprocessor checks.
1099         * modules/passfd (Files): Reflect rename, and drop unused file.
1100         (Depends-on): Drop unused dependency.
1101
1102         passfd: allow compilation on mingw
1103         * modules/sys_socket (Depends-on): Add sys_uio.
1104         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1105         iovec and a minimal struct msghdr.
1106         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1107         * tests/test-sys_socket.c (main): Enhance test.
1108         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1109         guaranteed to provide what we need.
1110         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1111         * modules/passfd-tests (Depends-on): Add sys_wait.
1112         * tests/test-passfd.c (main): Skip test on mingw, for now.
1113         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1114         partial 'struct msghdr' implementation.
1115
1116         sys_uio: new module
1117         * modules/sys_uio: New module.
1118         * modules/sys_uio-tests: Likewise.
1119         * lib/sys_uio.in.h: New file.
1120         * m4/sys_uio_h.m4: Likewise.
1121         * tests/test-sys_uio.c: Likewise.
1122         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1123         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1124
1125 2011-04-20  Jim Meyering  <meyering@redhat.com>
1126
1127         useless-if-before-free: avoid false-positive
1128         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1129         disjunct so that it too requires a terminating ";".  Without that,
1130         this script would identify as useless one statement from gcc that
1131         was not:
1132           if (aligned_ptr)
1133             free (((void **) aligned_ptr) [-1]);
1134
1135 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1136
1137         doc: update users.txt.
1138         * users.txt: Add barcode.
1139
1140 2011-04-19  Bruno Haible  <bruno@clisp.org>
1141
1142         ioctl: Remove link dependency on native Windows.
1143         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1144         (gl_close_fn, gl_ioctl_fn): New types.
1145         (struct fd_hook): Renamed from struct close_hook. Change type of
1146         private_close_fn field. Add private_ioctl_fn field.
1147         (close_hook_fn): Add parameter for primary close method.
1148         (execute_close_hooks, execute_all_close_hooks): Likewise.
1149         (ioctl_hook_fn): New type.
1150         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1151         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1152         argument.
1153         (unregister_fd_hook): Renamed from unregister_close_hook.
1154         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1155         Don't include <unistd.h>.
1156         (close): Remove undef.
1157         (anchor): Update.
1158         (execute_close_hooks): Add argument for primary close method.
1159         (execute_all_close_hooks): Likewise.
1160         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1161         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1162         argument. Allow each argument to be NULL.
1163         (unregister_fd_hook): Renamed from unregister_close_hook.
1164         * lib/close.c (rpl_close): Pass 'close' function pointer to
1165         execute_all_close_hooks.
1166         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1167         (primary_ioctl): New function.
1168         (ioctl): Don't call ioctlsocket here. Instead, call
1169         execute_all_ioctl_hooks.
1170         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1171         close method.
1172         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1173         (fd_sockets_hook): Renamed from close_sockets_hook.
1174         (gl_sockets_startup, gl_sockets_cleanup): Update.
1175         * modules/fd-hook: Renamed from modules/close-hook. Update.
1176         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1177         * modules/sockets (Depends-on): Likewise.
1178         * modules/ioctl (Depends-on): Add fd-hook.
1179         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1180         GNULIB_SOCKET.
1181
1182 2011-04-19  Bruno Haible  <bruno@clisp.org>
1183
1184         Move the support of O_NONBLOCK in open() to the 'open' module.
1185         * modules/nonblocking (Depends-on): Remove 'open'.
1186         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1187         gl_cv_have_open_O_NONBLOCK.
1188         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1189         O_NONBLOCK support.
1190         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1191
1192 2011-04-17  Bruno Haible  <bruno@clisp.org>
1193
1194         pipe2: Simplify code.
1195         * lib/pipe2.c (pipe2): Reduce code duplication.
1196
1197 2011-04-17  Bruno Haible  <bruno@clisp.org>
1198
1199         nonblocking: Add comment.
1200         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1201
1202 2011-04-17  Bruno Haible  <bruno@clisp.org>
1203
1204         nonblocking: Add tests for sockets.
1205         * tests/test-nonblocking-socket.sh: New file.
1206         * tests/test-nonblocking-socket-main.c: New file.
1207         * tests/test-nonblocking-socket-child.c: New file.
1208         * tests/test-nonblocking-socket.h: New file.
1209         * tests/socket-server.h: New file.
1210         * tests/socket-client.h: New file.
1211         * modules/nonblocking-socket-tests: New file.
1212         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1213
1214 2011-04-17  Bruno Haible  <bruno@clisp.org>
1215
1216         nonblocking: Add tests for pipes.
1217         * tests/test-nonblocking-pipe.sh: New file.
1218         * tests/test-nonblocking-pipe-main.c: New file.
1219         * tests/test-nonblocking-pipe-child.c: New file.
1220         * tests/test-nonblocking-pipe.h: New file.
1221         * tests/test-nonblocking-writer.h: New file.
1222         * tests/test-nonblocking-reader.h: New file.
1223         * tests/test-nonblocking-misc.h: New file.
1224         * modules/nonblocking-pipe-tests: New file.
1225         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1226
1227 2011-04-16  Bruno Haible  <bruno@clisp.org>
1228
1229         gettext: Clarify the needed programmer actions.
1230         * modules/gettext (Notice): New field.
1231         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1232
1233 2011-04-16  Bruno Haible  <bruno@clisp.org>
1234
1235         strchrnul: Tweak last commit.
1236         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1237         bug.
1238         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1239         as in _GL_FUNCDECL_SYS.
1240         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1241         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1242
1243 2011-04-15  Eric Blake  <eblake@redhat.com>
1244
1245         strchrnul: work around cygwin bug
1246         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1247         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1249         * modules/string (Makefile.am): Substitute it.
1250         * lib/string.in.h (strchrnul): Use it.
1251
1252 2011-04-15  Bruno Haible  <bruno@clisp.org>
1253
1254         Don't require lib/stdio-write.c when only module 'stdio' is used.
1255         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1256         invocation.
1257         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1258
1259 2011-04-14  Bruno Haible  <bruno@clisp.org>
1260
1261         Support non-blocking pipe I/O in read() on native Windows.
1262         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1263         (read): New declaration.
1264         * lib/read.c: New file.
1265         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1266         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1267         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1268         vscanf): New declarations.
1269         * lib/stdio-read.c: New file.
1270         * m4/read.m4: New file.
1271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1272         REPLACE_READ.
1273         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1274         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1275         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1276         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1277         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1278         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1279         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1280         * modules/read: New file.
1281         * modules/nonblocking (Files): Add lib/stdio-read.c.
1282         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1283         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1284         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1285         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1286         * modules/pread (Depends-on): Add read.
1287         * modules/safe-read (Depends-on): Likewise.
1288         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1289         gets, scanf, vfscanf, vscanf): Verify signatures.
1290         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1291         problem with non-blocking pipes.
1292         * doc/posix-functions/fgetc.texi: Likewise.
1293         * doc/posix-functions/fgets.texi: Likewise.
1294         * doc/posix-functions/fread.texi: Likewise.
1295         * doc/posix-functions/fscanf.texi: Likewise.
1296         * doc/posix-functions/getc.texi: Likewise.
1297         * doc/posix-functions/getchar.texi: Likewise.
1298         * doc/posix-functions/gets.texi: Likewise.
1299         * doc/posix-functions/scanf.texi: Likewise.
1300         * doc/posix-functions/vfscanf.texi: Likewise.
1301         * doc/posix-functions/vscanf.texi: Likewise.
1302
1303 2011-04-14  Bruno Haible  <bruno@clisp.org>
1304
1305         Support non-blocking pipe I/O in write() on native Windows.
1306         * lib/write.c (rpl_write): Split a write request that failed merely
1307         because the byte count was larger than the pipe buffer's size.
1308         * doc/posix-functions/write.texi: Mention the problem with large byte
1309         counts.
1310
1311 2011-04-14  Bruno Haible  <bruno@clisp.org>
1312
1313         wchar: Ensure that wchar_t gets defined on uClibc.
1314         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1315         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1316
1317 2011-04-13  Bruno Haible  <bruno@clisp.org>
1318
1319         safe-write, full-read: Avoid unnecessary compilation units.
1320         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1321         (Depends-on): Remove safe-read. Add ssize_t.
1322         * modules/full-read (Files): Add lib/full-write.c.
1323         (Depends-on): Add full-write.
1324
1325 2011-04-13  Bruno Haible  <bruno@clisp.org>
1326
1327         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1328         * modules/pwrite (Depends-on): Add 'write'.
1329
1330 2011-04-13  Bruno Haible  <bruno@clisp.org>
1331
1332         Support non-blocking pipe I/O in write() on native Windows.
1333         * lib/unistd.in.h (write): Enable replacement also if
1334         GNULIB_UNISTD_H_NONBLOCKING is 1.
1335         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1336         (rpl_write): When failing to write on a non-blocking pipe, change
1337         errno from ENOSPC to EAGAIN.
1338         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1339         putchar, puts, vfprintf, vprintf): Enable replacement also if
1340         GNULIB_STDIO_H_NONBLOCKING is 1.
1341         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1342         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1343         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1344         CALL_WITH_SIGPIPE_EMULATION.
1345         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1346         * m4/nonblocking.m4: New file.
1347         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1348         for non-blocking I/O support.
1349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1350         GNULIB_UNISTD_H_NONBLOCKING.
1351         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1352         required for non-blocking I/O support.
1353         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1354         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1355         lib/stdio-write.c, m4/asm-underscore.m4.
1356         (Depends-on): Add stdio, unistd.
1357         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1358         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1359         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1360         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1361         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1362         problem with non-blocking pipes.
1363         * doc/posix-functions/fputc.texi: Likewise.
1364         * doc/posix-functions/fputs.texi: Likewise.
1365         * doc/posix-functions/fwrite.texi: Likewise.
1366         * doc/posix-functions/printf.texi: Likewise.
1367         * doc/posix-functions/putc.texi: Likewise.
1368         * doc/posix-functions/putchar.texi: Likewise.
1369         * doc/posix-functions/puts.texi: Likewise.
1370         * doc/posix-functions/vfprintf.texi: Likewise.
1371         * doc/posix-functions/vprintf.texi: Likewise.
1372         * doc/posix-functions/write.texi: Likewise.
1373
1374 2011-04-10  Jim Meyering  <meyering@redhat.com>
1375
1376         maint.mk: prohibit doubled words
1377         Detect them also when they're separated by a newline.
1378         There are 3 ways to customize it:
1379           - disable the test on a per file basis, as usual with rules using
1380             $(VC_LIST_EXCEPT)
1381           - replace the default doubled-word-selecting regexp (affects all files)
1382           - ignore a particular file-vs-doubled-word match
1383         I nearly used that last one to ignore the "is is" match in
1384         coreutils' NEWS file, since the text was "ls -is is ..."
1385         To do that, I would have added this line to cfg.mk:
1386           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1387         but it would have ignored any "is is" match in NEWS.
1388         Low probability, but still...
1389         Instead, I changed the text, slightly:
1390           -  ls -is is now consistent with ls -lis in ignoring values returned
1391           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1392         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1393         (prohibit_doubled_word_): Define.
1394         (sc_prohibit_doubled_word): New rule.
1395         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1396
1397 2011-04-10  Jim Meyering  <meyering@redhat.com>
1398
1399         maint: fix doubled-word typo in comment
1400         * m4/gethostname.m4: s/is is/it is/
1401         * m4/getdomainname.m4: Likewise.
1402
1403 2011-04-10  Jim Meyering  <meyering@redhat.com>
1404
1405         maint: remove doubled word: s/it it/it/
1406         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1407
1408 2011-04-10  Jim Meyering  <meyering@redhat.com>
1409
1410         maint.mk: remove useless semicolon and backslash
1411         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1412         semicolon and backslash.
1413
1414 2011-04-10  Bruno Haible  <bruno@clisp.org>
1415
1416         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1417         * modules/stdint-tests (Depends-on): Add wchar.
1418
1419 2011-04-10  Jim Meyering  <meyering@redhat.com>
1420
1421         maint: remove doubled words in comments, e.g., s/a a/a/
1422         * lib/strptime.c (day_of_the_week): s/the the/the/
1423         * tests/test-chown.h (test_chown): s/a a/a/
1424
1425         test-chown.h: correct a cast
1426         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1427         when the destination is a stat.st_gid.
1428
1429 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1430
1431         getaddrinfo: Fix test for sa_len member.
1432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1433         include <sys/types.h> before <sys/socket.h>.
1434
1435 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1436
1437         maint: change "can not" to "cannot"
1438         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1439         boundaries.
1440
1441 2011-04-09  Jim Meyering  <meyering@redhat.com>
1442
1443         maint: change "a a" to "a"
1444         * tests/test-lchown.h (test_lchown): s/a a/a/
1445
1446         maint.mk: prohibit \<the the\>
1447         * top/maint.mk (sc_prohibit_the_the): New rule.
1448
1449         maint: fix "the the" in comment
1450         * lib/count-one-bits.h: s/the the/the/
1451
1452         maint: change "can not" to "cannot"
1453         But do not change the occurrences in maintain.texi or in
1454         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1455         * doc/gnulib-tool.texi: s/can not/cannot/
1456         * doc/posix-functions/accept.texi (accept): Likewise.
1457         * doc/posix-functions/socket.texi (socket): Likewise.
1458         * lib/mbrtowc.c: Likewise.
1459
1460         maint.mk: prohibit use of "can not"
1461         * top/maint.mk (sc_prohibit_can_not): New rule.
1462         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1463
1464 2011-04-09  Bruno Haible  <bruno@clisp.org>
1465
1466         careadlinkat: Guard against misuse of careadlinkatcwd.
1467         * lib/careadlinkat.c: Include <stdlib.h>.
1468         (careadlinkatcwd): Check that the fd argument is as expected.
1469
1470 2011-04-09  Bruno Haible  <bruno@clisp.org>
1471
1472         careadlinkat: Use common coding style.
1473         * lib/careadlinkat.c: Move gnulib includes after system includes.
1474
1475 2011-04-09  Bruno Haible  <bruno@clisp.org>
1476
1477         careadlinkat: Clarify specification.
1478         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1479         (careadlinkatcwd): Add comment.
1480         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1481
1482 2011-04-09  Bruno Haible  <bruno@clisp.org>
1483
1484         areadlinkat: Avoid link error on many platforms.
1485         * modules/areadlinkat (Depends-on): Add areadlink.
1486
1487 2011-04-09  Bruno Haible  <bruno@clisp.org>
1488
1489         allocator, careadlinkat: Fix double-inclusion guard.
1490         * lib/allocator.h: Fix double-inclusion guard.
1491         * lib/careadlinkat.h: Likewise.
1492
1493 2011-04-09  Bruno Haible  <bruno@clisp.org>
1494
1495         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1496         * lib/relocwrapper.c: Update dependencies hierarchy.
1497         * build-aux/install-reloc: Update list of files to be compiled.
1498         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1499         lib/allocator.[hc].
1500
1501 2011-04-08  Eric Blake  <eblake@redhat.com>
1502
1503         strftime: silence gnulib-tool warning
1504         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1505
1506 2011-04-08  Bruno Haible  <bruno@clisp.org>
1507
1508         verify: Fix syntax error with GCC 4.6 in C++ mode.
1509         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1510         (HAVE_STATIC_ASSERT): New macro.
1511         (verify_true, verify): Use 'static_assert' if it is supported and
1512         '_Static_assert' is not supported.
1513
1514 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1515
1516         allocator: New module.
1517         * modules/allocator, lib/allocator.c: New files.
1518         * lib/allocator.h (stdlib_allocator): New decl.
1519         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1520         Remove.  Do not include <stdlib.h>.
1521         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1522         * modules/careadlinkat (Files): Remove lib/allocator.h.
1523         (Depends-on): Add allocator.
1524
1525         stdlib: let modules use system malloc, realloc
1526         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1527         if !_GL_USE_STDLIB_ALLOC.
1528         (malloc, realloc): Limit this change to a smaller scope.
1529
1530         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1531         (malloc, realloc): Don't #undef; no longer needed.
1532         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1533         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1534         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1535         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1536         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1537         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1538         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1539         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1540
1541         careadlinkat: rename members to avoid problem
1542         * lib/allocator.h (struct allocator): Rename members from
1543         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1544         and realloc are #define'd.  Reported by Eric Blake in
1545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1546         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1547
1548 2011-04-08  Eric Blake  <eblake@redhat.com>
1549
1550         nonblocking: reduce dependency
1551         * tests/test-nonblocking.c: Only test sockets when in use.
1552         * modules/nonblocking-tests (Depends-on): Drop socket.
1553         (Makefile.am): Link even if sockets are not present.
1554         * modules/pipe2-tests (Makefile.am): Likewise.
1555         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1556
1557         pipe2: fix O_NONBLOCK support on mingw
1558         * modules/pipe2 (Depends-on): Add nonblocking.
1559         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1560         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1561         * tests/test-nonblocking.c (main): Likewise.
1562         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1563
1564         fcntl-h: fix O_ACCMODE on cygwin
1565         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1566         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1567
1568         pipe-filter: drop O_NONBLOCK workarounds
1569         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1570         * modules/pipe-filter-ii (Depends-on): Likewise.
1571         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1572
1573         nonblocking: provide O_NONBLOCK for mingw
1574         * modules/nonblocking (Depends-on): Add open.
1575         (configure.ac): Set new witness macro.
1576         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1577         * modules/fcntl-h (Makefile.am): Substitute it.
1578         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1579         nonblocking module is in use.
1580         * lib/nonblocking.c: Adjust portability test.
1581         * lib/open.c (open): Don't let native open see gnulib flag.
1582         * tests/test-fcntl-h.c (main): Enhance test.
1583         * tests/test-open.h (test_open): Likewise.
1584         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1585
1586         careadlinkat: fix compilation error on mingw
1587         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1588         within struct allocator.
1589
1590 2011-04-06  Eric Blake  <eblake@redhat.com>
1591
1592         binary-io: relicense under LGPLv2+
1593         * modules/binary-io (License): Relax to LGPLv2+.
1594         Requested for libvirt, and required by pipe2.
1595
1596 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1597
1598         verify: use _Static_assert if available
1599         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1600         (verify_true, verify): Use it if available.  This generates better
1601         diagnostics with GCC 4.6.0 and later.
1602
1603 2011-04-05  Bruno Haible  <bruno@clisp.org>
1604
1605         Remove leftover generated .h files after config.status changed.
1606
1607         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1608         GL_GENERATE_ALLOCA_H.
1609         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1610         GL_GENERATE_ALLOCA_H evaluates to false.
1611
1612         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1613         GL_GENERATE_ARGZ_H.
1614         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1615         evaluates to false.
1616
1617         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1618         GL_GENERATE_BYTESWAP_H.
1619         * modules/byteswap (Makefile.am): Remove byteswap.h if
1620         GL_GENERATE_BYTESWAP_H evaluates to false.
1621
1622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1623         GL_GENERATE_ERRNO_H.
1624         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1625         evaluates to false.
1626
1627         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1628         GL_GENERATE_FLOAT_H.
1629         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1630         evaluates to false.
1631
1632         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1633         GL_GENERATE_FNMATCH_H.
1634         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1635         GL_GENERATE_FNMATCH_H evaluates to false.
1636
1637         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1638         GL_GENERATE_GLOB_H.
1639         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1640         evaluates to false.
1641
1642         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1643         automake conditional GL_GENERATE_ICONV_H.
1644         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1645         evaluates to false.
1646
1647         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1648         GL_GENERATE_NETINET_IN_H.
1649         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1650         GL_GENERATE_NETINET_IN_H evaluates to false.
1651
1652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1653         conditional GL_GENERATE_PTHREAD_H.
1654         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1655         * modules/pthread (Makefile.am): Remove pthread.h if
1656         GL_GENERATE_PTHREAD_H evaluates to false.
1657
1658         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1659         GL_GENERATE_SCHED_H.
1660         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1661         evaluates to false.
1662
1663         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1664         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1665         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1666         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1667
1668         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1669         GL_GENERATE_STDARG_H.
1670         * modules/stdarg (Makefile.am): Remove stdarg.h if
1671         GL_GENERATE_STDARG_H evaluates to false.
1672
1673         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1674         GL_GENERATE_STDBOOL_H.
1675         * modules/stdbool (Makefile.am): Remove stdbool.h if
1676         GL_GENERATE_STDBOOL_H evaluates to false.
1677
1678         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1679         conditional GL_GENERATE_STDDEF_H.
1680         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1681         * modules/stddef (Makefile.am): Remove stddef.h if
1682         GL_GENERATE_STDDEF_H evaluates to false.
1683
1684         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1685         GL_GENERATE_STDINT_H.
1686         * modules/stdint (Makefile.am): Remove stdint.h if
1687         GL_GENERATE_STDINT_H evaluates to false.
1688
1689         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1690         GL_GENERATE_SYSEXITS_H.
1691         * modules/sysexits (Makefile.am): Remove sysexits.h if
1692         GL_GENERATE_SYSEXITS_H evaluates to false.
1693
1694         Reported by Karl Berry and Ralf Wildenhues.
1695
1696 2011-04-05  Bruno Haible  <bruno@clisp.org>
1697
1698         Ensure to rebuild generated .h files when config.status has changed.
1699         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1700         config.status.
1701         * modules/ctype (Makefile.am): Likewise.
1702         * modules/dirent (Makefile.am): Likewise.
1703         * modules/errno (Makefile.am): Likewise.
1704         * modules/fcntl-h (Makefile.am): Likewise.
1705         * modules/float (Makefile.am): Likewise.
1706         * modules/getopt-posix (Makefile.am): Likewise.
1707         * modules/glob (Makefile.am): Likewise.
1708         * modules/iconv-h (Makefile.am): Likewise.
1709         * modules/inttypes (Makefile.am): Likewise.
1710         * modules/langinfo (Makefile.am): Likewise.
1711         * modules/locale (Makefile.am): Likewise.
1712         * modules/math (Makefile.am): Likewise.
1713         * modules/netdb (Makefile.am): Likewise.
1714         * modules/netinet_in (Makefile.am): Likewise.
1715         * modules/poll-h (Makefile.am): Likewise.
1716         * modules/pthread (Makefile.am): Likewise.
1717         * modules/pty (Makefile.am): Likewise.
1718         * modules/sched (Makefile.am): Likewise.
1719         * modules/search (Makefile.am): Likewise.
1720         * modules/selinux-h (Makefile.am): Likewise.
1721         * modules/signal (Makefile.am): Likewise.
1722         * modules/spawn (Makefile.am): Likewise.
1723         * modules/stdarg (Makefile.am): Likewise.
1724         * modules/stdbool (Makefile.am): Likewise.
1725         * modules/stddef (Makefile.am): Likewise.
1726         * modules/stdint (Makefile.am): Likewise.
1727         * modules/stdio (Makefile.am): Likewise.
1728         * modules/stdlib (Makefile.am): Likewise.
1729         * modules/string (Makefile.am): Likewise.
1730         * modules/strings (Makefile.am): Likewise.
1731         * modules/sys_file (Makefile.am): Likewise.
1732         * modules/sys_ioctl (Makefile.am): Likewise.
1733         * modules/sys_select (Makefile.am): Likewise.
1734         * modules/sys_socket (Makefile.am): Likewise.
1735         * modules/sys_stat (Makefile.am): Likewise.
1736         * modules/sys_time (Makefile.am): Likewise.
1737         * modules/sys_times (Makefile.am): Likewise.
1738         * modules/sys_utsname (Makefile.am): Likewise.
1739         * modules/sys_wait (Makefile.am): Likewise.
1740         * modules/sysexits (Makefile.am): Likewise.
1741         * modules/termios (Makefile.am): Likewise.
1742         * modules/time (Makefile.am): Likewise.
1743         * modules/unistd (Makefile.am): Likewise.
1744         * modules/wchar (Makefile.am): Likewise.
1745         * modules/wctype-h (Makefile.am): Likewise.
1746         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1747
1748 2011-04-05  Bruno Haible  <bruno@clisp.org>
1749
1750         pipe2: Relicense under LGPLv2+.
1751         * modules/pipe2 (License): Change to LGPLv2+.
1752         Requested by Eric Blake, for libvirt.
1753
1754 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1755
1756         bootstrap: compute gnulib_extra_files after updating build_aux
1757         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1758         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1759
1760 2011-04-05  Eric Blake  <eblake@redhat.com>
1761
1762         bootstrap: preserve git whitelist item sorting
1763         * build-aux/bootstrap (sort_patterns): New function.
1764         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1765
1766 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1767
1768         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1769         sc_space_tab check.
1770
1771 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1772
1773         areadlink, areadlinkat: rewrite in terms of careadlinkat
1774         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1775         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1776         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1777         (malloc, realloc): Remove #undefs.
1778         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1779         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1780         readlink, ssize_t, stdint, unistd.
1781         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1782         areadlink, stdint.
1783
1784         careadlinkat: new module
1785         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1786         * modules/careadlinkat: New files, written by me with
1787         a review and feedback from Ben Pfaff in
1788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1789
1790 2011-04-01  Bruno Haible  <bruno@clisp.org>
1791
1792         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1793         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1794         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1795         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1796         Reported by Bruce Korb <bruce.korb@gmail.com>.
1797
1798 2011-04-01  Bruno Haible  <bruno@clisp.org>
1799
1800         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1801         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1802         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1803         * modules/wcpcpy (Depends-on): Add extensions.
1804         * modules/wcpncpy (Depends-on): Likewise.
1805         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1806         systems.
1807         * doc/posix-functions/wcpncpy.texi: Likewise.
1808         * doc/posix-functions/wcwidth.texi: Likewise.
1809
1810 2011-03-31  Eric Blake  <eblake@redhat.com>
1811
1812         nonblocking: fix mingw test failures
1813         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1814         non-blocking flag on regular file.
1815         (get_nonblocking_flag): Set errno on invalid fd.
1816         * tests/test-nonblocking.c (main): Avoid test failure on
1817         directories if fchdir is not active.
1818         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1819
1820 2011-03-31  Bruno Haible  <bruno@clisp.org>
1821
1822         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1823         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1824         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1825         Reported by Simon Josefsson <simon@josefsson.org>.
1826
1827 2011-03-31  Bruno Haible  <bruno@clisp.org>
1828         and Eric Blake  <eblake@redhat.com>
1829
1830         nonblocking: new module
1831         * modules/nonblocking: New module.
1832         * modules/nonblocking-tests: Likewise.
1833         * lib/nonblocking.h: New file.
1834         * lib/nonblocking.c: Likewise.
1835         * tests/test-nonblocking.c: New test.
1836         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1837
1838 2011-03-30  Bruno Haible  <bruno@clisp.org>
1839
1840         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1841         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1842         instead of 'printf' format for GCC >= 4.4.
1843         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1844         (fprintf, printf, vfprintf, vprintf): Declare with
1845         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1846         the system's vfprintf() function.
1847         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1848
1849 2011-03-30  Eric Blake  <eblake@redhat.com>
1850
1851         passfd: fix scoping bug
1852         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1853         before sendmsg/recvmsg.
1854
1855         passfd: standardize coding conventions
1856         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1857         can be learned at compile time.
1858         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1859         ifdefs.
1860         (sendfd, recvfd): Follow gnulib code conventions.
1861
1862         passfd: fix incorrect sendmsg arguments
1863         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1864         incorrect msg_controllen value.
1865         * modules/passfd-tests (Depends-on): Check for alarm.
1866         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1867         Reported by Bastien ROUCARIES.
1868
1869 2011-03-30  Bruno Haible  <bruno@clisp.org>
1870
1871         c-strcasestr: Relicense under LGPLv2+.
1872         * modules/c-strcasestr (License): Change to LGPLv2+.
1873         Requested by Eric Blake, for libvirt.
1874
1875 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1876
1877         * users.txt: Add libidn2.  Fix libtasn1 link.
1878
1879 2011-03-30  Jim Meyering  <meyering@redhat.com>
1880
1881         tests: readlink* ("",... fails with EINVAL on newer kernels
1882         readlink and readlinkat have typically failed with ENOENT for
1883         the invalid, empty file name,  "".  However, with the advent
1884         of linux-2.6.39, they fail with EINVAL.
1885         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1886         when operating on the empty file name.
1887         * tests/test-readlink.h (test_readlink): Likewise.
1888
1889 2011-03-29  Bruno Haible  <bruno@clisp.org>
1890
1891         Relicense some modules under LGPLv2+, for libidn2.
1892         * modules/array-mergesort (License): Change to LGPLv2+.
1893         * modules/c-strcaseeq (License): Likewise.
1894         * modules/striconveh (License): Likewise.
1895         * modules/striconveha (License): Likewise.
1896         * modules/uniconv/base (License): Likewise.
1897         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1898         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1899         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1900         * modules/unictype/base (License): Likewise.
1901         * modules/unictype/bidiclass-of (License): Likewise.
1902         * modules/unictype/category-M (License): Likewise.
1903         * modules/unictype/category-none (License): Likewise.
1904         * modules/unictype/category-of (License): Likewise.
1905         * modules/unictype/category-test (License): Likewise.
1906         * modules/unictype/category-test-withtable (License): Likewise.
1907         * modules/unictype/combining-class (License): Likewise.
1908         * modules/unictype/joiningtype-of (License): Likewise.
1909         * modules/unictype/scripts (License): Likewise.
1910         * modules/uninorm/base (License): Likewise.
1911         * modules/uninorm/canonical-decomposition (License): Likewise.
1912         * modules/uninorm/composition (License): Likewise.
1913         * modules/uninorm/decompose-internal (License): Likewise.
1914         * modules/uninorm/decomposition-table (License): Likewise.
1915         * modules/uninorm/nfc (License): Likewise.
1916         * modules/uninorm/nfd (License): Likewise.
1917         * modules/uninorm/u32-normalize (License): Likewise.
1918         * modules/unistr/base (License): Likewise.
1919         * modules/unistr/u32-cpy (License): Likewise.
1920         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1921         * modules/unistr/u32-to-u8 (License): Likewise.
1922         * modules/unistr/u32-uctomb (License): Likewise.
1923         * modules/unistr/u8-check (License): Likewise.
1924         * modules/unistr/u8-mblen (License): Likewise.
1925         * modules/unistr/u8-mbtouc (License): Likewise.
1926         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1927         * modules/unistr/u8-mbtoucr (License): Likewise.
1928         * modules/unistr/u8-prev (License): Likewise.
1929         * modules/unistr/u8-strlen (License): Likewise.
1930         * modules/unistr/u8-to-u32 (License): Likewise.
1931         * modules/unistr/u8-uctomb (License): Likewise.
1932         * modules/unitypes (License): Likewise.
1933         Requested by Simon Josefsson.
1934
1935 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1936
1937         lib-symbol-visibility: Add a notice.
1938         * modules/lib-symbol-visibility (Notice): New field.
1939
1940 2011-03-29  Bruno Haible  <bruno@clisp.org>
1941
1942         getaddrinfo: Doc fix.
1943         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1944         section "fixed in Gnulib".
1945
1946 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1947
1948         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1949         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1950
1951 2011-03-26  Bruno Haible  <bruno@clisp.org>
1952
1953         unictype/property-byname: Reduce the number of load-time relocations.
1954         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1955         (UC_PROPERTY_INDEX_*): New enumeration values.
1956         (uc_property_byname): Convert an index from the lookup table to an
1957         uc_property_t.
1958         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1959         values.
1960
1961 2011-03-26  Bruno Haible  <bruno@clisp.org>
1962
1963         unictype/property-byname: Allow omitted word separators and aliases.
1964         * lib/unictype/pr_byname.gperf: Add property names without word
1965         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1966         for 'space'.
1967
1968 2011-03-26  Bruno Haible  <bruno@clisp.org>
1969
1970         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1971         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1972         also hyphens to space.
1973         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1974         without spaces.
1975         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1976
1977 2011-03-26  Bruno Haible  <bruno@clisp.org>
1978
1979         unictype/joiningtype-byname: Recognize long names as well.
1980         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1981         a long name.
1982         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1983         unictype/joiningtype_byname.h.
1984         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1985         * lib/unictype/joiningtype_byname.gperf: New file.
1986         * modules/unictype/joiningtype-byname (Files): Add
1987         lib/unictype/joiningtype_byname.gperf.
1988         (Depends-on): Add gperf.
1989         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1990         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1991         long names.
1992
1993         Tests for module 'unictype/joiningtype-longname'.
1994         * modules/unictype/joiningtype-longname-tests: New file.
1995         * tests/unictype/test-joiningtype_longname.c: New file.
1996
1997         New module 'unictype/joiningtype-longname'.
1998         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1999         * lib/unictype/joiningtype_longname.c: New file.
2000         * modules/unictype/joiningtype-longname: New file.
2001         * modules/unictype/joiningtype-all (Depends-on): Add
2002         unictype/joiningtype-longname.
2003
2004 2011-03-26  Bruno Haible  <bruno@clisp.org>
2005
2006         unictype/bidiclass-byname: Recognize long names as well.
2007         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2008         name.
2009         * lib/unictype/bidi_byname.c: Include <string.h>,
2010         unictype/bidi_byname.h.
2011         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2012         * lib/unictype/bidi_byname.gperf: New file.
2013         * modules/unictype/bidiclass-byname (Files): Add
2014         lib/unictype/bidi_byname.gperf.
2015         (Depends-on): Add gperf.
2016         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2017         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2018         long names.
2019
2020         Tests for module 'unictype/bidiclass-longname'.
2021         * modules/unictype/bidiclass-longname-tests: New file.
2022         * tests/unictype/test-bidi_longname.c: New file.
2023
2024         New module 'unictype/bidiclass-longname'.
2025         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2026         * lib/unictype/bidi_longname.c: New file.
2027         * modules/unictype/bidiclass-longname: New file.
2028         * modules/unictype/bidiclass-all (Depends-on): Add
2029         unictype/bidiclass-longname.
2030
2031 2011-03-26  Bruno Haible  <bruno@clisp.org>
2032
2033         unictype/bidi*: Rename modules.
2034         * modules/unictype/bidiclass-all: Renamed from
2035         modules/unictype/bidicategory-all.
2036         * modules/unictype/bidiclass-name: Renamed from
2037         modules/unictype/bidiclass-name.
2038         (Description): Update.
2039         * modules/unictype/bidiclass-name-tests: Renamed from
2040         modules/unictype/bidicategory-name-tests.
2041         * modules/unictype/bidiclass-byname: Renamed from
2042         modules/unictype/bidicategory-byname.
2043         (Description): Update.
2044         * modules/unictype/bidiclass-byname-tests: Renamed from
2045         modules/unictype/bidicategory-byname-tests.
2046         * modules/unictype/bidiclass-of: Renamed from
2047         modules/unictype/bidicategory-of.
2048         (Description): Update.
2049         * modules/unictype/bidiclass-of-tests: Renamed from
2050         modules/unictype/bidicategory-of-tests.
2051         * modules/unictype/bidiclass-test: Renamed from
2052         modules/unictype/bidicategory-test.
2053         (Description): Update.
2054         * modules/unictype/bidiclass-test-tests: Renamed from
2055         modules/unictype/bidicategory-test-tests.
2056         * modules/unictype/bidicategory-all: New file, a simple redirection.
2057         * modules/unictype/bidicategory-name: Likewise.
2058         * modules/unictype/bidicategory-byname: Likewise.
2059         * modules/unictype/bidicategory-of: Likewise.
2060         * modules/unictype/bidicategory-test: Likewise.
2061         * modules/unictype/property-bidi-* (Dependencies): Update.
2062         * lib/unictype/bidi_*.c: Update comment.
2063
2064 2011-03-26  Bruno Haible  <bruno@clisp.org>
2065
2066         unictype/bidi*: Rename functions, part 2.
2067         * modules/unictype/bidicategory-name (configure.ac): Update required
2068         libunistring version.
2069         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2070
2071 2011-03-25  Bruno Haible  <bruno@clisp.org>
2072
2073         New module 'unictype/combining-class-all'.
2074         * modules/unictype/combining-class-all: New file.
2075
2076         Tests for module 'unictype/combining-class-byname'.
2077         * modules/unictype/combining-class-byname-tests: New file.
2078         * tests/unictype/test-combiningclass_byname.c: New file.
2079
2080         New module 'unictype/combining-class-byname'.
2081         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2082         * lib/unictype/combiningclass_byname.c: New file.
2083         * lib/unictype/combiningclass_byname.gperf: New file.
2084         * modules/unictype/combining-class-byname: New file.
2085
2086         Tests for module 'unictype/combining-class-longname'.
2087         * modules/unictype/combining-class-longname-tests: New file.
2088         * tests/unictype/test-combiningclass_longname.c: New file.
2089
2090         New module 'unictype/combining-class-longname'.
2091         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2092         * lib/unictype/combiningclass_longname.c: New file.
2093         * modules/unictype/combining-class-longname: New file.
2094
2095         Tests for module 'unictype/combining-class-name'.
2096         * modules/unictype/combining-class-name-tests: New file.
2097         * tests/unictype/test-combiningclass_name.c: New file.
2098
2099         New module 'unictype/combining-class-name'.
2100         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2101         * lib/unictype/combiningclass_name.c: New file.
2102         * modules/unictype/combining-class-name: New file.
2103
2104 2011-03-25  Bruno Haible  <bruno@clisp.org>
2105
2106         unictype/combining-class: Rename source files.
2107         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2108         of unictype/combining.h.
2109         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2110         Update.
2111         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2112         * modules/unictype/combining-class (Description): Fix.
2113         (Files, Makefile.am): Update.
2114         * tests/unictype/test-combiningclass.c: Renamed from
2115         tests/unictype/test-combining.c.
2116         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2117
2118 2011-03-25  Bruno Haible  <bruno@clisp.org>
2119
2120         unictype: Update list of canonical combining classes.
2121         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2122
2123 2011-03-25  Bruno Haible  <bruno@clisp.org>
2124
2125         unictype/category-byname: Recognize long names as well.
2126         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2127         a long name.
2128         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2129         unictype/categ_byname.h.
2130         (UC_CATEGORY_INDEX_*): New enumeration values.
2131         (uc_general_category_byname): Use uc_general_category_lookup and
2132         convert from index to value.
2133         * lib/unictype/categ_byname.gperf: New file.
2134         * modules/unictype/category-byname (Files): Add
2135         lib/unictype/categ_byname.gperf.
2136         (Depends-on): Add gperf.
2137         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2138         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2139         long names.
2140
2141         Tests for module 'unictype/category-longname'.
2142         * modules/unictype/category-longname-tests: New file.
2143         * tests/unictype/test-categ_longname.c: New file.
2144
2145         New module 'unictype/category-longname'.
2146         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2147         * lib/unictype/categ_longname.c: New file.
2148         * modules/unictype/category-longname: New file.
2149         * modules/unictype/category-all (Depends-on): Add it.
2150
2151 2011-03-25  Bruno Haible  <bruno@clisp.org>
2152
2153         Tests for module 'unictype/category-LC'.
2154         * modules/unictype/category-LC-tests: New file.
2155         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2156
2157         New module 'unictype/category-LC'.
2158         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2159         (UC_CATEGORY_LC): New declaration.
2160         (UC_CASED_LETTER): New macro.
2161         * lib/gen-uni-tables.c (is_category_LC): New function.
2162         (output_categories): Also handle category LC.
2163         (UC_CATEGORY_MASK_LC): New enumeration value.
2164         (general_category_byname): Also handle category LC.
2165         * lib/unictype/categ_LC.c: New file.
2166         * lib/unictype/categ_LC.h: New file, automatically generated.
2167         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2168         category LC.
2169         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2170         * modules/unictype/category-LC: New file.
2171         * modules/unictype/category-byname (Depends-on): Add
2172         unictype/category-LC.
2173         * modules/unictype/category-all (Depends-on): Likewise.
2174
2175 2011-03-25  Eric Blake  <eblake@redhat.com>
2176
2177         xmalloc: revert yesterday's regression
2178         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2179         realloc's underlying behavior (allowing allocation of zero-size
2180         objects, especially if malloc-gnu is also in use).
2181
2182 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2183
2184         maint.mk: add missing version to VC-tag
2185         * top/maint.mk: git tag was missing actual tag name; add it.
2186
2187         valgrind: do leak checking, and exit with code 1 on error (not 0)
2188         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2189         to VALGRIND.
2190
2191 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2192
2193         posix-modules: say what it does.
2194         * posix-modules: Add a line to the --help output saying what it does.
2195
2196 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         xmalloc: Do not leak if underlying realloc is C99 compatible.
2199         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2200         This avoids a leak on C99-based systems.  See
2201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2202
2203 2011-03-24  Eric Blake  <eblake@redhat.com>
2204
2205         realloc: document portability problem
2206         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2207         passing 0 size to realloc.
2208
2209 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2210
2211         doc: update users.txt
2212         * users.txt: Add cvsps, tmpwatch
2213
2214 2011-03-23  Matt Rice  <ratmice@gmail.com>
2215
2216         doc: update users.txt
2217         * users.txt: Add gdb.
2218
2219 2011-03-23  Jim Meyering  <meyering@redhat.com>
2220
2221         doc: update users.txt
2222         Looking through matches up to the following URL (there are still
2223         several more pages), I found several projects that use gnulib:
2224         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2225         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2226         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2227
2228 2011-03-22  Bruno Haible  <bruno@clisp.org>
2229
2230         unictype/bidi*: Rename functions.
2231         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2232         uc_bidi_class, uc_is_bidi_class): New declarations.
2233         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2234         uc_bidi_category_byname.
2235         (uc_bidi_category_byname): New function.
2236         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2237         u_bidi_category_name.
2238         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2239         (uc_bidi_category_name): New function.
2240         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2241         uc_bidi_category.
2242         (uc_bidi_category): New function.
2243         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2244         uc_is_bidi_category. Invoke uc_bidi_class.
2245         (uc_is_bidi_category): New function.
2246         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2247         instead of uc_bidi_category_byname.
2248         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2249         instead of uc_bidi_category_name.
2250         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2251         uc_bidi_category.
2252         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2253         instead of uc_is_bidi_category.
2254
2255 2011-03-21  Bruno Haible  <bruno@clisp.org>
2256
2257         New module 'unictype/joininggroup-all'.
2258         * modules/unictype/joininggroup-all: New file.
2259
2260         Tests for module 'unictype/joininggroup-of'.
2261         * modules/unictype/joininggroup-of-tests: New file.
2262         * tests/unictype/test-joininggroup_of.c: New file.
2263         * tests/unictype/test-joininggroup_of.h: New file, automatically
2264         generated by gen-uni-tables.
2265
2266         New module 'unictype/joininggroup-of'.
2267         * modules/unictype/joininggroup-of: New file.
2268         * lib/unictype/joininggroup_of.c: New file.
2269         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2270         gen-uni-tables.
2271
2272         Tests for module 'unictype/joininggroup-byname'.
2273         * modules/unictype/joininggroup-byname-tests: New file.
2274         * tests/unictype/test-joininggroup_byname.c: New file.
2275
2276         New module 'unictype/joininggroup-byname'.
2277         * modules/unictype/joininggroup-byname: New file.
2278         * lib/unictype/joininggroup_byname.c: New file.
2279         * lib/unictype/joininggroup_byname.gperf: New file.
2280
2281         Tests for module 'unictype/joininggroup-name'.
2282         * modules/unictype/joininggroup-name-tests: New file.
2283         * tests/unictype/test-joininggroup_name.c: New file.
2284
2285         New module 'unictype/joininggroup-name'.
2286         * modules/unictype/joininggroup-name: New file.
2287         * lib/unictype/joininggroup_name.c: New file.
2288         * lib/unictype/joininggroup_name.h: New file.
2289
2290         New module 'unictype/joiningtype-all'.
2291         * modules/unictype/joiningtype-all: New file.
2292
2293         Tests for module 'unictype/joiningtype-of'.
2294         * modules/unictype/joiningtype-of-tests: New file.
2295         * tests/unictype/test-joiningtype_of.c: New file.
2296         * tests/unictype/test-joiningtype_of.h: New file, automatically
2297         generated by gen-uni-tables.
2298
2299         New module 'unictype/joiningtype-of'.
2300         * modules/unictype/joiningtype-of: New file.
2301         * lib/unictype/joiningtype_of.c: New file.
2302         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2303         gen-uni-tables.
2304
2305         Tests for module 'unictype/joiningtype-byname'.
2306         * modules/unictype/joiningtype-byname-tests: New file.
2307         * tests/unictype/test-joiningtype_byname.c: New file.
2308
2309         New module 'unictype/joiningtype-byname'.
2310         * modules/unictype/joiningtype-byname: New file.
2311         * lib/unictype/joiningtype_byname.c: New file.
2312
2313         Tests for module 'unictype/joiningtype-name'.
2314         * modules/unictype/joiningtype-name-tests: New file.
2315         * tests/unictype/test-joiningtype_name.c: New file.
2316
2317         New module 'unictype/joiningtype-name'.
2318         * modules/unictype/joiningtype-name: New file.
2319         * lib/unictype/joiningtype_name.c: New file.
2320
2321         unictype: Add support for Arabic shaping properties.
2322         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2323         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2324         declarations.
2325         (UC_JOINING_GROUP_*): New enumeration values.
2326         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2327         declarations.
2328         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2329         (unicode_joining_type): New variable.
2330         (UC_JOINING_GROUP_*): New enumeration values.
2331         (unicode_joining_group): New variable.
2332         (fill_arabicshaping, joining_type_as_c_identifier,
2333         output_joining_type_test, output_joining_type,
2334         joining_group_as_c_identifier, output_joining_group_test,
2335         output_joining_group): New functions.
2336         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2337         fill_arabicshaping and output_joining_type_test, output_joining_type,
2338         output_joining_group_test, output_joining_group.
2339         Reported by Simon Josefsson.
2340
2341 2011-03-21  Jim Meyering  <meyering@redhat.com>
2342
2343         strftime: fix a bug in yesterday's change
2344         * lib/strftime.c (add): Accommodate width's initial value of -1.
2345         Otherwise, nstrftime would copy uninitialized data into
2346         the result buffer.
2347
2348 2011-03-21  Jim Meyering  <meyering@redhat.com>
2349
2350         tests: add strftime-tests module
2351         * tests/test-strftime.c: New file.
2352         * modules/strftime-tests: New module.
2353
2354 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         strftime: don't assume a byte count fits in 'int'
2357         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2358         found this problem by static analysis, using gcc -Wstrict-overflow
2359         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2360         on an integer overflow having undefined behavior, but it turns out
2361         that the argument is a size, which might not fit in 'int' anyway,
2362
2363 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2364
2365         stdio: don't require ignore_value around fwrite
2366
2367         This patch works around libc bug 11959
2368         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2369         Without this patch, applications must often write
2370         ignore_value (fwrite (...)) even though the ignore_value is
2371         not helpful here.  It's common to write many objects, using
2372         fwrite/printf/etc., and then use ferror to detect output error.
2373
2374         I considered making this patch optional, but decided against it,
2375         because libc is obviously being inconsistent here: there is no
2376         reason libc should insist that user code must inspect fwrite
2377         return's value without also insisting that it inspect printf's,
2378         putchar's, etc.  If user code wants to have a strict style where
2379         all these functions' values are checked (so that ferror need not
2380         be checked), we could add support for that style in a new gnulib
2381         module, but in the meantime it's better to be consistent and to
2382         support common usage.
2383
2384         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2385         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2386         that we are compiling in checking mode, and if not C++, and
2387         if not already wrapping fwrite for some other reason.
2388         (fwrite): #define to rpl_fwrite if the latter is defined.
2389
2390 2011-03-20  Bruno Haible  <bruno@clisp.org>
2391
2392         verror: Fix compilation error introduced on 2011-02-13.
2393         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2394         instead of __attribute__.
2395         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2396
2397 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2398             Bruno Haible  <bruno@clisp.org>
2399
2400         socklen: do not depend on sys_socket
2401         While trying to modify Emacs to use gnulib's socklen module,
2402         I discovered a circular dependency: socklen depends on sys_socket
2403         and vice versa.  Emacs can use socklen, but it does not need
2404         sys_socket because it has its own substitute for sys/socket.h.
2405         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2406         gl_TYPE_SOCKLEN_T.
2407         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2408         gl_PREREQ_SYS_H_SOCKET.
2409         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2410         gl_PREREQ_SYS_H_SOCKET.
2411         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2412         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2413         * modules/socklen (Depends-on): Do not depend on sys_socket.
2414         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2415
2416 2011-03-20  Jim Meyering  <meyering@redhat.com>
2417
2418         maint.mk: sort file names *after* new transformation
2419         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2420         prefix would have led to an unwarranted failure in GNU parted.
2421         Sort after that transformation.
2422
2423 2011-03-19  Jim Meyering  <meyering@redhat.com>
2424
2425         maint.mk: fix po-file syntax-check rule
2426         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2427         Patch by Bruno Haible.
2428
2429 2011-03-19  Bruno Haible  <bruno@clisp.org>
2430
2431         socklen: Update comment.
2432         * m4/socklen.m4: Update comment about platforms.
2433
2434 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2435             Bruno Haible  <bruno@clisp.org>
2436
2437         inet_ntop, inet_pton: Simplify.
2438         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2439         documented to provide socklen_t and we already depend on sys_socket.
2440         * modules/inet_pton (Depends-on): Likewise.
2441         * lib/arpa_inet.in.h: Adjust comment.
2442
2443 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2444             Bruno Haible  <bruno@clisp.org>
2445
2446         netdb: Simplify.
2447         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2448         documented to provide socklen_t and we already depend on sys_socket.
2449         * lib/netdb.in.h: Adjust comment.
2450
2451 2011-03-19  Bruno Haible  <bruno@clisp.org>
2452
2453         sys_socket, netdb: Document problem with socklen_t.
2454         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2455         platforms.
2456         * doc/posix-headers/netdb.texi: Likewise.
2457
2458 2011-03-18  Eric Blake  <eblake@redhat.com>
2459
2460         maint.mk: let po check work in VPATH build
2461         * top/maint.mk (po_file): Allow cfg.mk override.
2462         (sc_po_check): Allow VPATH use.
2463         Reported by Jiri Denemark.
2464
2465 2011-03-16  Jim Meyering  <meyering@redhat.com>
2466
2467         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2468         Before, you would have had to create one .x-sc_ file per rule in order
2469         to exempt offending files.  Now, you may instead use a Make variable --
2470         usually defined in cfg.mk -- whose name identifies the affected rule.
2471         * top/maint.mk (_sc_excl): Define.
2472         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2473         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2474
2475 2011-03-13  Bruno Haible  <bruno@clisp.org>
2476
2477         ignore-value tests: Avoid warnings.
2478         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2479         empty for gcc < 3.4.
2480
2481 2011-03-13  Bruno Haible  <bruno@clisp.org>
2482
2483         passfd: Fix link error on Solaris.
2484         * modules/passfd (Description): Correct.
2485         (Depends-on): Add socketlib.
2486         (Link): New section.
2487         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2488
2489 2011-03-13  Bruno Haible  <bruno@clisp.org>
2490
2491         passfd: Fix link error on AIX 5.2.
2492         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2493
2494 2011-03-13  Bruno Haible  <bruno@clisp.org>
2495
2496         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2497         * lib/sys_socket.in.h: Include <stddef.h>.
2498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2499         CMSG_FIRSTHDR. Remove unused variable.
2500
2501 2011-03-13  Bruno Haible  <bruno@clisp.org>
2502
2503         passfd: Fix compilation error on OpenBSD.
2504         * lib/passfd.c: Include <sys/uio.h>.
2505
2506 2011-03-13  Bruno Haible  <bruno@clisp.org>
2507
2508         passfd test: Fix warnings.
2509         * tests/test-passfd.c: Include <sys/wait.h>.
2510         (main): Fix typo.
2511
2512 2011-03-13  Bruno Haible  <bruno@clisp.org>
2513
2514         passfd module, part 4, tweaks.
2515         * tests/test-passfd.c: Reorder includes.
2516         (main): Fix perror and printf calls.
2517
2518 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2519
2520         passfd module, part 4.
2521         * modules/passfd-tests: New file.
2522         * tests/test-passfd.c: New file.
2523
2524 2011-03-13  Jim Meyering  <meyering@redhat.com>
2525
2526         Makefile: rely on GNU make; derive syntax-check rule names
2527         Rather than requiring that each sc_ rule be listed as a dependent
2528         of "check", use features of GNU make to derive the list.
2529         * Makefile (syntax-check-rules): Define.
2530         (check): Depend on the new variable, not the hard-coded list.
2531
2532 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2533             Bruno Haible  <bruno@clisp.org>
2534
2535         passfd module, part 3.
2536         * lib/passfd.h (recvfd): Add a flags argument.
2537         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2538         (recvfd): Add a flags argument.
2539         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2540         exists.
2541         * modules/passfd (Depends-on): Add cloexec.
2542         Suggested by Eric Blake.
2543
2544 2011-03-13  Bruno Haible  <bruno@clisp.org>
2545
2546         passfd module, part 2, tweaks.
2547         * modules/passfd (Files): Reorder.
2548         (Depends-on): Remove errno.
2549         (Include): Remove <sys/socket.h>, <sys/un.h>.
2550         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2551         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2552         specification header. Include <sys/socket.h> always. Don't include
2553         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2554         (sendfd): Clarify that it sets errno when it fails.
2555         (recvfd): Fix specification.
2556
2557 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2558
2559         passfd module, part 2.
2560         * modules/passfd: New file.
2561         * lib/passfd.h: New file.
2562         * lib/passfd.c: New file.
2563
2564 2011-03-12  Bruno Haible  <bruno@clisp.org>
2565
2566         wcswidth, mbswidth: Avoid integer overflow.
2567         * lib/wcswidth.c: Include <limits.h>.
2568         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2569         * lib/mbswidth.c: Include <limits.h>.
2570         (mbsnwidth): Avoid 'int' overflow.
2571         Reported by Jim Meyering.
2572
2573 2011-03-12  Bruno Haible  <bruno@clisp.org>
2574
2575         futimens, utimensat: Avoid endless recursion on Solaris 10.
2576         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2577         Solaris.
2578         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2579         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2580
2581 2011-03-11  Jim Meyering  <meyering@redhat.com>
2582
2583         maint.mk: relax a regexp to accommodate other formatting styles
2584         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2585         between "ngettext" and the following "(".
2586
2587 2011-03-11  Pádraig Brady <P@draigBrady.com>
2588
2589         maint.mk: suppress a false positive warning
2590         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2591         diagnostics are marked with ngettext.
2592
2593 2011-03-10  Eric Blake  <eblake@redhat.com>
2594
2595         wchar: add explicit dependencies, for Tru64
2596         * modules/mbmemcasecoll (Depends-on): Add wchar.
2597         * modules/mbtowc (Depends-on): Likewise.
2598         * modules/vasnprintf (Depends-on): Likewise.
2599         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2600         * modules/wctomb (Depends-on): Likewise.
2601         Reported by Peter O'Gorman.
2602
2603 2011-03-08  Bruno Haible  <bruno@clisp.org>
2604
2605         passfd module, part 1, tweaks.
2606         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2607         Improve indentation. Improve AC_MSG_CHECKING messages.
2608         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2609         gl_SOCKET_FAMILIES.
2610
2611 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2612
2613         passfd module, part 1.
2614         * m4/afunix.m4: New file.
2615         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2616         sockets.
2617
2618 2011-03-08  Bruno Haible  <bruno@clisp.org>
2619
2620         regex-quote: New API.
2621         * lib/regex-quote.h: Include <stdbool.h>.
2622         (struct regex_quote_spec): New type.
2623         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2624         New declarations.
2625         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2626         'const struct regex_quote_spec *' argument.
2627         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2628         (pcre_special): New constant.
2629         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2630         New functions.
2631         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2632         'const struct regex_quote_spec *' argument.
2633         * modules/regex-quote (Depends-on): Add stdbool.
2634         * tests/test-regex-quote.c (check): Update for new API. Add test for
2635         anchored results.
2636         * NEWS: Mention the API change.
2637         Reported by Reuben Thomas and Eric Blake.
2638
2639 2011-03-06  Bruno Haible  <bruno@clisp.org>
2640
2641         regex-quote: Fix creation of POSIX extended regular expressions.
2642         * lib/regex-quote.c (ere_special): Add grouping and alternation
2643         operators.
2644
2645 2011-03-05  Bruno Haible  <bruno@clisp.org>
2646
2647         doc: Improve doc regarding autopoint vs. gnulib.
2648         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2649         disable autopoint while running autoreconf.
2650         Suggested by Ralf Wildenhues.
2651
2652 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2653
2654         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2655         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2656
2657 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2658
2659         parse-duration: remove xalloc.h dependency
2660         * lib/parse-duration.c (parse_period): handle NULL return from
2661         strdup instead of calling xstrdup().
2662         * modules/parse-duration: remove "xalloc" dependency
2663
2664 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2665
2666         bootstrap: honor m4_base when running aclocal
2667         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2668
2669 2011-03-02  Jim Meyering  <meyering@redhat.com>
2670
2671         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2672         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2673         on request from Matt Booth.
2674
2675 2011-03-01  Eric Blake  <eblake@redhat.com>
2676
2677         test-link: work on Hurd
2678         * tests/test-link.h (test_link): Hurd rejects linking directories
2679         with EISDIR instead of the POSIX-mandated EPERM.
2680
2681 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2682
2683         stdio: simplify by moving files to printf-posix, sigpipe
2684         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2685         since this symbol is needed only if printf is replaced.
2686         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2687         Require gl_ASM_SYMBOL_PREFIX.
2688         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2689         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2690         (Depends-on): Add 'raise'.
2691         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2692         * modules/stdio (Files): Remove lib/stdio-write.c,
2693         m4/asm-underscore.m4.
2694         (Depends-on): Remove 'raise'.
2695
2696         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2697         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2698         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2699         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2700
2701 2011-02-28  Bruno Haible  <bruno@clisp.org>
2702
2703         localcharset: Assume ANSI C behaviour of free().
2704         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2705         calling free().
2706         Suggested by Simon Josefsson <simon@josefsson.org>.
2707
2708 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2709             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2710             Bruno Haible  <bruno@clisp.org>  (tiny change)
2711
2712         On Cygwin, use /proc file system instead of win32 API.
2713         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2714         Win32 file names.
2715         (DllMain): Simplify by removing Cygwin specific code.
2716         (find_shared_library_fullname): Use Linux specific implementation also
2717         for Cygwin.
2718         (get_shared_library_fullname): Update accordingly.
2719         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2720         Win32 file names.
2721         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2722         Cygwin specific code.
2723
2724 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2725             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2726
2727         Fix OpenMP flag detection for various Fortran compilers.
2728         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2729         OpenMP-conditional compilation construct, to force compile
2730         failure with missing OpenMP flag.
2731         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2732
2733 2011-02-25  Eric Blake  <eblake@redhat.com>
2734
2735         strstr: expand test coverage
2736         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2737         compilation.
2738         * tests/test-memmem.c (main): Duplicate tests.
2739         * tests/test-strcasestr.c (main): Likewise.
2740         * tests/test-c-strcasestr.c (main): Likewise.
2741
2742 2011-02-25  Jim Meyering  <meyering@redhat.com>
2743
2744         maint.mk: detect missing-NL-at-EOF, too
2745         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2746         it also detects when a file lacks a newline at EOF.
2747         (require_exactly_one_NL_at_EOF_): Renamed from
2748         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2749         since people may well have .x-sc_... file names tied to the
2750         existing name.  Suggested by Eric Blake.
2751
2752 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2753
2754         dirname: move m4/dos.m4 functionality into lib/dosname.h
2755
2756         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2757         extracts symbols from it, puts them into config.h; but it's much
2758         easier to use the symbols directly.  filename.h already does this,
2759         but it disagrees with dos.m4 in some respects.  This patch
2760         introduces a different include file dosname.h that packages up
2761         dos.m4, and then later we can work on merging filename.h and
2762         dosname.h.  Applications that need only the easy-to-configure
2763         symbols should consider including dosname.h rather than dirname.h.
2764         * NEWS: Mention incompatible changes.
2765         * m4/dos.m4: Remove.
2766         * lib/dosname.h, modules/dosname: New files.
2767         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2768         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2769         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2770         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2771         Include dosname.h, not dirname.h.
2772         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2773         Include dosname.h, for definitions of symbols like ISSLASH
2774         that used to be in config.h.
2775         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2776         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2777         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2778         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2779         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2780         * modules/rmdir (Files): Likewise.
2781         * modules/stat (Files): Likewise.
2782         * modules/unlink (Files): Likewise.
2783         * modules/dirname-lgpl (Depends-on): Add dosname.
2784         * modules/lstat (Depends-on): Likewise.
2785         * modules/openat (Depends-on): Likewise.
2786         * modules/rmdir (Depends-on): Likewise.
2787         * modules/savewd (Depends-on): Likewise.
2788         * modules/stat (Depends-on): Likewise.
2789         * modules/unlink (Depends-on): Likewise.
2790         * modules/openat (Depends-on): Remove dirname-lgpl.
2791         * modules/savewd (Depends-on): Likewise.
2792         * tests/test-dirname.c: Do not use removed symbols like
2793         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2794         the remaining symbols, e.g., ISSLASH ('\\').
2795
2796 2011-02-25  Eric Blake  <eblake@redhat.com>
2797
2798         strstr: revert patches that introduced bug and pessimization
2799         * lib/str-two-way.h: Add another reference.
2800         (two_way_short_needle, two_way_long_needle): Revert changes from
2801         2011-02-24; they pessimize search speed.
2802         (critical_factorization): Partially revert changes from
2803         2010-06-22; they violate the requirement that the left half of the
2804         needle be smaller than the period of the needle.
2805
2806 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2807
2808         filenamecat: remove unnecessary dependency on dirname-lgpl
2809         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2810         is no direct dependency, just an indirect one via filenamecat-lgpl.
2811
2812         remove: remove unnecessary use of m4/dos.m4
2813         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2814         * modules/remove (FILES): Remove m4/dos.m4.
2815
2816         * lib/openat-proc.c: Don't include dirname.h; not needed.
2817
2818         backupfile: remove unnecessary use of m4/dos.m4
2819         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2820         of its symbols are used by the backupfile code.  backupfile.c does
2821         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2822         for the rare case of programs that want all their backup file
2823         names to live within 8+3 limits, and dos.m4 doesn't address that.
2824         * modules/backupfile (Files): Remove m4/dos.m4.
2825
2826 2011-02-24  Jim Meyering  <meyering@redhat.com>
2827
2828         strstr: fix a bug whereby strstr would mistakenly return NULL
2829         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2830         in period calculation.
2831         (two_way_long_needle): Likewise.
2832         The original problem was reported by Mike Stump in
2833         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2834         Ralf Wildenhues provided the short needle and haystack.
2835         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2836         Add a more involved test to trigger the bug in two_way_long_needle.
2837
2838 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2839
2840         gnulib-tool: remove use of bold display in help screen
2841         * gnulib-tool (func_usage): Do not use bold display anymore in the
2842         help screen.  That was just meant to be a temporary emphasis for a
2843         backward-incompatible change.
2844
2845 2011-02-23  Bruno Haible  <bruno@clisp.org>
2846
2847         Fix misindentation of preprocessor directives.
2848         * lib/argp-namefrob.h: Reindent preprocessor directives.
2849         * lib/getopt_int.h (struct _getopt_data): Likewise.
2850         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2851         * lib/vasnprintf.c (decode_long_double): Likewise.
2852         * tests/test-argmatch.c: Insert blank lines, for clarity.
2853         * tests/test-exclude.c: Likewise.
2854
2855 2011-02-22  Bruno Haible  <bruno@clisp.org>
2856
2857         ioctl: Fix for MacOS X in 64-bit mode.
2858         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2859         value.
2860         Suggested by Eric Blake.
2861         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2862
2863 2011-02-22  Jim Meyering  <meyering@redhat.com>
2864
2865         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2866         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2867         in lib/.
2868
2869 2011-02-22  Eric Blake  <eblake@redhat.com>
2870
2871         maint: avoid any CDPATH issue
2872         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2873
2874         maint: adjust cpp indentation for my modules, as well
2875         * Makefile (sc_cpp_indent_check): Add my name.
2876         * lib/fbufmode.c: Filter through cppi.
2877         * lib/fpurge.c: Likewise.
2878         * lib/freadable.c: Likewise.
2879         * lib/freading.c: Likewise.
2880         * lib/fwritable.c: Likewise.
2881         * lib/fwriting.c: Likewise.
2882         * lib/sigaction.c: Likewise.
2883
2884 2011-02-22  Jim Meyering  <meyering@redhat.com>
2885
2886         maint: adjust cpp indentation to reflect nesting depth
2887         I.e., in a block of code that begins with an unnested "#if",
2888         put one space between the "#" in column 1 and following token.
2889         For example,
2890         -#include <sys/vfs.h>
2891         +# include <sys/vfs.h>
2892         Do this only in .c files that are part of a module I maintain.
2893         * lib/linkat.c: Filter through cppi.
2894         * lib/nanosleep.c: Likewise.
2895         * lib/openat.c: Likewise.
2896         * lib/openat-die.c: Likewise.
2897         * lib/dup3.c: Likewise.
2898         * lib/fchownat.c: Likewise.
2899         * lib/flock.c: Likewise.
2900         * lib/fsync.c: Likewise.
2901         * lib/fts.c: Likewise.
2902         * lib/getpass.c: Likewise.
2903         * lib/gettimeofday.c: Likewise.
2904         * lib/userspec.c: Likewise.
2905         * Makefile (sc_cpp_indent_check): New rule, to check this.
2906
2907 2011-02-22  Bruno Haible  <bruno@clisp.org>
2908
2909         New module 'wctomb'.
2910         * lib/stdlib.in.h (wctomb): New declaration.
2911         * lib/wctomb.c: New file.
2912         * lib/wctomb-impl.h: New file.
2913         * m4/wctomb.m4: New file.
2914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2915         REPLACE_WCTOMB.
2916         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2917         REPLACE_WCTOMB.
2918         * modules/wctomb: New file.
2919         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2920         * doc/posix-functions/wctomb.texi: Mention the new module.
2921         * modules/wctob (Depends-on): Add wctomb.
2922
2923 2011-02-22  Bruno Haible  <bruno@clisp.org>
2924
2925         New module 'mbtowc'.
2926         * lib/stdlib.in.h (mbtowc): New declaration.
2927         * lib/mbtowc.c: New file.
2928         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2929         * m4/mbtowc.m4: New file.
2930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2931         REPLACE_MBTOWC.
2932         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2933         REPLACE_MBTOWC.
2934         * modules/mbtowc: New file.
2935         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2936         * doc/posix-functions/mbtowc.texi: Mention the new module.
2937         * modules/btowc (Depends-on): Add mbtowc.
2938
2939 2011-02-22  Bruno Haible  <bruno@clisp.org>
2940
2941         wcrtomb: Add more tests for native Windows platforms.
2942         * tests/test-wcrtomb-w32-1.sh: New file.
2943         * tests/test-wcrtomb-w32-2.sh: New file.
2944         * tests/test-wcrtomb-w32-3.sh: New file.
2945         * tests/test-wcrtomb-w32-4.sh: New file.
2946         * tests/test-wcrtomb-w32-5.sh: New file.
2947         * tests/test-wcrtomb-w32.c: New file.
2948         * modules/wcrtomb-tests (Files): Add them.
2949         (Makefile.am): Arrange to run these tests.
2950         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2951         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2952
2953 2011-02-20  Bruno Haible  <bruno@clisp.org>
2954
2955         wcrtomb: Enhance test.
2956         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2957
2958 2011-02-20  Bruno Haible  <bruno@clisp.org>
2959
2960         mbrtowc: Tiny optimization.
2961         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2962
2963 2011-02-20  Jim Meyering  <meyering@redhat.com>
2964
2965         test-exclude.c: remove unmatched #endif
2966         * tests/test-exclude.c: Remove stray #endif, left over from
2967         the change of a week ago.
2968
2969 2011-02-19  Jim Meyering  <meyering@redhat.com>
2970
2971         git-version-gen: skip "-dirty" check when appropriate
2972         * build-aux/git-version-gen: Don't run any git commands when the
2973         version string comes from .tarball-version.  Prior to this, we
2974         would run git update-index --refresh even from a just-unpacked
2975         tarball directory, and that could affect a .git/ directory in a
2976         parent of the build directory.  Reported by Mike Frysinger.
2977
2978 2011-02-19  Bruno Haible  <bruno@clisp.org>
2979
2980         unictype/property-byname: Reduce the size of the 'data' segment.
2981         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2982
2983 2011-02-19  Bruno Haible  <bruno@clisp.org>
2984
2985         unictype/scripts: Reduce the size of the 'data' segment.
2986         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2987         '%pic'.
2988         * lib/unictype/scripts_byname.gperf: Regenerated.
2989
2990 2011-02-19  Bruno Haible  <bruno@clisp.org>
2991
2992         stdint: Update documentation.
2993         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2994
2995 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2996
2997         stdint: omit redundant check for wchar.h
2998         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2999         always tests whether wchar.h exists, so remove the now-redundant test.
3000
3001 2011-02-18  Bruno Haible  <bruno@clisp.org>
3002
3003         stdint: Cut dependency to module 'wchar'.
3004         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3005         include the necessary prerequisites.
3006         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3007         * modules/stdint (Depends-on): Remove wchar.
3008         (Makefile.am): Substitute HAVE_WCHAR_H.
3009         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3010
3011 2011-02-18  Eric Blake  <eblake@redhat.com>
3012
3013         longlong: skip, rather than fail, on cross-compilation
3014         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3015         when cross-compiling; regression from 2011-02-16.
3016
3017 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3018
3019         * NEWS: Mention 2011-02-08 change to stdlib.
3020
3021 2011-02-17  Bruno Haible  <bruno@clisp.org>
3022
3023         getloadavg: Add comments about platforms.
3024         * m4/getloadavg.m4: Add comment.
3025         * lib/getloadavg.c: Likewise.
3026
3027 2011-02-17  Bruno Haible  <bruno@clisp.org>
3028
3029         getloadavg: Fix link error on Solaris 2.6.
3030         * modules/getloadavg (Link): New section.
3031         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3032         linking test-getloadavg.
3033         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3034         getloadavg.
3035
3036 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3037
3038         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3039         It was 'int', but this doesn't match the IRIX 6.5 manual.
3040         Suggested by Bruno Haible in
3041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3042
3043 2011-02-17  Bruno Haible  <bruno@clisp.org>
3044
3045         havelib: Fix comments.
3046         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3047         change.
3048
3049 2011-02-17  Bruno Haible  <bruno@clisp.org>
3050
3051         havelib: Update config.rpath.
3052         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3053
3054 2011-02-17  Bruno Haible  <bruno@clisp.org>
3055
3056         getloadavg test: Add some plausibility checks.
3057         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3058         is improbable.
3059
3060 2011-02-16  Eric Blake  <eblake@redhat.com>
3061
3062         maintainer-makefile: make syntax-check a no-op from tarballs
3063         * top/maint.mk (no-vc-detected): New rule.
3064         (local-checks-available): Use it to avoid hanging if someone tries
3065         'make syntax-check' from a tarball.  Also append to any non-syntax
3066         checks already defined in cfg.mk.
3067
3068 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         longlong: tune, particularly for common case of c99
3071
3072         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3073         or running anything if c99, or if unsigned long long int does not
3074         work.  In either case, we know the answer without further tests.
3075         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3076         it at most once, and use its results for both long long int and
3077         unsigned long long int.  This is more likely to be efficient in
3078         the common case where the program wants to check for both long
3079         long int and unsigned long long int.
3080         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3081         since the answer is already known.
3082
3083 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3084
3085         getloadavg: set errno
3086         * lib/getloadavg.c: Set errno when returning -1.  If no other
3087         error number looks appropriate, set it to ENOSYS if the getloadavg
3088         looks like it can't possibly ever work, ENOTSUP otherwise.
3089         Suggested by Bruno Haible in
3090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3091
3092         getloadavg: trim unused parts and speed up 'configure'
3093         * NEWS: Document this.
3094         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3095         always compiled if getloadavg is absent.
3096         Move test code to ...
3097         * tests/test-getloadavg.c: New file, containing previous
3098         contents of test from lib/getloadavg.c.  It also contains
3099         suggestions by Bruno Haible in
3100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3101         * modules/getloadavg-tests: New file.
3102         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3103         Do tests in the same order as they're needed for getloadavg.c.
3104         Omit setgid-related tests that generate symbols KMEM_GROUP,
3105         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3106         Do only the tests that are needed to see whether the system has
3107         getloadavg, moving the other tests into ...
3108         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3109         NLIST_NAME_UNION; nobody should be using it.  Do not define
3110         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3111         relevant, as the user of this module shouldn't care how getloadavg
3112         is implemented.
3113
3114         getloadavg: omit unused var
3115         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3116
3117 2011-02-15  Jim Meyering  <meyering@redhat.com>
3118
3119         doc: update users.txt
3120         * users.txt: Update iwhd's URL.
3121
3122 2011-02-13  Bruno Haible  <bruno@clisp.org>
3123
3124         Consistent macro naming for macros that use GCC __attribute__.
3125         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3126         _ATTRIBUTE_NONNULL_.
3127         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3128         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3129         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3130         ATTRIBUTE_DEPRECATED.
3131         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3132         ATTRIBUTE_NORETURN.
3133         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3134         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3135         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3136         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3137         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3138         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3139         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3140         ATTRIBUTE_SENTINEL.
3141         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3142         ATTRIBUTE_RETURN_CHECK.
3143         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3144         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3145         ATTRIBUTE_NORETURN.
3146         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3147         Reported by Paul Eggert.
3148
3149 2011-02-13  Bruno Haible  <bruno@clisp.org>
3150
3151         Don't interfere with a program's definition of __attribute__.
3152         * lib/argp.h (__attribute__): Remove definition.
3153         (_GL_ATTRIBUTE_FORMAT): New macro.
3154         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3155         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3156         (_GL_ATTRIBUTE_FORMAT): New macro.
3157         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3158         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3159         GCC 3 or newer.
3160         * lib/error.h (__attribute__): Remove definition.
3161         (_GL_ATTRIBUTE_FORMAT): New macro.
3162         (error, error_at_line): Use it.
3163         * lib/hash.h (__attribute__): Remove definition.
3164         (ATTRIBUTE_WUR): Update definition. Define always.
3165         * lib/openat.h (__attribute__): Remove definition.
3166         (ATTRIBUTE_NORETURN): Update definition. Define always.
3167         * lib/sigpipe-die.h (__attribute__): Remove definition.
3168         (ATTRIBUTE_NORETURN): Update definition. Define always.
3169         * lib/vasnprintf.h (__attribute__): Remove definition.
3170         (_GL_ATTRIBUTE_FORMAT): New macro.
3171         (asnprintf, vasnprintf): Use it.
3172         * lib/xalloc.h (__attribute__): Remove definition.
3173         (ATTRIBUTE_NORETURN): Update definition. Define always.
3174         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3175         * lib/xmemdup0.h (__attribute__): Remove definition.
3176         (ATTRIBUTE_NORETURN): Update definition. Define always.
3177         * lib/xprintf.h (__attribute__): Remove definition.
3178         (_GL_ATTRIBUTE_FORMAT): New macro.
3179         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3180         * lib/xstrtol.h (__attribute__): Remove definition.
3181         (ATTRIBUTE_NORETURN): Update definition. Define always.
3182         * lib/xvasprintf.h (__attribute__): Remove definition.
3183         (_GL_ATTRIBUTE_FORMAT): New macro.
3184         (xasprintf, xvasprintf): Use it.
3185         * tests/test-argmatch.c (__attribute__): Remove definition.
3186         (ATTRIBUTE_NORETURN): Update definition. Define always.
3187         * tests/test-exclude.c (__attribute__): Remove definition.
3188         (ATTRIBUTE_NORETURN): Update definition. Define always.
3189         Reported by Paul Eggert.
3190
3191 2011-02-13  Bruno Haible  <bruno@clisp.org>
3192
3193         mbrtowc: Add more tests for native Windows platforms.
3194         * tests/test-mbrtowc-w32-1.sh: New file.
3195         * tests/test-mbrtowc-w32-2.sh: New file.
3196         * tests/test-mbrtowc-w32-3.sh: New file.
3197         * tests/test-mbrtowc-w32-4.sh: New file.
3198         * tests/test-mbrtowc-w32-5.sh: New file.
3199         * tests/test-mbrtowc-w32.c: New file.
3200         * modules/mbrtowc-tests (Files): Add them.
3201         (Makefile.am): Arrange to run these tests.
3202         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3203         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3204
3205 2011-02-13  Bruno Haible  <bruno@clisp.org>
3206
3207         mbrtowc: Work around native Windows bug.
3208         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3209         guess when no suitable locale for testing was found.
3210         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3211
3212 2011-02-13  Bruno Haible  <bruno@clisp.org>
3213
3214         mbsinit: Work around mingw bug.
3215         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3216         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3217         Windows.
3218         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3219
3220 2011-02-13  Bruno Haible  <bruno@clisp.org>
3221
3222         mbsinit: Don't crash for a NULL argument.
3223         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3224         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3225
3226 2011-02-13  Bruno Haible  <bruno@clisp.org>
3227
3228         Don't interfere with a program's definition of __attribute__.
3229         * lib/stdio.in.h (__attribute__): Remove definition.
3230         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3231         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3232         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3233         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3234         * lib/string.in.h (__attribute__): Remove definition.
3235         Reported by Paul Eggert.
3236
3237 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3238
3239         stdlib: don't get in the way of non-GCC __attribute__
3240         See thread starting at
3241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3242         Revert previous stdlib change, installing the following instead:
3243         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3244         to get in the way of a non-GCC compiler that supports __attribute__.
3245         (_GL_ATTRIBUTE_RETURN): New macro.
3246         (_Exit): Use it instead of __attribute__.
3247
3248 2011-02-12  Bruno Haible  <bruno@clisp.org>
3249
3250         quotearg test: Avoid test failure on mingw.
3251         * tests/test-quotearg.sh: Convert the locale identifier from native
3252         Windows syntax to Unix syntax.
3253
3254 2011-02-12  Bruno Haible  <bruno@clisp.org>
3255
3256         setlocale: Prefer gnulib's override over libintl's override.
3257         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3258         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3259         GNULIB_defined_setlocale is set.
3260
3261 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         stdlib: support non-GCC __attribute__
3264
3265         Fix a serious and tricky problem encountered when attempting to
3266         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3267         5.5, but it crashed due to memory corruption on Solaris 10 with
3268         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3269         bits that are otherwise zero.  This tagging is optional inside
3270         Emacs but is preferred and is used when __attribute__ ((__aligned
3271         (8))) works, as it does with both recent-enough GCC and with Sun C
3272         5.11.  However, Sun C 5.11 is not GCC and does not #define
3273         __GNUC__ and __GNUC_MINOR__.
3274
3275         When I added the getloadavg module to Emacs, it brought in
3276         stdlib.in.h, which contained this fragment:
3277
3278            #ifndef __attribute__
3279            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3280            #  define __attribute__(Spec)   /* empty */
3281            # endif
3282            #endif
3283
3284         When files that include <stdlib.h> were compiled with Sun C 5.11,
3285         the above code disabled __attribute__ ((__aligned (8))), which
3286         caused variables to not be properly aligned, which eventually led
3287         to the pointer corruption mentioned above.  (This was a bit hard
3288         to diagnose, unfortunately.)
3289
3290         Several "#define __attribute__(X) /* empty */" code snippets need
3291         to be eradicated from Gnulib to work with non-GCC compilers that
3292         support __attribute__.  The Autoconf way to do this is to test for
3293         each kind of attribute that we want support for, and selectively
3294         enable that in source code.
3295
3296         Fix this problem just for stdlib.h, by adding a test for the
3297         __noreturn__ attribute, and change stdlib.in.h to use that test
3298         when needed.  This technique can be easily generalized to the
3299         other *.in.h files and attributes, and a similar technique can be
3300         used for *.h and *.c files.  This patch is enough to solve the
3301         problem for Emacs + getloadavg, and I thought I'd publish it for
3302         feedback before undertaking further, similar fixes in other
3303         modules.
3304
3305         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3306         because it's not needed for stdlib.h.  It merely substitutes the
3307         value directly into stdlib.h.  We may well need to #define it, or
3308         similar symbols, for other modules, but it's nice to also have an
3309         option to not #define it for applications like Emacs that do not
3310         need it.
3311
3312         * lib/stdlib.in.h (__attribute__): Do not #define.
3313         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3314         be defined only if the _Exit module is also used.
3315         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3317         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3318         platforms.
3319         * modules/_Exit (Files): Add m4/attribute.m4.
3320         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3321         * m4/attribute.m4: New file.
3322
3323 2011-02-12  Bruno Haible  <bruno@clisp.org>
3324
3325         wcsrtombs: Work around bug on native Windows.
3326         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3327         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3328         instead of len.
3329         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3330
3331 2011-02-12  Bruno Haible  <bruno@clisp.org>
3332
3333         mbsrtowcs: Work around bug on native Windows.
3334         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3335         against mingw bug.
3336         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3337
3338 2011-02-12  Bruno Haible  <bruno@clisp.org>
3339
3340         Avoid setlocale bugs in tests.
3341         * modules/btowc (Dependencies): Add setlocale.
3342         * modules/c-strcase (Dependencies): Likewise.
3343         * modules/mbmemcasecmp (Dependencies): Likewise.
3344         * modules/mbmemcasecoll (Dependencies): Likewise.
3345         * modules/mbrtowc (Dependencies): Likewise.
3346         * modules/mbscasecmp (Dependencies): Likewise.
3347         * modules/mbscasestr (Dependencies): Likewise.
3348         * modules/mbschr (Dependencies): Likewise.
3349         * modules/mbscspn (Dependencies): Likewise.
3350         * modules/mbsinit (Dependencies): Likewise.
3351         * modules/mbsncasecmp (Dependencies): Likewise.
3352         * modules/mbsnrtowcs (Dependencies): Likewise.
3353         * modules/mbspbrk (Dependencies): Likewise.
3354         * modules/mbspcasecmp (Dependencies): Likewise.
3355         * modules/mbsrchr (Dependencies): Likewise.
3356         * modules/mbsrtowcs (Dependencies): Likewise.
3357         * modules/mbsspn (Dependencies): Likewise.
3358         * modules/mbsstr (Dependencies): Likewise.
3359         * modules/nl_langinfo (Dependencies): Likewise.
3360         * modules/quotearg (Dependencies): Likewise.
3361         * modules/unicase/locale-language (Dependencies): Likewise.
3362         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3363         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3364         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3365         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3366         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3367         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3368         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3369         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3370         * modules/vasnprintf-posix (Dependencies): Likewise.
3371         * modules/wcrtomb (Dependencies): Likewise.
3372         * modules/wcsnrtombs (Dependencies): Likewise.
3373         * modules/wcsrtombs (Dependencies): Likewise.
3374
3375 2011-02-12  Bruno Haible  <bruno@clisp.org>
3376
3377         setlocale: Workaround native Windows bug.
3378         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3379         succeeds but sets LC_CTYPE to "C", report a failure.
3380         * tests/test-setlocale2.sh: New file.
3381         * tests/test-setlocale2.c: New file.
3382         * modules/setlocale-tests (Files): Add the new files.
3383         (Makefile.am): Enable test-setlocale2.sh test.
3384         * doc/posix-functions/setlocale.texi: Mention workaround.
3385
3386 2011-02-11  Bruno Haible  <bruno@clisp.org>
3387
3388         Tests for module 'setlocale'.
3389         * modules/setlocale-tests: New file.
3390         * tests/test-setlocale1.sh: New file.
3391         * tests/test-setlocale1.c: New file.
3392
3393         New module 'setlocale'.
3394         * lib/locale.in.h (setlocale): New declaration.
3395         * lib/setlocale.c: New file, based on
3396         gettext/gettext-runtime/intl/setlocale.c.
3397         * m4/setlocale.m4: New file.
3398         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3399         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3400         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3401         REPLACE_SETLOCALE.
3402         * modules/setlocale: New file.
3403         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3404         * doc/posix-functions/setlocale.texi: Mention the new module.
3405
3406 2011-02-11  Bruno Haible  <bruno@clisp.org>
3407
3408         Prepare for locale dependent tests on mingw.
3409         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3410         because it has the wrong locale encoding.
3411         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3412         French_France.1252 instead of "fr".
3413         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3414         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3415         because it has the wrong locale encoding.
3416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3417         native Windows, try Turkish_Turkey.65001.
3418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3419         Chinese_China.54936.
3420
3421         Prepare for locale dependent tests on mingw.
3422         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3423         differently.
3424         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3425         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3426         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3427         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3428
3429 2011-02-11  Eric Blake  <eblake@redhat.com>
3430
3431         strptime: avoid compiler warnings
3432         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3433         compiler warnings about dead code.
3434         Reported by Daniel P. Berrange.
3435
3436 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3437
3438         doc: update users.txt
3439         * users.txt: Add rcs.
3440
3441 2011-02-10  John W. Eaton  <jwe@gnu.org>
3442
3443         doc: update users.txt
3444         * users.txt: Add octave.
3445
3446 2011-02-10  Jim Meyering  <meyering@redhat.com>
3447
3448         doc: update users.txt
3449         * users.txt: Add iwhd.
3450
3451 2011-02-09  Bruno Haible  <bruno@clisp.org>
3452
3453         gnulib-tool: Make copyright notice adjustment more robust.
3454         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3455         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3456         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3457         License".
3458         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3459
3460 2011-02-06  Bruno Haible  <bruno@clisp.org>
3461
3462         New module 'towctrans'.
3463         * modules/towctrans: New file.
3464         * lib/wctype.in.h (towctrans): New declaration.
3465         * lib/towctrans.c: New file.
3466         * lib/towctrans-impl.h: New file.
3467         * m4/towctrans.m4: New file.
3468         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3469         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3470         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3471         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3472         * doc/posix-functions/towctrans.texi: Mention the new module.
3473
3474 2011-02-06  Bruno Haible  <bruno@clisp.org>
3475
3476         New module 'wctrans'.
3477         * modules/wctrans: New file.
3478         * lib/wctype.in.h (wctrans): New declaration.
3479         * lib/wctrans.c: New file.
3480         * lib/wctrans-impl.h: New file.
3481         * m4/wctrans.m4: New file.
3482         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3483         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3484         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3485         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3486         * doc/posix-functions/wctrans.texi: Mention the new module.
3487
3488 2011-02-06  Bruno Haible  <bruno@clisp.org>
3489
3490         New module 'iswctype'.
3491         * modules/iswctype: New file.
3492         * lib/wctype.in.h (iswctype): New declaration.
3493         * lib/iswctype.c: New file.
3494         * lib/iswctype-impl.h: New file.
3495         * m4/iswctype.m4: New file.
3496         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3497         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3498         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3499         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3500         * doc/posix-functions/iswctype.texi: Mention the new module and the
3501         HP-UX 11.00 problem.
3502
3503 2011-02-06  Bruno Haible  <bruno@clisp.org>
3504
3505         New module 'wctype'.
3506         * modules/wctype: Change to represent the wctype() substitute.
3507         * lib/wctype.in.h (wctype): New declaration.
3508         * lib/wctype.c: New file.
3509         * lib/wctype-impl.h: New file.
3510         * m4/wctype.m4: New file.
3511         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3512         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3513         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3514         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3515         * doc/posix-functions/wctype.texi: Mention the new module and the
3516         HP-UX 11.00 problem.
3517
3518 2011-02-06  Bruno Haible  <bruno@clisp.org>
3519
3520         wctype-h: Ensure wctype_t and wctrans_t are defined.
3521         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3522         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3523         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3524         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3525         HAVE_WCTRANS_T.
3526         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3527
3528 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3529
3530         flock: fix license typo
3531
3532         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3533         omitted.
3534
3535 2011-02-08  Bruno Haible  <bruno@clisp.org>
3536
3537         Split large sed scripts, for HP-UX sed.
3538         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3539         to avoid HP-UX limit of 99 commands, in the near future.
3540         * modules/stdlib (Makefile.am): Likewise.
3541         * modules/unistd (Makefile.am): Likewise.
3542         * modules/wchar (Makefile.am): Likewise.
3543         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3544         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3546
3547 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3548             Bruno Haible  <bruno@clisp.org>
3549
3550         stdlib: improve random_r modularization
3551         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3552         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3553         you also need the random_r module to get this material right.
3554         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3555         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3556         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3557
3558 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3559
3560         stdlib: don't depend on stdint
3561         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3562         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3563         be independent of whether stdint.h is needed.
3564         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3565         here, instead of ...
3566         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3567         struct random_data should be using the random_r module, not just
3568         the stdlib module (which wouldn't make sense: what package needs
3569         just struct random_data without also needing random_r?).
3570         * modules/stdlib (Depends-on): Remove stdint.
3571
3572         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3573         See the thread rooted at
3574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3575         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3576         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3577         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3578         __VMS)); previously it was always included (via fcntl--.h).
3579         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3580         hand; this is good enough for load averages.  Also, do not use
3581         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3582         flags directly if available and don't bother otherwise.  (Packages
3583         that need the extra reliability should use the modules that define
3584         these flags on older platforms that lack them.)
3585         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3586         fcntl-safer.
3587
3588 2011-02-08  Jim Meyering  <meyering@redhat.com>
3589
3590         di-set.h, ino-map.h: add multiple-inclusion guard
3591         Technically, the guard is required only for ino-map.h, due to its
3592         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3593         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3594         * lib/ino-map.h: Likewise.
3595
3596 2011-02-06  Bruno Haible  <bruno@clisp.org>
3597
3598         iswblank: Ensure declaration on glibc systems.
3599         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3600         * modules/iswblank (Dependencies): Add 'extensions'.
3601         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3602
3603 2011-02-06  Bruno Haible  <bruno@clisp.org>
3604
3605         New module 'iswblank'.
3606         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3607         * modules/iswblank: New file.
3608         * modules/wctype-h (Files): Remove lib/iswblank.c.
3609         (Makefile.am): Substitute GNULIB_ISWBLANK.
3610         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3611         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3612         (gl_WCTYPE_H_DEFAULTS): New macro.
3613         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3614         * modules/iswblank-tests: New file.
3615         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3616         * tests/test-wctype-h.c (main): Remove iswblank tests.
3617         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3618         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3619         of 'wctype-h'.
3620         * NEWS: Mention the change.
3621         * modules/mbchar (Depends-on): Add iswblank.
3622
3623 2011-02-08  Bruno Haible  <bruno@clisp.org>
3624
3625         di-set tests: Refactor.
3626         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3627         unnecessary includes.
3628         (ASSERT): Remove macro.
3629         (main): Make C90 compliant by avoiding variable declaration after
3630         statement.
3631         * modules/di-set-tests (Files): Add tests/macros.h.
3632
3633 2011-02-08  Bruno Haible  <bruno@clisp.org>
3634
3635         ino-map tests: Refactor.
3636         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3637         unnecessary includes.
3638         (ASSERT): Remove macro.
3639         (main): Make C90 compliant by avoiding variable declaration after
3640         statement.
3641         * modules/ino-map-tests (Files): Add tests/macros.h.
3642
3643 2011-02-08  Jim Meyering  <meyering@redhat.com>
3644
3645         di-set: add "const" to a cast
3646         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3647         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3648
3649 2011-02-06  Bruno Haible  <bruno@clisp.org>
3650
3651         Rename module 'wctype' to 'wctype-h'.
3652         * modules/wctype-h: Renamed from modules/wctype.
3653         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3654         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3655         (Files, Depends-on, Makefile.am): Update.
3656         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3657         (Files, Makefile.am): Update.
3658         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3659         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3660         * doc/posix-headers/wctype.texi: Update.
3661         * doc/posix-functions/iswalnum.texi: Update.
3662         * doc/posix-functions/iswalpha.texi: Update.
3663         * doc/posix-functions/iswblank.texi: Update.
3664         * doc/posix-functions/iswcntrl.texi: Update.
3665         * doc/posix-functions/iswdigit.texi: Update.
3666         * doc/posix-functions/iswgraph.texi: Update.
3667         * doc/posix-functions/iswlower.texi: Update.
3668         * doc/posix-functions/iswprint.texi: Update.
3669         * doc/posix-functions/iswpunct.texi: Update.
3670         * doc/posix-functions/iswspace.texi: Update.
3671         * doc/posix-functions/iswupper.texi: Update.
3672         * doc/posix-functions/iswxdigit.texi: Update.
3673         * doc/posix-functions/towlower.texi: Update.
3674         * doc/posix-functions/towupper.texi: Update.
3675         * NEWS: Mention the change.
3676         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3677         * modules/mbchar (Dependencies): Likewise.
3678         * modules/mbswidth (Dependencies): Likewise.
3679         * modules/quotearg (Dependencies): Likewise.
3680         * modules/regex (Dependencies): Likewise.
3681         * modules/wcscasecmp (Dependencies): Likewise.
3682         * modules/wcsncasecmp (Dependencies): Likewise.
3683         * modules/wcwidth (Dependencies): Likewise.
3684
3685 2011-02-06  Bruno Haible  <bruno@clisp.org>
3686
3687         New module 'wcswidth'.
3688         * modules/wcswidth: New file.
3689         * lib/wchar.in.h (wcswidth): New declaration.
3690         * lib/wcswidth.c: New file.
3691         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3692         * m4/wcswidth.m4: New file.
3693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3695         REPLACE_WCSWIDTH.
3696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3697         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3698         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3699         * doc/posix-functions/wcswidth.texi: Mention the new module.
3700
3701 2011-02-06  Bruno Haible  <bruno@clisp.org>
3702
3703         New module 'wcstok'.
3704         * modules/wcstok: New file.
3705         * lib/wchar.in.h (wcstok): New declaration.
3706         * lib/wcstok.c: New file.
3707         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3708         * m4/wcstok.m4: New file.
3709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3712         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3713         * doc/posix-functions/wcstok.texi: Mention the new module.
3714
3715 2011-02-06  Bruno Haible  <bruno@clisp.org>
3716
3717         New module 'wcsstr'.
3718         * modules/wcsstr: New file.
3719         * lib/wchar.in.h (wcsstr): New declaration.
3720         * lib/wcsstr.c: New file.
3721         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3722         * m4/wcsstr.m4: New file.
3723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3726         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3727         * doc/posix-functions/wcsstr.texi: Mention the new module.
3728
3729 2011-02-06  Bruno Haible  <bruno@clisp.org>
3730
3731         New module 'wcspbrk'.
3732         * modules/wcspbrk: New file.
3733         * lib/wchar.in.h (wcspbrk): New declaration.
3734         * lib/wcspbrk.c: New file.
3735         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3736         * m4/wcspbrk.m4: New file.
3737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3740         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3741         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3742
3743 2011-02-06  Bruno Haible  <bruno@clisp.org>
3744
3745         New module 'wcsspn'.
3746         * modules/wcsspn: New file.
3747         * lib/wchar.in.h (wcsspn): New declaration.
3748         * lib/wcsspn.c: New file.
3749         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3750         * m4/wcsspn.m4: New file.
3751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3754         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3755         * doc/posix-functions/wcsspn.texi: Mention the new module.
3756
3757 2011-02-06  Bruno Haible  <bruno@clisp.org>
3758
3759         New module 'wcscspn'.
3760         * modules/wcscspn: New file.
3761         * lib/wchar.in.h (wcscspn): New declaration.
3762         * lib/wcscspn.c: New file.
3763         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3764         * m4/wcscspn.m4: New file.
3765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3768         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3769         * doc/posix-functions/wcscspn.texi: Mention the new module.
3770
3771 2011-02-06  Bruno Haible  <bruno@clisp.org>
3772
3773         New module 'wcsrchr'.
3774         * modules/wcsrchr: New file.
3775         * lib/wchar.in.h (wcsrchr): New declaration.
3776         * lib/wcsrchr.c: New file.
3777         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3778         * m4/wcsrchr.m4: New file.
3779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3782         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3783         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3784
3785 2011-02-06  Bruno Haible  <bruno@clisp.org>
3786
3787         New module 'wcschr'.
3788         * modules/wcschr: New file.
3789         * lib/wchar.in.h (wcschr): New declaration.
3790         * lib/wcschr.c: New file.
3791         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3792         * m4/wcschr.m4: New file.
3793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3796         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3797         * doc/posix-functions/wcschr.texi: Mention the new module.
3798
3799 2011-02-06  Bruno Haible  <bruno@clisp.org>
3800
3801         New module 'wcsdup'.
3802         * modules/wcsdup: New file.
3803         * lib/wchar.in.h (wcsdup): New declaration.
3804         * lib/wcsdup.c: New file.
3805         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3806         * m4/wcsdup.m4: New file.
3807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3809         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3810         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3811         * doc/posix-functions/wcsdup.texi: Mention the new module.
3812
3813 2011-02-06  Bruno Haible  <bruno@clisp.org>
3814
3815         New module 'wcsxfrm'.
3816         * modules/wcsxfrm: New file.
3817         * lib/wchar.in.h (wcsxfrm): New declaration.
3818         * lib/wcsxfrm.c: New file.
3819         * lib/wcsxfrm-impl.h: New file.
3820         * m4/wcsxfrm.m4: New file.
3821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3824         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3825         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3826
3827 2011-02-06  Bruno Haible  <bruno@clisp.org>
3828
3829         New module 'wcscoll'.
3830         * modules/wcscoll: New file.
3831         * lib/wchar.in.h (wcscoll): New declaration.
3832         * lib/wcscoll.c: New file.
3833         * lib/wcscoll-impl.h: New file.
3834         * m4/wcscoll.m4: New file.
3835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3838         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3839         * doc/posix-functions/wcscoll.texi: Mention the new module.
3840
3841 2011-02-06  Bruno Haible  <bruno@clisp.org>
3842
3843         New module 'wcsncasecmp'.
3844         * modules/wcsncasecmp: New file.
3845         * lib/wchar.in.h (wcsncasecmp): New declaration.
3846         * lib/wcsncasecmp.c: New file.
3847         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3848         * m4/wcsncasecmp.m4: New file.
3849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3852         HAVE_WCSNCASECMP.
3853         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3854         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3855
3856 2011-02-06  Bruno Haible  <bruno@clisp.org>
3857
3858         New module 'wcscasecmp'.
3859         * modules/wcscasecmp: New file.
3860         * lib/wchar.in.h (wcscasecmp): New declaration.
3861         * lib/wcscasecmp.c: New file.
3862         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3863         * m4/wcscasecmp.m4: New file.
3864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3867         HAVE_WCSCASECMP.
3868         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3869         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3870
3871 2011-02-05  Bruno Haible  <bruno@clisp.org>
3872
3873         New module 'wcsncmp'.
3874         * modules/wcsncmp: New file.
3875         * lib/wchar.in.h (wcsncmp): New declaration.
3876         * lib/wcsncmp.c: New file.
3877         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3878         * m4/wcsncmp.m4: New file.
3879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3882         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3883         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3884
3885 2011-02-05  Bruno Haible  <bruno@clisp.org>
3886
3887         New module 'wcscmp'.
3888         * modules/wcscmp: New file.
3889         * lib/wchar.in.h (wcscmp): New declaration.
3890         * lib/wcscmp.c: New file.
3891         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3892         * m4/wcscmp.m4: New file.
3893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3896         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3897         * doc/posix-functions/wcscmp.texi: Mention the new module.
3898
3899 2011-02-05  Bruno Haible  <bruno@clisp.org>
3900
3901         New module 'wcsncat'.
3902         * modules/wcsncat: New file.
3903         * lib/wchar.in.h (wcsncat): New declaration.
3904         * lib/wcsncat.c: New file.
3905         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3906         * m4/wcsncat.m4: New file.
3907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3910         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3911         * doc/posix-functions/wcsncat.texi: Mention the new module.
3912
3913 2011-02-05  Bruno Haible  <bruno@clisp.org>
3914
3915         New module 'wcscat'.
3916         * modules/wcscat: New file.
3917         * lib/wchar.in.h (wcscat): New declaration.
3918         * lib/wcscat.c: New file.
3919         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3920         * m4/wcscat.m4: New file.
3921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3924         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3925         * doc/posix-functions/wcscat.texi: Mention the new module.
3926
3927 2011-02-05  Bruno Haible  <bruno@clisp.org>
3928
3929         New module 'wcpncpy'.
3930         * modules/wcpncpy: New file.
3931         * lib/wchar.in.h (wcpncpy): New declaration.
3932         * lib/wcpncpy.c: New file.
3933         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3934         * m4/wcpncpy.m4: New file.
3935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3937         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3938         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3939         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3940
3941 2011-02-05  Bruno Haible  <bruno@clisp.org>
3942
3943         New module 'wcsncpy'.
3944         * modules/wcsncpy: New file.
3945         * lib/wchar.in.h (wcsncpy): New declaration.
3946         * lib/wcsncpy.c: New file.
3947         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3948         * m4/wcsncpy.m4: New file.
3949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3952         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3953         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3954
3955 2011-02-05  Bruno Haible  <bruno@clisp.org>
3956
3957         New module 'wcpcpy'.
3958         * modules/wcpcpy: New file.
3959         * lib/wchar.in.h (wcpcpy): New declaration.
3960         * lib/wcpcpy.c: New file.
3961         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3962         * m4/wcpcpy.m4: New file.
3963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3965         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3966         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3967         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3968
3969 2011-02-05  Bruno Haible  <bruno@clisp.org>
3970
3971         New module 'wcscpy'.
3972         * modules/wcscpy: New file.
3973         * lib/wchar.in.h (wcscpy): New declaration.
3974         * lib/wcscpy.c: New file.
3975         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3976         * m4/wcscpy.m4: New file.
3977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3980         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3981         * doc/posix-functions/wcscpy.texi: Mention the new module.
3982
3983 2011-02-05  Bruno Haible  <bruno@clisp.org>
3984
3985         New module 'wcsnlen'.
3986         * modules/wcsnlen: New file.
3987         * lib/wchar.in.h (wcsnlen): New declaration.
3988         * lib/wcsnlen.c: New file.
3989         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3990         * m4/wcsnlen.m4: New file.
3991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3994         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3995         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3996
3997 2011-02-05  Bruno Haible  <bruno@clisp.org>
3998
3999         New module 'wcslen'.
4000         * modules/wcslen: New file.
4001         * lib/wchar.in.h (wcslen): New declaration.
4002         * lib/wcslen.c: New file.
4003         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4004         * m4/wcslen.m4: New file.
4005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4008         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4009         * doc/posix-functions/wcslen.texi: Mention the new module.
4010
4011 2011-02-05  Bruno Haible  <bruno@clisp.org>
4012
4013         New module 'wmemset'.
4014         * modules/wmemset: New file.
4015         * lib/wchar.in.h (wmemset): New declaration.
4016         * lib/wmemset.c: New file.
4017         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4018         * m4/wmemset.m4: New file.
4019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4021         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4022         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4023         * doc/posix-functions/wmemset.texi: Mention the new module.
4024
4025 2011-02-05  Bruno Haible  <bruno@clisp.org>
4026
4027         New module 'wmemmove'.
4028         * modules/wmemmove: New file.
4029         * lib/wchar.in.h (wmemmove): New declaration.
4030         * lib/wmemmove.c: New file.
4031         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4032         * m4/wmemmove.m4: New file.
4033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4035         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4036         HAVE_WMEMMOVE.
4037         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4038         * doc/posix-functions/wmemmove.texi: Mention the new module.
4039
4040 2011-02-05  Bruno Haible  <bruno@clisp.org>
4041
4042         New module 'wmemcpy'.
4043         * modules/wmemcpy: New file.
4044         * lib/wchar.in.h (wmemcpy): New declaration.
4045         * lib/wmemcpy.c: New file.
4046         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4047         * m4/wmemcpy.m4: New file.
4048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4050         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4051         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4052         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4053
4054 2011-02-05  Bruno Haible  <bruno@clisp.org>
4055
4056         New module 'wmemcmp'.
4057         * modules/wmemcmp: New file.
4058         * lib/wchar.in.h (wmemcmp): New declaration.
4059         * lib/wmemcmp.c: New file.
4060         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4061         * m4/wmemcmp.m4: New file.
4062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4064         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4065         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4066         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4067
4068 2011-02-07  Jim Meyering  <meyering@redhat.com>
4069
4070         di-set, ino-map: new modules, from coreutils
4071         * lib/di-set.c: New file.
4072         * lib/di-set.h: Likewise.
4073         * lib/ino-map.c: Likewise.
4074         * lib/ino-map.h: Likewise.
4075         * modules/di-set: Likewise.
4076         * modules/di-set-tests: Likewise.
4077         * modules/ino-map: Likewise.
4078         * modules/ino-map-tests: Likewise.
4079         * tests/test-di-set.c: Likewise.
4080         * tests/test-ino-map.c: Likewise.
4081
4082 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4083
4084         getloadavg: merge minor changes from Emacs
4085
4086         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4087         (getloadavg): Use memset, not bzero.
4088
4089         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4090         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4091         clash (bug#86).
4092
4093 2010-11-14  Bruno Haible  <bruno@clisp.org>
4094
4095         Allow multiple gnulib generated replacements to coexist.
4096         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4097         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4098         * lib/langinfo.in.h (nl_item): Likewise.
4099         * lib/math.in.h (_NaN, NAN): Likewise.
4100         * lib/netdb.in.h (struct addrinfo): Likewise.
4101         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4102         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4103         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4104         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4105         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4106         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4107         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4108         pthread_mutexattr_init, pthread_mutexattr_settype,
4109         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4110         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4111         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4112         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4113         * lib/sched.in.h (struct sched_param): Likewise.
4114         * lib/se-selinux.in.h (security_class_t, security_context_t,
4115         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4116         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4117         lsetfilecon, fsetfilecon, security_check_context,
4118         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4119         Likewise.
4120         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4121         Likewise.
4122         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4123         _gl_function_taking_int_returning_void_t, union sigval,
4124         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4125         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4126         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4127         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4128         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4129         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4130         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4131         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4132         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4133         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4134         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4135         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4136         socklen_t, rpl_fd_isset): Likewise.
4137         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4138         * lib/sys_time.in.h (struct timeval): Likewise.
4139         * lib/sys_times.in.h (struct tms): Likewise.
4140         * lib/sys_utsname.in.h (struct utsname):
4141         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4142         * lib/unistd.in.h (getpagesize): Likewise.
4143         * lib/wchar.in.h (mbstate_t): Likewise.
4144         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4145         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4146         towlower, towupper): Likewise.
4147         Reported by Sam Steingold <sds@gnu.org>.
4148
4149 2011-02-05  Eric Blake  <eblake@redhat.com>
4150
4151         unsetenv: work around Haiku issues
4152         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4153         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4154
4155 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4156
4157         libposix: avoid calling error() within libposix
4158         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4159         is defined.
4160
4161 2011-02-05  Eric Blake  <eblake@redhat.com>
4162
4163         strerror_r-posix: port to cygwin
4164         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4165         implementation.
4166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4167         * tests/test-strerror_r.c (main): Fix test.
4168         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4169         issue.
4170
4171 2011-02-05  Bruno Haible  <bruno@clisp.org>
4172
4173         New module 'wmemchr'.
4174         * modules/wmemchr: New file.
4175         * lib/wchar.in.h (wmemchr): New declaration.
4176         * lib/wmemchr.c: New file.
4177         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4178         * m4/wmemchr.m4: New file.
4179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4181         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4182         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4183         * doc/posix-functions/wmemchr.texi: Mention the new module.
4184
4185 2011-02-04  Eric Blake  <eblake@redhat.com>
4186
4187         fdopendir: detect FreeBSD bug
4188         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4189         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4190
4191 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4192
4193         stdbool: do not define HAVE_STDBOOL_H
4194         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4195         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4196         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4197         imported from the latest Autoconf git.  It was motivated by Emacs,
4198         which uses gnulib but does not need HAVE_STDBOOL_H.
4199
4200 2011-02-04  Bruno Haible  <bruno@clisp.org>
4201
4202         wcsnrtombs: Prepare for new module wwcsnrtombs.
4203         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4204         * lib/wcsnrtombs.c: Include it.
4205         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4206
4207         wcsrtombs: Prepare for new module wwcsrtombs.
4208         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4209         * lib/wcsrtombs.c: Include it.
4210         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4211
4212         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4213         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4214         * lib/mbsnrtowcs.c: Include it.
4215         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4216
4217         mbsrtowcs: Prepare for new module mbsrtowwcs.
4218         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4219         * lib/mbsrtowcs.c: Include it.
4220         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4221
4222 2011-02-04  Bruno Haible  <bruno@clisp.org>
4223
4224         vasnprintf: Reduce use of malloc for small format strings.
4225         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4226         (arguments): Add room for the first 7 arguments.
4227         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4228         (char_directives, u8_directives, u16_directives, u32_directives): Add
4229         room for the first 7 directives.
4230         * lib/printf-parse.c: Include <string.h>.
4231         (PRINTF_PARSE): Change memory handling code so that it uses the first
4232         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4233         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4234         Reported by Pádraig Brady <P@draigbrady.com>.
4235
4236 2011-01-31  Eric Blake  <eblake@redhat.com>
4237
4238         dup2: work around Haiku bug
4239         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4240         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4241         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4242         * tests/test-dup2.c (main): Enhance test.
4243
4244 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4245
4246         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4247         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4248         declared by eglibc 2.11.2.
4249         * lib/stdio.in.h: Likewise.
4250
4251 2011-01-31  Eric Blake  <eblake@redhat.com>
4252
4253         ignore-value: add missing test dependency
4254         * tests/test-ignore-value.c: Revert previous change; stdio.h
4255         provides off_t.
4256         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4257
4258 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         mktime: clarify long_int width checking
4261         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4262         the top level, to make it clearer that the assumption about
4263         long_int width is being checked.  See
4264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4265
4266 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4267
4268         ignore-value: Fix self-test.
4269         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4270
4271 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4272
4273         TYPE_MAXIMUM: avoid theoretically undefined behavior
4274         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4275         negative number, which the C Standard says has undefined behavior.
4276         In practice this is not a problem, but might as well do it by the book.
4277         Reported by Rich Felker and Eric Blake; see
4278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4279         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4280         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4282         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4283         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4284         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4285
4286         mktime: #undef mktime before #defining it
4287         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4288
4289         mktime: systematically normalize tm_isdst comparisons
4290         * lib/mktime.c (isdst_differ): New function.
4291         (__mktime_internal): Use it systematically for all isdst comparisons.
4292         This completes the fix for libc BZ #6723, and removes the need for
4293         normalizing tm_isdst.  See
4294         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4295         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4296
4297         mktime: fix some integer overflow issues and sidestep the rest
4298
4299         This was prompted by a bug report by Benjamin Lindner for MinGW
4300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4301         His bug is due to signed integer overflow (0 - INT_MIN), and I
4302         I scanned through mktime.c looking for other integer overflow
4303         problems, fixing all the bugs I found.
4304
4305         Although the C Standard says the resulting code is still not safe
4306         in the presence of integer overflow, in practice it should be good
4307         enough for all real-world two's-complement implementations, except
4308         for debugging environments that deliberately trap on integer
4309         overflow (e.g., gcc -ftrapv).
4310
4311         * lib/mktime.c (WRAPV): New macro.
4312         (SHR): Also check that long_int and time_t shift right in the
4313         usual way, before using the fast-but-unportable method.
4314         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4315         used.  The code already assumed two's complement, so there's
4316         no need to test for alternatives.  All uses removed.
4317         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4318         the C standard.  Problem reported by Rich Felker in
4319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4320         (twos_complement_arithmetic): Also check long_int and time_t.
4321         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4322         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4323         (__mktime_internal): Avoid integer overflow with unary subtraction
4324         in two instances where -1 - X is an adequate replacement for -X,
4325         since the calculations are approximate.
4326
4327 2011-01-29  Eric Blake  <eblake@redhat.com>
4328
4329         mktime: avoid infinite loop
4330         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4331         type; behavior is still undefined but portable to all known targets.
4332         Reported by Rich Felker.
4333
4334 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4335
4336         rename, unlink, same-inode: Relicense.
4337         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4338         * modules/unlink (License): Likewise.
4339         * modules/same-inode (License): Likewise.
4340
4341 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4342
4343         mktime: avoid problems on NetBSD 5 / i386
4344         * lib/mktime.c (long_int): New type.  This works around a problem
4345         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4346         but time_t is 64 bits, and where I expect the existing code is
4347         wrong in some cases.
4348         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4349         (ydhms_diff): Bring back the compile-time check for wide-enough
4350         year and yday.
4351
4352         mktime: fix misspelling in comment
4353         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4354         This merges all recent glibc changes of importance.
4355
4356 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4357
4358         move-if-change: cope with concurrent mv of identical file.
4359         * build-aux/move-if-change (CMPPROG): Accept environment
4360         variable as an override for `cmp'.
4361         (usage): Document CMPPROG.
4362         Adjust comparison to drop stdout.  Cope with failure of mv if
4363         the target file exists and is identical to the source, for
4364         parallel builds.
4365         Report from H.J. Lu against binutils in PR binutils/12283.
4366
4367 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4368
4369         * users.txt: Mention sharutils.
4370
4371 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4372
4373         * users.txt: Mention OATH Toolkit.
4374
4375 2011-01-27  Bruno Haible  <bruno@clisp.org>
4376
4377         Prepare for supporting FreeBSD 10.
4378         * build-aux/config.libpath: Remove handling of freebsd1*.
4379
4380 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4381
4382         Prepare for supporting FreeBSD 10.
4383         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4384         match FreeBSD 10.0.
4385
4386 2011-01-27  Bruno Haible  <bruno@clisp.org>
4387
4388         vma-iter, get-rusage-as: Add OpenBSD support.
4389         * modules/vma-iter (configure.ac): Test for mquery.
4390         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4391         * lib/vma-iter.c: Include <sys/mman.h>.
4392         (vma_iterate): Add an implementation based on mquery().
4393         * lib/resource-ext.h (get_rusage_as): Update comments.
4394         * lib/get-rusage-as.c: Likewise.
4395         * lib/get-rusage-data.c: Likewise.
4396
4397 2011-01-26  Karl Berry  <karl@gnu.org>
4398
4399         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4400         variables to make it easier to override the makeinfo program used.
4401
4402 2011-01-26  Eric Blake  <eblake@redhat.com>
4403
4404         fcntl: work around Haiku F_DUPFD bugs
4405         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4406         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4407         cloexec bit on duplication.
4408         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4409
4410 2011-01-26  Bruno Haible  <bruno@clisp.org>
4411
4412         Enable memory leak tests on AIX.
4413         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4414         * tests/test-fprintf-posix3.c (main): Likewise.
4415
4416 2011-01-26  Bruno Haible  <bruno@clisp.org>
4417
4418         Tests for module 'get-rusage-data'.
4419         * modules/get-rusage-data-tests: New file.
4420         * tests/test-get-rusage-data.c: New file.
4421
4422         New module 'get-rusage-data'.
4423         * lib/resource-ext.h (get_rusage_data): New declaration.
4424         * lib/get-rusage-data.c: New file.
4425         * modules/get-rusage-data: New file.
4426
4427 2011-01-25  Bruno Haible  <bruno@clisp.org>
4428
4429         get-rusage-as: Allow for easier testing.
4430         * lib/resource-ext.h (get_rusage_as): Add comment.
4431         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4432         (main): New function for interactive testing.
4433
4434 2011-01-25  Bruno Haible  <bruno@clisp.org>
4435
4436         vma-iter: Treat Haiku like BeOS.
4437         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4438         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4439
4440 2011-01-25  Eric Blake  <eblake@redhat.com>
4441
4442         c-stack: fix regression on cygwin when libsigsegv is present
4443         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4444
4445 2011-01-24  Bruno Haible  <bruno@clisp.org>
4446
4447         vma-iter: Avoid empty intervals.
4448         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4449         on an empty interval.
4450
4451 2011-01-24  Jim Meyering  <meyering@redhat.com>
4452
4453         u64: remove unnecessary #include
4454         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4455
4456 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4457
4458         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4459         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4460
4461 2011-01-23  Bruno Haible  <bruno@clisp.org>
4462
4463         New module 'vma-iter'.
4464         * lib/vma-iter.h: New file.
4465         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4466         * modules/vma-iter: New file.
4467         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4468         for get_rusage_as_via_iterator.
4469         (vma_iterate_callback): New function.
4470         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4471         * modules/get-rusage-as (Depends-on): Add vma-iter.
4472
4473 2011-01-23  Bruno Haible  <bruno@clisp.org>
4474
4475         uninorm: Tweak includes.
4476         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4477         Reported by Jim Meyering.
4478
4479 2011-01-23  Bruno Haible  <bruno@clisp.org>
4480
4481         get-rusage-as: Improve on NetBSD.
4482         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4483         /proc, like on FreeBSD.
4484
4485 2011-01-23  Jim Meyering  <meyering@redhat.com>
4486
4487         xreadlink.h: remove unnecessary #include
4488         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4489
4490         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4491         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4492
4493 2011-01-23  Bruno Haible  <bruno@clisp.org>
4494
4495         get-rusage-as: Fix bug.
4496         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4497         original limit when aborting the first loop.
4498
4499 2011-01-23  Bruno Haible  <bruno@clisp.org>
4500
4501         wctype: Ensure valid C syntax.
4502         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4503         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4504
4505 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4506
4507         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4509         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4510         as they are needed only for configure's test case.
4511         This removes two unnecessary symbols from config.h.
4512
4513         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4514         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4516         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4517         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4518         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4519         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4520         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4521         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4522         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4523         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4525         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4526         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4527         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4528         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4529         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4530         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4531
4532 2011-01-21  Eric Blake  <eblake@redhat.com>
4533
4534         maintainer-makefile: work with older git for submodule check
4535         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4536         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4537         Reported by Matthias Bolte.
4538
4539         bootstrap: minor portability fixes
4540         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4541         (usage): Omit leading capital and trailing . on help phrases, per
4542         GNU Coding Standards.
4543         (check_versions, top level): Prefix messages with script name.
4544
4545 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4546
4547         bootstrap: support --no-git option
4548         * build-aux/bootstrap: Add --no-git option, to be used when
4549         --gnulib-srcdir points to the exact desired checkout.
4550
4551 2011-01-21  Eric Blake  <eblake@redhat.com>
4552
4553         strerror_r-posix: work with glibc 2.13
4554         * lib/strerror_r.c (strerror_r): Fix return type.
4555
4556 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4557             Bruno Haible  <bruno@clisp.org>
4558
4559         uN_strstr: New unit tests.
4560         * modules/unistr/u8-strstr-tests: New file.
4561         * modules/unistr/u16-strstr-tests: New file.
4562         * modules/unistr/u32-strstr-tests: New file.
4563         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4564         * tests/unistr/test-u8-strstr.c: New file.
4565         * tests/unistr/test-u16-strstr.c: New file.
4566         * tests/unistr/test-u32-strstr.c: New file.
4567
4568 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4569             Bruno Haible  <bruno@clisp.org>
4570
4571         Make uN_strstr functions O(n) worst-case.
4572         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4573         16-bit and 32-bit unit cases, use the unibyte algorithm from
4574         lib/mbsstr.c.
4575         * lib/unistr/u8-strstr.c: Include <string.h>.
4576         (UNIT_IS_UINT8_T): New macro.
4577         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4578         (U_STRLEN, U_STRNLEN): New macros.
4579         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4580         (U_STRLEN, U_STRNLEN): New macros.
4581         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4582         (configure.ac): Update required libunistring version.
4583         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4584         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4585         malloca.
4586         (configure.ac): Update required libunistring version.
4587         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4588         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4589         malloca.
4590         (configure.ac): Update required libunistring version.
4591
4592 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4593             Bruno Haible  <bruno@clisp.org>
4594
4595         Prepare for faster uN_strstr functions.
4596         * lib/str-kmp.h: Support definable UNITs.
4597         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4598         needle_len argument.
4599         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4600         * lib/mbscasestr.c (mbscasestr): Likewise.
4601
4602 2011-01-21  Pádraig Brady <P@draigBrady.com>
4603
4604         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4605         * tests/test-malloca.c (main): Unset the environment variable
4606         to greatly speed up the test.
4607         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4608         * modules/malloca-tests: Depend on unsetenv.
4609
4610 2011-01-21  Pádraig Brady <P@draigBrady.com>
4611
4612         ignore-value: remove stdint dependency
4613         * lib/ignore-value.h: Remove <stdint.h>
4614         * modules/ignore-value: Remove stdint dependency.
4615
4616 2011-01-21  Jim Meyering  <meyering@redhat.com>
4617
4618         maint.mk: adjust variable name to be consistent with other gl_ vars
4619         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4620         to be lower case.
4621
4622 2011-01-20  Jim Meyering  <meyering@redhat.com>
4623
4624         maint.mk: make "check" depend on public-submodule-commit by default
4625         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4626
4627 2011-01-20  Bruno Haible  <bruno@clisp.org>
4628
4629         mbfile, mbiter: Complete change from 2008-12-21.
4630         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4631         * m4/mbiter.m4 (gl_MBITER): Likewise.
4632
4633 2011-01-20  Jim Meyering  <meyering@redhat.com>
4634
4635         init.sh: insert space between each function name and "()"
4636         * tests/init.sh: Make it a little easier to see that a function's
4637         name is "warn_", and not "warn" when looking at the first part of
4638         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4639
4640 2011-01-20  Jim Meyering  <meyering@redhat.com>
4641
4642         mountlist: clean up code formatting
4643         * lib/mountlist.c (read_file_system_list): Split a long line,
4644         correct bracing style, use NULL in place of "(struct statfs *)0",
4645         don't parenthesize return value, add spaces around "=" and after
4646         ";-in-for-stmt".
4647
4648 2011-01-14  Markus Duft <mduft@gentoo.org>
4649
4650         mountlist: add support for Interix
4651         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4652         Apply statvfs to all entries of /dev/fs.
4653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4654         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4655
4656 2011-01-20  Jim Meyering  <meyering@redhat.com>
4657
4658         maint.mk: improve the public-submodule-commit rule
4659         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4660         to suppress printing of its commands... unless V=1.
4661         Add git submodule's --quiet option to suppress printing of e.g.,
4662         "Entering gnulib" output.
4663         "cd" into $(srcdir) before running git submodule.
4664
4665 2011-01-20  Bruno Haible  <bruno@clisp.org>
4666
4667         include_next: Fix bug introduced on 2011-01-18.
4668         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4669         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4670         ac_cv_header_... variable if the second argument is not 'check'.
4671         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4672         gl_NEXT_HEADERS_INTERNAL.
4673
4674 2011-01-20  Bruno Haible  <bruno@clisp.org>
4675
4676         Allow the user to avoid the GNULIB_TEST_* macros.
4677         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4678         Suggested by Paul Eggert.
4679
4680 2011-01-14  Jim Meyering  <meyering@redhat.com>
4681
4682         bootstrap: avoid failure when there is no .gitmodules file
4683         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4684         has been assigned to, even when its value is the empty string.
4685         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4686         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4687         Reported by John W. Eaton <jwe@gnu.org>.
4688
4689 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4690
4691         assume <ctype.h>, ..., <time.h> exist
4692         For years gnulib has been assuming the existence of the headers
4693         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4694         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4695         them, since they don't appear to be needed.
4696         * README (Portability guidelines): Document this.
4697         * lib/flock.c: Assume <fcntl.h> exists.
4698         * lib/regex_internal.h: Assume <locale.h> exists.
4699         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4700         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4701         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4702         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4703         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4704         * m4/regex.m4 (gl_REGEX): Likewise.
4705         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4706         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4707         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4708         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4709         * tests/test-argp.c: Likewise.
4710         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4711
4712         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4713         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4714         AA_APPLE_UNIVERSAL_BUILD.  See
4715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4716         * NEWS: Document this.
4717
4718 2011-01-19  Eric Blake  <eblake@redhat.com>
4719
4720         c-stack: assume stack overflow if SA_SIGINFO unsupported
4721         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4722         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4723         sigaction will work.
4724         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4725         behavior match Linux.
4726         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4727
4728         stdbool-tests: accomodate Haiku
4729         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4730
4731         binary-io: fix O_TEXT on Haiku
4732         * modules/binary-io (Depends-on): Add fcntl-h.
4733         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4734         than blindly undefining O_TEXT.
4735         Reported by Scott McCreary.
4736
4737 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4738
4739         include_next: do not check for standard headers like stddef.h
4740
4741         I found this problem when modifying Emacs to use gnulib.
4742         I noticed that it added HAVE_STDDEF_H to config.h, even though
4743         gnulib always assumes <stddef.h> exists as per README and this
4744         symbol is unnecessary.
4745         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4746         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4747         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4748         faster for headers like stddef.h that are known to exist.
4749         (gl_CHECK_NEXT_HEADERS): Use it.
4750         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4751         rather than gl_CHECK_NEXT_HEADERS.
4752         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4753         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4754
4755 2011-01-18  Eric Blake  <eblake@redhat.com>
4756
4757         ansi-c++-opt: skip C++ dependency style if C++ is unused
4758         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4759         tests when we know C++ compilation is not desired.
4760         Reported by Scott McCreary.
4761
4762 2011-01-18  Bruno Haible  <bruno@clisp.org>
4763
4764         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4765         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4766         (main): Perform test also when getrlimit and setrlimit don't exist or
4767         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4768         limiting the address space size using setrlimit, compare the address
4769         space size before and after the the test.
4770         * tests/test-dprintf-posix2.c: Likewise.
4771         * tests/test-fprintf-posix3.sh: Update skip messages.
4772         * tests/test-dprintf-posix2.sh: Likewise.
4773         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4774         * modules/dprintf-posix-tests (Depends-on): Likewise.
4775         Reported by Bruce Korb <bkorb@gnu.org> and
4776         Gary V. Vaughan <gary@gnu.org>.
4777
4778 2011-01-18  Bruno Haible  <bruno@clisp.org>
4779
4780         get-rusage-as: Improvement for Cygwin.
4781         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4782         areas that are merely reserved.
4783
4784 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         strftime: remove dependencies on multibyte modules
4787
4788         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4789         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4790         only if __osf__ is defined, and I suspect OSF doesn't need these
4791         other modules.  If my guess is wrong, we'll need to come up with a
4792         variant of strftime that doesn't need the multibyte modules.
4793
4794         I discovered this problem when attempting modify Emacs to use the
4795         strftime module.  With the previous gnulib, this caused Emacs to
4796         need 31 new files, ranging from lib/config.charset to
4797         m4/wint_t.m4.  This was overkill and I expect would be offputting
4798         to the Emacs maintainers.  After this change, only 6 new files are
4799         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4800         stdbool.m4, and tm_gmtoff.m4.
4801
4802         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4803         Suggested by Bruno Haible in
4804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4805         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4806         and do not check for wchar.h.
4807         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4808         (Depends-on): Remove mbrlen, mbsinit, wchar.
4809
4810 2011-01-18  Bruno Haible  <bruno@clisp.org>
4811
4812         Tests for module 'get-rusage-as'.
4813         * modules/get-rusage-as-tests: New file.
4814         * tests/test-get-rusage-as.c: New file.
4815
4816         New module 'get-rusage-as'.
4817         * modules/get-rusage-as: New file.
4818         * lib/resource-ext.h: New file.
4819         * lib/get-rusage-as.c: New file.
4820
4821 2011-01-17  Eric Blake  <eblake@redhat.com>
4822
4823         sigaction: relax license from LGPLv3+ to LGPLv2+
4824         * modules/sigaction (License): Relax to LGPLv2+.
4825
4826 2011-01-14  Bruno Haible  <bruno@clisp.org>
4827
4828         filemode: Make function declarations usable in C++ mode.
4829         * lib/filemode.h: Enclose function declarations in extern "C" block.
4830         Reported by John W. Eaton <jwe@gnu.org>.
4831
4832 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4833
4834         save-cwd: no longer include "xgetcwd.h"
4835         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4836         This avoids a compilation failure in projects that use save-cwd
4837         without also using the xgetcwd module.
4838
4839 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4840
4841         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4842         This is so that a program like Emacs, which needs only dtoastr,
4843         does not have to bother with distributing and compiling ftoastr
4844         and ldtoastr.
4845         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4846         * modules/dtoastr, modules/ldtoastr: New files.
4847         * modules/ftoastr: Now works just for 'float'.
4848         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4849         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4850         dtoastr.c, ldtoastr.c.
4851
4852 2011-01-11  Jim Meyering  <meyering@redhat.com>
4853
4854         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4855         There is no need to work around the lack of the fchdir function,
4856         since gnulib can now provide a replacement when required.
4857         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4858         * modules/save-cwd (Depends-on): Add fchdir.
4859
4860 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4861
4862         openat, save-cwd: avoid xmalloc
4863
4864         This removes a direct (but undocumented) dependency of openat on
4865         xalloc, along with an indirect dependency via save-cwd.  It also
4866         removes a dependency of save-cwd on xgetcwd, and thereby
4867         indirectly on xalloc.  This change causes the openat substitute
4868         to fall back on save_cwd when memory is tight, and for save_cwd to
4869         fail instead of dying when memory is tight, but that's good enough.
4870         Problem and initial idea for fix reported by Bastien Roucaries in
4871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4872
4873         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4874         xalloc.h (for xmalloc).
4875         (openat_proc_name): Use malloc, not xmalloc.
4876         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4877         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4878
4879         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4880         This avoids heap allocation for file names whose lengths are in
4881         the range 512..1023, with the upper bound increasing to at most
4882         4031 depending on the platform's PATH_MAX.  (We do not want
4883         pathmax.h here as it might supply a non-constant PATH_MAX.)
4884         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4885         Perhaps they should be moved to malloca.h?
4886         (OPENAT_BUFFER_SIZE): Use them.
4887
4888 2011-01-10  Bruno Haible  <bruno@clisp.org>
4889
4890         doc: Update users.txt.
4891         * users.txt: Add recutils.
4892
4893 2011-01-09  Karl Berry  <karl@gnu.org>
4894
4895         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4896
4897         * doc/configmake.texi: New file.
4898         * doc/gnulib.texi: Include it.
4899         * modules/configmake: Move documentation from here.
4900
4901 2011-01-09  Bruno Haible  <bruno@clisp.org>
4902
4903         Update to Unicode 6.0.0.
4904         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4905         (get_lbp): Update for Unicode 6.0.0.
4906         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4907         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4908         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4909         U+11001, U+11038..U+11046. Remove U+06DE.
4910         (uc_width): Fix bounds of planes.
4911         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4912         lib/uniwidth/width.c.
4913         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4914         trailing whitespace removed.
4915         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4916         without comments, but with the original copyright notice.
4917         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4918         * lib/unicase/ignorable.h: Likewise.
4919         * lib/unicase/tocasefold.h: Likewise.
4920         * lib/unicase/tolower.h: Likewise.
4921         * lib/unicase/totitle.h: Likewise.
4922         * lib/unicase/toupper.h: Likewise.
4923         * lib/unictype/bidi_of.h: Likewise.
4924         * lib/unictype/blocks.h: Likewise.
4925         * lib/unictype/categ_C.h: Likewise.
4926         * lib/unictype/categ_Cn.h: Likewise.
4927         * lib/unictype/categ_L.h: Likewise.
4928         * lib/unictype/categ_Ll.h: Likewise.
4929         * lib/unictype/categ_Lm.h: Likewise.
4930         * lib/unictype/categ_Lo.h: Likewise.
4931         * lib/unictype/categ_Lu.h: Likewise.
4932         * lib/unictype/categ_M.h: Likewise.
4933         * lib/unictype/categ_Mc.h: Likewise.
4934         * lib/unictype/categ_Me.h: Likewise.
4935         * lib/unictype/categ_Mn.h: Likewise.
4936         * lib/unictype/categ_N.h: Likewise.
4937         * lib/unictype/categ_Nd.h: Likewise.
4938         * lib/unictype/categ_No.h: Likewise.
4939         * lib/unictype/categ_P.h: Likewise.
4940         * lib/unictype/categ_Po.h: Likewise.
4941         * lib/unictype/categ_S.h: Likewise.
4942         * lib/unictype/categ_Sc.h: Likewise.
4943         * lib/unictype/categ_Sk.h: Likewise.
4944         * lib/unictype/categ_Sm.h: Likewise.
4945         * lib/unictype/categ_So.h: Likewise.
4946         * lib/unictype/categ_of.h: Likewise.
4947         * lib/unictype/combining.h: Likewise.
4948         * lib/unictype/ctype_alnum.h: Likewise.
4949         * lib/unictype/ctype_alpha.h: Likewise.
4950         * lib/unictype/ctype_graph.h: Likewise.
4951         * lib/unictype/ctype_lower.h: Likewise.
4952         * lib/unictype/ctype_print.h: Likewise.
4953         * lib/unictype/ctype_punct.h: Likewise.
4954         * lib/unictype/ctype_upper.h: Likewise.
4955         * lib/unictype/decdigit.h: Likewise.
4956         * lib/unictype/digit.h: Likewise.
4957         * lib/unictype/numeric.h: Likewise.
4958         * lib/unictype/pr_alphabetic.h: Likewise.
4959         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4960         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4961         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4962         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4963         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4964         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4965         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4966         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4967         * lib/unictype/pr_case_ignorable.h: Likewise.
4968         * lib/unictype/pr_cased.h: Likewise.
4969         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4970         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4971         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4972         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4973         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4974         * lib/unictype/pr_combining.h: Likewise.
4975         * lib/unictype/pr_composite.h: Likewise.
4976         * lib/unictype/pr_currency_symbol.h: Likewise.
4977         * lib/unictype/pr_decimal_digit.h: Likewise.
4978         * lib/unictype/pr_deprecated.h: Likewise.
4979         * lib/unictype/pr_format_control.h: Likewise.
4980         * lib/unictype/pr_grapheme_base.h: Likewise.
4981         * lib/unictype/pr_grapheme_extend.h: Likewise.
4982         * lib/unictype/pr_grapheme_link.h: Likewise.
4983         * lib/unictype/pr_id_continue.h: Likewise.
4984         * lib/unictype/pr_id_start.h: Likewise.
4985         * lib/unictype/pr_ideographic.h: Likewise.
4986         * lib/unictype/pr_lowercase.h: Likewise.
4987         * lib/unictype/pr_math.h: Likewise.
4988         * lib/unictype/pr_numeric.h: Likewise.
4989         * lib/unictype/pr_other_alphabetic.h: Likewise.
4990         * lib/unictype/pr_other_id_continue.h: Likewise.
4991         * lib/unictype/pr_other_math.h: Likewise.
4992         * lib/unictype/pr_punctuation.h: Likewise.
4993         * lib/unictype/pr_sentence_terminal.h: Likewise.
4994         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4995         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4996         * lib/unictype/pr_unified_ideograph.h: Likewise.
4997         * lib/unictype/pr_uppercase.h: Likewise.
4998         * lib/unictype/pr_xid_continue.h: Likewise.
4999         * lib/unictype/pr_xid_start.h: Likewise.
5000         * lib/unictype/scripts.h: Likewise.
5001         * lib/unictype/scripts_byname.gperf: Likewise.
5002         * lib/unictype/sy_java_ident.h: Likewise.
5003         * lib/unigbrk/gbrkprop.h: Likewise.
5004         * lib/unilbrk/lbrkprop1.h: Likewise.
5005         * lib/unilbrk/lbrkprop2.h: Likewise.
5006         * lib/uninorm/decomposition-table2.h: Likewise.
5007         * lib/uniwbrk/wbrkprop.h: Likewise.
5008         * tests/unicase/test-cased.c: Likewise.
5009         * tests/unicase/test-ignorable.c: Likewise.
5010         * tests/unicase/test-uc_tolower.c: Likewise.
5011         * tests/unicase/test-uc_totitle.c: Likewise.
5012         * tests/unicase/test-uc_toupper.c: Likewise.
5013         * tests/unictype/test-categ_C.c: Likewise.
5014         * tests/unictype/test-categ_Cn.c: Likewise.
5015         * tests/unictype/test-categ_L.c: Likewise.
5016         * tests/unictype/test-categ_Ll.c: Likewise.
5017         * tests/unictype/test-categ_Lm.c: Likewise.
5018         * tests/unictype/test-categ_Lo.c: Likewise.
5019         * tests/unictype/test-categ_Lu.c: Likewise.
5020         * tests/unictype/test-categ_M.c: Likewise.
5021         * tests/unictype/test-categ_Mc.c: Likewise.
5022         * tests/unictype/test-categ_Me.c: Likewise.
5023         * tests/unictype/test-categ_Mn.c: Likewise.
5024         * tests/unictype/test-categ_N.c: Likewise.
5025         * tests/unictype/test-categ_Nd.c: Likewise.
5026         * tests/unictype/test-categ_No.c: Likewise.
5027         * tests/unictype/test-categ_P.c: Likewise.
5028         * tests/unictype/test-categ_Po.c: Likewise.
5029         * tests/unictype/test-categ_S.c: Likewise.
5030         * tests/unictype/test-categ_Sc.c: Likewise.
5031         * tests/unictype/test-categ_Sk.c: Likewise.
5032         * tests/unictype/test-categ_Sm.c: Likewise.
5033         * tests/unictype/test-categ_So.c: Likewise.
5034         * tests/unictype/test-ctype_alnum.c: Likewise.
5035         * tests/unictype/test-ctype_alpha.c: Likewise.
5036         * tests/unictype/test-ctype_graph.c: Likewise.
5037         * tests/unictype/test-ctype_lower.c: Likewise.
5038         * tests/unictype/test-ctype_print.c: Likewise.
5039         * tests/unictype/test-ctype_punct.c: Likewise.
5040         * tests/unictype/test-ctype_upper.c: Likewise.
5041         * tests/unictype/test-decdigit.h: Likewise.
5042         * tests/unictype/test-digit.h: Likewise.
5043         * tests/unictype/test-numeric.h: Likewise.
5044         * tests/unictype/test-pr_alphabetic.c: Likewise.
5045         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5046         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5047         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5048         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5049         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5050         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5051         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5052         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5053         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5054         * tests/unictype/test-pr_cased.c: Likewise.
5055         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5056         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5057         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5058         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5059         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5060         * tests/unictype/test-pr_combining.c: Likewise.
5061         * tests/unictype/test-pr_composite.c: Likewise.
5062         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5063         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5064         * tests/unictype/test-pr_deprecated.c: Likewise.
5065         * tests/unictype/test-pr_format_control.c: Likewise.
5066         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5067         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5068         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5069         * tests/unictype/test-pr_id_continue.c: Likewise.
5070         * tests/unictype/test-pr_id_start.c: Likewise.
5071         * tests/unictype/test-pr_ideographic.c: Likewise.
5072         * tests/unictype/test-pr_lowercase.c: Likewise.
5073         * tests/unictype/test-pr_math.c: Likewise.
5074         * tests/unictype/test-pr_numeric.c: Likewise.
5075         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5076         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5077         * tests/unictype/test-pr_other_math.c: Likewise.
5078         * tests/unictype/test-pr_punctuation.c: Likewise.
5079         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5080         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5081         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5082         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5083         * tests/unictype/test-pr_uppercase.c: Likewise.
5084         * tests/unictype/test-pr_xid_continue.c: Likewise.
5085         * tests/unictype/test-pr_xid_start.c: Likewise.
5086         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5087         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5088         changes.
5089         * lib/unictype/categ_Cc.h: Likewise.
5090         * lib/unictype/categ_Cf.h: Likewise.
5091         * lib/unictype/categ_Co.h: Likewise.
5092         * lib/unictype/categ_Cs.h: Likewise.
5093         * lib/unictype/categ_Lt.h: Likewise.
5094         * lib/unictype/categ_Nl.h: Likewise.
5095         * lib/unictype/categ_Pc.h: Likewise.
5096         * lib/unictype/categ_Pd.h: Likewise.
5097         * lib/unictype/categ_Pe.h: Likewise.
5098         * lib/unictype/categ_Pf.h: Likewise.
5099         * lib/unictype/categ_Pi.h: Likewise.
5100         * lib/unictype/categ_Ps.h: Likewise.
5101         * lib/unictype/categ_Z.h: Likewise.
5102         * lib/unictype/categ_Zl.h: Likewise.
5103         * lib/unictype/categ_Zp.h: Likewise.
5104         * lib/unictype/categ_Zs.h: Likewise.
5105         * lib/unictype/ctype_blank.h: Likewise.
5106         * lib/unictype/ctype_cntrl.h: Likewise.
5107         * lib/unictype/ctype_digit.h: Likewise.
5108         * lib/unictype/ctype_space.h: Likewise.
5109         * lib/unictype/ctype_xdigit.h: Likewise.
5110         * lib/unictype/mirror.h: Likewise.
5111         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5112         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5113         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5114         * lib/unictype/pr_bidi_control.h: Likewise.
5115         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5116         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5117         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5118         * lib/unictype/pr_bidi_pdf.h: Likewise.
5119         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5120         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5121         * lib/unictype/pr_dash.h: Likewise.
5122         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5123         * lib/unictype/pr_diacritic.h: Likewise.
5124         * lib/unictype/pr_extender.h: Likewise.
5125         * lib/unictype/pr_hex_digit.h: Likewise.
5126         * lib/unictype/pr_hyphen.h: Likewise.
5127         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5128         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5129         * lib/unictype/pr_ignorable_control.h: Likewise.
5130         * lib/unictype/pr_iso_control.h: Likewise.
5131         * lib/unictype/pr_join_control.h: Likewise.
5132         * lib/unictype/pr_left_of_pair.h: Likewise.
5133         * lib/unictype/pr_line_separator.h: Likewise.
5134         * lib/unictype/pr_logical_order_exception.h: Likewise.
5135         * lib/unictype/pr_non_break.h: Likewise.
5136         * lib/unictype/pr_not_a_character.h: Likewise.
5137         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5138         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5139         * lib/unictype/pr_other_id_start.h: Likewise.
5140         * lib/unictype/pr_other_lowercase.h: Likewise.
5141         * lib/unictype/pr_other_uppercase.h: Likewise.
5142         * lib/unictype/pr_paired_punctuation.h: Likewise.
5143         * lib/unictype/pr_paragraph_separator.h: Likewise.
5144         * lib/unictype/pr_pattern_syntax.h: Likewise.
5145         * lib/unictype/pr_pattern_white_space.h: Likewise.
5146         * lib/unictype/pr_private_use.h: Likewise.
5147         * lib/unictype/pr_quotation_mark.h: Likewise.
5148         * lib/unictype/pr_radical.h: Likewise.
5149         * lib/unictype/pr_soft_dotted.h: Likewise.
5150         * lib/unictype/pr_space.h: Likewise.
5151         * lib/unictype/pr_titlecase.h: Likewise.
5152         * lib/unictype/pr_variation_selector.h: Likewise.
5153         * lib/unictype/pr_white_space.h: Likewise.
5154         * lib/unictype/pr_zero_width.h: Likewise.
5155         * lib/unictype/sy_c_ident.h: Likewise.
5156         * lib/unictype/sy_c_whitespace.h: Likewise.
5157         * lib/unictype/sy_java_whitespace.h: Likewise.
5158         * lib/uninorm/composition-table.gperf: Likewise.
5159         * lib/uninorm/decomposition-table1.h: Likewise.
5160         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5161         LB8.
5162         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5163         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5164         * modules/unictype/*: Bump version number of expected libunistring
5165         version.
5166
5167 2011-01-09  Bruno Haible  <bruno@clisp.org>
5168
5169         Update to Unicode 5.2.0.
5170         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5171         trailing whitespace removed.
5172
5173 2011-01-09  Bruno Haible  <bruno@clisp.org>
5174
5175         New Unicode character properties, from Unicode 5.2.0.
5176         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5177         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5178         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5179         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5180         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5181         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5182         uc_is_property_cased, uc_is_property_case_ignorable,
5183         uc_is_property_changes_when_lowercased,
5184         uc_is_property_changes_when_uppercased,
5185         uc_is_property_changes_when_titlecased,
5186         uc_is_property_changes_when_casefolded,
5187         uc_is_property_changes_when_casemapped): New declarations.
5188         * lib/unictype/pr_byname.gperf: Add the new properties.
5189         * modules/unictype/property-byname (Depends-on): Depend on the new
5190         properties modules.
5191         * modules/unictype/property-all (Depends-on): Likewise.
5192         * MODULES.html.sh (Unicode string functions): Add
5193         unictype/property-case-ignorable, unictype/property-cased,
5194         unictype/property-changes-when-casefolded,
5195         unictype/property-changes-when-casemapped,
5196         unictype/property-changes-when-lowercased,
5197         unictype/property-changes-when-titlecased,
5198         unictype/property-changes-when-uppercased.
5199
5200         New module 'unictype/property-changes-when-casemapped'.
5201         * modules/unictype/property-changes-when-casemapped: New file.
5202         * lib/unictype/pr_changes_when_casemapped.c: New file.
5203         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5204         generated by gen-uni-tables.
5205         * modules/unictype/property-changes-when-casemapped-tests: New file.
5206         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5207         automatically generated by gen-uni-tables.
5208
5209         New module 'unictype/property-changes-when-casefolded'.
5210         * modules/unictype/property-changes-when-casefolded: New file.
5211         * lib/unictype/pr_changes_when_casefolded.c: New file.
5212         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5213         generated by gen-uni-tables.
5214         * modules/unictype/property-changes-when-casefolded-tests: New file.
5215         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5216         automatically generated by gen-uni-tables.
5217
5218         New module 'unictype/property-changes-when-titlecased'.
5219         * modules/unictype/property-changes-when-titlecased: New file.
5220         * lib/unictype/pr_changes_when_titlecased.c: New file.
5221         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5222         generated by gen-uni-tables.
5223         * modules/unictype/property-changes-when-titlecased-tests: New file.
5224         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5225         automatically generated by gen-uni-tables.
5226
5227         New module 'unictype/property-changes-when-uppercased'.
5228         * modules/unictype/property-changes-when-uppercased: New file.
5229         * lib/unictype/pr_changes_when_uppercased.c: New file.
5230         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5231         generated by gen-uni-tables.
5232         * modules/unictype/property-changes-when-uppercased-tests: New file.
5233         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5234         automatically generated by gen-uni-tables.
5235
5236         New module 'unictype/property-changes-when-lowercased'.
5237         * modules/unictype/property-changes-when-lowercased: New file.
5238         * lib/unictype/pr_changes_when_lowercased.c: New file.
5239         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5240         generated by gen-uni-tables.
5241         * modules/unictype/property-changes-when-lowercased-tests: New file.
5242         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5243         automatically generated by gen-uni-tables.
5244
5245         New module 'unictype/property-case-ignorable'.
5246         * modules/unictype/property-case-ignorable: New file.
5247         * lib/unictype/pr_case_ignorable.c: New file.
5248         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5249         by gen-uni-tables.
5250         * modules/unictype/property-case-ignorable-tests: New file.
5251         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5252         generated by gen-uni-tables.
5253
5254         New module 'unictype/property-cased'.
5255         * modules/unictype/property-cased: New file.
5256         * lib/unictype/pr_cased.c: New file.
5257         * lib/unictype/pr_cased.h: New file, automatically generated by
5258         gen-uni-tables.
5259         * modules/unictype/property-cased-tests: New file.
5260         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5261         gen-uni-tables.
5262
5263 2011-01-09  Bruno Haible  <bruno@clisp.org>
5264
5265         Update to Unicode 5.2.0.
5266         * lib/gen-uni-tables.c (output_predicate, output_category,
5267         output_combclass, output_bidi_category, output_decimal_digit_test,
5268         output_decimal_digit, output_digit_test, output_digit,
5269         output_numeric_test, output_numeric, output_mirror, output_scripts,
5270         output_scripts_byname, output_blocks, output_ident_category): Fix
5271         comment header.
5272         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5273         get_wbp.
5274         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5275         items.
5276         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5277         Changes_When_Lowercased, Changes_When_Uppercased,
5278         Changes_When_Titlecased, Changes_When_Casefolded,
5279         Changes_When_Casemapped.
5280         (is_property_alphabetic, is_property_default_ignorable_code_point):
5281         Update for Unicode 5.2.0.
5282         (is_property_cased, is_property_case_ignorable,
5283         is_property_changes_when_lowercased,
5284         is_property_changes_when_uppercased,
5285         is_property_changes_when_titlecased,
5286         is_property_changes_when_casefolded,
5287         is_property_changes_when_casemapped): New functions.
5288         (output_properties): Output also the properties cased, case_ignorable,
5289         changes_when_lowercased, changes_when_uppercased,
5290         changes_when_titlecased, changes_when_casefolded,
5291         changes_when_casemapped.
5292         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5293         Unicode TR#11 revision 17 -> 19.
5294         (LBP_CP): New enumeration value.
5295         (LBP_*): Adjust values accordingly.
5296         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5297         TR#14 revision 22 -> 24.
5298         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5299         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5300         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5301         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5302         is_WBP_MIDLETTER.
5303         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5304         the code1 and code2 of each composition rule.
5305         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5306         * lib/unicase/ignorable.h: Likewise.
5307         * lib/unicase/tocasefold.h: Likewise.
5308         * lib/unicase/tolower.h: Likewise.
5309         * lib/unicase/totitle.h: Likewise.
5310         * lib/unicase/toupper.h: Likewise.
5311         * lib/unictype/bidi_of.h: Likewise.
5312         * lib/unictype/blocks.h: Likewise.
5313         * lib/unictype/categ_C.h: Likewise.
5314         * lib/unictype/categ_Cf.h: Likewise.
5315         * lib/unictype/categ_Cn.h: Likewise.
5316         * lib/unictype/categ_L.h: Likewise.
5317         * lib/unictype/categ_Ll.h: Likewise.
5318         * lib/unictype/categ_Lm.h: Likewise.
5319         * lib/unictype/categ_Lo.h: Likewise.
5320         * lib/unictype/categ_Lu.h: Likewise.
5321         * lib/unictype/categ_M.h: Likewise.
5322         * lib/unictype/categ_Mc.h: Likewise.
5323         * lib/unictype/categ_Mn.h: Likewise.
5324         * lib/unictype/categ_N.h: Likewise.
5325         * lib/unictype/categ_Nd.h: Likewise.
5326         * lib/unictype/categ_Nl.h: Likewise.
5327         * lib/unictype/categ_No.h: Likewise.
5328         * lib/unictype/categ_P.h: Likewise.
5329         * lib/unictype/categ_Pd.h: Likewise.
5330         * lib/unictype/categ_Po.h: Likewise.
5331         * lib/unictype/categ_S.h: Likewise.
5332         * lib/unictype/categ_Sc.h: Likewise.
5333         * lib/unictype/categ_So.h: Likewise.
5334         * lib/unictype/categ_of.h: Likewise.
5335         * lib/unictype/combining.h: Likewise.
5336         * lib/unictype/ctype_alnum.h: Likewise.
5337         * lib/unictype/ctype_alpha.h: Likewise.
5338         * lib/unictype/ctype_graph.h: Likewise.
5339         * lib/unictype/ctype_lower.h: Likewise.
5340         * lib/unictype/ctype_print.h: Likewise.
5341         * lib/unictype/ctype_punct.h: Likewise.
5342         * lib/unictype/ctype_upper.h: Likewise.
5343         * lib/unictype/decdigit.h: Likewise.
5344         * lib/unictype/digit.h: Likewise.
5345         * lib/unictype/numeric.h: Likewise.
5346         * lib/unictype/pr_alphabetic.h: Likewise.
5347         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5348         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5349         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5350         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5351         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5352         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5353         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5354         * lib/unictype/pr_combining.h: Likewise.
5355         * lib/unictype/pr_composite.h: Likewise.
5356         * lib/unictype/pr_currency_symbol.h: Likewise.
5357         * lib/unictype/pr_dash.h: Likewise.
5358         * lib/unictype/pr_decimal_digit.h: Likewise.
5359         * lib/unictype/pr_deprecated.h: Likewise.
5360         * lib/unictype/pr_diacritic.h: Likewise.
5361         * lib/unictype/pr_extender.h: Likewise.
5362         * lib/unictype/pr_grapheme_base.h: Likewise.
5363         * lib/unictype/pr_grapheme_extend.h: Likewise.
5364         * lib/unictype/pr_grapheme_link.h: Likewise.
5365         * lib/unictype/pr_id_continue.h: Likewise.
5366         * lib/unictype/pr_id_start.h: Likewise.
5367         * lib/unictype/pr_ideographic.h: Likewise.
5368         * lib/unictype/pr_ignorable_control.h: Likewise.
5369         * lib/unictype/pr_logical_order_exception.h: Likewise.
5370         * lib/unictype/pr_lowercase.h: Likewise.
5371         * lib/unictype/pr_numeric.h: Likewise.
5372         * lib/unictype/pr_other_alphabetic.h: Likewise.
5373         * lib/unictype/pr_punctuation.h: Likewise.
5374         * lib/unictype/pr_sentence_terminal.h: Likewise.
5375         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5376         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5377         * lib/unictype/pr_unified_ideograph.h: Likewise.
5378         * lib/unictype/pr_uppercase.h: Likewise.
5379         * lib/unictype/pr_xid_continue.h: Likewise.
5380         * lib/unictype/pr_xid_start.h: Likewise.
5381         * lib/unictype/pr_zero_width.h: Likewise.
5382         * lib/unictype/scripts.h: Likewise.
5383         * lib/unictype/scripts_byname.gperf: Likewise.
5384         * lib/unictype/sy_java_ident.h: Likewise.
5385         * lib/unigbrk/gbrkprop.h: Likewise.
5386         * lib/unilbrk/lbrkprop1.h: Likewise.
5387         * lib/unilbrk/lbrkprop2.h: Likewise.
5388         * lib/unilbrk/lbrktables.h: Likewise.
5389         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5390         LBP_CP. Implement rule LB30.
5391         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5392         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5393         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5394         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5395         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5396         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5397         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5398         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5399         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5400         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5401         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5402         bits instead of 16 bits in the code1 and code2 of each composition
5403         rule.
5404         (uc_composition): Update for Unicode 5.2.0.
5405         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5406         * lib/uninorm/decomposition-table2.h: Likewise.
5407         * lib/uniwbrk/wbrkprop.h: Likewise.
5408         * tests/unicase/test-cased.c: Likewise.
5409         * tests/unicase/test-ignorable.c: Likewise.
5410         * tests/unicase/test-uc_tolower.c: Likewise.
5411         * tests/unicase/test-uc_totitle.c: Likewise.
5412         * tests/unicase/test-uc_toupper.c: Likewise.
5413         * tests/unictype/test-categ_C.c: Likewise.
5414         * tests/unictype/test-categ_Cf.c: Likewise.
5415         * tests/unictype/test-categ_Cn.c: Likewise.
5416         * tests/unictype/test-categ_L.c: Likewise.
5417         * tests/unictype/test-categ_Ll.c: Likewise.
5418         * tests/unictype/test-categ_Lm.c: Likewise.
5419         * tests/unictype/test-categ_Lo.c: Likewise.
5420         * tests/unictype/test-categ_Lu.c: Likewise.
5421         * tests/unictype/test-categ_M.c: Likewise.
5422         * tests/unictype/test-categ_Mc.c: Likewise.
5423         * tests/unictype/test-categ_Mn.c: Likewise.
5424         * tests/unictype/test-categ_N.c: Likewise.
5425         * tests/unictype/test-categ_Nd.c: Likewise.
5426         * tests/unictype/test-categ_Nl.c: Likewise.
5427         * tests/unictype/test-categ_No.c: Likewise.
5428         * tests/unictype/test-categ_P.c: Likewise.
5429         * tests/unictype/test-categ_Pd.c: Likewise.
5430         * tests/unictype/test-categ_Po.c: Likewise.
5431         * tests/unictype/test-categ_S.c: Likewise.
5432         * tests/unictype/test-categ_Sc.c: Likewise.
5433         * tests/unictype/test-categ_So.c: Likewise.
5434         * tests/unictype/test-ctype_alnum.c: Likewise.
5435         * tests/unictype/test-ctype_alpha.c: Likewise.
5436         * tests/unictype/test-ctype_graph.c: Likewise.
5437         * tests/unictype/test-ctype_lower.c: Likewise.
5438         * tests/unictype/test-ctype_print.c: Likewise.
5439         * tests/unictype/test-ctype_punct.c: Likewise.
5440         * tests/unictype/test-ctype_upper.c: Likewise.
5441         * tests/unictype/test-decdigit.h: Likewise.
5442         * tests/unictype/test-digit.h: Likewise.
5443         * tests/unictype/test-numeric.h: Likewise.
5444         * tests/unictype/test-pr_alphabetic.c: Likewise.
5445         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5446         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5447         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5448         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5449         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5450         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5451         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5452         * tests/unictype/test-pr_combining.c: Likewise.
5453         * tests/unictype/test-pr_composite.c: Likewise.
5454         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5455         * tests/unictype/test-pr_dash.c: Likewise.
5456         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5457         * tests/unictype/test-pr_deprecated.c: Likewise.
5458         * tests/unictype/test-pr_diacritic.c: Likewise.
5459         * tests/unictype/test-pr_extender.c: Likewise.
5460         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5461         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5462         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5463         * tests/unictype/test-pr_id_continue.c: Likewise.
5464         * tests/unictype/test-pr_id_start.c: Likewise.
5465         * tests/unictype/test-pr_ideographic.c: Likewise.
5466         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5467         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5468         * tests/unictype/test-pr_lowercase.c: Likewise.
5469         * tests/unictype/test-pr_numeric.c: Likewise.
5470         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5471         * tests/unictype/test-pr_punctuation.c: Likewise.
5472         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5473         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5474         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5475         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5476         * tests/unictype/test-pr_uppercase.c: Likewise.
5477         * tests/unictype/test-pr_xid_continue.c: Likewise.
5478         * tests/unictype/test-pr_xid_start.c: Likewise.
5479         * tests/unictype/test-pr_zero_width.c: Likewise.
5480         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5481         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5482         changed behaviour: line breaking is now disallowed between a letter
5483         or '=' and '('.
5484         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5485         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5486         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5487         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5488         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5489         lib/uniwidth/width.c.
5490         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5491         without comments, but with the original copyright notice.
5492         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5493         changes.
5494         * lib/unictype/categ_Cc.h: Likewise.
5495         * lib/unictype/categ_Co.h: Likewise.
5496         * lib/unictype/categ_Cs.h: Likewise.
5497         * lib/unictype/categ_Lt.h: Likewise.
5498         * lib/unictype/categ_Me.h: Likewise.
5499         * lib/unictype/categ_Pc.h: Likewise.
5500         * lib/unictype/categ_Pe.h: Likewise.
5501         * lib/unictype/categ_Pf.h: Likewise.
5502         * lib/unictype/categ_Pi.h: Likewise.
5503         * lib/unictype/categ_Ps.h: Likewise.
5504         * lib/unictype/categ_Sk.h: Likewise.
5505         * lib/unictype/categ_Sm.h: Likewise.
5506         * lib/unictype/categ_Z.h: Likewise.
5507         * lib/unictype/categ_Zl.h: Likewise.
5508         * lib/unictype/categ_Zp.h: Likewise.
5509         * lib/unictype/categ_Zs.h: Likewise.
5510         * lib/unictype/ctype_blank.h: Likewise.
5511         * lib/unictype/ctype_cntrl.h: Likewise.
5512         * lib/unictype/ctype_digit.h: Likewise.
5513         * lib/unictype/ctype_space.h: Likewise.
5514         * lib/unictype/ctype_xdigit.h: Likewise.
5515         * lib/unictype/mirror.h: Likewise.
5516         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5518         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5519         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5520         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5521         * lib/unictype/pr_bidi_control.h: Likewise.
5522         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5523         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5524         * lib/unictype/pr_bidi_pdf.h: Likewise.
5525         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5526         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5527         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5528         * lib/unictype/pr_format_control.h: Likewise.
5529         * lib/unictype/pr_hex_digit.h: Likewise.
5530         * lib/unictype/pr_hyphen.h: Likewise.
5531         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5532         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5533         * lib/unictype/pr_iso_control.h: Likewise.
5534         * lib/unictype/pr_join_control.h: Likewise.
5535         * lib/unictype/pr_left_of_pair.h: Likewise.
5536         * lib/unictype/pr_line_separator.h: Likewise.
5537         * lib/unictype/pr_math.h: Likewise.
5538         * lib/unictype/pr_non_break.h: Likewise.
5539         * lib/unictype/pr_not_a_character.h: Likewise.
5540         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5541         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5542         * lib/unictype/pr_other_id_continue.h: Likewise.
5543         * lib/unictype/pr_other_id_start.h: Likewise.
5544         * lib/unictype/pr_other_lowercase.h: Likewise.
5545         * lib/unictype/pr_other_math.h: Likewise.
5546         * lib/unictype/pr_other_uppercase.h: Likewise.
5547         * lib/unictype/pr_paired_punctuation.h: Likewise.
5548         * lib/unictype/pr_paragraph_separator.h: Likewise.
5549         * lib/unictype/pr_pattern_syntax.h: Likewise.
5550         * lib/unictype/pr_pattern_white_space.h: Likewise.
5551         * lib/unictype/pr_private_use.h: Likewise.
5552         * lib/unictype/pr_quotation_mark.h: Likewise.
5553         * lib/unictype/pr_radical.h: Likewise.
5554         * lib/unictype/pr_soft_dotted.h: Likewise.
5555         * lib/unictype/pr_space.h: Likewise.
5556         * lib/unictype/pr_titlecase.h: Likewise.
5557         * lib/unictype/pr_variation_selector.h: Likewise.
5558         * lib/unictype/pr_white_space.h: Likewise.
5559         * lib/unictype/sy_c_ident.h: Likewise.
5560         * lib/unictype/sy_c_whitespace.h: Likewise.
5561         * lib/unictype/sy_java_whitespace.h: Likewise.
5562         * modules/uni*/*: Bump version number of expected libunistring version.
5563         Reported by Simon Josefsson.
5564
5565 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5566
5567         useless-if-before-free: fix typo in --help and make the internal,
5568         automatic version date update process work once again.
5569         --help output contained a NUL character instead of the
5570         backslash-zero that was intended.  Also, the "must lie within
5571         the first 8 lines" line is on line 9, and hence not getting
5572         automatically updated.
5573         * build-aux/useless-if-before-free: Fix the former by adding a
5574         backslash, and the latter by condensing the three lines of what-it-does
5575         to a single line, leaving one line of slack for the future.
5576
5577 2011-01-09  Bruno Haible  <bruno@clisp.org>
5578
5579         uniwidth/width: Fix width of U+1D173..U+1D17A.
5580         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5581         symbolic_width, output_width_property_test): New functions.
5582         (main): Invoke output_nonspacing_property, output_width_property_test.
5583         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5584         U+1D173..U+1D17A.
5585         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5586         1.
5587         * modules/uniwidth/*: Bump version number of expected libunistring
5588         version.
5589         * modules/unilbrk/*: Likewise.
5590
5591 2011-01-08  Bruno Haible  <bruno@clisp.org>
5592
5593         uninorm tests: Preserve copyright of Unicode data file.
5594         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5595         Mention modifications.
5596
5597 2011-01-08  Bruno Haible  <bruno@clisp.org>
5598
5599         gen-uni-tables: Prepare for Unicode 5.2.0.
5600         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5601         (debug_output_lbp, output_lbp): Update.
5602
5603 2011-01-08  Bruno Haible  <bruno@clisp.org>
5604
5605         unilbrk: Clarify gen-uni-tables.c code.
5606         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5607         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5608         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5609
5610 2011-01-07  Bruno Haible  <bruno@clisp.org>
5611
5612         strtod: Restore errno when successfully parsing Infinity or NaN.
5613         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5614         restore the original errno.
5615
5616 2011-01-07  Bruno Haible  <bruno@clisp.org>
5617
5618         remove test: Avoid failure on HP-UX 11.
5619         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5620
5621 2011-01-07  Bruno Haible  <bruno@clisp.org>
5622
5623         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5624         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5625         error code.
5626
5627 2011-01-07  Pádraig Brady <P@draigBrady.com>
5628
5629         ignore-value: fixup comments, and add Eric Blake
5630         as an author since he rewrote the macros.
5631         * lib/ignore-value.h (ignore_value):  State that
5632         we now support aggregates.  Also specify exactly
5633         when the GCC warn_unused_result feature was added.
5634
5635 2011-01-06  Eric Blake  <eblake@redhat.com>
5636
5637         ignore-value: support aggregate types
5638         * lib/ignore-value.h (ignore_value): Provide separate gcc
5639         definition.
5640         * modules/ignore-value-tests: New test module.
5641         * tests/test-ignore-value.c: New test.
5642
5643         maint.mk: improve sc_prohibit_strcmp regex
5644         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5645         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5646         definition of STRNEQ.
5647
5648         signal: work around Haiku issue with SIGBUS
5649         * lib/siglist.h: Add comment.
5650         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5651         strsignal's favoring of SIGSEGV.
5652         * tests/test-signal.c (main): Avoid test failure.
5653         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5654         Reported by Scott McCreary.
5655
5656         maint.mk: add pre-release check to ensure submodule commits are public
5657         * top/maint.mk (public-submodule-commit): New rule.
5658         (submodule-checks): New variable.
5659         (alpha beta stable): Depend on the variable.
5660
5661 2011-01-05  Pádraig Brady <P@draigBrady.com>
5662         and Jim Meyering  <meyering@redhat.com>
5663
5664         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5665         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5666         (ATTRIBUTE_DEPRECATED): Define.
5667         (_ignore_case): New function.
5668         (ignore_value): New macro, to replace the old function.
5669         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5670         * modules/ignore-value (Depends-on): Add stdint.
5671
5672 2011-01-04  Eric Blake  <eblake@redhat.com>
5673
5674         doc: regenerate INSTALL
5675         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5676         @firstparagraphindent support, now that autoconf dropped it.
5677         (INSTALL_PRELUDE): Reinstate old macro.
5678         * doc/install.texi: Resync from autoconf.
5679         * doc/INSTALL: Reflect recent autoconf update.
5680         * doc/INSTALL.ISO: Likewise.
5681         * doc/INSTALL.UTF-8: Likewise.
5682         Reported by Karl Berry.
5683
5684 2011-01-04  Bruce Korb  <address@hidden>
5685
5686         git-version-gen: avoid a sub-shell
5687         * build-aux/git-version-gen: Redirect stderr in `...` via
5688         "exec 2>...", rather than via an added sub-shell.
5689
5690 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5691
5692         git-version-gen: use (...) rather than sh -c '...'
5693         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5694         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5695
5696 2011-01-03  Jim Meyering  <meyering@redhat.com>
5697
5698         git-version-gen: convert leading TABs to spaces
5699         * build-aux/git-version-gen: Expand leading TABs.
5700
5701         git-version-gen: handle failed "git rev-list"
5702         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5703         from git and proceeding as if it had succeeded but printed no SHA1
5704         checksums, suppress the diagnostic and handle the failure.
5705         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5706
5707         git-version-gen: include command name in one more diagnostic
5708         * build-aux/git-version-gen: When the required .tarball-version file
5709         was missing or unreadable, you might see the diagnostic from "cat",
5710         but no trace of the name of the invoking script.  Now, you still see
5711         the diagnostic from cat, but also get one from "git-version-gen: ".
5712         Inspired by a patch from Bruce Korb.
5713
5714         update-copyright: adjust test to match changed code
5715         * tests/test-update-copyright.sh: Change test's expected output
5716         to match new actual output.
5717
5718 2011-01-02  Bruno Haible  <bruno@clisp.org>
5719
5720         getlogin_r: Avoid test failure on HP-UX 11.
5721         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5722         ERANGE when the second argument is zero.
5723         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5724         portability problem.
5725
5726 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5727
5728         * build-aux/update-copyright: doc Simon's changes
5729
5730 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5731
5732         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5733         environment variable.
5734
5735 2011-01-02  Bruno Haible  <bruno@clisp.org>
5736
5737         unigbrk: Avoid gcc warnings.
5738         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5739         unused variable.
5740         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5741         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5742         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5743         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5744         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5745         Change type of first argument to 'const char *'.
5746         (main): Remove unused variable.
5747         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5748         type of first argument to 'const char *'.
5749         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5750         Likewise.
5751         (main): Change type of variable 's'.
5752         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5753         to 'int'.
5754
5755 2011-01-02  Bruno Haible  <bruno@clisp.org>
5756
5757         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5758         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5759         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5760         bug.
5761         * lib/pwrite.c: Undo 2010-12-31 patch.
5762         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5763
5764 2011-01-02  Bruno Haible  <bruno@clisp.org>
5765
5766         pread: Fix test whether it works.
5767         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5768
5769 2011-01-02  Bruno Haible  <bruno@clisp.org>
5770
5771         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5772         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5773         ends in "6". Don't require a specific month name. Try also the locale
5774         names found on HP-UX 11 and Solaris 7.
5775
5776 2011-01-02  Bruno Haible  <bruno@clisp.org>
5777
5778         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5779         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5780         C linkage.
5781         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5782
5783 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5784
5785         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5786         for consistency, since the "cluster" term is not used elsewhere.
5787         * lib/unigbrk.in.h: Update name.
5788         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5789         * lib/unigbrk/u16-grapheme-next.c: Update name.
5790         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5791         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5792         * lib/unigbrk/u32-grapheme-next.c: Update name.
5793         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5794         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5795         * lib/unigbrk/u8-grapheme-next.c: Update name.
5796         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5797         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5798         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5799         Suggested by Bruno Haible.
5800
5801 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5802
5803         Remove module 'u8-grapheme-len' as too redundant with
5804         'u8-grapheme-next'.
5805         * modules/unigbrk/u8-grapheme-len: Delete file.
5806         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5807         * lib/unigbrk.in.h: Remove prototype for deleted function.
5808         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5809         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5810
5811         Remove module 'u16-grapheme-len' as too redundant with
5812         'u16-grapheme-next'.
5813         * modules/unigbrk/u16-grapheme-len: Delete file.
5814         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5815         * lib/unigbrk.in.h: Remove prototype for deleted function.
5816         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5817         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5818
5819         Remove module 'u32-grapheme-len' as too redundant with
5820         'u32-grapheme-next'.
5821         * modules/unigbrk/u32-grapheme-len: Delete file.
5822         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5823         * lib/unigbrk.in.h: Remove prototype for deleted function.
5824         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5825         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5826
5827         Suggested by Bruno Haible.
5828
5829 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5830
5831         * unigbrk.in.h: Fix typo: "ben" => "been".
5832         Reported by Bruno Haible.
5833
5834 2011-01-01  Jim Meyering  <meyering@redhat.com>
5835
5836         maint: update almost all copyright ranges to include 2011
5837         Run the new "make update-copyright" rule.
5838
5839 2011-01-01  Jim Meyering  <meyering@redhat.com>
5840
5841         maint: update-copyright: exempt doc/INSTALL*
5842         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5843         since they are generated.  Suggested by Bruno Haible.
5844
5845 2011-01-01  Jim Meyering  <meyering@redhat.com>
5846
5847         maint: refine the update-copyright rule
5848         * Makefile (update-copyright): Also exclude any file that includes
5849         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5850         code that merely generates the comment.
5851
5852 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5853
5854         New module 'u8-grapheme-len'.
5855         * modules/unigbrk/u8-grapheme-len: New file.
5856         * modules/unigbrk/u8-grapheme-len-tests: New file.
5857         * lib/unigbrk.in.h: Add prototype for new function.
5858         * lib/unigbrk/u8-grapheme-len.c: New file.
5859         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5860
5861         New module 'u16-grapheme-len'.
5862         * modules/unigbrk/u16-grapheme-len: New file.
5863         * modules/unigbrk/u16-grapheme-len-tests: New file.
5864         * lib/unigbrk.in.h: Add prototype for new function.
5865         * lib/unigbrk/u16-grapheme-len.c: New file.
5866         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5867
5868         New module 'u32-grapheme-len'.
5869         * modules/unigbrk/u32-grapheme-len: New file.
5870         * modules/unigbrk/u32-grapheme-len-tests: New file.
5871         * lib/unigbrk.in.h: Add prototype for new function.
5872         * lib/unigbrk/u32-grapheme-len.c: New file.
5873         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5874
5875         New module 'u8-grapheme-next'.
5876         * modules/unigbrk/u8-grapheme-next: New file.
5877         * modules/unigbrk/u8-grapheme-next-tests: New file.
5878         * lib/unigbrk.in.h: Add prototype for new function.
5879         * lib/unigbrk/u8-grapheme-next.c: New file.
5880         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5881
5882         New module 'u16-grapheme-next'.
5883         * modules/unigbrk/u16-grapheme-next: New file.
5884         * modules/unigbrk/u16-grapheme-next-tests: New file.
5885         * lib/unigbrk.in.h: Add prototype for new function.
5886         * lib/unigbrk/u16-grapheme-next.c: New file.
5887         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5888
5889         New module 'u32-grapheme-next'.
5890         * modules/unigbrk/u32-grapheme-next: New file.
5891         * modules/unigbrk/u32-grapheme-next-tests: New file.
5892         * lib/unigbrk.in.h: Add prototype for new function.
5893         * lib/unigbrk/u32-grapheme-next.c: New file.
5894         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5895
5896         New module 'u8-grapheme-prev'.
5897         * modules/unigbrk/u8-grapheme-prev: New file.
5898         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5899         * lib/unigbrk.in.h: Add prototype for new function.
5900         * lib/unigbrk/u8-grapheme-prev.c: New file.
5901         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5902
5903         New module 'u16-grapheme-prev'.
5904         * modules/unigbrk/u16-grapheme-prev: New file.
5905         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5906         * lib/unigbrk.in.h: Add prototype for new function.
5907         * lib/unigbrk/u16-grapheme-prev.c: New file.
5908         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5909
5910         New module 'u32-grapheme-prev'.
5911         * modules/unigbrk/u32-grapheme-prev: New file.
5912         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5913         * lib/unigbrk.in.h: Add prototype for new function.
5914         * lib/unigbrk/u32-grapheme-prev.c: New file.
5915         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5916
5917         New module 'u8-grapheme-breaks'.
5918         * modules/unigbrk/u8-grapheme-breaks: New file.
5919         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5920         * lib/unigbrk.in.h: Add prototype for new function.
5921         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5922         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5923
5924         New module 'u16-grapheme-breaks'.
5925         * modules/unigbrk/u16-grapheme-breaks: New file.
5926         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5927         * lib/unigbrk.in.h: Add prototype for new function.
5928         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5929         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5930
5931         New module 'u32-grapheme-breaks'.
5932         * modules/unigbrk/u32-grapheme-breaks: New file.
5933         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5934         * lib/unigbrk.in.h: Add prototype for new function.
5935         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5936         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5937
5938         New module 'ulc-grapheme-breaks'.
5939         * modules/unigbrk/ulc-grapheme-breaks: New file.
5940         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5941         * m4/locale-ar.m4: New file.
5942         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5943         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5944         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5945
5946 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5947
5948         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5949         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5950         modified how this file was generated before I initially submitted
5951         the module, but failed to regenerate it.  This meant that several
5952         of the level2 entries were wrong.
5953         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5954         Remove the division-by-2 that is folded into the table now that
5955         gbrkprop.h has been regenerated properly.  Now -1 entries are
5956         handled correctly.
5957
5958         New module 'unigbrk/uc-gbrk-prop-tests'.
5959         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5960         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5961         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5962         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5963
5964 2011-01-01  Bruno Haible  <bruno@clisp.org>
5965
5966         Avoid use of hexadecimal escapes.
5967         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5968         instead of hexadecimal escapes.
5969
5970 2011-01-01  Jim Meyering  <meyering@redhat.com>
5971
5972         maint: new rule to update copyright year ranges
5973         * Makefile (update-copyright): New rule.
5974
5975         maint: indent with TABs in Makefile
5976         * Makefile: Expand leading sequences of spaces to TABs
5977
5978         version-etc: update the copyright year it reports
5979         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5980
5981 2010-12-31  Bruno Haible  <bruno@clisp.org>
5982
5983         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5984         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5985         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5986         zero.
5987
5988 2010-12-31  Bruno Haible  <bruno@clisp.org>
5989
5990         pwrite: Work around HP-UX 11.11 bug.
5991         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5992         works and set REPLACE_PWRITE if not.
5993         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5994         function.
5995         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5996
5997 2010-12-31  Bruno Haible  <bruno@clisp.org>
5998
5999         pread: Work around HP-UX 11 bugs.
6000         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6001         and set REPLACE_PREAD if not.
6002         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6003
6004 2010-12-31  Eric Blake  <eblake@redhat.com>
6005
6006         nl_langinfo: fix YESEXPR on Irix 6.5
6007         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6008         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6009         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6010         it.
6011
6012 2010-12-31  Bruno Haible  <bruno@clisp.org>
6013
6014         iconv: Document HP-UX 11 bug.
6015         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6016
6017 2010-12-31  Bruno Haible  <bruno@clisp.org>
6018
6019         ldexpl: Fix link error on HP-UX 11.
6020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6021         LDEXPL_LIBM, using $ISNANL_LIBM.
6022
6023 2010-12-31  Eric Blake  <eblake@redhat.com>
6024
6025         ftello: avoid compilation failure with SunStudio c89
6026         * lib/ftello.c (ftello): Use lseek, not llseek.
6027
6028         tests: avoid failing coreutils tests on cygwin
6029         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6030         (create_exe_shims_): Return 0 when skipping.
6031
6032 2010-12-31  Bruno Haible  <bruno@clisp.org>
6033
6034         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6035         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6036
6037 2010-12-31  Bruno Haible  <bruno@clisp.org>
6038
6039         waitpid: Fix link error in C++ mode.
6040         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6041
6042 2010-12-31  Bruno Haible  <bruno@clisp.org>
6043
6044         isnan: Use GCC built-ins when possible.
6045         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6046         __builtin_isnan.
6047         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6048         (isnan): Define using GCC built-ins for GCC >= 4.0.
6049
6050 2010-12-31  Bruno Haible  <bruno@clisp.org>
6051
6052         isnand: Fix mistake.
6053         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6054         __builtin_isnand.
6055
6056 2010-12-31  Bruno Haible  <bruno@clisp.org>
6057
6058         open: Avoid C++ error on HP-UX 11.
6059         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6060
6061 2010-12-31  Bruno Haible  <bruno@clisp.org>
6062
6063         time_r: Add missing declarations on HP-UX 11.
6064         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6065         instead of HAVE_LOCALTIME_R.
6066         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6067         HAVE_LOCALTIME_R always.
6068         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6069         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6070         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6071         HAVE_LOCALTIME_R.
6072         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6073         * doc/posix-functions/localtime_r.texi: Likewise.
6074
6075 2010-12-29  Eric Blake  <eblake@redhat.com>
6076
6077         mountlist: tweak previous commit
6078         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6079         Reported by Paul Eggert.
6080
6081         mountlist: fix local drive detection on cygwin
6082         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6083         that works for cygwin.
6084
6085 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         ftoastr, snprintf: ftoastr + snprintf module
6088         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6089         since the snprintf module now should be good enough here.
6090         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6091         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6092         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6093         GNULIB_SNPRINTF only for the test directory, and the latter
6094         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6095         seems to suffice by itself.
6096
6097 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         alloca: one step towards thread-safety
6100         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6101         need for a static variable.  All callers changed.  This does not
6102         make the alloca replacement thread-safe, but it's one step.
6103
6104         tests: minor indenting change
6105         * tests/init.sh: Sync from coreutils housekeeping patch
6106         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6107         to keep lines within 80 columns.
6108
6109 2010-12-28  Jim Meyering  <meyering@redhat.com>
6110
6111         regex: don't infloop on persistent failing calloc
6112         * lib/regexec.c (build_trtable): Return failure indication upon
6113         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6114         In glibc, this was fixed for version 2.13:
6115         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6116
6117 2010-12-28  Bruno Haible  <bruno@clisp.org>
6118             Paul Eggert <eggert@cs.ucla.edu>
6119
6120         linkat: Make implementation robust against system behaviour variations.
6121         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6122         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6123         way, and to -2 if it needs a generic runtime test.
6124         * lib/linkat.c (solaris_optimized_link_immediate,
6125         solaris_optimized_link_follow): New functions.
6126         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6127         (check_same_link): Use it.
6128
6129 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6130
6131         New module 'unigbrk/base'.
6132         * modules/unigbrk/base: New file.
6133         * lib/unigbrk.in.h: New file.
6134
6135         New module 'unigbrk/uc-gbrk-prop'.
6136         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6137         * modules/unigbrk/uc-gbrk-prop: New file.
6138         * lib/unigbrk/gbrkprop.h: New file.
6139         * lib/unigbrk/uc-gbrk-prop.c: New file.
6140
6141         New module 'unigbrk/uc-is-grapheme-break'.
6142         * modules/unigbrk/uc-is-grapheme-break: New file.
6143         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6144         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6145         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6146         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6147         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6148
6149         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6150
6151 2010-12-27  Bruno Haible  <bruno@clisp.org>
6152
6153         linkat test: Avoid failure on Solaris 11 2010-11.
6154         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6155
6156 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6157
6158         utimens: work around glibc rounding bug on more platforms
6159         * lib/utimens.c (fdutimens): Work around rounding bug even if
6160         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6162
6163 2010-12-27  Bruno Haible  <bruno@clisp.org>
6164
6165         select tests: Improve comments.
6166         * tests/test-select.c (do_select): Add comments.
6167
6168 2010-12-27  Bruno Haible  <bruno@clisp.org>
6169
6170         select tests: Safer way of handling timeout.
6171         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6172         at every invocation.
6173
6174 2010-12-27  Bruno Haible  <bruno@clisp.org>
6175
6176         select tests: Use 'bool' where appropriate.
6177         * tests/test-select.c (connect_to_socket): Change argument type to
6178         'bool'.
6179
6180 2010-12-27  Bruno Haible  <bruno@clisp.org>
6181
6182         select tests: Use existing modules.
6183         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6184         (configure.ac): Don't test for unistd.h.
6185         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6186         declared in <unistd.h>.
6187
6188 2010-12-27  Bruno Haible  <bruno@clisp.org>
6189
6190         mbrtowc: Work around a Solaris 7 bug.
6191         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6192         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6193         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6194         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6195         MBRTOWC_NULL_ARG1_BUG.
6196         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6197         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6198         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6199         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6200
6201 2010-12-27  Jim Meyering  <meyering@redhat.com>
6202
6203         read-file.c: tweak syntax
6204         * lib/read-file.c (fread_file): Remove space after "*" in function
6205         definitions.
6206
6207 2010-12-27  Bruno Haible  <bruno@clisp.org>
6208
6209         times test: Avoid gcc warnings on OSF/1.
6210         * tests/test-times.c (main): Cast printf arguments from clock_t to
6211         'long int'.
6212
6213 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6214
6215         utimens: work around glibc rounding bug on older Linux kernels
6216         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6217         on Linux with a glibc whose utimes might not work, then work
6218         around a longstanding glibc bug involving rounding rather than
6219         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6221
6222 2010-12-26  Bruno Haible  <bruno@clisp.org>
6223
6224         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6225         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6226         _GL_CXXALIAS_SYS.
6227         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6228
6229 2010-12-26  Bruno Haible  <bruno@clisp.org>
6230
6231         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6232         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6233         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6234         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6235         looking for the declaration.
6236         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6237         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6238         problem.
6239         * doc/posix-functions/inet_pton.texi: Likewise.
6240
6241 2010-12-26  Bruno Haible  <bruno@clisp.org>
6242
6243         arpa_inet: Use the common idioms with C++ support.
6244         * lib/arpa_inet.in.h: Include c++defs.h.
6245         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6246         support.
6247         * modules/arpa_inet (Depends-on): Add c++defs.
6248         (Makefile.am): Substitute the contents of c++defs.h.
6249         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6250         * modules/arpa_inet-c++-tests: New file.
6251         * tests/test-arpa_inet-c++.cc: New file.
6252
6253 2010-12-25  Bruno Haible  <bruno@clisp.org>
6254
6255         Fix more C++ link errors on Solaris 8.
6256         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6257         $(LIB_EACCESS).
6258         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6259         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6260         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6261         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6262         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6263
6264 2010-12-25  Bruno Haible  <bruno@clisp.org>
6265
6266         printf-posix: Fix link error when a non-GCC compiler is used.
6267         * lib/stdio.in.h (printf): When not using GCC, override printf
6268         correctly.
6269         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6270
6271 2010-12-25  Bruno Haible  <bruno@clisp.org>
6272
6273         strerror_r-posix: Update doc.
6274         * doc/posix-functions/strerror_r.texi: Update doc about the return
6275         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6276
6277 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         utimens: simplify the logic of the previous change
6280         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6281         This should not affect whether the test succeeds or fails.
6282
6283         utimens: configure better on hosts with NFS clock skew
6284         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6285         uses the clock of the local host.  It might use the clock of the
6286         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6288
6289 2010-12-25  Bruno Haible  <bruno@clisp.org>
6290
6291         ptsname test: Avoid failure on Solaris.
6292         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6293         open a pseudo-terminal; don't use BSD-style ptys.
6294         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6295
6296 2010-12-25  Bruno Haible  <bruno@clisp.org>
6297
6298         ptsname: Avoid ERANGE failure on some systems.
6299         * lib/ptsname.c (buffer): Increase size.
6300
6301 2010-12-25  Bruno Haible  <bruno@clisp.org>
6302
6303         rename, renameat: Avoid test failures at NFS mounted locations.
6304         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6305         so that subsequent mkdir calls succeed.
6306
6307 2010-12-25  Bruno Haible  <bruno@clisp.org>
6308
6309         iswblank: Fix C++ link error on Solaris 8.
6310         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6311         _GL_FUNCDECL_SYS.
6312
6313 2010-12-25  Bruno Haible  <bruno@clisp.org>
6314
6315         unistd: Fix C++ link error on Solaris 8.
6316         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6317
6318 2010-12-25  Bruno Haible  <bruno@clisp.org>
6319
6320         readlink doc: Mention an old glibc bug.
6321         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6322
6323 2010-12-25  Bruno Haible  <bruno@clisp.org>
6324
6325         fcntl-h: Fix for use of C++ on glibc systems.
6326         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6327         also on glibc systems in C++ mode.
6328         Reported by Gary V. Vaughan <gary@gnu.org>.
6329
6330 2010-12-25  Bruno Haible  <bruno@clisp.org>
6331
6332         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6333         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6334
6335 2010-12-25  Bruno Haible  <bruno@clisp.org>
6336
6337         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6338         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6339         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6340         test whether truncl works according to ISO C 99 with IEC 60559.
6341         * m4/truncl-ieee.m4: New file.
6342         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6343         m4/signbit.m4.
6344         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6345
6346 2010-12-25  Bruno Haible  <bruno@clisp.org>
6347
6348         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6349         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6350         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6351         test whether ceill works according to ISO C 99 with IEC 60559.
6352         * m4/ceill-ieee.m4: New file.
6353         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6354         m4/signbit.m4.
6355         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6356
6357 2010-12-25  Bruno Haible  <bruno@clisp.org>
6358
6359         Ensure all prerequisites of <wchar.h> are included.
6360         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6361         before <wchar.h>.
6362         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6363         gl_MBRLEN_NUL_RETVAL): Likewise.
6364         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6365         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6366         AC_FUNC_MBRTOWC): Likewise.
6367         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6368         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6369         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6370         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6371         Likewise.
6372         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6373         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6374         (gl_WCHAR_H): Improve comments.
6375         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6376
6377 2010-12-25  Bruno Haible  <bruno@clisp.org>
6378
6379         strtok_r: Fix C syntax error in autoconf macro.
6380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6381         characters in test program.
6382
6383 2010-12-24  Bruno Haible  <bruno@clisp.org>
6384
6385         ceil, trunc, round: Fix gcc warnings.
6386         * lib/ceil.c (MIN): Undefine before redefining.
6387         * lib/trunc.c (MIN): Likewise.
6388         * lib/round.c (MIN): Likewise.
6389         Include <math.h> first.
6390
6391 2010-12-24  Bruno Haible  <bruno@clisp.org>
6392
6393         select tests: Avoid failures on OSF/1 5.1.
6394         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6395         failure of closing the last socket; it may fail with ECONNRESET.
6396
6397 2010-12-24  Eric Blake  <eblake@redhat.com>
6398
6399         stdint: avoid HP-UX 10.20 preprocessor bug
6400         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6401         than #if.
6402         * tests/test-floor2.c (main): Likewise.
6403         Reported by Peter O'Gorman.
6404
6405         pipe: make obsoletion transition easier
6406         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6407         * modules/pipe (Files): Include revived file.
6408         (Include): Drop reference, to mirror getdate's behavior.
6409
6410 2010-12-24  Bruno Haible  <bruno@clisp.org>
6411
6412         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6413         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6414         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6415         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6416
6417 2010-12-24  Bruno Haible  <bruno@clisp.org>
6418
6419         gethostname: Ensure declaration on NonStop Kernel.
6420         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6421         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6422
6423 2010-12-24  Bruno Haible  <bruno@clisp.org>
6424
6425         sys_select: Ensure all necessary types on NonStop Kernel.
6426         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6427         include <sys/time.h>.
6428         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6429         NonStop Kernel.
6430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6431
6432 2010-12-24  Bruno Haible  <bruno@clisp.org>
6433
6434         sys_select: Remove unneeded include.
6435         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6436         have <sys/select.h>.
6437
6438 2010-12-24  Bruno Haible  <bruno@clisp.org>
6439
6440         gethostname: Provide a fallback for HOST_NAME_MAX.
6441         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6442         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6443         instead.
6444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6445
6446 2010-12-24  Bruno Haible  <bruno@clisp.org>
6447
6448         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6449         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6450         (SA_RESTART): Likewise.
6451         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6452
6453 2010-12-24  Bruno Haible  <bruno@clisp.org>
6454
6455         signal: Define NSIG.
6456         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6457         * tests/test-signal.c (nsig): New variable.
6458         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6459
6460 2010-12-24  Bruno Haible  <bruno@clisp.org>
6461
6462         rename, renameat: Avoid test failures on OSF/1 5.1.
6463         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6464         alternative error codes.
6465         * tests/test-renameat.c (main): Likewise.
6466
6467 2010-12-24  Bruno Haible  <bruno@clisp.org>
6468
6469         *printf: Detect large precisions bug on Solaris 10/SPARC.
6470         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6471         by Paul Eggert.
6472         * tests/test-snprintf-posix.h (test_function): Add this test code here
6473         too.
6474         * tests/test-sprintf-posix.h (test_function): Likewise.
6475         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6476         * tests/test-vasprintf-posix.c (test_function): Likewise.
6477         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6478         around by gnulib.
6479         * doc/posix-functions/printf.texi: Likewise.
6480         * doc/posix-functions/snprintf.texi: Likewise.
6481         * doc/posix-functions/sprintf.texi: Likewise.
6482         * doc/posix-functions/vfprintf.texi: Likewise.
6483         * doc/posix-functions/vprintf.texi: Likewise.
6484         * doc/posix-functions/vsnprintf.texi: Likewise.
6485         * doc/posix-functions/vsprintf.texi: Likewise.
6486         * doc/posix-functions/dprintf.texi: Undo last commit.
6487         * doc/posix-functions/vdprintf.texi: Likewise.
6488
6489 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6490
6491         tests: port test-fdutimensat.c to Solaris 8
6492         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6493         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6494         On Solaris 8, it fails with errno == ENOSYS, because there is no
6495         futimens (so it can't use the fd), and there is no lutimens (so it
6496         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6497
6498         vsnprintf: make more consistent with snprintf; doc fixes
6499
6500         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6501         the byte count return problem was promoted from the snprintf-posix
6502         to the snprintf module.
6503         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6504         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6505         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6506         * tests/test-snprintf.c (main): Check the byte count returned.
6507         * tests/test-vsnprintf.c (main): Likewise.
6508
6509 2010-12-23  Eric Blake  <eblake@redhat.com>
6510
6511         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6512         * modules/sigpipe (License): Relax license.
6513
6514 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         doc: document Solaris printf bug with large float precisions
6517         * doc/posix-functions/dprintf.texi (dprintf):
6518         * doc/posix-functions/fprintf.texi (fprintf):
6519         * doc/posix-functions/printf.texi (printf):
6520         * doc/posix-functions/snprintf.texi (snprintf):
6521         * doc/posix-functions/sprintf.texi (sprintf):
6522         * doc/posix-functions/vdprintf.texi (vdprintf):
6523         * doc/posix-functions/vfprintf.texi (vfprintf):
6524         * doc/posix-functions/vprintf.texi (vprintf):
6525         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6526         * doc/posix-functions/vsprintf.texi (vsprintf):
6527         Mention that these functions mishandle large floating point
6528         precisions on Solaris 10.  The same bug is also present in Solaris
6529         8, and I assume earlier.  This causes "cd gnulib-tests; make
6530         check" to fail on Solaris 8 (and I assume, later) when building
6531         the latest coreutils, in test-vasprintf-posix's call to
6532         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6533         the wide flavors (e.g., wprintf) so this patch just updates the
6534         documentation for the narrow ones.
6535
6536         test-posixtm.c: add two tests
6537         * tests/test-posixtm.c: Add two tests, to highlight the
6538         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6539         around this bug; this is merely to document it.
6540
6541 2010-12-22  Bruno Haible  <bruno@clisp.org>
6542
6543         getlogin_r: Work around portability problem on OSF/1.
6544         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6545         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6546         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6547         test for a truncated result.
6548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6549         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6550         * modules/getlogin_r (Depends-on): Add memchr.
6551         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6552
6553 2010-12-22  Bruno Haible  <bruno@clisp.org>
6554
6555         ptsname: Avoid test failure on OSF/1 5.1.
6556         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6557         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6558         (same_slave): New function.
6559         (main): Use it to compare ptsname's result with the expected file name.
6560
6561 2010-12-22  Bruno Haible  <bruno@clisp.org>
6562
6563         Port extended stdio modules to HP NonStop Kernel.
6564         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6565         macros.
6566         * lib/fbufmode.c: Update comments.
6567         * lib/fflush.c: Likewise.
6568         * lib/fpurge.c: Likewise.
6569         * lib/freadable.c: Likewise.
6570         * lib/freadahead.c: Likewise.
6571         * lib/freading.c: Likewise.
6572         * lib/freadptr.c: Likewise.
6573         * lib/freadseek.c: Likewise.
6574         * lib/fseeko.c: Likewise.
6575         * lib/fseterr.c: Likewise.
6576         * lib/fwritable.c: Likewise.
6577         * lib/fwriting.c: Likewise.
6578         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6579
6580 2010-12-22  Bruno Haible  <bruno@clisp.org>
6581
6582         ttyname_r: Work around bug on OSF/1 5.1.
6583         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6584         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6585         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6586         present.
6587         * lib/ttyname_r.c (ttyname_r): Update comments.
6588
6589 2010-12-22  Bruno Haible  <bruno@clisp.org>
6590
6591         round: Implement result sign according to IEEE 754.
6592         * lib/round.c (MIN, MINUS_ZERO): New macros.
6593         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6594         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6595         * tests/test-round-ieee.c (main): Likewise.
6596         * tests/test-roundl-ieee.c (main): Likewise.
6597
6598         trunc: Implement result sign according to IEEE 754.
6599         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6600         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6601         * tests/test-trunc2.c: Include minus-zero.h.
6602         (MINUS_ZERO): New macro.
6603         (trunc_reference): Keep in sync with lib/trunc.c.
6604         * tests/test-truncf2.c: Include minus-zero.h.
6605         (MINUS_ZERO): New macro.
6606         (truncf_reference): Keep in sync with lib/trunc.c.
6607         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6608         * tests/test-trunc-ieee.c (main): Likewise.
6609         * tests/test-truncl-ieee.c (main): Likewise.
6610
6611         ceil: Implement result sign according to IEEE 754.
6612         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6613         (FUNC): Return -0.0 for -1 < x < 0.
6614         * tests/test-ceil2.c: Include minus-zero.h.
6615         (MINUS_ZERO): New macro.
6616         (ceil_reference): Keep in sync with lib/ceil.c.
6617         * tests/test-ceilf2.c: Include minus-zero.h.
6618         (MINUS_ZERO): New macro.
6619         (ceilf_reference): Keep in sync with lib/ceil.c.
6620         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6621         * tests/test-ceil-ieee.c (main): Likewise.
6622         * tests/test-ceill-ieee.c (main): Likewise.
6623
6624         floor: Implement result sign according to IEEE 754.
6625         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6626         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6627         * tests/test-floorf2.c (floorf_reference): Likewise.
6628         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6629         * tests/test-floor-ieee.c (main): Likewise.
6630         * tests/test-floorl-ieee.c (main): Likewise.
6631
6632 2010-12-22  Bruno Haible  <bruno@clisp.org>
6633
6634         getaddrinfo: Update doc.
6635         * doc/posix-functions/gai_strerror.texi: Return type is also different
6636         on AIX and HP-UX.
6637
6638 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         getaddrinfo, inet_ntop: Update doc for Solaris.
6641         * doc/posix-functions/gai_strerror.texi: Return type is also an
6642         issue on Solaris 9 and earlier.
6643         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6644         on Solaris 10 and earlier.
6645
6646 2010-12-21  Bruno Haible  <bruno@clisp.org>
6647
6648         New module 'roundl-ieee'.
6649         * modules/roundl-ieee: New file.
6650         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6651         test whether roundl works according to ISO C 99 with IEC 60559.
6652         * m4/roundl-ieee.m4: New file.
6653         * modules/roundl-ieee-tests: New file.
6654         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6655         * tests/test-roundl.c (main): Remove signbit tests.
6656         * modules/roundl-tests (Depends-on): Remove signbit.
6657         * doc/posix-functions/roundl.texi: Mention the new module.
6658
6659 2010-12-21  Bruno Haible  <bruno@clisp.org>
6660
6661         New module 'truncl-ieee'.
6662         * modules/truncl-ieee: New file.
6663         * modules/truncl-ieee-tests: New file.
6664         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6665         * tests/test-truncl.c (main): Remove signbit tests.
6666         * modules/truncl-tests (Depends-on): Remove signbit.
6667         * doc/posix-functions/truncl.texi: Mention the new module.
6668
6669 2010-12-21  Bruno Haible  <bruno@clisp.org>
6670
6671         New module 'ceill-ieee'.
6672         * modules/ceill-ieee: New file.
6673         * modules/ceill-ieee-tests: New file.
6674         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6675         * tests/test-ceill.c (main): Remove signbit tests.
6676         * modules/ceill-tests (Depends-on): Remove signbit.
6677         * doc/posix-functions/ceill.texi: Mention the new module.
6678
6679 2010-12-21  Bruno Haible  <bruno@clisp.org>
6680
6681         New module 'floorl-ieee'.
6682         * modules/floorl-ieee: New file.
6683         * modules/floorl-ieee-tests: New file.
6684         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6685         * tests/test-floorl.c (main): Remove signbit tests.
6686         * modules/floorl-tests (Depends-on): Remove signbit.
6687         * doc/posix-functions/floorl.texi: Mention the new module.
6688
6689 2010-12-21  Bruno Haible  <bruno@clisp.org>
6690
6691         New module 'round-ieee'.
6692         * modules/round-ieee: New file.
6693         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6694         whether round works according to ISO C 99 with IEC 60559.
6695         * m4/round-ieee.m4: New file.
6696         * modules/round-ieee-tests: New file.
6697         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6698         * tests/test-round1.c (main): Remove signbit tests.
6699         * modules/round-tests (Depends-on): Remove 'signbit'.
6700         * doc/posix-functions/round.texi: Mention the new module.
6701
6702 2010-12-21  Bruno Haible  <bruno@clisp.org>
6703
6704         New module 'trunc-ieee'.
6705         * modules/trunc-ieee: New file.
6706         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6707         whether trunc works according to ISO C 99 with IEC 60559.
6708         * m4/trunc-ieee.m4: New file.
6709         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6711         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6712         * modules/trunc-ieee-tests: New file.
6713         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6714         * tests/test-trunc1.c (main): Remove signbit tests.
6715         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6716         * doc/posix-functions/trunc.texi: Mention the new module.
6717
6718 2010-12-21  Bruno Haible  <bruno@clisp.org>
6719
6720         New module 'ceil-ieee'.
6721         * modules/ceil-ieee: New file.
6722         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6723         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6724         ISO C 99 with IEC 60559.
6725         * m4/ceil-ieee.m4: New file.
6726         * modules/ceil (Files): Add lib/ceil.c.
6727         (Depends-on): Add 'float'.
6728         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6729         * lib/math.in.h (ceil): New declaration.
6730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6731         REPLACE_CEIL.
6732         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6733         * modules/ceil-ieee-tests: New file.
6734         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6735         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6736         * doc/posix-functions/ceil.texi: Mention the new module.
6737
6738 2010-12-21  Bruno Haible  <bruno@clisp.org>
6739
6740         New module 'floor-ieee'.
6741         * modules/floor-ieee: New file.
6742         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6743         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6744         ISO C 99 with IEC 60559.
6745         * m4/floor-ieee.m4: New file.
6746         * modules/floor (Files): Add lib/floor.c.
6747         (Depends-on): Add 'float'.
6748         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6749         * lib/math.in.h (floor): New declaration.
6750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6751         REPLACE_FLOOR.
6752         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6753         * modules/floor-ieee-tests: New file.
6754         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6755         * tests/test-math-c++.cc: Check the signature of 'floor'.
6756         * doc/posix-functions/floor.texi: Mention the new module.
6757
6758 2010-12-21  Bruno Haible  <bruno@clisp.org>
6759
6760         New module 'roundf-ieee'.
6761         * modules/roundf-ieee: New file.
6762         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6763         test whether roundf works according to ISO C 99 with IEC 60559.
6764         * m4/roundf-ieee.m4: New file.
6765         * modules/roundf-ieee-tests: New file.
6766         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6767         * tests/test-roundf1.c (main): Remove signbit tests.
6768         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6769         * doc/posix-functions/roundf.texi: Mention the new module.
6770
6771 2010-12-21  Bruno Haible  <bruno@clisp.org>
6772
6773         New module 'truncf-ieee'.
6774         * modules/truncf-ieee: New file.
6775         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6776         test whether truncf works according to ISO C 99 with IEC 60559.
6777         * m4/truncf-ieee.m4: New file.
6778         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6780         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6781         * modules/truncf-ieee-tests: New file.
6782         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6783         * tests/test-truncf1.c (main): Remove signbit tests.
6784         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6785         * doc/posix-functions/truncf.texi: Mention the new module.
6786
6787 2010-12-21  Bruno Haible  <bruno@clisp.org>
6788
6789         New module 'ceilf-ieee'.
6790         * modules/ceilf-ieee: New file.
6791         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6792         test whether ceilf works according to ISO C 99 with IEC 60559.
6793         * m4/ceilf-ieee.m4: New file.
6794         * modules/ceilf-ieee-tests: New file.
6795         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6796         * tests/test-ceilf1.c (main): Remove signbit tests.
6797         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6798         * doc/posix-functions/ceilf.texi: Mention the new module.
6799
6800 2010-12-21  Bruno Haible  <bruno@clisp.org>
6801
6802         New module 'floorf-ieee'.
6803         * modules/floorf-ieee: New file.
6804         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6805         test whether floorf works according to ISO C 99 with IEC 60559.
6806         * m4/floorf-ieee.m4: New file.
6807         * modules/floorf-ieee-tests: New file.
6808         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6809         * tests/test-floorf1.c (main): Remove signbit tests.
6810         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6811         * doc/posix-functions/floorf.texi: Mention the new module.
6812
6813 2010-12-21  Bruno Haible  <bruno@clisp.org>
6814
6815         Support for minus zero in autoconf macros.
6816         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6817         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6818         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6819         * tests/minus-zero.h: Update comments.
6820
6821 2010-12-21  Bruno Haible  <bruno@clisp.org>
6822
6823         Tests for module 'ceil'.
6824         * modules/ceil-tests: New file.
6825         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6826         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6827
6828 2010-12-21  Bruno Haible  <bruno@clisp.org>
6829
6830         Tests for module 'floor'.
6831         * modules/floor-tests: New file.
6832         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6833         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6834
6835 2010-12-21  Bruno Haible  <bruno@clisp.org>
6836
6837         math: Fix indentation.
6838         * lib/math.in.h (floorf): Fix indentation.
6839
6840 2010-12-21  Bruno Haible  <bruno@clisp.org>
6841
6842         Fix cross-compilation guesses on Solaris.
6843         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6844         not match "solaris2.10".
6845         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6846         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6847         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6848
6849 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6850
6851         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6852         This fixes a problem observed with the latest coreutils snapshot
6853         that caused a test to fail on Solaris 8.  src/csplit.c's call
6854         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6855         earlier, instead of returning the number of bytes that would have
6856         been generated; this causes csplit to incorrectly report memory
6857         exhaustion.
6858         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6859         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6860         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6861         comments to match.
6862         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6863         Fix typo in matching older versions of Solaris: "solaris2.10"
6864         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6865         only for guessing while cross-compiling.
6866         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6867
6868 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6869
6870         ftoastr: fix comment again
6871         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6873         Also, simplify example a bit by using flags = 0.
6874
6875 2010-12-20  Bruno Haible  <bruno@clisp.org>
6876
6877         round*, trunc*: Update documentation regarding glibc.
6878         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6879         * doc/posix-functions/round.texi: Likewise.
6880         * doc/posix-functions/roundl.texi: Likewise.
6881         * doc/posix-functions/truncf.texi: Likewise.
6882         * doc/posix-functions/trunc.texi: Likewise.
6883         * doc/posix-functions/truncl.texi: Likewise.
6884
6885 2010-12-20  Bruno Haible  <bruno@clisp.org>
6886
6887         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6888         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6889         * doc/posix-functions/round.texi: Likewise.
6890         * doc/posix-functions/roundl.texi: Likewise.
6891
6892 2010-12-20  Bruno Haible  <bruno@clisp.org>
6893
6894         ttyname_r: Add missing declaration on HP-UX 11.
6895         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6896         HAVE_TTYNAME_R.
6897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6898         declared. Set HAVE_TTYNAME_R always.
6899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6900         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6901         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6902         HAVE_TTYNAME_R.
6903         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6904
6905 2010-12-20  Bruno Haible  <bruno@clisp.org>
6906
6907         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6908         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6909         * doc/posix-functions/getlogin_r.texi: Likewise.
6910         * tests/test-getlogin.c: Include <errno.h>.
6911         (main): Avoid test failure on HP-UX 11.11.
6912         * tests/test-getlogin_r.c (main): Likewise.
6913
6914 2010-12-20  Bruno Haible  <bruno@clisp.org>
6915
6916         getlogin_r: Add missing declaration on HP-UX 11.
6917         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6918         declared also when it exists as a function.
6919         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6920
6921 2010-12-20  Bruno Haible  <bruno@clisp.org>
6922
6923         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6924         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6925         through wcrtomb.
6926
6927 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         ftoastr: fix comment
6930         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6931         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6932
6933 2010-12-19  Bruno Haible  <bruno@clisp.org>
6934
6935         isnan: Ensure it is a macro.
6936         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6937         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6938         Solaris.
6939
6940 2010-12-19  Bruno Haible  <bruno@clisp.org>
6941
6942         ldexpl test: Fix link error on OSF/1 5.1.
6943         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6944
6945 2010-12-19  Bruno Haible  <bruno@clisp.org>
6946
6947         wctype: Make it work in C++ mode on OSF/1 5.1.
6948         * lib/wctype.in.h (iswblank): Declare but not define here.
6949         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6950         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6951         * modules/wctype (Files): Add lib/iswblank.c.
6952
6953 2010-12-19  Bruno Haible  <bruno@clisp.org>
6954
6955         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6956         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6957         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6958
6959 2010-12-19  Bruno Haible  <bruno@clisp.org>
6960
6961         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6963         _POSIX_PII_SOCKET.
6964         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6965         * doc/posix-functions/recvfrom.texi: Likewise.
6966         * doc/posix-functions/send.texi: Likewise.
6967         * doc/posix-functions/sendto.texi: Likewise.
6968
6969 2010-12-19  Bruno Haible  <bruno@clisp.org>
6970
6971         tcgetsid: Add missing declaration on OSF/1 5.1.
6972         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6973         HAVE_TCGETSID.
6974         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6975         Don't set HAVE_TCGETSID.
6976         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6977         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6978         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6979         HAVE_TCGETSID.
6980         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6981
6982 2010-12-19  Bruno Haible  <bruno@clisp.org>
6983
6984         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6985         * lib/stdio.in.h: During the include_next statement, let recursive
6986         includes of this file include only the system header file.
6987
6988 2010-12-19  Bruno Haible  <bruno@clisp.org>
6989
6990         iconv_open: Fix regression from 2010-12-04.
6991         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6992         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6993
6994 2010-12-19  Bruno Haible  <bruno@clisp.org>
6995
6996         stdbool test: Avoid a gcc warning.
6997         * tests/test-stdbool.c (main): Fail if e1 is false.
6998         Reported by Jim Meyering.
6999
7000 2010-12-19  Jim Meyering  <meyering@redhat.com>
7001
7002         setenv: restore to working order
7003         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7004         mistakenly removed.
7005         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7006         HAVE_SETENV.
7007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7008         HAVE_SETENV.
7009
7010 2010-12-19  Bruno Haible  <bruno@clisp.org>
7011
7012         Document some different function declarations on OSF/1 5.1.
7013         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7014         * doc/posix-functions/inet_ntop.texi: Likewise.
7015         * doc/posix-functions/gethostname.texi: Likewise.
7016         * lib/unistd.in.h (gethostname): Update comment.
7017
7018 2010-12-19  Bruno Haible  <bruno@clisp.org>
7019
7020         doc: Mention vasprintf-posix module.
7021         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7022         the 'vasprintf-posix' module.
7023         * doc/glibc-functions/vasprintf.texi: Likewise.
7024
7025 2010-12-19  Bruno Haible  <bruno@clisp.org>
7026
7027         unsetenv: Add missing declaration on OSF/1 5.1.
7028         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7029         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7030         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7032         not HAVE_UNSETENV.
7033         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7034         HAVE_UNSETENV.
7035         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7036
7037 2010-12-19  Bruno Haible  <bruno@clisp.org>
7038
7039         setenv: Add missing declaration on OSF/1 5.1.
7040         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7041         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7042         declared. Don't set HAVE_SETENV.
7043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7044         not HAVE_SETENV.
7045         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7046         HAVE_SETENV.
7047         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7048
7049 2010-12-19  Bruno Haible  <bruno@clisp.org>
7050
7051         nl_langinfo tests: Avoid gcc warning.
7052         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7053
7054 2010-12-19  Bruno Haible  <bruno@clisp.org>
7055
7056         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7057         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7058         _GL_CXXALIAS_SYS.
7059
7060 2010-12-19  Bruno Haible  <bruno@clisp.org>
7061
7062         stdbool: Relax test.
7063         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7064         address to 'bool' work in static initializer, for compilers other than
7065         GCC.
7066
7067 2010-12-19  Bruno Haible  <bruno@clisp.org>
7068
7069         ftello: Add missing declaration on OSF/1 5.1.
7070         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7071         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7073         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7074         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7075
7076 2010-12-19  Bruno Haible  <bruno@clisp.org>
7077
7078         fseeko: Add missing declaration on OSF/1 5.1.
7079         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7082         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7083         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7084
7085 2010-12-19  Bruno Haible  <bruno@clisp.org>
7086
7087         fchdir: Add missing declaration on OSF/1 5.1.
7088         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7091         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7092         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7093
7094 2010-12-19  Bruno Haible  <bruno@clisp.org>
7095
7096         relocatable-prog-wrapper: Separate from relocatable-prog.
7097         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7098         uninstall-relocwrapper rule here.
7099         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7100         Reported by Ian Beckwith <ianb@erislabs.net>.
7101
7102 2010-12-19  Bruno Haible  <bruno@clisp.org>
7103
7104         unistr/u8-mbsnlen: Add missing dependency.
7105         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7106         Reported by Ian Beckwith <ianb@erislabs.net>.
7107
7108 2010-12-19  Bruno Haible  <bruno@clisp.org>
7109
7110         iconv: Make it possible again to use this module without 'iconv-h'.
7111         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7112         if it is not defined.
7113         Reported by Ian Beckwith <ianb@erislabs.net>.
7114
7115 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         acl: port to Solaris 8 when copying from tmpfs to ufs
7118         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7119         error number.  Problem observed on Solaris 8 with latest
7120         coreutils, with "mv A B", where A is on a tmpfs file system and B
7121         is on a ufs file system.  This caused coreutils' mv/part-symlink
7122         test to fail.
7123
7124         tests: set fail=0 at start
7125         * tests/init.sh (setup_): Move fail=0 initialization here ...
7126         (mktempd_): ... from here, so that tests can rely on fail being
7127         set to 0 initially.  This fixes a problem in coreutils; see:
7128         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7129
7130 2010-12-18  Bruno Haible  <bruno@clisp.org>
7131
7132         memmem-simple: Stylistic changes.
7133         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7134         Fix preprocessor directive indentation.
7135
7136 2010-12-15  Pádraig Brady <P@draigBrady.com>
7137
7138         memmem, memmem-simple: reorganize and expand empty needle check
7139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7140         functional checks to memmem-simple so that one has a fully functional
7141         memmem by using just this module.
7142         Restrict the performance only check to the memmem module.
7143         Also expand the empty needle check to ensure the correct
7144         pointer is returned, not just a non NULL pointer.
7145         * doc/glibc-functions/memmem.texi: Rearrange the portability
7146         documentation to correlate with the rearranged checks.
7147         Clarify exactly how the memmem and memmem-simple modules
7148         relate to each other.
7149
7150 2010-12-15  Pádraig Brady <P@draigBrady.com>
7151             Bruno Haible  <bruno@clisp.org>
7152
7153         Improve cross-compilation guesses for uClibc.
7154         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7155         that uClibc does not have the glibc bug.
7156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7157         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7158
7159 2010-12-14  Eric Blake  <eblake@redhat.com>
7160
7161         configmake: provide fallbacks for oldest supported autotools
7162         * m4/configmake.m4: New file.
7163         * modules/configmake (Files): Ship it.
7164         (configure.ac): Use it to guarantee fallbacks.
7165
7166 2010-12-13  Pádraig Brady <P@draigBrady.com>
7167
7168         read-file: Improve handling of large files
7169         * lib/read-file.c (fread_file): Minimize realloc()s
7170         for regular files, and better manage sizes around SIZE_MAX.
7171
7172 2010-12-13  Eric Blake  <eblake@redhat.com>
7173
7174         cloexec, fcntl: relax license
7175         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7176         consent from all contributors.
7177         * modules/fcntl (License): Likewise.
7178
7179 2010-12-10  Bruno Haible  <bruno@clisp.org>
7180
7181         Tests for module 'pipe-posix'.
7182         * modules/pipe-posix-tests: New file.
7183         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7184
7185 2010-12-10  Bruno Haible  <bruno@clisp.org>
7186
7187         pipe-posix: Make it work in C++ mode.
7188         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7189         (pipe): Use common idiom, not a macro definition.
7190         * lib/pipe.c: New file.
7191         * m4/pipe.m4: New file.
7192         * modules/pipe-posix (Description): Enhance.
7193         (Files): Add lib/pipe.c, m4/pipe.m4.
7194         (configure.ac): Invoke gl_FUNC_PIPE.
7195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7196         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7197         * tests/test-unistd-c++.cc: Check the signature of pipe.
7198
7199 2010-12-10  Bruno Haible  <bruno@clisp.org>
7200
7201         Rename module 'pipe' to 'spawn-pipe'.
7202         * modules/spawn-pipe: New file, renamed from modules/pipe.
7203         (Files, configure.ac, Makefile.am): Update.
7204         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7205         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7206         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7207         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7208         "spawn-pipe.h" instead of "pipe.h".
7209         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7210         to gl_SPAWN_PIPE.
7211         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7212         (Files, Makefile.am): Update.
7213         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7214         Update.
7215         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7216         Include "spawn-pipe.h" instead of "pipe.h".
7217         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7218         * lib/javacomp.c: Likewise.
7219         * lib/javaversion.c: Likewise.
7220         * lib/pipe-filter-gi.c: Likewise.
7221         * lib/pipe-filter-ii.c: Likewise.
7222         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7223         * modules/javacomp (Depends-on): Likewise.
7224         * modules/javaversion (Depends-on): Likewise.
7225         * modules/pipe-filter-gi (Depends-on): Likewise.
7226         * modules/pipe-filter-ii (Depends-on): Likewise.
7227         * MODULES.html.sh (Executing programs): Update.
7228         * NEWS: Mention the change.
7229
7230 2010-12-10  Eric Blake  <eblake@redhat.com>
7231
7232         pipe-posix: new module
7233         * modules/pipe-posix: New file.
7234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7235         (gl_UNISTD_H): Check for declaration.
7236         * modules/unistd (Makefile.am): Substitute it.
7237         * lib/unistd.in.h (pipe): Provide it for mingw.
7238         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7239         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7240
7241 2010-12-07  Bruno Haible  <bruno@clisp.org>
7242
7243         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7244         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7245         u8_strcmp_gnu.
7246         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7247
7248 2010-12-06  Bruno Haible  <bruno@clisp.org>
7249
7250         Update internal documentation.
7251         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7252
7253 2010-12-04  Bruno Haible  <bruno@clisp.org>
7254
7255         Put more information about failed tests into the test return codes.
7256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7257         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7260         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7262         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7263         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7264         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7267         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7268         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7269         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7270         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7271         returns a bit mask.
7272         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7273         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7274         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7275         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7280         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7282         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7283         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7284         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7285         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7286         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7287         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7288         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7289         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7290         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7291         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7293         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7295         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7296         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7297         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7298         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7299         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7300         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7301         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7302         gl_PRINTF_PRECISION): Likewise.
7303         * m4/regex.m4 (gl_REGEX): Likewise.
7304         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7305         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7306         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7307         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7311         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7312         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7313         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7314         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7315         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7316         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7317         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7318         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7319         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7320         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7324         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7325         enumerated value.
7326         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7327
7328 2010-12-04  Bruno Haible  <bruno@clisp.org>
7329
7330         Update for Solaris 11 2010-11.
7331         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7332         Express, released in November 2010.
7333
7334 2010-12-04  Bruno Haible  <bruno@clisp.org>
7335
7336         nproc: Relax license.
7337         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7338         and Paul Eggert.
7339         Requested by Ludovic Courtès <ludo@gnu.org>.
7340
7341 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7342
7343         utimecmp: fine-grained src to nearby coarse-grained dest
7344
7345         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7346         and the source is on a file system with higher-resolution time
7347         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7348         not work, and the time stamps are close together, the algorithm to
7349         determine the exact resolution from the read-back mtime was buggy:
7350         it had a "!=" where it should have had an "==".  This bug has been
7351         in the code ever since it was introduced to gnulib.
7352         Problem reported by Dan Jacobson in
7353         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7354
7355 2010-11-30  Bruno Haible  <bruno@clisp.org>
7356
7357         strerror_r-posix: Fix autoconf test.
7358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7359
7360 2010-11-28  Bruno Haible  <bruno@clisp.org>
7361             Paul Eggert  <eggert@cs.ucla.edu>
7362
7363         Tests for module 'getdomainname'.
7364         * modules/getdomainname-tests: New file.
7365         * tests/test-getdomainname.c: New file, based on
7366         tests/test-gethostname.c.
7367
7368 2010-11-28  Bruno Haible  <bruno@clisp.org>
7369             Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         getdomainname: Use the system function when possible.
7372         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7373         (getdomainname): Replace if needed. Provide the declaration if it is
7374         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7375         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7376         (getdomainname): When the system has getdomainname, call the system
7377         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7378         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7379         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7380         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7381         the function if its second argument is of type 'int' or if it is found
7382         in libnsl.
7383         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7384         <sys/systeminfo.h> and sysinfo().
7385         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7387         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7388         HAVE_GETDOMAINNAME.
7389         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7390         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7391         * doc/glibc-functions/getdomainname.texi: Document the problems with
7392         the getdomainname declaration.
7393
7394 2010-11-28  Bruno Haible  <bruno@clisp.org>
7395
7396         sys_socket: Ensure ss_family field on AIX.
7397         * lib/sys_socket.in.h (ss_family): New macro definition.
7398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7399         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7400         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7401         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7402         * modules/sys_socket (Makefile.am): Substitute
7403         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7404         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7405
7406 2010-11-27  Bruno Haible  <bruno@clisp.org>
7407
7408         readline: Improve configure output.
7409         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7410         "checking for readline..." result understandable.
7411
7412 2010-11-27  Bruno Haible  <bruno@clisp.org>
7413
7414         *printf-posix: Detect a bug on Solaris 10/x86.
7415         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7416         for floating-point output.
7417         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7418         directive.
7419         * tests/test-snprintf-posix.h (test_function): Likewise.
7420         * tests/test-sprintf-posix.h (test_function): Likewise.
7421         * tests/test-vasprintf-posix.c (test_function): Likewise.
7422         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7423         * doc/posix-functions/printf.texi: Likewise.
7424         * doc/posix-functions/snprintf.texi: Likewise.
7425         * doc/posix-functions/sprintf.texi: Likewise.
7426         * doc/posix-functions/vfprintf.texi: Likewise.
7427         * doc/posix-functions/vprintf.texi: Likewise.
7428         * doc/posix-functions/vsnprintf.texi: Likewise.
7429         * doc/posix-functions/vsprintf.texi: Likewise.
7430         * doc/glibc-functions/obstack_printf.texi: Likewise.
7431         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7432
7433 2010-11-27  Bruno Haible  <bruno@clisp.org>
7434
7435         Fix link error when module libunistring-optional is in use.
7436         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7437         * modules/striconveha-tests (Makefile.am): Likewise.
7438
7439 2010-11-27  Bruno Haible  <bruno@clisp.org>
7440
7441         regex: Mention link dependencies.
7442         * modules/regex (Link): New section.
7443         * modules/rpmatch (Link): Likewise.
7444         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7445
7446 2010-11-27  Bruno Haible  <bruno@clisp.org>
7447
7448         ftoastr: Fix compilation error on Solaris.
7449         * lib/ftoastr.c: Include <config.h>.
7450
7451 2010-11-27  Bruno Haible  <bruno@clisp.org>
7452
7453         getloadavg: Update documentation.
7454         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7455
7456 2010-11-27  Bruno Haible  <bruno@clisp.org>
7457
7458         sys_socket: Fix test whether the functions are declared.
7459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7460         not <sys/select.h>.
7461
7462 2010-11-27  Bruno Haible  <bruno@clisp.org>
7463
7464         getpass: Make sure to get system declaration on some platforms.
7465         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7466         gl_USE_SYSTEM_EXTENSIONS.
7467         * modules/getpass (Depends-on): Add extensions.
7468
7469 2010-11-26  Bruno Haible  <bruno@clisp.org>
7470
7471         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7472         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7473         'iconv' module is present.
7474         (ICONV_CONST): New macro.
7475         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7476         ICONV_CONST.
7477         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7478         set ICONV_CONST.
7479         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7480         here.
7481         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7482         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7483         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7484         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7485         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7486         present.
7487
7488 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         ftoastr: comment fix
7491         * lib/ftoastr.c: "little" -> "little or no" in comment
7492
7493 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7494
7495         stdint: port to GCC 4.3 + OSX + Octave
7496         On this platform, stdint.h is buggy and defines int64_t to long
7497         long int.  The replacement defined it to long int, causing
7498         problems with C++ style name mangling.  Instead, trust the system
7499         definition if INT64_MAX is defined, and likewise for the unsigned
7500         variant.   Problem reported by Jarno Rajahalme in
7501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7502         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7503         and don't mess with int64_t and INT64_MAX in this case.
7504         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7505
7506 2010-11-24  Bruno Haible  <bruno@clisp.org>
7507
7508         doc: Corrections regarding MacOS X 10.4 and 10.5.
7509         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7510         MacOS X.
7511         Reported by Simon Josefsson.
7512
7513 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7514
7515         Uninstall ".bin" files installed by relocwrapper.
7516         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7517         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7518         unless it is already there.
7519
7520 2010-11-21  Bruno Haible  <bruno@clisp.org>
7521
7522         Update for NetBSD 5.0.
7523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7524         NetBSD; the test fails on NetBSD 5.0.
7525         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7526         about NetBSD.
7527
7528 2010-11-21  Bruno Haible  <bruno@clisp.org>
7529
7530         Update for HP-UX 11.23 and HP-UX 11.31.
7531         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7532         HP-UX.
7533
7534 2010-11-21  Bruno Haible  <bruno@clisp.org>
7535
7536         Update for MacOS X 10.5.
7537         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7538         MacOS X; the test fails on MacOS X 10.5.8.
7539         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7540         about MacOS X.
7541
7542 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7543
7544         bootstrap: add bootstrap_sync option.
7545         See discussion at
7546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7548         * build-aux/bootstrap: Accept --bootstrap-sync to update
7549         bootstrap if it is not identical to the local gnulib's
7550         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7551         enable this by default.  Accept --no-bootstrap-sync to disable
7552         it.
7553
7554 2010-11-20  Bruno Haible  <bruno@clisp.org>
7555
7556         Ensure that <features.h> is included before __GLIBC__ is tested.
7557         * lib/printf-parse.h: Include <features.h>.
7558         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7559         Reported by Mike Frysinger <vapier@gentoo.org>.
7560
7561         Ensure that <features.h> is included before __GLIBC__ is tested.
7562         * lib/wchar.in.h: Include <features.h>.
7563         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7564         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7565         Reported by Mike Frysinger <vapier@gentoo.org>.
7566
7567         Ensure that <features.h> is included before __GLIBC__ is tested.
7568         * lib/arpa_inet.in.h: Include <features.h>.
7569         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7570         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7571         Reported by Mike Frysinger <vapier@gentoo.org>.
7572
7573         Ensure that <features.h> is included before __GLIBC__ is tested.
7574         * build-aux/link-warning.h: Include <features.h>.
7575         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7576         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7577         Reported by Mike Frysinger <vapier@gentoo.org>.
7578
7579         Ensure that <features.h> is included before __GLIBC__ is tested.
7580         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7581         Reported by Mike Frysinger <vapier@gentoo.org>.
7582
7583 2010-11-20  Bruno Haible  <bruno@clisp.org>
7584
7585         memmem: Fix autoconf test.
7586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7587
7588 2010-11-20  Bruno Haible  <bruno@clisp.org>
7589
7590         Port to uClibc.
7591         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7592         * lib/fcntl.in.h: Likewise.
7593         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7594         * lib/mbrtowc.c (mbrtowc): Likewise.
7595         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7596         * lib/strerror_r.c: Likewise.
7597         * lib/unistr/u8-strnlen.c: Likewise.
7598         * lib/vasnprintf.c (decimal_point_char): Likewise.
7599         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7600         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7602         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7603         * tests/test-sigaction.c (handler, main): Likewise.
7604         * lib/freading.h: Treat uClibc like a non-glibc platform.
7605         * lib/freading.c: Likewise.
7606         * lib/gettext.h: Likewise.
7607         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7608         Likewise.
7609         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7610         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7611         * lib/propername.c (proper_name_utf8): Likewise.
7612         * lib/spawn.in.h: Likewise.
7613         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7614         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7615         mem_cd_iconveh_internal): Likewise.
7616         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7617         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7618         strstr, strcasestr): Likewise.
7619         * lib/unicodeio.c (unicode_to_mb): Likewise.
7620         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7621         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7622         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7623         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7624         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7625         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7626         * lib/unistr/u8-stpncpy.c: Likewise.
7627         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7628         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7629         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7630         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7631         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7632         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7633         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7636         Likewise.
7637         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7639         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7643         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7644         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7645         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7646         * tests/test-striconveha.c (main): Likewise.
7647         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7648         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7649         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7650         * doc/posix-functions/getline.texi: Likewise.
7651         Reported by Mike Frysinger <vapier@gentoo.org>.
7652
7653 2010-11-20  Bruno Haible  <bruno@clisp.org>
7654
7655         nproc: Fix condition.
7656         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7657         HAVE_PTHREAD_AFFINITY_NP.
7658
7659 2010-11-20  Bruno Haible  <bruno@clisp.org>
7660
7661         Fix a comment.
7662         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7663
7664 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7665
7666         ftoastr: don't assume snprintf
7667         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7668         Implement a subset of snprintf here, by using sprintf safely.
7669         * modules/ftoastr (Depends-on): Remove snprintf.
7670
7671 2010-11-19  Jim Meyering  <meyering@redhat.com>
7672
7673         test-rename.h: fix compilation failure
7674         * tests/test-rename.h (test_rename): Add omitted "}".
7675
7676 2010-11-17  Jim Meyering  <meyering@redhat.com>
7677
7678         maint.mk: add a URL discussing the no-@acronym policy
7679         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7680
7681 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         ftoastr: depend on snprintf, improve comments
7684         * lib/ftoastr.c: Also mention Loitsch's draft.
7685         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7686         needed in the current implementation, but it might simplify
7687         speeding up the code later.
7688         * modules/ftoastr: Depend on snprintf; this improves portability.
7689         Suggested by Bruno Haible in the same email.
7690
7691         ftoastr: port to hosts lacking strtof and strtold
7692         Problem reported by Bruno Haible in
7693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7694         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7695         environment and strtold (and presumably strtof) are not available.
7696         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7697         (configure.ac): Require gl_C99_STRTOLD.
7698
7699 2010-11-18  Bruno Haible  <bruno@clisp.org>
7700
7701         c-strtold: Avoid link error on AIX 7.
7702         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7703         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7704         (gl_C_STRTOLD): Test whether strtold_l exists.
7705         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7706
7707 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         intprops: new macro INT_BITS_STRLEN_BOUND
7710         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7711         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7712         not exposed.  Also, it uses a slightly tighter bound than before;
7713         though this makes no practical difference, we might as well be as
7714         tight as we easily can.
7715
7716         ftoastr: new module, for lossless conversion of floats to short strings
7717         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7718         * modules/ftoastr: New files.
7719
7720 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7721
7722         bootstrap: port to Solaris sed
7723         * build-aux/bootstrap (get_version): Port to Solaris sed.
7724         See Ralf Wildenhues's note in
7725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7726
7727 2010-11-14  Jim Meyering  <meyering@redhat.com>
7728
7729         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7730         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7731         and move definition closer to sole use.
7732
7733 2010-11-13  Jim Meyering  <meyering@redhat.com>
7734
7735         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7736         Now we require at least autoconf-2.59, which means the work-around
7737         is no longer needed.
7738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7740         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7741         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7742         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7743
7744 2010-11-13  Bruno Haible  <bruno@clisp.org>
7745
7746         rename, renameat: Avoid test failures at NFS mounted locations.
7747         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7748         functions.
7749         (test_rename): Use assert_nonexistent.
7750         * tests/test-rename.c: Include <dirent.h>.
7751         * tests/test-renameat.c: Likewise.
7752         Reported by Gary V. Vaughan <gary@gnu.org>.
7753
7754         rename, renameat: Document Linux bug with NFS
7755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7756         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7757         * doc/posix-functions/renameat.texi: Likewise.
7758         Suggested by Eric Blake.
7759
7760 2010-11-13  Bruno Haible  <bruno@clisp.org>
7761
7762         rename test: Add comments.
7763         * tests/test-rename.h (test_rename): Add structure and comments.
7764
7765 2010-11-13  Eric Blake  <eblake@redhat.com>
7766
7767         maintainer-makefile: cover a few more files
7768         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7769         scripts generated within C files, for libvirt.
7770
7771 2010-11-13  Bruno Haible  <bruno@clisp.org>
7772
7773         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7774         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7775         character, return the number of bytes that belong together, not always
7776         1.
7777         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7778         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7779         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7780         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7781         number of bytes of an invalid character.
7782         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7783         (main): Invoke it.
7784         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7785         results.
7786         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7787         malformed byte sequences.
7788         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7789         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7790         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7791         Reported by Ben Pfaff and Paolo Bonzini.
7792
7793 2010-11-13  Bruno Haible  <bruno@clisp.org>
7794
7795         openat: Work around glibc bug with fchownat() and empty file names.
7796         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7797         (gl_FUNC_FCHOWNAT): Invoke it.
7798         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7799         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7800         Reported by Gary V. Vaughan <gary@gnu.org>.
7801
7802 2010-11-13  Bruno Haible  <bruno@clisp.org>
7803
7804         openat: Ensure autoconf macro ordering.
7805         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7806         gl_USE_SYSTEM_EXTENSIONS.
7807         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7808
7809 2010-11-13  Bruno Haible  <bruno@clisp.org>
7810
7811         Update comments.
7812         * lib/unistr/u8-check.c: Update file name in comments.
7813         * lib/unistr/u8-mblen.c: Likewise.
7814         * lib/unistr/u8-prev.c: Likewise.
7815         * lib/unistr/u8-strmblen.c: Likewise.
7816         * lib/unistr/u8-strmbtouc.c: Likewise.
7817
7818 2010-11-13  Jim Meyering  <meyering@redhat.com>
7819
7820         tests: avoid test failure on Solaris 10 due to lack of PATH export
7821         * tests/test-update-copyright.sh: Don't forget to export PATH.
7822
7823         init.sh: ensure that IFS is defined, just in case...
7824         * tests/init.sh (setup_): Ensure that IFS is defined,
7825         so that saving and restoring it works as expected.  This
7826         appears to be useful at least for an old version of dash
7827         from a long time ago (RH 6).  See here for details:
7828         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7829
7830         maint.mk: tighten "test a == b" check
7831         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7832         test to files that contain something like #!/bin/sh.
7833         Without this, coreutils would get two false positives in
7834         the comments of C source files.
7835
7836 2010-11-12  Eric Blake  <eblake@redhat.com>
7837
7838         bootstrap: fix typo in previous attempt
7839         * build-aux/bootstrap (buildreq): Correct the grouping.
7840         Reported by Paul Eggert.
7841
7842         maintainer-makefile: prohibit test x == x
7843         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7844         Based on a report by Matthias Bolte.
7845
7846         bootstrap: allow FreeBSD gzip
7847         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7848         which has no '.' and goes to stderr.
7849         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7850         Reported by Matthias Bolte.
7851
7852         maintainer-makefile: check for i18n setup
7853         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7854         will likely work.
7855
7856 2010-11-12  Bruno Haible  <bruno@clisp.org>
7857
7858         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7859         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7860         * lib/nanosleep.c (nanosleep): Likewise.
7861
7862 2010-11-11  Bruno Haible  <bruno@clisp.org>
7863
7864         fcntl-h: Fix for use of C++ on glibc systems.
7865         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7866         also on glibc systems in C++ mode.
7867         Reported by Gary V. Vaughan <gary@gnu.org>.
7868
7869 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7870
7871         mknod: avoid false failure with dash
7872         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7873
7874 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7875
7876         unlink: Fix "is it should" typo in diagnostic.
7877         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7878         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7879
7880 2010-11-11  Bruno Haible  <bruno@clisp.org>
7881
7882         Tests for module 'strerror_r-posix'.
7883         * modules/strerror_r-posix-tests: New file.
7884         * tests/test-strerror_r.c: New file.
7885         * tests/test-string-c++.cc: Check the signature of strerror_r.
7886
7887         New module 'strerror_r-posix'.
7888         * lib/string.in.h (strerror_r): New declaration.
7889         * lib/strerror_r.c: New file.
7890         * m4/strerror_r.m4: New file.
7891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7892         of strerror_r.
7893         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7894         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7895         * modules/strerror_r-posix: New file.
7896         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7897         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7898         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7899         portability problems.
7900
7901 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7902
7903         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7904         line is also considered for output. Quoted function name in shell
7905         command, so temporary files for functions like MyClass::operator()
7906         are removed correctly without errors.
7907
7908 2010-11-09  Bruno Haible  <bruno@clisp.org>
7909
7910         * doc/posix-functions/strerror.texi: List more failing platforms.
7911
7912         * doc/posix-functions/strerror.texi: Add a comment.
7913
7914 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7915
7916         fdopendir: fix bug on MacOS X when low on file descriptors
7917
7918         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7919         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7920         All callers changed.
7921         (fdopendir): Invoke save_cwd at the top level, not after using
7922         multiple dup() calls to use up file descriptors.  Then retry
7923         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7924         less than the maximum number of open file descriptors, because
7925         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7926         on Mac OS X 10.6.4 for tar 1.24
7927         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7928         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7929         and for tar 1.25
7930         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7931
7932 2010-11-07  Bruno Haible  <bruno@clisp.org>
7933
7934         vasnprintf: Support I flag on glibc systems.
7935         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7936         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7937         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7938         snprintf function.
7939         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7940         glibc systems.
7941         * tests/test-vasnprintf-posix3.c: New file.
7942         * modules/vasnprintf-posix-tests (Files): Add it.
7943         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7944
7945 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7946
7947         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7948         * MODULES.html.sh: For compiler warnings, use name
7949         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7950
7951 2010-11-05  Eric Blake  <eblake@redhat.com>
7952
7953         ceil, floor: avoid spurious failure with icc
7954         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7955         [denormals-as-zero] when optimizing without -mieee-fp option.
7956         * tests/test-floorf2.c (floorf_reference): Likewise.
7957         * tests/test-ceilf1.c (dummy): New function.
7958         (main): Use it to outsmart icc's optimization.
7959         * tests/test-floorf1.c (dummy, main): Likewise.
7960
7961         tests: require working signbit
7962         * modules/ceilf-tests (Depends-on): Add signbit.
7963         * modules/ceill-tests (Depends-on): Likewise.
7964         * modules/floorf-tests (Depends-on): Likewise.
7965         * modules/floorl-tests (Depends-on): Likewise.
7966         * modules/round-tests (Depends-on): Likewise.
7967         * modules/roundf-tests (Depends-on): Likewise.
7968         * modules/roundl-tests (Depends-on): Likewise.
7969         * modules/trunc-tests (Depends-on): Likewise.
7970         * modules/truncf-tests (Depends-on): Likewise.
7971         * modules/truncl-tests (Depends-on): Likewise.
7972
7973         strtod: work around icc bug
7974         * lib/strtod.c (minus_zero): Define to working value.
7975         (strtod): Use it to avoid icc bug.
7976
7977         copysign: enhance tests
7978         * modules/copysign-tests (Files): Add minus-zero.h.
7979         * tests/test-copysign.c (main): Also test zeros.
7980
7981 2010-11-04  Eric Blake  <eblake@redhat.com>
7982
7983         ceil, floor, round, trunc: enhance tests of -0
7984         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7985         * tests/test-ceill.c (main): Likewise.
7986         * tests/test-floorf1.c (main): Likewise.
7987         * tests/test-floorl.c (main): Likewise.
7988         * tests/test-round1.c (main): Likewise.
7989         * tests/test-roundf1.c (main): Likewise.
7990         * tests/test-roundl.c (main): Likewise.
7991         * tests/test-trunc1.c (main): Likewise.
7992         * tests/test-truncf1.c (main): Likewise.
7993         * tests/test-truncl.c (main): Likewise.
7994
7995 2010-11-04  Eric Blake  <eblake@redhat.com>
7996
7997         frexp, tests: work around ICC bug with -zero
7998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7999         works with more compilers.
8000         * tests/minus-zero.h: New file.
8001         * modules/ceilf-tests (Files): Include it.
8002         * modules/ceill-tests (Files): Likewise.
8003         * modules/floorf-tests (Files): Likewise.
8004         * modules/floorl-tests (Files): Likewise.
8005         * modules/frexp-nolibm-tests (Files): Likewise.
8006         * modules/frexp-tests (Files): Likewise.
8007         * modules/frexpl-nolibm-tests (Files): Likewise.
8008         * modules/frexpl-tests (Files): Likewise.
8009         * modules/isnan-tests (Files): Likewise.
8010         * modules/isnand-nolibm-tests (Files): Likewise.
8011         * modules/isnand-tests (Files): Likewise.
8012         * modules/isnanf-nolibm-tests (Files): Likewise.
8013         * modules/isnanf-tests (Files): Likewise.
8014         * modules/isnanl-nolibm-tests (Files): Likewise.
8015         * modules/isnanl-tests (Files): Likewise.
8016         * modules/round-tests (Files): Likewise.
8017         * modules/roundf-tests (Files): Likewise.
8018         * modules/roundl-tests (Files): Likewise.
8019         * modules/ldexpl-tests (Files): Likewise.
8020         * modules/signbit-tests (Files): Likewise.
8021         * modules/snprintf-posix-tests (Files): Likewise.
8022         * modules/sprintf-posix-tests (Files): Likewise.
8023         * modules/strtod-tests (Files): Likewise.
8024         * modules/trunc-tests (Files): Likewise.
8025         * modules/truncf-tests (Files): Likewise.
8026         * modules/truncl-tests (Files): Likewise.
8027         * modules/vsnprintf-posix-tests (Files): Likewise.
8028         * modules/vsprintf-posix-tests (Files): Likewise.
8029         * modules/vasnprintf-posix-tests (Files): Likewise.
8030         * modules/vasprintf-posix-tests (Files): Likewise.
8031         * tests/test-ceilf1.c (main): Use it.
8032         * tests/test-ceill.c (main): Likewise.
8033         * tests/test-floorf1.c (main): Likewise.
8034         * tests/test-floorl.c (main): Likewise.
8035         * tests/test-frexp.c (main): Likewise.
8036         * tests/test-frexpl.c (main): Likewise.
8037         * tests/test-isnan.c (main): Likewise.
8038         * tests/test-isnand.h (main): Likewise.
8039         * tests/test-isnanf.h (main): Likewise.
8040         * tests/test-isnanl.h (main): Likewise.
8041         * tests/test-ldexpl.c (main): Likewise.
8042         * tests/test-round.c (main): Likewise.
8043         * tests/test-roundf.c (main): Likewise.
8044         * tests/test-roundl.c (main): Likewise.
8045         * tests/test-signbit.c (test_signbitf, test_signbitd)
8046         (test_signbitl): Likewise.
8047         * tests/test-snprintf-posix.h (test_function): Likewise.
8048         * tests/test-sprintf-posix.h (test_function): Likewise.
8049         * tests/test-strtod.c (main): Likewise.
8050         * tests/test-trunc1.c (main): Likewise.
8051         * tests/test-truncf1.c (main): Likewise.
8052         * tests/test-truncl.c (main): Likewise.
8053
8054         isnanl: work around icc bug
8055         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8056
8057 2010-11-03  Eric Blake  <eblake@redhat.com>
8058
8059         tests: fix compiler warnings
8060         * tests/test-getopt.h (test_getopt): Fix condition.
8061         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8062         * tests/test-pipe2.c (main): Likewise.
8063         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8064
8065         utimens: fix broken m4 test
8066         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8067
8068 2010-10-28  Bruno Haible  <bruno@clisp.org>
8069
8070         posix_spawn*, getdtablesize: Relax license.
8071         * modules/posix_spawn (License): Change to LGPLv2+.
8072         * modules/posix_spawnp (License): Likewise.
8073         * modules/posix_spawn-internal (License): Likewise.
8074         * modules/posix_spawnattr_init (License): Likewise.
8075         * modules/posix_spawnattr_getflags (License): Likewise.
8076         * modules/posix_spawnattr_setflags (License): Likewise.
8077         * modules/posix_spawnattr_getpgroup (License): Likewise.
8078         * modules/posix_spawnattr_setpgroup (License): Likewise.
8079         * modules/posix_spawnattr_getschedparam (License): Likewise.
8080         * modules/posix_spawnattr_setschedparam (License): Likewise.
8081         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8082         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8083         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8084         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8085         * modules/posix_spawnattr_getsigmask (License): Likewise.
8086         * modules/posix_spawnattr_setsigmask (License): Likewise.
8087         * modules/posix_spawnattr_destroy (License): Likewise.
8088         * modules/posix_spawn_file_actions_init (License): Likewise.
8089         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8090         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8091         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8092         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8093         * modules/getdtablesize (License): Likewise.
8094         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8095
8096 2010-10-26  Bruno Haible  <bruno@clisp.org>
8097
8098         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8099         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8100         Cygwin and mingw.
8101         Suggested by Eric Blake.
8102
8103 2010-10-26  Bruno Haible  <bruno@clisp.org>
8104
8105         stdio: Work around compilation error due to renameat() on Solaris 10.
8106         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8107         * lib/renameat.c: Don't include <unistd.h> here.
8108         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8109         Reported by Paul Eggert and Eric Blake.
8110
8111 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8112
8113         renameat: port to Solaris 10, which declares renameat in unistd.h
8114
8115         * lib/renameat.c: Include unistd.h before stdio.h, because
8116         Solaris 10 declares renameat in unistd.h.  Problem encountered
8117         when building GNU tar 1.24 on Solaris 10.
8118
8119 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8120
8121         fdopendir: fix C89 compilation
8122         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8123         compilers.
8124
8125 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8126
8127         inttostr: simplify by removing unnecessary redundancy
8128         * lib/anytostr.c: Don't include verify.h.
8129         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8130         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8131         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8132         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8133         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8134         Likewise.
8135         * modules/inttostr (Depends-on): Remove 'verify'.
8136
8137 2010-10-23  Bruno Haible  <bruno@clisp.org>
8138
8139         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8140         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8141         Reported by Eric Blake.
8142
8143 2010-10-23  Bruno Haible  <bruno@clisp.org>
8144
8145         Tests: Fix LOCALE_JA on MirBSD 10.
8146         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8147         to an UTF-8 locale.
8148         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8149         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8150         Reported by Eric Blake.
8151
8152 2010-10-21  Bruno Haible  <bruno@clisp.org>
8153
8154         nl_langinfo test: Avoid test failure on NetBSD 5.
8155         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8156         Reported by Eric Blake.
8157
8158 2010-10-21  Eric Blake  <eblake@redhat.com>
8159
8160         c-stack: work around libsigsegv 2.8 bug
8161         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8162         overflow on at least PowerPC64.
8163
8164 2010-10-17  Bruno Haible  <bruno@clisp.org>
8165
8166         userspec: Drop redundant file.
8167         * modules/userspec (Files): Remove lib/inttostr.h.
8168
8169 2010-10-17  Bruno Haible  <bruno@clisp.org>
8170
8171         nl_langinfo tests: Silence some warnings.
8172         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8173         Reported by Jim Meyering.
8174
8175 2010-10-17  Bruno Haible  <bruno@clisp.org>
8176
8177         Make use of GCC's attribute __alloc_size__.
8178         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8179         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8180         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8181         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8182         __alloc_size__.
8183         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8184         Suggested by Jim Meyering.
8185
8186 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8187
8188         bootstrap: anchor .gitignore entries.
8189         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8190         with...
8191         (insert_vc_ignore): ... this new function, which prepends `/' to
8192         all .gitignore entries before passing them to
8193         insert_sorted_if_absent.
8194
8195 2010-10-16  Bruno Haible  <bruno@clisp.org>
8196
8197         nextafter: Fix configure check.
8198         * modules/nextafter (configure.ac): Correct expected prototype.
8199
8200 2010-10-16  Bruno Haible  <bruno@clisp.org>
8201
8202         termios: Update documentation.
8203         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8204
8205 2010-10-16  Bruno Haible  <bruno@clisp.org>
8206
8207         tests: Make them compile with TinyCC.
8208         * tests/test-strstr.c (main): Remove parentheses around array
8209         initializer.
8210
8211 2010-10-15  Eric Blake  <eblake@redhat.com>
8212
8213         ignore-value: make header idempotent
8214         * lib/ignore-value.h: Add double-inclusion guards.
8215         Reported by Stefan Berger.
8216
8217 2010-10-15  Jim Meyering  <meyering@redhat.com>
8218
8219         GNUmakefile: handle "stable" target, not "major"
8220         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8221         lists in maint.mk and announce-gen.  Without this, "make stable"
8222         would fail to ensure that $(VERSION) is up to date.
8223
8224 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8225
8226         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8227         & co.
8228
8229 2010-10-14  Bruno Haible  <bruno@clisp.org>
8230
8231         vasnprintf: Don't set errno to 0.
8232         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8233         block that sets it to 0.
8234         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8235
8236 2010-10-14  Bruno Haible  <bruno@clisp.org>
8237
8238         socketlib: Fix.
8239         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8240         gl_PREREQ_SYS_H_WINSOCK2.
8241         Reported by Ian Beckwith <ianb@erislabs.net>.
8242
8243 2010-10-13  Jim Meyering  <meyering@redhat.com>
8244
8245         test-select-stdin.c: avoid warn_unused_result warnings
8246         * tests/test-select-stdin.c: Include "macros.h".
8247         ASSERT that read and fflush succeed.
8248
8249 2010-10-13  Jim Meyering  <meyering@redhat.com>
8250
8251         git-version-gen: do require git-VC'd files in cwd
8252         * build-aux/git-version-gen: Reject a git version string
8253         if there are no commits associated with the current directory.
8254         This avoids an unlikely false-positive (unrelated dir whose parent
8255         repository also contains a tag matching v*), as pointed out
8256         by Giuseppe Scrivano in
8257         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8258
8259 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8260
8261         argv-iter: omit nonconforming declaration
8262         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8263         enum arg_iter_err declaration, which doesn't conform to C99.
8264         Solaris 10 cc warns about this.
8265
8266 2010-10-13  Eric Blake  <eblake@redhat.com>
8267
8268         termios: fix compilation on mingw
8269         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8270         (gl_TERMIOS_H): Adjust it on mingw.
8271         * modules/termios (Makefile.am): Substitute new key.
8272         * lib/termios.in.h (includes): Make include_next conditional.
8273         * doc/posix-headers/termios.texi (termios.h): Update
8274         documentation.
8275         Reported by Daniel P. Berrange.
8276
8277 2010-10-13  Jim Meyering  <meyering@redhat.com>
8278
8279         git-version-gen: don't require that .git/ be in the current dir
8280         * build-aux/git-version-gen: Adjust this script so that it works
8281         when run from any working directory beneath the top-level .git/-
8282         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8283         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8284
8285         test-select: avoid warn_unused_result warnings
8286         * tests/test-select.c: Include "macros.h".
8287         ASSERT that each call to read, write, and pipe succeeds.
8288         While not technically required, also check each "close".
8289         * modules/select-tests (Files): Add tests/macros.h.
8290
8291         test-symlinkat: remove declaration of unused local
8292         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8293
8294         test-inttostr: avoid shadowing warnings
8295         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8296         and use malloc rather than the stack for the same reason as
8297         mentioned in the comment justifying the other allocation.
8298
8299 2010-10-11  Bruno Haible  <bruno@clisp.org>
8300
8301         stdlib: Allow multiple gnulib generated replacements to coexist.
8302         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8303         Reported by Sam Steingold <sds@gnu.org>.
8304
8305 2010-10-11  Jim Meyering  <meyering@redhat.com>
8306
8307         fix a documentation typo
8308         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8309
8310 2010-10-11  Eric Blake  <eblake@redhat.com>
8311
8312         futimens: work around Solaris 11 bug
8313         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8314         * tests/test-futimens.h (test_futimens): Enhance, rather than
8315         weaken test.
8316         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8317
8318 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8319
8320         Indentation.
8321         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8322         higher-level operators more to the left.
8323
8324 2010-10-11  Jim Meyering  <meyering@redhat.com>
8325
8326         test-futimens: avoid unwarranted test failure on Solaris 5.11
8327         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8328         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8329         because it tries to dereference the NULL name argument.
8330
8331 2010-10-11  Bruno Haible  <bruno@clisp.org>
8332
8333         Indentation.
8334         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8335         indentation.
8336
8337 2010-10-11  Jim Meyering  <meyering@redhat.com>
8338
8339         spawn.in.h: make indentation consistent with parentheses
8340         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8341         Make indentation consistent with parentheses.
8342
8343 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8344
8345         Fix mismatched parens in previous commit
8346         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8347         parens.
8348
8349 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8352
8353         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8354         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8355         * lib/malloca.c: Include "verify.h".
8356         (verify1): Remove, replacing with a verify call.
8357         * lib/relocwrapper.c (verify1): Likewise.
8358         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8359         Likewise.
8360         * modules/malloca (Depends-on): Add 'verify'.
8361         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8362         * modules/vasnprintf (Depends-on): Add 'verify'.
8363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8365         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8366         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8367         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8368         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8369         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8370
8371         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8372
8373         Formerly the style was sometimes 2*X - 1, because the C standard
8374         was wrongly thought to disallow ?: in integral constant expressions.
8375         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8376         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8377         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8378         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8379         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8380         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8381         verify that time_t cannot be floating.
8382
8383 2010-10-08  Eric Blake  <eblake@redhat.com>
8384
8385         time: enforce recent POSIX ruling that time_t is integral
8386         * lib/time.in.h (__time_t_must_be_integral): Detect any
8387         problematic systems, allowing the rest of gnulib to assume POSIX.
8388
8389 2010-10-08  Jim Meyering  <meyering@redhat.com>
8390
8391         fdopendir: fix a bug on systems lacking openat and /proc support
8392         OpenBSD 4.7 is one such system.  The most noticeable effect was
8393         failure of any application making nontrivial use of fts: rm, du,
8394         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8395           ./rm: traversal failed: `a': Bad file descriptor
8396         Debugging that, you see that even though FD 6 was closed just
8397         prior to the opendir call in fd_clone_opendir, its resulting
8398         dir->dd_fd was 8, rather than the expected value of 6:
8399
8400         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8401         93                close (fd);
8402         (gdb) n
8403         94                dir = fd_clone_opendir (dupfd);
8404         (gdb) n
8405         95                saved_errno = errno;
8406         (gdb) p dir->dd_fd
8407         $11 = 8
8408
8409         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8410         The problem is that on OpenBSD, fd_clone_opendir has to resort
8411         to using the old-style save/restore CWD mechanism, due to its
8412         lack of openat/proc support, and *that* would steal the FD (6)
8413         that opendir was supposed to use.
8414
8415         The fix is to squirrel away the desired FD so that save_cwd uses a
8416         different one, and then free the dest FD right before calling opendir.
8417         That guarantees opendir will use the required file descriptor.
8418
8419         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8420
8421 2010-10-08  Bruno Haible  <bruno@clisp.org>
8422
8423         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8424         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8425
8426 2010-10-08  Bruno Haible  <bruno@clisp.org>
8427
8428         nanosleep: Make replacement POSIX compliant.
8429         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8430         is out of range.
8431         Reported by Jim Meyering.
8432
8433 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8434
8435         bootstrap: add hook for altering gnulib.mk, for Bison
8436         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8437         the Bison bootstrapping process can rewrite file names and variables
8438         in this file before later parts of 'bootstrap' use the file.
8439         Bison wants to include lib/gnulib.mk from the top-level makefile,
8440         so it needs the file names in this file to be relative to the top
8441         level, not relative to lib; plus it needs variable names to be
8442         rewritten.
8443         (slurp): Use the new function.
8444
8445         bootstrap: reformat for readability
8446         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8447
8448 2010-10-08  Eric Blake  <eblake@redhat.com>
8449
8450         docs: update cygwin progress
8451         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8452         1.7.7.
8453         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8454         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8455         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8456         * doc/posix-functions/carg.texi (carg): Likewise.
8457         * doc/posix-functions/cargf.texi (cargf): Likewise.
8458         * doc/posix-functions/casin.texi (casin): Likewise.
8459         * doc/posix-functions/casinf.texi (casinf): Likewise.
8460         * doc/posix-functions/casinh.texi (casinh): Likewise.
8461         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8462         * doc/posix-functions/catan.texi (catan): Likewise.
8463         * doc/posix-functions/catanf.texi (catanf): Likewise.
8464         * doc/posix-functions/catanh.texi (catanh): Likewise.
8465         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8466         * doc/posix-functions/ccos.texi (ccos): Likewise.
8467         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8468         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8469         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8470         * doc/posix-functions/cexp.texi (cexp): Likewise.
8471         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8472         * doc/posix-functions/cimag.texi (cimag): Likewise.
8473         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8474         * doc/posix-functions/clog.texi (clog): Likewise.
8475         * doc/posix-functions/clogf.texi (clogf): Likewise.
8476         * doc/posix-functions/conj.texi (conj): Likewise.
8477         * doc/posix-functions/conjf.texi (conjf): Likewise.
8478         * doc/posix-functions/cpow.texi (cpow): Likewise.
8479         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8480         * doc/posix-functions/cproj.texi (cproj): Likewise.
8481         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8482         * doc/posix-functions/creal.texi (creal): Likewise.
8483         * doc/posix-functions/crealf.texi (crealf): Likewise.
8484         * doc/posix-functions/csin.texi (csin): Likewise.
8485         * doc/posix-functions/csinf.texi (csinf): Likewise.
8486         * doc/posix-functions/csinh.texi (csinh): Likewise.
8487         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8488         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8489         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8490         * doc/posix-functions/ctan.texi (ctan): Likewise.
8491         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8492         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8493         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8494         * doc/posix-headers/complex.texi (complex.h): Likewise.
8495
8496 2010-10-07  Jim Meyering  <meyering@redhat.com>
8497
8498         parse-datetime: avoid compilation failure on OpenBSD 4.7
8499         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8500         This works around a compilation failure on OpenBSD 4.7:
8501         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8502
8503 2010-10-07  Eric Blake  <eblake@redhat.com>
8504
8505         docs: update cygwin progress
8506         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8507         1.7.6.
8508         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8509         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8510         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8511         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8512         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8513         Likewise.
8514         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8515         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8516         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8517         Likewise.
8518         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8519         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8520         Likewise.
8521         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8522         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8523         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8524         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8525         Likewise.
8526         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8527         Likewise.
8528         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8529
8530         docs: update parse-datetime history
8531         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8532         documentation of this function's history and alternatives.
8533
8534         cygwin: use more robust version check
8535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8536         exclude an eventual cygwin 1.9.1.
8537         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8539         (gl_FUNC_STRCASESTR): Likewise.
8540         Reported by Bruno Haible.
8541
8542 2010-10-06  Bruno Haible  <bruno@clisp.org>
8543
8544         string, sys_select: Avoid #including large headers unless necessary.
8545         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8546         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8547         OSF/1, BeOS, Haiku.
8548         Reported by Jim Meyering.
8549
8550 2010-10-05  Eric Blake  <eblake@redhat.com>
8551
8552         memmem, strstr, strcasestr: fix bug with long periodic needle
8553         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8554         periodic needle having false positive.
8555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8556         and cygwin 1.7.7.
8557         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8559         (gl_FUNC_STRCASESTR): Likewise.
8560         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8561         * tests/test-memmem.c (main): Expose the bug.
8562         * tests/test-strcasestr.c (main): Likewise.
8563         * tests/test-strstr.c (main): Likewise.
8564         * tests/test-c-strcasestr.c (main): Likewise.
8565         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8566         * doc/posix-functions/strstr.texi (strstr): Likewise.
8567         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8568         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8569
8570 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8571
8572         parse-datetime: do some more renaming
8573         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8574         parse_datetime, not get_date.  Mention the renaming.
8575         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8576         in comments.
8577         * m4/bison.m4: Likewise.
8578
8579 2010-10-05  Eric Blake  <eblake@redhat.com>
8580
8581         parse-datetime: better name than get_date
8582         * NEWS: Reword the deprecation notice.
8583         * modules/get_date: Rename to modules/parse-datetime.
8584         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8585         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8586         * lib/get_date.y: Rename to lib/parse-datetime.y.
8587         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8588         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8589         * doc/getdate.texi: Provide fallback wrapper.
8590         * lib/getdate.h: Move guts, and wrap...
8591         * lib/parse-datetime.h: ...new file.
8592         * lib/parse-datetime.y (get_date): Rename...
8593         (parse_datetime): ...to this.
8594         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8595         (gl_PARSE_DATETIME): ...to this.
8596         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8597         documentation.
8598         * modules/getdate (Files): Provide fallback docs and header.
8599         (Notice, Depends-on): Update references.
8600         * tests/test-parse-datetime.c: Likewise.
8601         * DEPENDENCIES: Likewise.
8602         * MODULES.html.sh (Date and time <time.h>): Likewise.
8603         * doc/parse-datetime.texi (Date input formats)
8604         (Authors of parse_datetime): Likewise.
8605         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8606         (Include): Likewise.
8607         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8608         * gnulib-tool: Likewise.
8609         * m4/bison.m4 (gl_BISON): Likewise.
8610         Suggested by Bruno Haible.
8611
8612 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8613
8614         more ports to Solaris tr, which needs [] around ranges
8615         * gnulib-tool: Solaris tr needs [] around ranges.
8616         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8617         * tests/test-pipe-filter-gi1.c (main): Likewise.
8618         * tests/test-pipe-filter-ii1.c (main): Likewise.
8619
8620 2010-10-05  Eric Blake  <eblake@redhat.com>
8621
8622         bootstrap: fix Solaris regression
8623         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8624         around ranges.
8625         Reported by Pádraig Brady.
8626
8627         bootstrap: work with pkg-config
8628         * build-aux/bootstrap (check_versions): Also transliterate - in
8629         prerequisite name.
8630         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8631         prerequisites that were already found, to avoid confusion.
8632         Reported by Justin Clift.
8633
8634         faccessat: remove unused wrappers
8635         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8636         presence of these wrappers dragged in -lgen on Solaris.
8637         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8638
8639 2010-10-05  Jim Meyering  <meyering@redhat.com>
8640
8641         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8642         * Makefile (sc_pragma_columns): New syntax-check rule.
8643
8644 2010-10-04  Bruno Haible  <bruno@clisp.org>
8645
8646         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8647         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8648         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8649         Reported by Bruce Korb and Eric Blake.
8650
8651 2010-10-04  Bruno Haible  <bruno@clisp.org>
8652
8653         threadlib: Make option --with-libpth-prefix work.
8654         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8655         use $LIBPTH, not just -lpth.
8656
8657 2010-10-04  Bruno Haible  <bruno@clisp.org>
8658
8659         Avoid line length limitation from HP NonStop system header files.
8660         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8661         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8662         * lib/ctype.in.h: Likewise.
8663         * lib/dirent.in.h: Likewise.
8664         * lib/errno.in.h: Likewise.
8665         * lib/fcntl.in.h: Likewise.
8666         * lib/float.in.h: Likewise.
8667         * lib/getopt.in.h: Likewise.
8668         * lib/iconv.in.h: Likewise.
8669         * lib/inttypes.in.h: Likewise.
8670         * lib/langinfo.in.h: Likewise.
8671         * lib/locale.in.h: Likewise.
8672         * lib/math.in.h: Likewise.
8673         * lib/netdb.in.h: Likewise.
8674         * lib/netinet_in.in.h: Likewise.
8675         * lib/poll.in.h: Likewise.
8676         * lib/pthread.in.h: Likewise.
8677         * lib/pty.in.h: Likewise.
8678         * lib/sched.in.h: Likewise.
8679         * lib/se-selinux.in.h: Likewise.
8680         * lib/search.in.h: Likewise.
8681         * lib/signal.in.h: Likewise.
8682         * lib/spawn.in.h: Likewise.
8683         * lib/stdarg.in.h: Likewise.
8684         * lib/stddef.in.h: Likewise.
8685         * lib/stdint.in.h: Likewise.
8686         * lib/stdio.in.h: Likewise.
8687         * lib/stdlib.in.h: Likewise.
8688         * lib/string.in.h: Likewise.
8689         * lib/strings.in.h: Likewise.
8690         * lib/sys_file.in.h: Likewise.
8691         * lib/sys_ioctl.in.h: Likewise.
8692         * lib/sys_select.in.h: Likewise.
8693         * lib/sys_socket.in.h: Likewise.
8694         * lib/sys_stat.in.h: Likewise.
8695         * lib/sys_time.in.h: Likewise.
8696         * lib/sys_times.in.h: Likewise.
8697         * lib/sys_utsname.in.h: Likewise.
8698         * lib/sys_wait.in.h: Likewise.
8699         * lib/sysexits.in.h: Likewise.
8700         * lib/termios.in.h: Likewise.
8701         * lib/time.in.h: Likewise.
8702         * lib/unistd.in.h: Likewise.
8703         * lib/wchar.in.h: Likewise.
8704         * lib/wctype.in.h: Likewise.
8705         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8706         * modules/ctype (Makefile.am): Likewise.
8707         * modules/dirent (Makefile.am): Likewise.
8708         * modules/errno (Makefile.am): Likewise.
8709         * modules/fcntl-h (Makefile.am): Likewise.
8710         * modules/float (Makefile.am): Likewise.
8711         * modules/getopt-posix (Makefile.am): Likewise.
8712         * modules/iconv-h (Makefile.am): Likewise.
8713         * modules/inttypes (Makefile.am): Likewise.
8714         * modules/langinfo (Makefile.am): Likewise.
8715         * modules/locale (Makefile.am): Likewise.
8716         * modules/math (Makefile.am): Likewise.
8717         * modules/netdb (Makefile.am): Likewise.
8718         * modules/netinet_in (Makefile.am): Likewise.
8719         * modules/poll-h (Makefile.am): Likewise.
8720         * modules/pthread (Makefile.am): Likewise.
8721         * modules/pty (Makefile.am): Likewise.
8722         * modules/sched (Makefile.am): Likewise.
8723         * modules/search (Makefile.am): Likewise.
8724         * modules/selinux-h (Makefile.am): Likewise.
8725         * modules/signal (Makefile.am): Likewise.
8726         * modules/spawn (Makefile.am): Likewise.
8727         * modules/stdarg (Makefile.am): Likewise.
8728         * modules/stddef (Makefile.am): Likewise.
8729         * modules/stdint (Makefile.am): Likewise.
8730         * modules/stdio (Makefile.am): Likewise.
8731         * modules/stdlib (Makefile.am): Likewise.
8732         * modules/string (Makefile.am): Likewise.
8733         * modules/strings (Makefile.am): Likewise.
8734         * modules/sys_file (Makefile.am): Likewise.
8735         * modules/sys_ioctl (Makefile.am): Likewise.
8736         * modules/sys_select (Makefile.am): Likewise.
8737         * modules/sys_socket (Makefile.am): Likewise.
8738         * modules/sys_stat (Makefile.am): Likewise.
8739         * modules/sys_time (Makefile.am): Likewise.
8740         * modules/sys_times (Makefile.am): Likewise.
8741         * modules/sys_utsname (Makefile.am): Likewise.
8742         * modules/sys_wait (Makefile.am): Likewise.
8743         * modules/sysexits (Makefile.am): Likewise.
8744         * modules/termios (Makefile.am): Likewise.
8745         * modules/time (Makefile.am): Likewise.
8746         * modules/unistd (Makefile.am): Likewise.
8747         * modules/wchar (Makefile.am): Likewise.
8748         * modules/wctype (Makefile.am): Likewise.
8749
8750 2010-10-04  Bruno Haible  <bruno@clisp.org>
8751
8752         read-file tests: Avoid a test failure on NonStop Kernel.
8753         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8754         a regular file.
8755         Reported by Joachim Schmitz <schmitz@hp.com>.
8756
8757 2010-10-03  Bruno Haible  <bruno@clisp.org>
8758
8759         gnulib-tool: Fixes for --create-testdir with --libtool.
8760         * gnulib-tool (func_get_automake_snippet): Don't augment
8761         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8762         an executable.
8763         (func_create_testdir): Handle module 'alloca' like func_import.
8764         Reported by Bruce Korb <bruce.korb@gmail.com>.
8765
8766 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8767
8768         Avoid some lines longer than 80 characters.
8769         * lib/stdint.in.h: Break long comment lines.
8770         * lib/math.in.h: Likewise.
8771         (_GL_NUM_UINT_WORDS): New macro, for readability.
8772         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8773         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8774         * lib/stdlib.in.h: Likewise.
8775         * lib/spawn.in.h: Likewise.
8776         * lib/sys_socket.in.h: Update an URL.
8777         * lib/sys_stat.in.h: Break long line.
8778
8779 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8780
8781         Improve pmccabe2html.
8782         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8783         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8784         when the sources change. Remove the line in the HTML about "Used
8785         ranges" (which implied that there might be other unused ranges),
8786         rename "Resume" to "Summary" (easier to understand for more users).
8787         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8788         styles, and some unnecessary blank lines.
8789
8790 2010-10-03  Bruno Haible  <bruno@clisp.org>
8791             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8792
8793         acl: Add support for ACLs on NonStop Kernel.
8794         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8795         Check whether the function aclsort() exists.
8796         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8797         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8798         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8799         (acl_nontrivial [HAVE_ACLSORT]: New function.
8800         (file_has_acl): Implement for NonStop Kernel.
8801         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8802         (qset_acl): Implement for NonStop Kernel.
8803         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8804         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8805         (main): Implement for NonStop Kernel.
8806         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8807         Kernel. Handle this flavor.
8808         * tests/test-set-mode-acl.sh: Likewise.
8809         * tests/test-copy-acl.sh: Likewise.
8810         * tests/test-copy-file.sh: Likewise.
8811
8812 2010-10-03  Bruno Haible  <bruno@clisp.org>
8813
8814         Info about ACLs on NonStop Kernel.
8815         * doc/acl-resources.txt: Add info about NonStop Kernel.
8816         References by Joachim Schmitz <schmitz@hp.com>.
8817
8818 2010-10-02  Bruno Haible  <bruno@clisp.org>
8819
8820         Define missing EDQUOT on NonStop Kernel.
8821         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8822         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8824         missing.
8825         * doc/posix-headers/errno.texi: Mention the NSK bug.
8826         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8827         Reported by Joachim Schmitz <schmitz@hp.com>.
8828
8829 2010-10-02  Bruno Haible  <bruno@clisp.org>
8830
8831         Update doc for POSIX:2008.
8832         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8833         Update URL of POSIX specification.
8834
8835 2010-10-02  Bruno Haible  <bruno@clisp.org>
8836
8837         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8838         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8839         from gnulib, not from Automake.
8840
8841 2010-10-02  Bruno Haible  <bruno@clisp.org>
8842
8843         New module 'system-posix'.
8844         * modules/system-posix: New file.
8845         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8846         module is present.
8847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8848         GNULIB_SYSTEM_POSIX.
8849         * modules/stdlib (Depends-on): Remove sys_wait.
8850         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8851         * doc/posix-functions/system.texi: Mention the new module.
8852         * doc/posix-headers/stdlib.texi: Likewise.
8853         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8854         define test_sys_wait_macros to a no-op.
8855         Reported by Sam Steingold <sds@gnu.org>.
8856
8857 2010-09-30  Bruno Haible  <bruno@clisp.org>
8858
8859         More renaming from 'getdate' to 'get_date'.
8860         * doc/get_date.texi: Renamed from doc/getdate.texi.
8861         * modules/get_date (Files): Update.
8862         * MODULES.html.sh (Date and time <time.h>): Update.
8863         * DEPENDENCIES: Update.
8864         * gnulib-tool: Update comment.
8865         * m4/bison.m4 (gl_BISON): Likewise.
8866         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8867
8868 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8869
8870         bootstrap: support ACLOCAL_FLAGS during aclocal
8871         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8872         can add additional -I dir for third-party .m4 files.
8873
8874 2010-09-30  Eric Blake  <eblake@redhat.com>
8875
8876         bootstrap: use glibtoolize on MacOS
8877         * build-aux/bootstrap (check_versions): Convert libtool into
8878         libtoolize.
8879         (tool search): Move libtool check earlier, and look for
8880         glibtoolize for MacOS.
8881         (gnulib_tool_options): Auto-add --libtool when appropriate.
8882         Reported by Justin Clift.
8883
8884         poll: fix typo that broke test on MacOS
8885         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8886         Reported by Justin Clift.
8887
8888         getdate: rename to get_date
8889         Note: getdate.h is not renamed, to minimize client impact.
8890         * modules/getdate: Mark obsolete.  Move old contents...
8891         * modules/get_date: ...to new module name.
8892         * modules/getdate-tests: Move...
8893         * modules/get_date-tests: ...here.
8894         * m4/getdate.m4: Move...
8895         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8896         * lib/getdate.y: Move...
8897         * lib/get_date.y: ...here.
8898         * tests/test-getdate.c: Move...
8899         * tests/test-get_date.c: ...here.
8900         * doc/posix-functions/getdate.texi (getdate): Update name.
8901         * NEWS: Mention the change.
8902
8903 2010-09-29  Bruno Haible  <bruno@clisp.org>
8904
8905         Separate the module 'waitpid' from the module 'sys_wait'.
8906         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8907         present.
8908         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8909         gl_MODULE_INDICATOR_FOR_TESTS.
8910         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8911         * modules/sys_wait (Depends-on): Remove waitpid.
8912         (Makefile.am): Substitute GNULIB_WAITPID.
8913         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8914         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8915         signature only if the 'waitpid' module is present.
8916         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8917         * NEWS: Mention the change.
8918         * modules/grantpt (Depends-on): Add waitpid.
8919         * modules/wait-process (Depends-on): Likewise.
8920
8921 2010-09-29  Bruno Haible  <bruno@clisp.org>
8922
8923         More tests for module 'sys_wait'.
8924         * modules/sys_wait-c++-tests: New file.
8925         * tests/test-sys_wait-c++.cc: New file.
8926         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8927         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8928
8929 2010-09-29  Bruno Haible  <bruno@clisp.org>
8930
8931         New module 'waitpid'.
8932         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8933         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8934         Don't include <process.h>.
8935         (waitpid): Declare only, using modern idiom.
8936         * m4/waitpid.m4: New file.
8937         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8938         * modules/waitpid: New file.
8939         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8940         (Makefile.am): Update.
8941         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8942
8943 2010-09-28  Bruno Haible  <bruno@clisp.org>
8944
8945         poll: Assume ANSI C.
8946         * lib/poll.c (poll): Use an ANSI C declaration.
8947
8948 2010-09-28  Bruno Haible  <bruno@clisp.org>
8949
8950         poll-h: Create poll.h on all platforms.
8951         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8952         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8953         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8954         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8955         (gl_REPLACE_POLL_H): Don't set POLL_H.
8956         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8957         * modules/poll-h (Depends-on): Add include_next.
8958         (Makefile.am): Create poll.h unconditionally. Substitute also
8959         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8960
8961 2010-09-28  Bruno Haible  <bruno@clisp.org>
8962
8963         Tests for module 'poll-h'.
8964         * modules/poll-h-c++-tests: New file.
8965         * tests/test-poll-h-c++.cc: New file.
8966
8967         Tests for module 'poll-h'.
8968         * modules/poll-h-tests: New file.
8969         * tests/test-poll-h.c: New file.
8970
8971 2010-09-28  Bruno Haible  <bruno@clisp.org>
8972
8973         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8974         * modules/poll-h (Depends-on): Add 'extensions'.
8975
8976 2010-09-28  Bruno Haible  <bruno@clisp.org>
8977
8978         New module 'poll-h'.
8979         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8980         (poll): Use modern idiom.
8981         * modules/poll-h: New file.
8982         * modules/poll (Files): Remove lib/poll.in.h.
8983         (Depends-on): Add poll-h.
8984         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8985         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8986         * m4/poll_h.m4: New file.
8987         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8988         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8989         and invoke gl_REPLACE_POLL_H.
8990         * lib/poll.c: Use common idiom.
8991         * tests/test-poll.c: Likewise.
8992         * doc/posix-headers/poll.texi: Mention the poll-h module.
8993         Suggested by Eric Blake.
8994
8995 2010-09-26  Bruno Haible  <bruno@clisp.org>
8996
8997         sys_wait: Implement WSTOPSIG.
8998         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8999         Reported by Simon Josefsson.
9000
9001 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9002
9003         stdlib, sys_wait: Avoid compilation error on mingw.
9004         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9005
9006 2010-09-26  Bruno Haible  <bruno@clisp.org>
9007
9008         stdlib tests: Avoid code duplication.
9009         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9010         * modules/sys_wait-tests (Files): Likewise.
9011         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9012         * tests/test-stdlib.c: Include test-sys_wait.h.
9013         (main): Invoke test_sys_wait_macros.
9014         * tests/test-sys_wait.c: Include test-sys_wait.h.
9015         (main): Invoke test_sys_wait_macros.
9016
9017 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9018
9019         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9020         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9021         sure Windows sockets are working before calling getaddrinfo.
9022         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9023         * doc/gnulib.texi (Windows sockets): Fix typo.
9024
9025 2010-09-25  Bruno Haible  <bruno@clisp.org>
9026
9027         Tests for module 'regex-quote'.
9028         * modules/regex-quote-tests: New file.
9029         * tests/test-regex-quote.c: New file.
9030
9031         New module 'regex-quote'.
9032         * lib/regex-quote.h: New file.
9033         * lib/regex-quote.c: New file.
9034         * modules/regex-quote: New file.
9035         Suggested by Reuben Thomas <rrt@sc3d.org>.
9036
9037 2010-09-24  Bruno Haible  <bruno@clisp.org>
9038
9039         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9040         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9041
9042 2010-09-23  Bruno Haible  <bruno@clisp.org>
9043
9044         setenv: Relax license.
9045         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9046         Blake.
9047         Requested by Eric Blake.
9048
9049 2010-09-22  Bruno Haible  <bruno@clisp.org>
9050
9051         termios: Relax license.
9052         * modules/termios (License): Change to LGPLv2+.
9053         Requested by Eric Blake.
9054
9055 2010-09-22  Bruno Haible  <bruno@clisp.org>
9056
9057         threadlib: Allow the package to change the default to 'no'.
9058         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9059         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9060         Reported by Paul Eggert.
9061
9062 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9063             Bruno Haible  <bruno@clisp.org>
9064
9065         Fix endless loop in mbmemcasecoll.
9066         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9067         byte.
9068         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9069
9070 2010-09-22  Bruno Haible  <bruno@clisp.org>
9071
9072         Tests for module 'memcoll'.
9073         * modules/memcoll-tests: New file.
9074         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9075
9076         memcoll, xmemcoll: Clarify size vs. length.
9077         * modules/memcoll.c (memcoll0): Clarify specification.
9078         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9079         passed to collate_error.
9080
9081 2010-09-22  Bruno Haible  <bruno@clisp.org>
9082
9083         Tests for module 'memcasecmp'.
9084         * modules/memcasecmp-tests: New file.
9085         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9086
9087 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9088
9089         * lib/pthread.in.h: Add split double-inclusion guard, and include
9090         system <pthread.h> if there is one.  Use @@-style as in other
9091         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9092         pthread.h doesn't.
9093         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9094         (pthread_mutexattr_settype, pthread_mutex_trylock):
9095         New static inline functions, if there's no system <pthread.h>.
9096         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9097         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9098         Approximate with mutexes if the system lacks spinlocks, as in
9099         MacOS.
9100         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9101         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9102         @@-style.  Check for spinlocks separately.
9103         (gl_PTHREAD_DEFAULTS): New macro.
9104         * modules/pthread: Redo to use a more typical style for in.h files.
9105
9106 2010-09-21  Eric Blake  <eblake@redhat.com>
9107
9108         net_if: enhance tests
9109         * tests/test-net_if.c (main): Move signature checks earlier.
9110         Print failures to stderr.
9111         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9112         Document the bug that we do not yet fix.
9113
9114 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9115
9116         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9117         about gnulib, not GSS.
9118
9119 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9120
9121         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9122         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9123         for Emacs.
9124         * build-aux/pmccabe2html: Make Makefile.am example code more
9125         cut-and-paste friendly.
9126
9127 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9128
9129         * tests/test-net_if.c: New file.
9130         * modules/net_if-tests: New file.
9131
9132 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9133
9134         pthread: add pthread_spin_destroy
9135         * lib/pthread.in.h (pthread_spin_destroy): New function.
9136
9137 2010-09-19  Bruno Haible  <bruno@clisp.org>
9138
9139         gnulib-tool: Fix --help output.
9140         * gnulib-tool (func_usage): Fix help message.
9141         Reported by Reuben Thomas <rrt@sc3d.org>.
9142
9143 2010-09-18  Jim Meyering  <meyering@redhat.com>
9144
9145         maint.mk: avoid unexpanded \n in two diagnostics
9146         * top/maint.mk (sc_prohibit_always_true_header_tests):
9147         Don't use a literal \n in a halt=... assignment.  It would not be
9148         expanded, and the two \n bytes would appear in the diagnostic output
9149         rather than the desired newline.  Use halt=$$(printf ... instead.
9150         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9151
9152 2010-09-18  Bruno Haible  <bruno@clisp.org>
9153
9154         netinet_in: Doc tweak.
9155         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9156         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9157
9158 2010-09-18  Jim Meyering  <meyering@redhat.com>
9159
9160         init.sh: correct an outdated comment
9161         * tests/init.sh (create_exe_shims_):  s/function/alias/
9162
9163         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9164         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9165         a file named "*.exe" is removed between the glob expansion and the
9166         processing of that oddly named file.
9167
9168 2010-09-17  Eric Blake  <eblake@redhat.com>
9169
9170         mirbsd: add some more support
9171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9172         in BSD family.
9173         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9174         devices as OpenBSD.
9175         * m4/host-os.m4 (mirbsd): Add MirBSD.
9176
9177         tests: fix unportable assumption on sys/wait.h
9178         * tests/test-sys_wait.c (main): Relax test.
9179         * tests/test-stdlib.c (main): Likewise.
9180
9181         init.sh: accomodate directory with no .exes
9182         * tests/init.sh: Accomodate directory containing only scripts.
9183
9184         tests: avoid compiler warning
9185         * tests/test-stdlib.c (main): Use the variable.
9186
9187         fdutimens, fdutimensat: update signature, again
9188         * lib/utimens.h (gl_futimens): Delete, and move signature...
9189         (fdutimens): ...here.
9190         (fdutimensat): Rearrange signature.
9191         (lutimensat): Rename variable for clarity.
9192         * lib/fdutimensat.c (fdutimensat): Update signature.
9193         * lib/utimens.c (fdutimens): Likewise.
9194         (gl_futimens): Delete.
9195         (utimens, lutimens): Update callers.
9196         * lib/futimens.c (futimens): Likewise.
9197         * tests/test-fdutimensat.c: Likewise.
9198         * tests/test-utimens.c: Likewise.
9199         * tests/test-futimens.h: Update comment.
9200         * NEWS: Mention this.
9201         Suggested by Paul Eggert.
9202
9203 2010-09-17  Bruno Haible  <bruno@clisp.org>
9204
9205         Take over the maintenance of some older macros from Autoconf.
9206         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9207         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9208         GNU Autoconf.
9209         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9210         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9211
9212 2010-09-17  Eric Blake  <eblake@redhat.com>
9213
9214         fdutimensat: drop atflag validation
9215         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9216         with valid fd, to close a race scenario where futimens is
9217         unsupported and FILE was replaced by a symlink.
9218         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9219         accordingly.
9220         Suggested by Paul Eggert.
9221
9222 2010-09-16  Bruno Haible  <bruno@clisp.org>
9223
9224         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9225         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9226
9227 2010-09-16  Bruno Haible  <bruno@clisp.org>
9228
9229         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9230         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9231         login_tty exists.
9232         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9233
9234 2010-09-16  Bruno Haible  <bruno@clisp.org>
9235
9236         login_tty: Make the replacement code work on BSD systems.
9237         * lib/login_tty.c: Include <sys/ioctl.h>.
9238         (login_tty): Use ioctl TIOCSCTTY when available.
9239         * modules/login_tty (Depends-on): Add sys_ioctl.
9240         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9241
9242 2010-09-16  Bruno Haible  <bruno@clisp.org>
9243
9244         login_tty: Stricter unit test.
9245         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9246         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9247         and tcgetsid() after login_tty.
9248         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9249
9250 2010-09-16  Bruno Haible  <bruno@clisp.org>
9251
9252         New module 'tcgetsid'.
9253         * lib/tcgetsid.c: New file.
9254         * m4/tcgetsid.m4: New file.
9255         * modules/tcgetsid: New file.
9256         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9257         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9258         GNULIB_TCGETSID, HAVE_TCGETSID.
9259         * lib/termios.in.h: Include <sys/types.h>.
9260         (tcgetsid): New declaration.
9261         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9262         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9263         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9264         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9265
9266 2010-09-16  Bruno Haible  <bruno@clisp.org>
9267
9268         Tests for module 'termios'.
9269         * modules/termios-c++-tests: New file.
9270         * modules/termios-tests: New file.
9271         * tests/test-termios-c++.cc: New file.
9272         * tests/test-termios.c: New file.
9273
9274         New module 'termios'.
9275         * modules/termios: New file.
9276         * lib/termios.in.h: New file.
9277         * m4/termios_h.m4: New file.
9278         * doc/posix-headers/termios.texi: Mention the new module.
9279
9280 2010-09-16  Eric Blake  <eblake@redhat.com>
9281
9282         fdutimensat: add an atflag parameter
9283         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9284         * lib/utimens.h (fdutimensat): Update prototype.
9285         * tests/test-fdutimensat.c: Adjust test to match.
9286         * NEWS: Document the change.
9287         Suggested by Paul Eggert.
9288
9289 2010-09-16  Bruno Haible  <bruno@clisp.org>
9290
9291         Fix typos in comments.
9292         * lib/striconveh.h: Fix typo in comment.
9293         * lib/login_tty.c (login_tty): Likewise.
9294
9295 2010-09-15  Bruno Haible  <bruno@clisp.org>
9296
9297         stdlib: clarify MirBSD WEXITSTATUS bug
9298         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9299         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9300
9301 2010-09-15  Eric Blake  <eblake@redhat.com>
9302
9303         stdlib: work around MirBSD WEXITSTATUS bug
9304         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9305         * modules/stdlib (Depends-on): Add sys_wait.
9306         * tests/test-sys_wait.c (main): Enhance test.
9307         * tests/test-stdlib.c (main): Likewise.
9308         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9309
9310         docs: mention MacOS issue with WEXITSTATUS(constant)
9311         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9312         issue.
9313         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9314
9315         strnlen: add tests
9316         * modules/strnlen-tests: New file.
9317         * tests/test-strnlen.c: Likewise.
9318
9319 2010-09-14  Bruno Haible  <bruno@clisp.org>
9320
9321         unistr/base: Avoid link errors when module 'libunistring' is also used.
9322         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9323         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9324         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9325         Declare also when HAVE_LIBUNISTRING is set.
9326         Reported by Pádraig Brady <P@draigbrady.com>.
9327
9328 2010-09-14  Eric Blake  <eblake@redhat.com>
9329
9330         test-rawmemchr: make more robust
9331         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9332         (Depends-on, configure.ac): Add needed prerequisites to use it.
9333         * modules/memchr-tests (Files, Depends-on, configure.ac):
9334         Likewise, to avoid implicit reliance on memchr module prereqs.
9335         * tests/test-memchr.c (main): Ensure proper masking.
9336         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9337         reads.
9338
9339         memchr: detect glibc Alpha bug
9340         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9341         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9342         Alpha.
9343         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9344         * tests/test-memchr.c (main): Enhance test.
9345         Reported by Nelson H. F. Beebe.
9346
9347 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9348
9349         fts, getcwd, glob: audit for dirfd returning -1
9350         * lib/fts.c (opendir): Remove #define; no longer used.
9351         (opendirat): New arg PDIR_FD.  All callers changed.
9352         (fts_build, _opendir2): Use new opendirat to avoid the need for
9353         dirfd, or for checking whether dirfd returns a negative value.
9354         Don't use opendir; always use openat followed by fdopendir.
9355         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9356         it.
9357         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9358         returns -1 here.
9359         * modules/fts (Depends-on): Remove dirfd.
9360         * modules/getcwd (Depends-on): Likewise.
9361
9362 2010-09-13  Eric Blake  <eblake@redhat.com>
9363
9364         float: fix broken MirBSD header
9365         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9366         * doc/posix-headers/float.texi (float.h): Document it.
9367
9368 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9369
9370         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9371         * lib/fts.c (opendirat): New arg extra_flags.
9372         (__opendir2): Use it to avoid following symlinks when opening
9373         a directory, if symlinks are not supposed to be followed.  See
9374         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9375
9376         fdopendir: preserve argument fd before returning
9377         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9378         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9379         (fdopendir): Use them, arranging for FD to be open to the same
9380         directory that it was when it started.  (It might be temporarily
9381         closed while fdopendir is running, so this not thread- or
9382         signal-safe.)  Be careful to do the right thing even when file
9383         descriptors are scarce and dup fails with errno == EMFILE.  See
9384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9385
9386 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9387
9388         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9389         * NEWS: Document change.
9390         * m4/regex.m4: Disable test for regoff_t size.
9391
9392 2010-09-13  Jim Meyering  <meyering@redhat.com>
9393
9394         fts: don't operate on an invalid file descriptor after failed dup
9395         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9396         negative file descriptor.
9397
9398 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9399
9400         savedir: add streamsavedir, deprecate fdsavedir
9401         * NEWS: Mention deprecation of fdsavedir.
9402         * lib/savedir.c (streamsavedir): New extern function, whose name
9403         ends in "savedir" to be consistent with the others.  This differs
9404         from savedirstream in that it doesn't close its argument.  The
9405         next version of GNU tar will use this instead of fdsavedir, to
9406         avoid some race conditions and conserve file descriptors.
9407         (savedirstream): Reimplement as a wrapper around streamsavedir.
9408         (fdsavedir): Add a comment deprecating this function.  As far as
9409         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9410         * lib/savedir.h (streamsavedir): New decl.
9411         (fdsavedir): Add a comment deprecating this.
9412
9413 2010-09-10  Bruno Haible  <bruno@clisp.org>
9414
9415         langinfo: Fix last commit.
9416         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9417         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9419
9420 2010-09-10  Bruno Haible  <bruno@clisp.org>
9421
9422         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9423         * lib/progreloc.c (O_EXEC): Define fallback.
9424
9425 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9426
9427         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9428         * NEWS: Document recent changes to fcntl-h.
9429         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9430         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9431         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9432         Similarly for O_SEARCH; this last was already true, but not documented.
9433         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9434         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9435         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9436         Likewise.
9437         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9438         is zero, not whether it is defined.
9439         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9440         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9441         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9442
9443 2010-09-10  Bruno Haible  <bruno@clisp.org>
9444
9445         langinfo, nl_langinfo: Fix for IRIX 5.3.
9446         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9447         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9448         HAVE_LANGINFO_YESEXPR.
9449         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9450         HAVE_LANGINFO_YESEXPR.
9451         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9452         HAVE_LANGINFO_T_FMT_AMPM is 0.
9453         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9454         HAVE_LANGINFO_YESEXPR is 0.
9455         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9456         NOEXPR.
9457         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9458         * doc/posix-functions/nl_langinfo.texi: Likewise.
9459         Reported by Eric Blake.
9460
9461 2010-09-10  Bruno Haible  <bruno@clisp.org>
9462
9463         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9464         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9465         on FreeBSD 8.0 and OpenBSD 4.6.
9466         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9467         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9468         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9469         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9470         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9471         ac_includes_default.
9472         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9473
9474 2010-09-09  Eric Blake  <eblake@redhat.com>
9475
9476         strsignal: work around NetBSD bug
9477         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9478         * lib/string.in.h (includes): Likewise.
9479         * doc/posix-functions/strsignal.texi (strsignal): Document the
9480         bug.
9481         Reported by Nelson H. F. Beebe.
9482
9483         gnulib-tool: work with NetBSD /bin/sh
9484         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9485         (func_get_description, func_get_comment, func_get_status)
9486         (func_get_notice, func_get_applicability, func_get_filelist)
9487         (func_get_dependencies, func_get_autoconf_early_snippet)
9488         (func_get_autoconf_snippet, func_get_automake_snippet)
9489         (func_get_include_directive, func_get_link_directive)
9490         (func_get_license, func_get_maintainer, func_import): Avoid
9491         shell syntax errors from parsing syntax extensions.
9492
9493 2010-09-09  Bruno Haible  <bruno@clisp.org>
9494
9495         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9496         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9497         a reliable way to determine whether the 'alias' command works.
9498
9499 2010-09-08  Jim Meyering  <meyering@redhat.com>
9500
9501         init.sh: penalize a set-x-impaired shell; don't disqualify it
9502         * tests/init.sh: Too many shells corrupt application stderr when
9503         you set -x, so we can't afford to disqualify them, since at least
9504         on Irix-6.5, that would disqualify all bourne shells.
9505         Instead, use a two-pass approach.
9506         On the first pass, try to find a shell that meets the stricter
9507         condition that set -x does not corrupt stderr.
9508         If no shell meets the stricter condition, retest each candidate
9509         shell, but without that extra condition.  Finally, when
9510         VERBOSE=yes is requested and set -x might cause trouble, simply
9511         issue a warning and refrain from enabling debug output.
9512
9513 2010-09-08  Eric Blake  <eblake@redhat.com>
9514
9515         unsetenv: fix OpenBSD bug
9516         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9517         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9518         documentation.
9519         Reported by Jim Meyering.
9520
9521         strtod: work around IRIX 6.5 bug
9522         * lib/strtod.c (strtod): Reparse number on shorter string if
9523         exponent parse was invalid.
9524         * tests/test-strtod.c (main): Add check for "0x1p 2".
9525         Reported by Tom G. Christensen.
9526
9527         getopt: optimize previous patch
9528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9529         empty variable.  Speed up awk script.
9530         Reported by Paolo Bonzini.
9531
9532 2010-09-08  Jim Meyering  <meyering@redhat.com>
9533
9534         test.sh: disqualify shells for which set -x corrupts stderr
9535         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9536         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9537         appear in stderr output.  For example, this command:
9538             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9539         prints "P=1" on those two systems:
9540
9541 2010-09-08  Bruno Haible  <bruno@clisp.org>
9542
9543         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9544         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9545         commands, because some shells ignore redirections when there is an
9546         error in the command lookup.
9547         Reported by Eric Blake.
9548
9549 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9550
9551         * lib/regex.h: Fix a mention of `regex_compile' (should be
9552         `re_compile_pattern').
9553         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9554         (re_set_registers): Correct name of parameter in comment.
9555
9556         * doc/regex.texi: Add documentation for missing syntax flags.
9557         Remove commented-out documentation of defunct syntax option
9558         RE_NO_EMPTY_ALTS.
9559         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9560         Add documentation of re_set_registers.
9561         Document trick to re-use a pattern buffer by setting fastmap manually.
9562         Update documentation of struct re_pattern_buffer per public members.
9563         Uncomment documentation of equivalence class operators and
9564         collating symbol operators, since they are now implemented,
9565         Explain leftmost-longest matching in relation to alternatives.
9566         Tidy documentation of substring matching.
9567         Remove POSIX documentation, which is done better in
9568         glibc, and refer the reader there. Keep BSD API documentation, as
9569         that is not readily available elsewhere.
9570
9571 2010-09-07  Eric Blake  <eblake@redhat.com>
9572
9573         getopt: handle POSIXLY_CORRECT set but not exported
9574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9575         export state of POSIXLY_CORRECT, due to bash set -o posix.
9576         Reported by Dustin J. Mitchell.
9577
9578 2010-09-05  Bruno Haible  <bruno@clisp.org>
9579
9580         gnulib-tool: Highlight the changed options.
9581         * gnulib-tool (func_usage): Display the --import, --add-import,
9582         --remove-import explanations in bold font.
9583
9584 2010-09-06  Karl Berry  <karl@gnu.org>
9585
9586         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9587
9588 2010-09-05  Bruno Haible  <bruno@clisp.org>
9589
9590         uniwidth/width: Update comment.
9591         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9592         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9593
9594 2010-09-05  Bruno Haible  <bruno@clisp.org>
9595
9596         isinf, isnan: Relax license.
9597         * modules/isinf (License): Change from GPL to LGPL, with consent from
9598         Ben Pfaff.
9599         * modules/isnan (License): Likewise.
9600         Requested by Ludovic Courtès.
9601
9602 2010-09-04  Bruno Haible  <bruno@clisp.org>
9603
9604         gnulib-tool: Help migration from --import to --add-import or --update.
9605         * gnulib-tool: Emit a verbose error message when --import is used
9606         without any module name.
9607
9608 2010-09-04  Bruno Haible  <bruno@clisp.org>
9609
9610         Update doc about gnulib-tool.
9611         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9612         'gnulib-tool --update' in more detail.
9613         Reported by Eric Blake.
9614
9615 2010-09-04  Bruno Haible  <bruno@clisp.org>
9616
9617         gnulib-tool: Change --import. New options --add/remove-import.
9618         * gnulib-tool: New options --add-import, --remove-import.
9619         (func_usage): Document them.
9620         (have_associative): Define always.
9621         (func_import): In import mode, don't merge the specified settings with
9622         the cached settings. Implement remove-import mode.
9623         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9624         Explain when to use them versus --import.
9625         (Simple update): Use --add-import instead of --import.
9626         * NEWS: Mention the change.
9627
9628 2010-09-04  Bruno Haible  <bruno@clisp.org>
9629
9630         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9631         separate gnulib.mk.
9632
9633 2010-09-04  Bruno Haible  <bruno@clisp.org>
9634
9635         gnulib-tool: Don't talk about CVS any more.
9636         * gnulib-tool (func_usage, func_import): Write "version control"
9637         instead of CVS.
9638
9639 2010-09-04  Jim Meyering  <meyering@redhat.com>
9640
9641         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9642         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9643         false positives (whose names may be ill-chosen) when searching
9644         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9645         would cause a false-positive.
9646
9647         avoid coreutils "make distcheck" failure
9648         Coreutils tests with an absolute build directory name that contains
9649         a space.  Not quoting this directory name caused a failure.
9650         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9651         * tests/test-vc-list-files-cvs.sh: Likewise.
9652
9653 2010-09-04  Bruno Haible  <bruno@clisp.org>
9654
9655         gnulib-tool: Avoid error when run in a package without Makefile.am.
9656         * gnulib-tool: When collecting the m4dirs in a package that does not
9657         have a Makefile.am, eliminate those directories that contain no
9658         gnulib-cache.m4. Fix expression that counts these directories.
9659
9660 2010-09-04  Bruno Haible  <bruno@clisp.org>
9661
9662         update-copyright test: Improve output when perl is missing or too old.
9663         * tests/test-update-copyright.sh: Move test of Perl version down after
9664         the test whether Perl exists. Provide an explanation relating Perl's
9665         error message to Automake's SKIP: message.
9666
9667 2010-09-04  Bruno Haible  <bruno@clisp.org>
9668
9669         Don't augment PATH in TESTS_ENVIRONMENT.
9670         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9671         set abs_aux_dir instead of augmenting PATH.
9672         * modules/vc-list-files-tests (Makefile.am): Likewise.
9673         * tests/test-update-copyright.sh: Augment PATH here.
9674         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9675         path_prepend_.
9676         * tests/test-vc-list-files-git.sh: Likewise.
9677
9678 2010-09-04  Jim Meyering  <meyering@redhat.com>
9679
9680         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9681         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9682
9683 2010-09-04  Bruno Haible  <bruno@clisp.org>
9684
9685         strdup: Fix compilation error in C++ mode.
9686         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9687         the macro.
9688
9689 2010-09-04  Bruno Haible  <bruno@clisp.org>
9690
9691         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9692         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9693         macro into a function.
9694         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9695
9696 2010-09-04  Bruno Haible  <bruno@clisp.org>
9697
9698         Set PATH_SEPARATOR the same way autoconf does.
9699         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9700         the value of PATH_SEPARATOR the same way autoconf-generated configure
9701         scripts do.
9702         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9704
9705 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9706
9707         Set PATH_SEPARATOR the same way autoconf does.
9708         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9709         the same way autoconf-generated configure scripts do.
9710         * posix-modules: Likewise.
9711
9712 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9713
9714         hash: fix safe_hasher const typo
9715         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9716         const; otherwise, there is a type error later.
9717
9718 2010-09-02  Jim Meyering  <meyering@redhat.com>
9719
9720         test-update-copyright.sh: require perl 5.8.0
9721         * tests/test-update-copyright.sh: Require 5.8.0,
9722         which Tom G. Christensen has confirmed is adequate,
9723         while 5.6.1 is not.
9724
9725 2010-09-02  Eric Blake  <eblake@redhat.com>
9726
9727         tests: init.sh improvements for re-exec'ing with zsh
9728         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9729         -vx through shell re-exec.
9730         Reported by Tom G. Christensen.
9731
9732         wctype: fix typo in previous commit
9733         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9734         Reported by Ludovic Courtès.
9735
9736 2010-09-02  Jim Meyering  <meyering@redhat.com>
9737
9738         test-update-copyright.sh: skip test if Perl is too old
9739         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9740         Reported by Tom G. Christensen.
9741
9742 2010-09-02  Bruno Haible  <bruno@clisp.org>
9743
9744         wctype: Avoid compilation error on IRIX 6.5.30.
9745         * lib/wctype.in.h (iswblank): Declare with a replacement if
9746         REPLACE_ISWBLANK is set.
9747         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9748         declared. Set REPLACE_ISWBLANK.
9749         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9750         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9751         * doc/posix-headers/wctype.texi: Likewise.
9752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9753
9754 2010-09-01  Bruno Haible  <bruno@clisp.org>
9755
9756         New module 'socketlib'.
9757         * modules/socketlib: New file.
9758         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9759         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9760         * modules/sockets (Depends-on): Add socketlib.
9761         Suggested by Sam Steingold <sds@gnu.org>.
9762
9763 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9766
9767         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9768         when one needs search access to a directory but not read access.
9769         On systems where it is available, it works in some cases where
9770         O_RDONLY does not, namely on directories that are searchable but
9771         not readable, and which need only to be searchable.  If O_SEARCH
9772         is not available, fall back to the traditional method of using
9773         O_RDONLY.
9774
9775         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9776         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9777         when opening a directory that needs only to be searchable.
9778         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9779         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9780         * lib/openat-proc.c (openat_proc_name): Likewise.
9781         * lib/openat.c (openat_needs_fchdir): Likewise.
9782         * lib/save-cwd.c (save_cwd): Likewise.
9783         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9784
9785 2010-08-28  Bruno Haible  <bruno@clisp.org>
9786
9787         New module 'host-cpu-c-abi'.
9788         * modules/host-cpu-c-abi: New file.
9789         * m4/host-cpu-c-abi.m4: New file, based on part of
9790         clisp/src/m4/general.m4.
9791         Requested by Sam Steingold <sds@gnu.org>.
9792
9793 2010-08-31  Eric Blake  <eblake@redhat.com>
9794         and Jim Meyering  <meyering@redhat.com>
9795
9796         hash: factor, and guard against misbehaving hasher function
9797         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9798         of table->hasher's return value.  Also protect against a hash value
9799         so large that adding it to table->bucket results in a NULL pointer.
9800         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9801         Use it in place of open-coded check-and-abort.
9802
9803 2010-08-30  Bruno Haible  <bruno@clisp.org>
9804
9805         hash: silence spurious clang warning
9806         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9807         Reported by Eric Blake.
9808
9809 2010-08-30  Eric Blake  <eblake@redhat.com>
9810
9811         strstr, memmem, strcasestr: avoid leaked shell message
9812         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9813         FreeBSD.
9814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9816
9817         tests: silence clang warning
9818         * tests/test-malloca.c (do_allocation): Avoid dead store.
9819
9820 2010-08-29  Bruno Haible  <bruno@clisp.org>
9821
9822         gettext: Fix recent mistake.
9823         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9824
9825 2010-08-29  Bruno Haible  <bruno@clisp.org>
9826
9827         selinux-h: Offer a --without-selinux option.
9828         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9829         --without-selinux was specified, skip all tests and define
9830         HAVE_SELINUX_SELINUX_H to 0.
9831         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9832         set LIB_SELINUX to empty.
9833         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9834         gl_LIBSELINUX. If --without-selinux was specified, replace
9835         selinux/context.h.
9836         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9837
9838 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9839             Bruno Haible  <bruno@clisp.org>
9840
9841         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9842         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9843         of HAVE_REALLOC.
9844         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9845         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9846         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9847         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9848
9849 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9850             Bruno Haible  <bruno@clisp.org>
9851
9852         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9853         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9854         HAVE_CALLOC.
9855         * lib/xmalloc.c: Update accordingly.
9856         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9857         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9858         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9859
9860 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9861             Bruno Haible  <bruno@clisp.org>
9862
9863         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9864         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9865         HAVE_MALLOC.
9866         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9867         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9868         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9869
9870 2010-08-29  Bruno Haible  <bruno@clisp.org>
9871
9872         Update modules list.
9873         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9874         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9875         (String handling <string.h>): Add astrxfrm.
9876         (File system functions): Add readlinkat.
9877
9878 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9879
9880         Tests for module 'realloc-gnu'.
9881         * modules/realloc-gnu-tests: New file.
9882         * tests/test-realloc-gnu.c: New file.
9883
9884         Tests for module 'calloc-gnu'.
9885         * modules/calloc-gnu-tests: New file.
9886         * tests/test-calloc-gnu.c: New file.
9887
9888         Tests for module 'malloc-gnu'.
9889         * modules/malloc-gnu-tests: New file.
9890         * tests/test-malloc-gnu.c: New file.
9891
9892 2010-08-28  Bruno Haible  <bruno@clisp.org>
9893
9894         Rename module 'realloc' -> 'realloc-gnu'.
9895         * modules/realloc-gnu: New file, copied from modules/realloc.
9896         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9897         obsolete.
9898         * modules/mgetgroups (Depends-on): Update.
9899         * doc/posix-functions/realloc.texi: Update.
9900         * NEWS: Mention the change.
9901
9902         Rename module 'calloc' -> 'calloc-gnu'.
9903         * modules/calloc-gnu: New file, copied from modules/calloc.
9904         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9905         obsolete.
9906         * doc/posix-functions/calloc.texi: Update.
9907         * NEWS: Mention the change.
9908
9909         Rename module 'malloc' -> 'malloc-gnu'.
9910         * modules/malloc-gnu: New file, copied from modules/malloc.
9911         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9912         obsolete.
9913         * modules/argp (Depends-on): Update.
9914         * modules/regex (Depends-on): Update.
9915         * doc/posix-functions/malloc.texi: Update.
9916         * NEWS: Mention the change.
9917
9918 2010-08-28  Eric Blake  <eblake@redhat.com>
9919
9920         pread, pwrite: add missing dependency
9921         * modules/pread (Depends-on): Add extensions.
9922         * modules/pwrite (Depends-on): Likewise.
9923
9924 2010-08-28  Bruno Haible  <bruno@clisp.org>
9925
9926         unistr/u*-strchr: Fix tests dependencies.
9927         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9928         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9929         Reported by Ian Beckwith <ianb@erislabs.net>.
9930
9931 2010-08-28  Bruno Haible  <bruno@clisp.org>
9932
9933         read-file: Don't occupy too much unused memory.
9934         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9935
9936 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9937             Eric Blake  <eblake@redhat.com>
9938             Bruno Haible  <bruno@clisp.org>
9939
9940         read-file: Avoid memory reallocations with regular files.
9941         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9942         (fread_file): With regular files, use the remaining length as the
9943         initial buffer size.  Check against overflow.
9944         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9945         sys_stat.
9946
9947 2010-08-28  Bruno Haible  <bruno@clisp.org>
9948
9949         ftello: Relax license.
9950         * modules/ftello (License): Relax to LGPLv2+.
9951         Reported by Eric Blake.
9952
9953 2010-08-28  Bruno Haible  <bruno@clisp.org>
9954
9955         Avoid relocwrapper link errors due to gnulib replacement functions.
9956         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9957         function.
9958         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9959
9960 2010-08-28  Bruno Haible  <bruno@clisp.org>
9961
9962         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9963         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9964         defined.
9965         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9966         Suggested by Eric Blake.
9967
9968 2010-08-28  Bruno Haible  <bruno@clisp.org>
9969
9970         sys_socket, netdb: Ensure socklen_t gets defined.
9971         * modules/sys_socket (Depends-on): Add socklen.
9972         * modules/netdb (Depends-on): Likewise.
9973         * modules/getaddrinfo (Depends-on): Remove socklen.
9974         * modules/getsockopt (Depends-on): Likewise.
9975         * modules/setsockopt (Depends-on): Likewise.
9976         * tests/test-sys_socket.c: Check that socklen_t is defined.
9977         * tests/test-netdb.c: Likewise.
9978         * m4/socklen.m4: Update comments.
9979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9980
9981 2010-08-27  Eric Blake  <eblake@redhat.com>
9982
9983         login_tty: add missing dependency
9984         * modules/login_tty (Depends-on): Add pty.
9985
9986 2010-08-26  Eric Blake  <eblake@redhat.com>
9987
9988         lib-symbol-versions: fix m4 quoting
9989         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9990         format for AC_LINK_IFELSE.
9991
9992         glob: fix compile test
9993         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9994
9995         btowc: fix missing file
9996         * modules/btowc (Files): Also ship locale-fr.m4.
9997
9998         lseek: fix link test
9999         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10000         AC_LINK_IFELSE.
10001
10002         include_next: silence autoconf 2.68 warning
10003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10004         AC_COMPILE_IFELSE as special.
10005         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10006         autoconf < 2.68.
10007
10008         acl: fix compilation test
10009         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10010         AC_COMPILE_IFELSE.
10011
10012 2010-08-26  Bruno Haible  <bruno@clisp.org>
10013
10014         Modernize AC_TRY_RUN invocations.
10015         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10016         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10017         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10018         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10019         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10020         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10021         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10023         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10024         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10025         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10026         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10027         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10030         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10031         gl_MBRLEN_NUL_RETVAL): Likewise.
10032         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10033         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10034         Likewise.
10035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10036         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10037         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10038         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10039         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10040         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10041         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10042         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10043         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10044         Likewise.
10045         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10046         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10048         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10050         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10051         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10052         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10053         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10055
10056 2010-08-26  Bruno Haible  <bruno@clisp.org>
10057
10058         Modernize AC_TRY_LINK invocations.
10059         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10060         AC_TRY_LINK.
10061         * m4/argp.m4 (gl_ARGP): Likewise.
10062         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10063         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10064         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10065         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10066         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10067         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10068         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10069         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10070         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10071         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10072         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10073         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10074         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10075         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10076         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10077         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10078         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10079         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10080         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10081         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10082         Likewise.
10083         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10084         Likewise.
10085         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10086         Likewise.
10087         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10089         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10090         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10091         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10092         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10093         * m4/servent.m4 (gl_SERVENT): Likewise.
10094         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10095         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10096         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10097         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10098         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10099         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10100         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10102         * modules/tsearch-tests (configure.ac): Likewise.
10103
10104 2010-08-26  Bruno Haible  <bruno@clisp.org>
10105
10106         Modernize AC_TRY_COMPILE invocations.
10107         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10108         AC_TRY_COMPILE.
10109         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10110         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10111         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10112         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10113         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10114         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10115         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10116         * m4/lock.m4 (gl_LOCK): Likewise.
10117         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10118         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10119         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10121         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10122         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10123         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10125         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10126         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10127         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10128         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10129         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10130         extraneous semicolon.
10131
10132 2010-08-26  Jim Meyering  <meyering@redhat.com>
10133
10134         stat-time: relax license LGPL
10135         * modules/stat-time (License): Change from GPL to LGPL,
10136         with consent from all contributors, for use in libguile.
10137         Requested by Ludovic Courtès.
10138
10139 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10140
10141         poll: return immediately on POLLHUP.
10142         * lib/poll.c (poll): Always set timeout before wait_timeout is
10143         computed.
10144
10145 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10146
10147         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10148         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10149         rmdir ("dir/.//"), unlinkat.
10150
10151 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         stdbool: avoid spurious failure with modern xlc
10154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10155
10156 2010-08-24  Bruno Haible  <bruno@clisp.org>
10157
10158         getloadavg: simplify code
10159         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10160         gl_have_func. Update comments.
10161
10162 2010-08-24  Eric Blake  <eblake@redhat.com>
10163
10164         getloadavg: don't define SVR4 on cygwin
10165         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10166         only define SVR4 when -lkvm is required.
10167         Reported by Yaakov Selkowitz.
10168
10169 2010-08-24  Bruno Haible  <bruno@clisp.org>
10170
10171         priv-set: fix comment
10172         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10173
10174 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10175
10176         priv-set: fix comments
10177         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10178         to match code, as suggested by David Bartley in:
10179         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10180
10181 2010-08-23  Eric Blake  <eblake@redhat.com>
10182
10183         stdbool: avoid rejecting clang
10184         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10185         * tests/test-stdbool.c: Enable more tests if using the system
10186         <stdbool.h> instead of the gnulib replacement.
10187         (main): Move xlc bug test to a runtime test for all compilers.
10188         Reported by Anders Kaseorg.
10189
10190         argz: fix shell quoting issue
10191         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10192         Reported by Charles Wilson.
10193
10194 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10195             Erik Faye-Lund <kusmabite@gmail.com>
10196
10197         poll, select: handle ERROR_BROKEN_PIPE.
10198         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10199         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10200         * lib/select.c (win32_compute_revents): Do not mark a pipe
10201         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10202
10203 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10204
10205         fts: allow compilation with C++
10206         * lib/fts_.h: Specify extern "C" linkage with C++.
10207
10208 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10209
10210         Fix gnulib-tool sed script de-commentation for AIX sed.
10211         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10212         sed.
10213
10214 2010-08-17  Eric Blake  <eblake@redhat.com>
10215
10216         test-stddef: test for (some) offsetof bugs
10217         * tests/test-stddef.c: Enhance test to ensure correct type of
10218         offsetof.
10219         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10220         that we are not fixing at this time.
10221
10222 2010-08-15  Bruno Haible  <bruno@clisp.org>
10223
10224         stpncpy: Allow stpncpy to be defined as a macro.
10225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10226         if it's already correctly declared.
10227         * lib/string.in.h (stpncpy): Undefine before redefining.
10228         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10229
10230 2010-08-14  Bruno Haible  <bruno@clisp.org>
10231
10232         Rename module 'memxfrm' to 'amemxfrm'.
10233         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10234         (amemxfrm): Renamed from memxfrm.
10235         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10236         (amemxfrm): Renamed from memxfrm.
10237         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10238         * NEWS: Mention the change.
10239         * MODULES.html.sh (String handling <string.h>): Update.
10240         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10241         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10242         * lib/unicase/u16-casexfrm.c: Likewise.
10243         * lib/unicase/u32-casexfrm.c: Likewise.
10244         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10245         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10246         * lib/uninorm/u16-normxfrm.c: Likewise.
10247         * lib/uninorm/u32-normxfrm.c: Likewise.
10248         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10249         memxfrm.
10250         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10251         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10252         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10253         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10254         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10255         Suggested by Paul Eggert.
10256
10257 2010-08-14  Bruno Haible  <bruno@clisp.org>
10258
10259         Tests for module 'astrxfrm'.
10260         * modules/astrxfrm-tests: New file.
10261         * tests/test-astrxfrm.c: New file.
10262
10263         New module 'astrxfrm'.
10264         * lib/astrxfrm.h: New file.
10265         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10266         * modules/astrxfrm: New file.
10267
10268 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10269
10270         regex: Tweak doc.
10271         * doc/regex.texi (Overview): Don't mention regex.c.
10272         (GNU Regular Expression Compiling): Likewise.
10273         (Match-end-of-line Operator): Mention 'not_eol'.
10274
10275 2010-08-14  Brian Gough  <bjg@gnu.org>
10276             Bruno Haible  <bruno@clisp.org>
10277
10278         git-merge-changelog: add doc relating to use with bzr and hg.
10279         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10280
10281 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10282
10283         pthread: fix pthread.h creation for srcdir != builddir
10284         * modules/pthread (Makefile.am): Fix the rule to work also in a
10285         non-srcdir build.
10286
10287 2010-08-13  Karl Berry  <karl@gnu.org>
10288
10289         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10290         * doc/posix-*/*: force line break before @url of POSIX
10291         specifications.
10292         Suggested by Werner Lemberg.
10293
10294 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10295
10296         strtod: fix const diagnostic
10297         * lib/strtod.c (strtod): Don't assign const char * to char *,
10298         as this elicits a warning from GCC when warnings are enabled.
10299
10300 2010-08-10  Pádraig Brady <P@draigbrady.com>
10301         and Eric Blake  <eblake@redhat.com>
10302
10303         copy-acl: ignore ENOTSUP on HP-UX
10304         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10305         so that it is available for HP-UX.
10306         * lib/copy-acl.c (qcopy_acl): Use it.
10307         Reported by Patrick M. Callahan.
10308
10309 2010-08-10  Eric Blake  <eblake@redhat.com>
10310
10311         open, chown: relax license
10312         * modules/open (License): Change to LGPLv2+, with consent by all
10313         authors, for use in augeas.
10314         * modules/chown (License): Likewise.
10315         * modules/lchown (Likewise): Likewise.
10316         Requested by Adam Stokes.
10317
10318 2010-08-09  Karl Berry  <karl@gnu.org>
10319
10320         * build-aux/ar-lib: new file, import from Automake.
10321         * config/srclist.txt: autocheck for updates.
10322
10323 2010-08-09  Eric Blake  <eblake@redhat.com>
10324
10325         readlinkat: adjust client modules
10326         * modules/areadlinkat (Depends-on): Use readlinkat, not
10327         symlinkat.
10328         * modules/areadlinkat-with-size (Depends-on): Likewise.
10329
10330         mknod: be more vocal about danger of running tests as root
10331         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10332         root, since that is just asking for problems.
10333         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10334
10335         readlinkat: split into its own module
10336         * modules/symlinkat: Split readlinkat...
10337         * modules/readlinkat: ...into separate module.
10338         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10339         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10340         * lib/symlinkat.c (readlinkat): Move...
10341         * lib/readlinkat.c: ...into new file.
10342         * modules/symlinkat-tests: Split readlinkat test...
10343         * modules/readlinkat-tests: ...into separate module.
10344         * tests/test-symlinkat.c: Split...
10345         * tests/test-readlinkat.c: ...into new file.
10346         * NEWS: Document the split.
10347         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10348         * lib/unistd.in.h (readlinkat): Likewise.
10349         Suggested by Bruno Haible.
10350
10351 2010-08-08  Bruno Haible  <bruno@clisp.org>
10352
10353         memxfrm: Speed up.
10354         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10355         that usually only one call to strxfrm is necessary for each string
10356         part.
10357         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10358
10359 2010-08-07  Karl Berry  <karl@gnu.org>
10360
10361         * doc/posix-headers/limits.texi,
10362         * doc/posix-functions/malloc.texi,
10363         * doc/posix-functions/strsignal.texi: missing @item.
10364         * doc/ld-version-script.texi: spurious leading i.
10365         * doc/regex.texi (Interval Operators): no commas inside @var.
10366
10367 2010-08-01  Bruno Haible  <bruno@clisp.org>
10368
10369         Integrate the regex documentation.
10370         * doc/gnulib.texi: Define 'cn' index.
10371         (Regular expressions): New a chapter that includes regex.texi and
10372         regexprops-generic.texi.
10373         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10374         syntax.
10375
10376         Whitespace cleanup.
10377         * doc/regex.texi: Remove trailing spaces.
10378
10379         Add regex documentation.
10380         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10381         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10382         Written by Kathy A. Hargreaves and Karl Berry.
10383
10384 2010-08-01  Bruno Haible  <bruno@clisp.org>
10385
10386         link: Update documentation.
10387         * doc/posix-functions/link.texi: Update regarding Solaris.
10388
10389 2010-07-31  Bruno Haible  <bruno@clisp.org>
10390
10391         Update modules list.
10392         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10393         (String handling <string.h>): Add memcmp2, memxfrm.
10394         (Container data structures): Add xlist, xsublist, xoset.
10395         (Core language properties): Add alignof, unused-parameter.
10396         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10397         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10398         (Unibyte characters <ctype.h>): New section.
10399         (String handling <string.h>): New section.
10400         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10401         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10402         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10403         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10404         tan, tanh, tanl, y0, y1, yn.
10405         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10406         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10407         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10408         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10409         unlockpt, vdprintf, vdprintf-posix.
10410         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10411         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10412         xconcat-filename.
10413         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10414         getdtablesize, pipe2, pipe2-safer.
10415         (Security): New section.
10416         (Networking functions): Add accept4.
10417         (Signal handling): Add sigpipe.
10418         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10419         mbmemcasecoll.
10420         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10421         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10422         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10423         pipe-filter-ii.
10424         (Misc): Add argp-version-etc, login_tty, parse-duration.
10425
10426 2010-07-31  Bruno Haible  <bruno@clisp.org>
10427
10428         Improve doc in MODULES.html.
10429         * modules/linkat (Description): Add the word "function".
10430         * modules/mkfifo (Description): Likewise.
10431         * modules/mknod (Description): Likewise.
10432         * modules/remove (Description): Likewise.
10433         * modules/renameat (Description): Likewise.
10434         * modules/stat (Description): Likewise.
10435         * modules/symlink (Description): Likewise.
10436         * modules/unlink (Description): Likewise.
10437
10438 2010-07-31  Bruno Haible  <bruno@clisp.org>
10439
10440         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10441         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10442         option --enable/disable-c++ instead of --enable/disable-cxx.
10443         * NEWS: Mention the change.
10444
10445 2010-07-31  Bruno Haible  <bruno@clisp.org>
10446
10447         readlink, areadlink: Relax test a bit.
10448         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10449         alternative to ENOTDIR.
10450         * tests/test-areadlink.h (test_areadlink): Likewise.
10451         Reported by Rainer Tammer.
10452
10453 2010-07-31  Bruno Haible  <bruno@clisp.org>
10454
10455         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10456         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10457         character, perform the search using U_STRCHR.
10458         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10459         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10460         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10461         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10462         Suggested by Paolo Bonzini.
10463
10464 2010-07-31  Bruno Haible  <bruno@clisp.org>
10465
10466         unistr/u*-strstr: Fix dependencies.
10467         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10468         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10469         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10470
10471 2010-07-31  Bruno Haible  <bruno@clisp.org>
10472
10473         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10474         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10475         the beginning of the loop.
10476         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10477         cases in 'switch' statement.
10478
10479         unistr/u8-strchr: Fix several bugs.
10480         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10481         the string. When not found, return NULL, not a pointer near the end.
10482
10483         More tests for unistr/u8-strchr.
10484         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10485         that the function does not read past the first occurrence of the byte
10486         being searched.
10487         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10488         * tests/unistr/test-u16-strchr.c (main): New function.
10489         * tests/unistr/test-u32-strchr.c (main): New function.
10490
10491 2010-07-31  Bruno Haible  <bruno@clisp.org>
10492
10493         posix-modules: Ignore backup files of documentation files.
10494         * posix-modules: grep only through files named *.texi.
10495
10496 2010-07-31  Bruno Haible  <bruno@clisp.org>
10497
10498         symlinkat: Fix documentation.
10499         * doc/posix-functions/readlinkat.texi: Fix module name.
10500
10501 2010-07-31  Bruno Haible  <bruno@clisp.org>
10502
10503         fchownat: Replace also when chown has the trailing slash bug.
10504         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10505         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10506         introduced on 2010-04-10.
10507         Reported by Rainer Tammer.
10508
10509 2010-07-31  Bruno Haible  <bruno@clisp.org>
10510
10511         linkat: Work around AIX 7.1 bug.
10512         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10513         whether linkat handles trailing slash correctly. If not, replace linkat
10514         and define LINKAT_TRAILING_SLASH_BUG.
10515         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10516         check whether (fd1,file1) points to a directory if file1 or file2 ends
10517         in a slash. Code taken from lib/link.c.
10518         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10519         Reported by Rainer Tammer.
10520
10521 2010-07-31  Bruno Haible  <bruno@clisp.org>
10522
10523         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10524         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10525         This disables an xlc optimization that was causing wrong test results.
10526         Reported by Rainer Tammer.
10527
10528 2010-07-31  Bruno Haible  <bruno@clisp.org>
10529
10530         iconv: Work around AIX 6.1..7.1 bug.
10531         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10532         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10533         cross-compiling, guess no on all versions of AIX.
10534         Reported by Rainer Tammer.
10535
10536 2010-07-31  Bruno Haible  <bruno@clisp.org>
10537
10538         readlink: Relax test a bit.
10539         * tests/test-readlink.h (test_readlink): Allow different errno value
10540         when readlink is called with a file name that ends in / and refers to
10541         a file.
10542         Suggested by Eric Blake.
10543         Reported by Rainer Tammer.
10544
10545 2010-07-31  Bruno Haible  <bruno@clisp.org>
10546
10547         copysign: Does not require -lm on glibc systems.
10548         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10549         gl_COMMON_DOUBLE_MATHFUNC.
10550         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10551
10552 2010-07-31  Bruno Haible  <bruno@clisp.org>
10553
10554         duplocale: Work around AIX 7.1 bug.
10555         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10556         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10557         * lib/duplocale.c (rpl_duplocale): Update comment.
10558         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10559         Reported by Rainer Tammer.
10560
10561 2010-07-30  Bruno Haible  <bruno@clisp.org>
10562
10563         dirfd: Avoid link error on AIX 7.1.
10564         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10565         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10566         exist, set REPLACE_DIRFD.
10567         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10568         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10569         * doc/posix-functions/dirfd.texi: Update.
10570         Reported by Rainer Tammer.
10571
10572 2010-07-30  Eric Blake  <eblake@redhat.com>
10573
10574         strtod: next round of AIX fixes
10575         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10576         exponent.
10577         * tests/test-strtod.c (main): Enhance tests.
10578         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10579         Reported by Rainer Tammer.
10580
10581         futimens: fix configure check
10582         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10583         Reported by Bruno Haible.
10584
10585 2010-07-30  Bruno Haible  <bruno@clisp.org>
10586
10587         getline: Update regarding AIX.
10588         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10589         Reported by Rainer Tammer.
10590
10591 2010-07-30  Bruno Haible  <bruno@clisp.org>
10592
10593         wcwidth: Drop replacement on AIX 7.
10594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10595         AIX 7.
10596         Reported by Rainer Tammer.
10597
10598 2010-07-30  Bruno Haible  <bruno@clisp.org>
10599
10600         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10601         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10602         a 'char *'.
10603         Reported by Rainer Tammer.
10604
10605 2010-07-30  Bruno Haible  <bruno@clisp.org>
10606
10607         unlink: Update regarding AIX.
10608         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10609         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10610         Reported by Rainer Tammer.
10611
10612 2010-07-30  Bruno Haible  <bruno@clisp.org>
10613
10614         symlink: Update regarding AIX.
10615         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10616         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10617         Reported by Rainer Tammer.
10618
10619 2010-07-30  Bruno Haible  <bruno@clisp.org>
10620
10621         strndup: Update regarding AIX.
10622         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10623         AIX 7.
10624         Reported by Rainer Tammer.
10625
10626 2010-07-30  Bruno Haible  <bruno@clisp.org>
10627
10628         stat: Update regarding AIX.
10629         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10630         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10631         Reported by Rainer Tammer.
10632
10633 2010-07-30  Bruno Haible  <bruno@clisp.org>
10634
10635         truncl: Fix autoconf test.
10636         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10637         whether truncl works.
10638         Reported by Rainer Tammer.
10639
10640 2010-07-30  Bruno Haible  <bruno@clisp.org>
10641
10642         round: Update regarding AIX.
10643         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10644         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10645         Reported by Rainer Tammer.
10646
10647 2010-07-30  Bruno Haible  <bruno@clisp.org>
10648
10649         rename: Update regarding AIX.
10650         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10651         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10652         Reported by Rainer Tammer.
10653
10654 2010-07-30  Bruno Haible  <bruno@clisp.org>
10655
10656         printf.m4: Update regarding AIX.
10657         * m4/printf.m4: Update comments regarding AIX.
10658         Reported by Rainer Tammer.
10659
10660 2010-07-30  Bruno Haible  <bruno@clisp.org>
10661
10662         iconv: Update regarding AIX.
10663         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10664         AIX 7.
10665         Reported by Rainer Tammer.
10666
10667 2010-07-30  Bruno Haible  <bruno@clisp.org>
10668
10669         getopt: Update regarding AIX.
10670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10671         no on AIX.
10672         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10673         Reported by Rainer Tammer.
10674
10675 2010-07-30  Bruno Haible  <bruno@clisp.org>
10676
10677         ldexpl; Update regarding AIX.
10678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10679         on AIX 7.
10680         Reported by Rainer Tammer.
10681
10682 2010-07-30  Bruno Haible  <bruno@clisp.org>
10683
10684         frexpl: Update regarding AIX.
10685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10686         on AIX 7.
10687         Reported by Rainer Tammer.
10688
10689 2010-07-30  Bruno Haible  <bruno@clisp.org>
10690
10691         open, fopen: Update regarding AIX.
10692         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10693         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10694         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10695         * doc/posix-functions/fopen.texi: Likewise.
10696         Reported by Rainer Tammer.
10697
10698 2010-07-30  Bruno Haible  <bruno@clisp.org>
10699
10700         chown: Update doc regarding AIX.
10701         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10702         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10703         Reported by Rainer Tammer.
10704
10705 2010-07-30  Eric Blake  <eblake@redhat.com>
10706
10707         strtod: fix bug in replacement function on AIX
10708         * lib/strtod.c (strtod): Special case broken "0x" parse in
10709         underlying strtod.
10710         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10711         * doc/posix-functions/strtod.texi (strtod): Likewise.
10712         Reported by Rainer Tammer.
10713
10714 2010-07-30  Bruno Haible  <bruno@clisp.org>
10715
10716         mbrlen: Fix cross-compilation guess for AIX.
10717         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10718         guess. Leftover from 2008-12-22.
10719
10720 2010-07-30  Bruno Haible  <bruno@clisp.org>
10721
10722         mbrtowc: Fix cross-compilation guess for AIX.
10723         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10724         guess. Leftover from 2008-12-21.
10725
10726 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10727
10728         init.sh: work around trap limitation of some shells
10729         * tests/init.sh (setup_): Move exit trap outside of shell function.
10730
10731 2010-07-29  Eric Blake  <eblake@redhat.com>
10732
10733         strtod: aid debugging
10734         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10735         understanding why strtod is rejected.
10736
10737 2010-07-28  Bruno Haible  <bruno@clisp.org>
10738
10739         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10740         * lib/unistr/u8-chr.c: Include <string.h>.
10741         * tests/unistr/test-u8-chr.c: Likewise.
10742         * tests/unistr/test-u16-chr.c: Likewise.
10743         * tests/unistr/test-u32-chr.c: Likewise.
10744         * tests/unistr/test-u8-strchr.c: Likewise.
10745         * tests/unistr/test-u16-strchr.c: Likewise.
10746         * tests/unistr/test-u32-strchr.c: Likewise.
10747         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10748         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10749         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10750         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10751
10752 2010-07-28  Bruno Haible  <bruno@clisp.org>
10753
10754         Use spaces for indentation, not tabs.
10755         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10756
10757 2010-07-27  Bruno Haible  <bruno@clisp.org>
10758
10759         mbspcasecmp: Fix function specification.
10760         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10761         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10762         Reported by Eric Blake <eblake@redhat.com>.
10763
10764 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10765
10766         timespec: use cast and not conditional, as truncation isn't possible
10767         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10768         instead of a conditional.  Comment about the situation in more detail.
10769         This undoes most of the 2009-10-29 patch.
10770
10771 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10772
10773         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10774         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10775         * lib/unistr/u8-strchr.c: Likewise.
10776         * modules/unistr/u8-chr: Depend on memchr.
10777
10778         unistr/u*-strchr: add tests
10779         * modules/unistr/u8-strchr-tests: New file.
10780         * modules/unistr/u16-strchr-tests: New file.
10781         * modules/unistr/u32-strchr-tests: New file.
10782         * tests/unistr/test-strchr.h: New file.
10783         * tests/unistr/test-u8-strchr.c: New file.
10784         * tests/unistr/test-u16-strchr.c: New file.
10785         * tests/unistr/test-u32-strchr.c: New file.
10786
10787         unistr/u*-chr: test multibyte sequences more
10788         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10789         test vector.
10790         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10791         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10792         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10793
10794         unistr/u*-chr: test multibyte sequences
10795         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10796
10797         unistr/u*-chr: prepare for multibyte tests
10798         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10799         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10800         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10801         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10802         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10803         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10804
10805 2010-07-18  Bruno Haible  <bruno@clisp.org>
10806
10807         unistr/u8-strchr: Optimize non-ASCII argument case.
10808         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10809         because the first byte often matches anyway.
10810         Reported by Pádraig Brady <P@draigbrady.com>.
10811
10812 2010-07-15  Karl Berry  <karl@gnu.org>
10813
10814         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10815
10816 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10817
10818         getcwd: on Solaris, work better if ancestors are inaccessible
10819         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10820         buffer and size, try again with a large buffer.  This works better
10821         on Solaris, since its getcwd succeeds even if the path to the root
10822         is inaccessible, and this is helpful in common cases such as .zfs
10823         hidden directories.  Problem reported by J Chapman Flack in
10824         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10825         Use system getcwd if it's declared, not merely if it's partly
10826         working; use the partly-working test only to avoid needless effort
10827         if the system getcwd fails.
10828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10829         comment that was already obsolete and is now even more obsolete.
10830         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10831         now might call strdup.
10832
10833 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10834
10835         pthread: Add enough so that coreutils/src/sort.c compiles.
10836         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10837         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10838         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10839         Include <sys/types.h>, in case it defines pthread_t.
10840         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10841         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10842         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10843         (pthread_rwlockattr_t, pthread_spinlock_t):
10844         New typedefs, if HAVE_PTHREAD_T is not defined.
10845         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10846         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10847         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10848         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10849         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10850         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10851         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10852         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10853         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10854         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10855         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10856         New macros.
10857         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10858         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10859         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10860         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10861         (pthread_spin_unlock): New dummy functions.
10862         (pthread_create): Return EAGAIN; don't set errno.
10863         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10864         require AC_C_INLINE.
10865         * modules/pthread (Depends-on): Add sched, time.
10866         (pthread.h): Use AM_V_GEN.
10867
10868 2010-07-13  Bruno Haible  <bruno@clisp.org>
10869
10870         striconveh: Don't malloc memory if the result buffer is sufficient.
10871         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10872         buffer if its size is sufficient.
10873         Reported by Ludovic Courtès <ludo@gnu.org>.
10874
10875 2010-07-13  Bruno Haible  <bruno@clisp.org>
10876
10877         strtod: Add safety check.
10878         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10879
10880 2010-07-12  Bruno Haible  <bruno@clisp.org>
10881
10882         Unify tests that set gl_cv_func_ldexpl_no_libm.
10883         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10884         gl_FUNC_LDEXPL.
10885         (gl_FUNC_LDEXPL): Invoke it.
10886         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10887
10888 2010-07-12  Bruno Haible  <bruno@clisp.org>
10889
10890         Unify tests that set gl_cv_func_ldexp_no_libm.
10891         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10892         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10893         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10894         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10895         * modules/strtod (Files): Add m4/ldexp.m4.
10896
10897 2010-07-12  Bruno Haible  <bruno@clisp.org>
10898
10899         Unify tests that set gl_cv_func_frexpl_no_libm.
10900         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10901         gl_FUNC_FREXPL_NO_LIBM.
10902         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10903         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10904
10905 2010-07-12  Bruno Haible  <bruno@clisp.org>
10906
10907         Unify tests that set gl_cv_func_frexp_no_libm.
10908         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10909         gl_FUNC_FREXP_NO_LIBM.
10910         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10911         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10912
10913 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10914
10915         memcoll: clarify sizes versus lengths, document better, and tweak perf
10916         * lib/memcoll.c (strcoll_loop, memcoll0):
10917         Improve quality of descriptive comments.  Name variables
10918         consistently as to whether they are lengths (which do not include
10919         terminating null) versus sizes (which do).
10920         * lib/xmemcoll.c (xmemcoll0): Likewise.
10921         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10922         returned when s1size == 0; this is easier to compile and saves
10923         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10924
10925 2010-07-12  Bruno Haible  <bruno@clisp.org>
10926
10927         Tests for module '_Exit'.
10928         * modules/_Exit-tests: New file.
10929         * tests/test-_Exit.sh: New file.
10930         * tests/test-_Exit.c: New file.
10931
10932         New module '_Exit'.
10933         * lib/stdlib.in.h (__attribute__): New macro.
10934         (_Exit): New declaration.
10935         * lib/_Exit.c: New file.
10936         * m4/_Exit.m4: New file.
10937         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10938         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10939         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10940         * modules/_Exit: New file.
10941         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10942         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10943
10944 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10945
10946         strtod: make it more-accurate typically, and don't require libm
10947         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10948         Include limits.h.  Don't include string.h.
10949         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10950         (locale_isspace): New function, so that no casts are needed to
10951         check whether *s is a space.
10952         (ldexp): Provide an unused dummy if not available.
10953         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10954         (strtod): Use them.  This implementation prefers to use the
10955         underlying strtod if available, falling back on our own code
10956         only to fix known bugs.  This is more likely to produce an
10957         accurate result.  Also, it avoids the use of libm functions.
10958         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10959         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10960         was absent, but it caused a test failure with coreutils.
10961         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10962         with libm.
10963         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10964         * modules/strtod-tests (Makefile.am): Likewise.
10965
10966 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10967             Bruno Haible  <bruno@clisp.org>
10968
10969         unistr/u8-strchr: Optimize ASCII argument case.
10970         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10971
10972 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         (x)memcoll: minor tweaks
10975         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10976         is after the type that it qualifies.
10977         (memcoll0): Likewise.
10978         * lib/memcoll.h (memcoll0): Likewise.
10979         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10980         * lib/xmemcoll.h (xmemcoll0): Likewise.
10981         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10982         differs from memcoll in that the NUL byte is part of the argument.
10983         Omit the abort-checks, as performance is a real issue here.  Plus,
10984         the checks were wrong anyway (an off-by-one error).  Omit local
10985         variable 'diff', as it's a bit clearer that way.
10986         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10987         no longer needed.
10988
10989 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10990
10991         (x)memcoll: speedup when input is known to be NUL delimited
10992         * lib/memcoll.c: Include stdlib.
10993         (memcoll0) New function.
10994         (strcoll_loop) New function, refactored for use in both memcoll
10995         and memcoll0.
10996         * lib/memcoll.h: Add prototype for memcoll0.
10997         * lib/xmemcoll.c: (xmemcoll0) New function.
10998         (collate_error) New function, refactored for use in both xmemcoll
10999         and xmemcoll0.
11000         * lib/xmemcoll.h: Add prototype for xmemcoll0.
11001         * m4/memcoll.m4: add inline invocation.
11002
11003 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11004
11005         * build-aux/bootstrap: Remove any local translations
11006         from the translation project synchronization directory,
11007         so that local only translations are not distributed.
11008
11009 2010-07-04  Bruno Haible  <bruno@clisp.org>
11010
11011         fsusage: Clarify which code applies to which platforms.
11012         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11013         platform.
11014         * lib/fsusage.c (get_fs_usage): Likewise.
11015
11016 2010-07-04  Bruno Haible  <bruno@clisp.org>
11017
11018         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11019         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11020         Reported by Martin Lambers <marlam@marlam.de>.
11021
11022 2010-07-04  Jim Meyering  <meyering@redhat.com>
11023
11024         hash: once again explicitly disallow insertion of NULL
11025         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11026         inserting a NULL pointer cannot work with these functions.
11027         Add a comment with details.
11028         This reverts part of the 2010-07-01 commit, 5bef1a35
11029         "hash: extend module to deal with non-pointer keys".
11030
11031 2010-07-01  Bruno Haible  <bruno@clisp.org>
11032
11033         stdbool: Update doc.
11034         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11035         Info from Christian Weisgerber <naddy@mips.inka.de>.
11036
11037 2010-07-01  Jim Meyering  <meyering@redhat.com>
11038
11039         hash: extend module to deal with non-pointer keys
11040         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11041         but that allows insertion of non-pointer entries.
11042         Do not disallow an ENTRY value of NULL.
11043         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11044         * lib/hash.h (hash_insert0): Declare.
11045
11046 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11047
11048         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11049         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11050         not present (i.e. with autoconf 2.59 and when using gettextize, not
11051         gnulib), require AC_GNU_SOURCE instead.
11052
11053 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11054
11055         idpriv-drop: Fix tests.
11056         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11057         not to the test-idpriv-droptemp program.
11058
11059 2010-06-29  Bruno Haible  <bruno@clisp.org>
11060
11061         string: Fix syntax error with g++ 2.96.
11062         * lib/string.in.h (__pure__): Remove definition.
11063         (_GL_ATTRIBUTE_PURE): New macro.
11064         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11065         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11066         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11067
11068 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11069
11070         unitypes: Fix bug introduced on 2010-05-18.
11071         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11072
11073 2010-06-22  Eric Blake  <eblake@redhat.com>
11074
11075         memmem: slight optimization
11076         * lib/str-two-way.h (critical_factorization): Update comments.
11077         Reduce work during factorization phase.
11078         Reported by Carlos Bueno <carlos@bueno.org>.
11079
11080 2010-06-21  Bruno Haible  <bruno@clisp.org>
11081
11082         Fix HAVE_CALLOC_POSIX misnomer.
11083         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11084         !HAVE_CALLOC_POSIX.
11085         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11086         HAVE_CALLOC_POSIX.
11087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11088         instead of HAVE_CALLOC_POSIX.
11089         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11090         HAVE_CALLOC_POSIX.
11091
11092         Use modern idiom for calloc() replacement.
11093         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11094         AC_FUNC_CALLOC.
11095         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11096         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11097         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11098         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11099         (gl_REPLACE_CALLOC): New macro.
11100
11101 2010-06-21  Bruno Haible  <bruno@clisp.org>
11102
11103         Fix HAVE_REALLOC_POSIX misnomer.
11104         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11105         !HAVE_REALLOC_POSIX.
11106         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11107         HAVE_REALLOC_POSIX.
11108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11109         instead of HAVE_REALLOC_POSIX.
11110         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11111         HAVE_REALLOC_POSIX.
11112
11113         Use modern idiom for realloc() replacement.
11114         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11115         AC_FUNC_REALLOC.
11116         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11117         Autoconf's AC_FUNC_REALLOC.
11118         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11119         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11120         (gl_REPLACE_REALLOC): New macro.
11121         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11122
11123 2010-06-21  Bruno Haible  <bruno@clisp.org>
11124
11125         Fix HAVE_MALLOC_POSIX misnomer.
11126         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11127         !HAVE_MALLOC_POSIX.
11128         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11129         HAVE_MALLOC_POSIX.
11130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11131         instead of HAVE_MALLOC_POSIX.
11132         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11133         HAVE_MALLOC_POSIX.
11134
11135         Use modern idiom for malloc() replacement.
11136         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11137         AC_FUNC_MALLOC.
11138         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11139         Autoconf's AC_FUNC_MALLOC.
11140         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11141         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11142         (gl_REPLACE_MALLOC): New macro.
11143         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11144
11145 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11146
11147         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11148         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11149         This macro takes 3 arguments, not 4.
11150
11151 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11152
11153         ipv6: fix detection under mingw
11154         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11155         in6_addr.
11156
11157 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11158
11159         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11160         that strtod() works when cross-compiling to a glibc version known
11161         to work.
11162
11163 2010-06-15  Bruno Haible  <bruno@clisp.org>
11164
11165         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11166
11167 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11168
11169         select: Correct timeout.
11170         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11171
11172 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11173
11174         git-version-gen: init shell var to avoid env var influence
11175         * build-aux/git-version-gen (v): Init shell var to empty.
11176
11177 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         priv-set: Don't assume that priv.h exists merely because getppriv does.
11180         See Jan Andersen's bug report about AIX 5L in
11181         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11182         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11183         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11184         * lib/priv-set.h: Likewise.
11185         * tests/test-priv-set.c: Likewise.
11186
11187 2010-06-13  Bruno Haible  <bruno@clisp.org>
11188
11189         relocatable: Make it easier to test whether to install wrappers.
11190         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11191         RELOCATABLE_VIA_WRAPPER.
11192
11193 2010-06-13  Bruno Haible  <bruno@clisp.org>
11194
11195         gnulib-tool: Display specified modules and dependencies differently.
11196         * gnulib-tool (func_show_module_list): New function.
11197         (func_import, func_create_testdir): Invoke it.
11198         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11199
11200 2010-06-13  Bruno Haible  <bruno@clisp.org>
11201
11202         gnulib-tool: Align code of func_import and func_create_testdir.
11203         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11204         specified_modules.
11205
11206 2010-06-12  Jim Meyering  <meyering@redhat.com>
11207
11208         test-inttostr: avoid spurious failure on Solaris 9
11209         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11210         to accept "%ju".  Reported by Bruno Haible.
11211
11212 2010-06-11  Jim Meyering  <meyering@redhat.com>
11213
11214         test-sys_socket: mark variables as used more readably
11215         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11216         as "used" explicitly via (void) statement casts.  This is more
11217         readable than using them in an artificial return expression.
11218         Suggestion from Bruno Haible.
11219
11220 2010-06-11  Bruno Haible  <bruno@clisp.org>
11221
11222         Avoid some more warnings from "gcc -Wwrite-strings".
11223         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11224         to 'const char *'.
11225         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11226         * tests/test-c-strcasestr.c (main): Likewise.
11227         * tests/test-mbscasestr1.c (main): Likewise.
11228         * tests/test-mbscasestr2.c (main): Likewise.
11229         * tests/test-memmem.c (main): Likewise.
11230         * tests/test-strstr.c (main): Likewise.
11231         * tests/test-strcasestr.c (main): Likewise.
11232
11233 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11234
11235         init.sh: change framework_failure_ to fail with status 99, not 1
11236         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11237         automake's parallel-tests rule that this is an unexpected failure,
11238         even if the test is listed in XFAIL_TESTS.
11239
11240 2010-06-11  Jim Meyering  <meyering@redhat.com>
11241
11242         test-inttostr: avoid warnings about 4-6KB literal strings
11243         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11244         Include "macros.h", for its definition of ASSERT.
11245         (CK): s/assert/ASSERT/
11246         * modules/inttostr-tests (Files): Add macros.h.
11247
11248         init.sh: don't use $ME_ or skip_ before they are defined
11249         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11250         their first uses.  Also hoist their companions: warn_, fail_,
11251         framework_failure_, $stderr_fileno.  Prompted by a patch from
11252         Stefano Lattarini.
11253
11254         test-sys_socket: avoid set-but-not-used warnings from gcc
11255         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11256         avoid warning about set-but-not-used variables.
11257
11258         test-xvasprintf: avoid 'const' discard warnings
11259         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11260         "const" when assigning from literal strings.
11261         (test_xasprintf): Add "void" in function argument list to placate
11262         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11263
11264         tests: avoid compilation warnings in argmatch and exclude tests...
11265         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11266         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11267         Since it always exits, declare with the "noreturn" attribute.
11268         * tests/test-argmatch.c: Likewise.
11269
11270         tests: avoid 'const' discard warnings in mbsstr tests
11271         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11272         * tests/test-mbsstr2.c (main): Likewise.
11273
11274         test-verify: avoid warning from gcc's -Wmissing-declarations
11275         * tests/test-verify.c (function): Declare to be static.
11276
11277         test-inttostr.c: include <string.h> for use of strcmp
11278         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11279
11280         test-linkat: avoid failed assertion on "other" architectures
11281         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11282         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11283         sparc: https://bugs.launchpad.net/bugs/591968
11284
11285 2010-06-11  Jim Meyering  <meyering@redhat.com>
11286
11287         printf.m4: avoid autoconf's "Expanded Before Required" warning
11288         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11289         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11290         autoconf warning.
11291
11292 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11293
11294         Replacement header templates are now named with ".in", not "_".
11295         * doc/gnulib-intro.texi: Correct.
11296
11297 2010-06-10  Jim Meyering  <meyering@redhat.com>
11298
11299         inttostr-tests: depend on snprintf, not snprintf-posix
11300         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11301         snprintf-posix, to avoid this aclocal failure:
11302           missing file gnulib-tests/vasnprintf.c
11303           configure.ac:45: error: expected source file, required through \
11304           AC_LIBSOURCES, not found
11305
11306 2010-06-10  Jim Meyering  <meyering@redhat.com>
11307
11308         inttostr: add a new function, inttostr, and tests
11309         The namesake function was not available.  The existence of the
11310         template file, inttostr.c makes its addition nontrivial.
11311         * lib/anytostr.c: Rename from inttostr.c.
11312         (anytostr): Rename from inttostr.
11313         * lib/inttostr.c: New file.
11314         * modules/inttostr (Files): Add anytostr.c.
11315         (Makefile.am): Set lib_SOURCES instead of ...
11316         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11317         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11318         * lib/offtostr.c: Likewise.
11319         * lib/uinttostr.c: Likewise.
11320         * lib/umaxtostr.c: Likewise.
11321         * modules/inttostr-tests: New file.
11322         * tests/test-inttostr.c: New file.  Test these functions.
11323
11324 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11325             Bruno Haible  <bruno@clisp.org>
11326
11327         Add "Extending Gnulib" chapter to manual.
11328         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11329         chapter.
11330         (Extending Gnulib): New chapter.
11331         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11332         chapter.
11333
11334 2010-06-09  Bruno Haible  <bruno@clisp.org>
11335
11336         Avoid relocwrapper link errors due to gnulib replacement functions.
11337         * lib/areadlink.c: Use the system's malloc, realloc functions.
11338         (areadlink): Set errno to ENOMEM explicitly.
11339         * modules/areadlink (Depends-on): Remove malloc-posix.
11340         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11341
11342 2010-06-09  Bruno Haible  <bruno@clisp.org>
11343
11344         Avoid relocwrapper link errors due to gnulib replacement functions.
11345         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11346         * lib/malloca.c: Likewise.
11347         * lib/relocatable.c: Likewise.
11348         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11349         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11350         * lib/setenv.c: Use the system's malloc, realloc functions.
11351         * lib/strerror.c: Use the system's sprintf function.
11352         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11353
11354 2010-06-04  Bruno Haible  <bruno@clisp.org>
11355
11356         Prefer documented low-level autoconf macro names.
11357         * m4/lib-link.m4: Use m4_translit instead of translit.
11358         * m4/environ.m4: Likewise.
11359         * m4/mathfunc.m4: Likewise.
11360         * m4/onceonly.m4: Likewise.
11361         * m4/stdint.m4: Likewise.
11362         Suggested by Eric Blake.
11363
11364 2010-06-04  Martin Lambers  <marlam@marlam.de>
11365             Bruno Haible  <bruno@clisp.org>
11366
11367         havelib: Allow library names with '+' characters.
11368         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11369         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11370
11371 2010-06-09  Bruno Haible  <bruno@clisp.org>
11372
11373         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11374         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11375         realloc failed.
11376
11377 2010-06-08  Peter Simons  <simons@cryp.to>
11378
11379         maint.mk: make the news-check rule more configurable
11380         * top/maint.mk (news-check-lines-spec) New variable.
11381         (news-check): Use "sed -n 1,10p" in place of "head".
11382
11383 2010-06-07  Jim Meyering  <meyering@redhat.com>
11384
11385         do-release-commit-and-tag: fix typo in --help
11386         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11387
11388         regex: avoid new dead-code warning with gcc-4.6.0
11389         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11390         if-block containing a while-loop.  It's been unused for at least
11391         5 years.
11392
11393 2010-06-05  Bruno Haible  <bruno@clisp.org>
11394
11395         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11396         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11397
11398 2010-06-04  Bruno Haible  <bruno@clisp.org>
11399
11400         Update to GNU gettext 0.18.1.
11401         * modules/gettext (configure.ac): Require gettext infrastructure from
11402         version 0.18.1.
11403
11404 2010-06-03  Bruno Haible  <bruno@clisp.org>
11405
11406         Don't use AC_LIBOBJ with file names in subdirectories.
11407         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11408         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11409         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11410         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11411         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11412         gl_LIBUNISTRING_LIBSOURCE.
11413         (Makefile.am): Augment lib_SOURCES here, conditionally.
11414         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11415
11416 2010-06-03  Bruno Haible  <bruno@clisp.org>
11417
11418         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11419         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11420         expansion does not end with a newline.
11421         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11422         unnecessary newline.
11423
11424 2010-06-03  Bruno Haible  <bruno@clisp.org>
11425
11426         Reduce dependencies.
11427         * tests/test-quotearg.h: New file, extracted from
11428         tests/test-quotearg.c.
11429         * tests/test-quotearg-simple.c: New file, extracted from
11430         tests/test-quotearg.c.
11431         * tests/test-quotearg.c: Don't include <ctype.h>.
11432         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11433         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11434         use_quote_double_quotes, use_quotearg_colon): Moved to
11435         tests/test-quotearg.h.
11436         (results_g, flag_results, custom_quotes, custom_results): Moved
11437         to tests/test-quotearg-simple.c.
11438         (main): Moved the part that does not depend on gettext to
11439         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11440         performed.
11441         * modules/quotearg-simple: New file.
11442         * modules/quotearg-simple-tests: New file.
11443         * modules/quotearg (Depends-on): Add quotearg-simple.
11444         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11445         (Files): Add tests/test-quotearg.h.
11446         Reported by Paolo Bonzini.
11447
11448 2010-06-03  Bruno Haible  <bruno@clisp.org>
11449
11450         Reduce dependencies.
11451         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11452
11453 2010-06-03  Bruno Haible  <bruno@clisp.org>
11454
11455         time: Undefine more broken macros.
11456         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11457         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11458         Reported by Eric Blake.
11459
11460 2010-06-03  Bruno Haible  <bruno@clisp.org>
11461
11462         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11463         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11464         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11465         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11466         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11467         Reported by Ludovic Courtès <ludo@gnu.org>.
11468
11469 2010-06-02  Eric Blake  <eblake@redhat.com>
11470
11471         time: work with mingw + pthreads-win32 library
11472         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11473         if timespec is defined only in pthread.h.
11474         * modules/time (Makefile.am): Substitute it.
11475         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11476         <pthread.h>, when needed.
11477         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11478         from the library.
11479
11480 2010-05-31  Bruno Haible  <bruno@clisp.org>
11481
11482         Avoid expanding two macros in the wrong order.
11483         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11484         gl_LIBUNISTRING if it is defined.
11485         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11486         autoconf >= 2.64.
11487         Reported by Ludovic Courtès <ludo@gnu.org>.
11488
11489 2010-05-27  Jim Meyering  <meyering@redhat.com>
11490
11491         maint.mk: also prohibit "#undef" of always-defined symbols
11492         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11493         Allow more than one space before the symbol name.
11494         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11495         the regexp uses alternation.
11496
11497 2010-05-26  Eric Blake  <eblake@redhat.com>
11498
11499         maint.mk: avoid echo -e
11500         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11501         Convert all uses of echo -* to printf.
11502         Reported by Matthias Bolte.
11503
11504 2010-05-25  Bruno Haible  <bruno@clisp.org>
11505
11506         Update to GNU gettext 0.18, part 2.
11507         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11508         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11509
11510 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11511
11512         Add missing include in test-pwrite.c.
11513         * tests/test-pwrite.c: Include string.h, for strcmp.
11514
11515 2010-05-24  Bruno Haible  <bruno@clisp.org>
11516
11517         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11518
11519 2010-05-24  Bruno Haible  <bruno@clisp.org>
11520
11521         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11522         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11523         iconveh_error argument.
11524         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11525         U_STRCONV_TO_LOCALE.
11526         * lib/unistr/u16-strcoll.c: Likewise.
11527         * lib/unistr/u32-strcoll.c: Likewise.
11528         * modules/unistr/u8-strcoll (Depends-on): Add
11529         uniconv/u8-strconv-to-enc, localcharset. Remove
11530         uniconv/u8-strconv-to-locale.
11531         (configure.ac): Bump version number.
11532         * modules/unistr/u16-strcoll (Depends-on): Add
11533         uniconv/u16-strconv-to-enc, localcharset. Remove
11534         uniconv/u16-strconv-to-locale.
11535         (configure.ac): Bump version number.
11536         * modules/unistr/u32-strcoll (Depends-on): Add
11537         uniconv/u32-strconv-to-enc, localcharset. Remove
11538         uniconv/u32-strconv-to-locale.
11539         (configure.ac): Bump version number.
11540
11541 2010-05-24  Bruno Haible  <bruno@clisp.org>
11542
11543         Avoid a test failure on NetBSD 5.0.
11544         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11545         an iconv() bug.
11546
11547 2010-05-24  Bruno Haible  <bruno@clisp.org>
11548
11549         Adjust #include directive style.
11550         * modules/regex (Includes): Recommend to write <regex.h>.
11551
11552 2010-05-24  Bruno Haible  <bruno@clisp.org>
11553
11554         regex: Don't require alloca.
11555         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11556         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11557         only inside if (0).
11558
11559 2010-05-23  Jim Meyering  <meyering@redhat.com>
11560
11561         test-renameat.c: include <sys/stat.h>
11562         * tests/test-renameat.c: Include <sys/stat.h>; required for
11563         definition of S_IS* macros.
11564
11565 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11566
11567         Update maintainer documentation for 'relocatable-prog' module.
11568         * doc/relocatable-maint.texi: Update.
11569         Comments by Bruno Haible.
11570
11571 2010-05-23  Bruno Haible  <bruno@clisp.org>
11572
11573         git-merge-changelog: Enable --split-merged-entry by default.
11574         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11575         (usage): Don't mention this option any more.
11576         Reported by Ralf Wildenhues.
11577
11578 2010-05-23  Jim Meyering  <meyering@redhat.com>
11579
11580         test-pwrite: do not leave behind a test file named "out"
11581         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11582         The trivial-looking use of init.sh is really necessary.
11583         It ensures that the temporary file, "out", is created in
11584         a temporary directory, and removed upon termination.
11585         * tests/test-pwrite.sh: Re-add file.
11586         * modules/pwrite-tests: Reference it.
11587
11588 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11589
11590         Fix output redirection buglet in init.sh.
11591         * tests/init.sh: Fix redirection of stderr.
11592
11593 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11594
11595         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11596
11597 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11598
11599         * modules/valgrind-tests: New file.
11600         * m4/valgrind-tests.m4: New file.
11601         * doc/valgrind-tests.texi: New file.
11602         * doc/gnulib.texi (Running self-tests under valgrind): New
11603         section.
11604
11605 2010-05-19  Bruno Haible  <bruno@clisp.org>
11606
11607         Clean up dead code in recent commit.
11608         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11609         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11610         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11611         Suggested by Paolo Bonzini.
11612
11613 2010-05-19  Bruno Haible  <bruno@clisp.org>
11614
11615         Avoid valgrind error reports from libunistring.
11616         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11617         * modules/libunistring (Files): Add it.
11618         * modules/libunistring-optional (Files): Likewise.
11619
11620 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11621             Bruno Haible  <bruno@clisp.org>
11622
11623         New module 'libunistring-optional'.
11624         * modules/libunistring-optional: New file.
11625         * m4/libunistring-base.m4: New file.
11626         * m4/libunistring-optional.m4: New file.
11627         * lib/unicase.in.h: Renamed from lib/unicase.h.
11628         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11629         * lib/unictype.in.h: Renamed from lib/unictype.h.
11630         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11631         * lib/uniname.in.h: Renamed from lib/uniname.h.
11632         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11633         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11634         * lib/unistr.in.h: Renamed from lib/unistr.h.
11635         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11636         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11637         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11638         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11639         gl_LIBUNISTRING. If the library was found, determine the installed
11640         version and set LIBUNISTRING_VERSION.
11641         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11642         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11643         handle a configuration option --with-included-libunistring.
11644         * modules/libunistring (Files): Add m4/absolute-header.m4.
11645         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11646         Add m4/libunistring-base.m4.
11647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11648         (Makefile.am): Build unicase.h from unicase.in.h.
11649         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11650         Add m4/libunistring-base.m4.
11651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11652         (Makefile.am): Build uniconv.h from uniconv.in.h.
11653         * modules/unictype/base (Files): Use unictype.in.h instead of
11654         unictype.h. Add m4/libunistring-base.m4.
11655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11656         (Makefile.am): Build unictype.h from unictype.in.h.
11657         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11658         Add m4/libunistring-base.m4.
11659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11660         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11661         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11662         Add m4/libunistring-base.m4.
11663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11664         (Makefile.am): Build uniname.h from uniname.in.h.
11665         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11666         Add m4/libunistring-base.m4.
11667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11668         (Makefile.am): Build uninorm.h from uninorm.in.h.
11669         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11670         unistdio.h. Add m4/libunistring-base.m4.
11671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11672         (Makefile.am): Build unistdio.h from unistdio.in.h.
11673         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11674         Add m4/libunistring-base.m4.
11675         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11676         (Makefile.am): Build unistr.h from unistr.in.h.
11677         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11678         Add m4/libunistring-base.m4.
11679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11680         (Makefile.am): Build unitypes.h from unitypes.in.h.
11681         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11682         Add m4/libunistring-base.m4.
11683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11684         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11685         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11686         uniwidth.h. Add m4/libunistring-base.m4.
11687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11688         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11689         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11690         instead of augmenting lib_SOURCES.
11691         * modules/unicase/empty-suffix-context: Likewise.
11692         * modules/unicase/locale-language: Likewise.
11693         * modules/unicase/tolower: Likewise.
11694         * modules/unicase/totitle: Likewise.
11695         * modules/unicase/toupper: Likewise.
11696         * modules/unicase/u8-casecmp: Likewise.
11697         * modules/unicase/u8-casecoll: Likewise.
11698         * modules/unicase/u8-casefold: Likewise.
11699         * modules/unicase/u8-casexfrm: Likewise.
11700         * modules/unicase/u8-ct-casefold: Likewise.
11701         * modules/unicase/u8-ct-tolower: Likewise.
11702         * modules/unicase/u8-ct-totitle: Likewise.
11703         * modules/unicase/u8-ct-toupper: Likewise.
11704         * modules/unicase/u8-is-cased: Likewise.
11705         * modules/unicase/u8-is-casefolded: Likewise.
11706         * modules/unicase/u8-is-lowercase: Likewise.
11707         * modules/unicase/u8-is-titlecase: Likewise.
11708         * modules/unicase/u8-is-uppercase: Likewise.
11709         * modules/unicase/u8-prefix-context: Likewise.
11710         * modules/unicase/u8-suffix-context: Likewise.
11711         * modules/unicase/u8-tolower: Likewise.
11712         * modules/unicase/u8-totitle: Likewise.
11713         * modules/unicase/u8-toupper: Likewise.
11714         * modules/unicase/u16-casecmp: Likewise.
11715         * modules/unicase/u16-casecoll: Likewise.
11716         * modules/unicase/u16-casefold: Likewise.
11717         * modules/unicase/u16-casexfrm: Likewise.
11718         * modules/unicase/u16-ct-casefold: Likewise.
11719         * modules/unicase/u16-ct-tolower: Likewise.
11720         * modules/unicase/u16-ct-totitle: Likewise.
11721         * modules/unicase/u16-ct-toupper: Likewise.
11722         * modules/unicase/u16-is-cased: Likewise.
11723         * modules/unicase/u16-is-casefolded: Likewise.
11724         * modules/unicase/u16-is-lowercase: Likewise.
11725         * modules/unicase/u16-is-titlecase: Likewise.
11726         * modules/unicase/u16-is-uppercase: Likewise.
11727         * modules/unicase/u16-prefix-context: Likewise.
11728         * modules/unicase/u16-suffix-context: Likewise.
11729         * modules/unicase/u16-tolower: Likewise.
11730         * modules/unicase/u16-totitle: Likewise.
11731         * modules/unicase/u16-toupper: Likewise.
11732         * modules/unicase/u32-casecmp: Likewise.
11733         * modules/unicase/u32-casecoll: Likewise.
11734         * modules/unicase/u32-casefold: Likewise.
11735         * modules/unicase/u32-casexfrm: Likewise.
11736         * modules/unicase/u32-ct-casefold: Likewise.
11737         * modules/unicase/u32-ct-tolower: Likewise.
11738         * modules/unicase/u32-ct-totitle: Likewise.
11739         * modules/unicase/u32-ct-toupper: Likewise.
11740         * modules/unicase/u32-is-cased: Likewise.
11741         * modules/unicase/u32-is-casefolded: Likewise.
11742         * modules/unicase/u32-is-lowercase: Likewise.
11743         * modules/unicase/u32-is-titlecase: Likewise.
11744         * modules/unicase/u32-is-uppercase: Likewise.
11745         * modules/unicase/u32-prefix-context: Likewise.
11746         * modules/unicase/u32-suffix-context: Likewise.
11747         * modules/unicase/u32-tolower: Likewise.
11748         * modules/unicase/u32-totitle: Likewise.
11749         * modules/unicase/u32-toupper: Likewise.
11750         * modules/unicase/ulc-casecmp: Likewise.
11751         * modules/unicase/ulc-casecoll: Likewise.
11752         * modules/unicase/ulc-casexfrm: Likewise.
11753         * modules/uniconv/u8-conv-from-enc: Likewise.
11754         * modules/uniconv/u8-conv-to-enc: Likewise.
11755         * modules/uniconv/u8-strconv-from-enc: Likewise.
11756         * modules/uniconv/u8-strconv-from-locale: Likewise.
11757         * modules/uniconv/u8-strconv-to-enc: Likewise.
11758         * modules/uniconv/u8-strconv-to-locale: Likewise.
11759         * modules/uniconv/u16-conv-from-enc: Likewise.
11760         * modules/uniconv/u16-conv-to-enc: Likewise.
11761         * modules/uniconv/u16-strconv-from-enc: Likewise.
11762         * modules/uniconv/u16-strconv-from-locale: Likewise.
11763         * modules/uniconv/u16-strconv-to-enc: Likewise.
11764         * modules/uniconv/u16-strconv-to-locale: Likewise.
11765         * modules/uniconv/u32-conv-from-enc: Likewise.
11766         * modules/uniconv/u32-conv-to-enc: Likewise.
11767         * modules/uniconv/u32-strconv-from-enc: Likewise.
11768         * modules/uniconv/u32-strconv-from-locale: Likewise.
11769         * modules/uniconv/u32-strconv-to-enc: Likewise.
11770         * modules/uniconv/u32-strconv-to-locale: Likewise.
11771         * modules/unictype/bidicategory-byname: Likewise.
11772         * modules/unictype/bidicategory-name: Likewise.
11773         * modules/unictype/bidicategory-of: Likewise.
11774         * modules/unictype/bidicategory-test: Likewise.
11775         * modules/unictype/block-list: Likewise.
11776         * modules/unictype/block-test: Likewise.
11777         * modules/unictype/category-C: Likewise.
11778         * modules/unictype/category-Cc: Likewise.
11779         * modules/unictype/category-Cf: Likewise.
11780         * modules/unictype/category-Cn: Likewise.
11781         * modules/unictype/category-Co: Likewise.
11782         * modules/unictype/category-Cs: Likewise.
11783         * modules/unictype/category-L: Likewise.
11784         * modules/unictype/category-Ll: Likewise.
11785         * modules/unictype/category-Lm: Likewise.
11786         * modules/unictype/category-Lo: Likewise.
11787         * modules/unictype/category-Lt: Likewise.
11788         * modules/unictype/category-Lu: Likewise.
11789         * modules/unictype/category-M: Likewise.
11790         * modules/unictype/category-Mc: Likewise.
11791         * modules/unictype/category-Me: Likewise.
11792         * modules/unictype/category-Mn: Likewise.
11793         * modules/unictype/category-N: Likewise.
11794         * modules/unictype/category-Nd: Likewise.
11795         * modules/unictype/category-Nl: Likewise.
11796         * modules/unictype/category-No: Likewise.
11797         * modules/unictype/category-P: Likewise.
11798         * modules/unictype/category-Pc: Likewise.
11799         * modules/unictype/category-Pd: Likewise.
11800         * modules/unictype/category-Pe: Likewise.
11801         * modules/unictype/category-Pf: Likewise.
11802         * modules/unictype/category-Pi: Likewise.
11803         * modules/unictype/category-Po: Likewise.
11804         * modules/unictype/category-Ps: Likewise.
11805         * modules/unictype/category-S: Likewise.
11806         * modules/unictype/category-Sc: Likewise.
11807         * modules/unictype/category-Sk: Likewise.
11808         * modules/unictype/category-Sm: Likewise.
11809         * modules/unictype/category-So: Likewise.
11810         * modules/unictype/category-Z: Likewise.
11811         * modules/unictype/category-Zl: Likewise.
11812         * modules/unictype/category-Zp: Likewise.
11813         * modules/unictype/category-Zs: Likewise.
11814         * modules/unictype/category-and: Likewise.
11815         * modules/unictype/category-and-not: Likewise.
11816         * modules/unictype/category-byname: Likewise.
11817         * modules/unictype/category-name: Likewise.
11818         * modules/unictype/category-none: Likewise.
11819         * modules/unictype/category-of: Likewise.
11820         * modules/unictype/category-or: Likewise.
11821         * modules/unictype/category-test: Likewise.
11822         * modules/unictype/combining-class: Likewise.
11823         * modules/unictype/ctype-alnum: Likewise.
11824         * modules/unictype/ctype-alpha: Likewise.
11825         * modules/unictype/ctype-blank: Likewise.
11826         * modules/unictype/ctype-cntrl: Likewise.
11827         * modules/unictype/ctype-digit: Likewise.
11828         * modules/unictype/ctype-graph: Likewise.
11829         * modules/unictype/ctype-lower: Likewise.
11830         * modules/unictype/ctype-print: Likewise.
11831         * modules/unictype/ctype-punct: Likewise.
11832         * modules/unictype/ctype-space: Likewise.
11833         * modules/unictype/ctype-upper: Likewise.
11834         * modules/unictype/ctype-xdigit: Likewise.
11835         * modules/unictype/decimal-digit: Likewise.
11836         * modules/unictype/digit: Likewise.
11837         * modules/unictype/mirror: Likewise.
11838         * modules/unictype/numeric: Likewise.
11839         * modules/unictype/property-alphabetic: Likewise.
11840         * modules/unictype/property-ascii-hex-digit: Likewise.
11841         * modules/unictype/property-bidi-arabic-digit: Likewise.
11842         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11843         * modules/unictype/property-bidi-block-separator: Likewise.
11844         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11845         * modules/unictype/property-bidi-common-separator: Likewise.
11846         * modules/unictype/property-bidi-control: Likewise.
11847         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11848         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11849         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11850         * modules/unictype/property-bidi-european-digit: Likewise.
11851         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11852         * modules/unictype/property-bidi-left-to-right: Likewise.
11853         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11854         * modules/unictype/property-bidi-other-neutral: Likewise.
11855         * modules/unictype/property-bidi-pdf: Likewise.
11856         * modules/unictype/property-bidi-segment-separator: Likewise.
11857         * modules/unictype/property-bidi-whitespace: Likewise.
11858         * modules/unictype/property-byname: Likewise.
11859         * modules/unictype/property-combining: Likewise.
11860         * modules/unictype/property-composite: Likewise.
11861         * modules/unictype/property-currency-symbol: Likewise.
11862         * modules/unictype/property-dash: Likewise.
11863         * modules/unictype/property-decimal-digit: Likewise.
11864         * modules/unictype/property-default-ignorable-code-point: Likewise.
11865         * modules/unictype/property-deprecated: Likewise.
11866         * modules/unictype/property-diacritic: Likewise.
11867         * modules/unictype/property-extender: Likewise.
11868         * modules/unictype/property-format-control: Likewise.
11869         * modules/unictype/property-grapheme-base: Likewise.
11870         * modules/unictype/property-grapheme-extend: Likewise.
11871         * modules/unictype/property-grapheme-link: Likewise.
11872         * modules/unictype/property-hex-digit: Likewise.
11873         * modules/unictype/property-hyphen: Likewise.
11874         * modules/unictype/property-id-continue: Likewise.
11875         * modules/unictype/property-id-start: Likewise.
11876         * modules/unictype/property-ideographic: Likewise.
11877         * modules/unictype/property-ids-binary-operator: Likewise.
11878         * modules/unictype/property-ids-trinary-operator: Likewise.
11879         * modules/unictype/property-ignorable-control: Likewise.
11880         * modules/unictype/property-iso-control: Likewise.
11881         * modules/unictype/property-join-control: Likewise.
11882         * modules/unictype/property-left-of-pair: Likewise.
11883         * modules/unictype/property-line-separator: Likewise.
11884         * modules/unictype/property-logical-order-exception: Likewise.
11885         * modules/unictype/property-lowercase: Likewise.
11886         * modules/unictype/property-math: Likewise.
11887         * modules/unictype/property-non-break: Likewise.
11888         * modules/unictype/property-not-a-character: Likewise.
11889         * modules/unictype/property-numeric: Likewise.
11890         * modules/unictype/property-other-alphabetic: Likewise.
11891         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11892         * modules/unictype/property-other-grapheme-extend: Likewise.
11893         * modules/unictype/property-other-id-continue: Likewise.
11894         * modules/unictype/property-other-id-start: Likewise.
11895         * modules/unictype/property-other-lowercase: Likewise.
11896         * modules/unictype/property-other-math: Likewise.
11897         * modules/unictype/property-other-uppercase: Likewise.
11898         * modules/unictype/property-paired-punctuation: Likewise.
11899         * modules/unictype/property-paragraph-separator: Likewise.
11900         * modules/unictype/property-pattern-syntax: Likewise.
11901         * modules/unictype/property-pattern-white-space: Likewise.
11902         * modules/unictype/property-private-use: Likewise.
11903         * modules/unictype/property-punctuation: Likewise.
11904         * modules/unictype/property-quotation-mark: Likewise.
11905         * modules/unictype/property-radical: Likewise.
11906         * modules/unictype/property-sentence-terminal: Likewise.
11907         * modules/unictype/property-soft-dotted: Likewise.
11908         * modules/unictype/property-space: Likewise.
11909         * modules/unictype/property-terminal-punctuation: Likewise.
11910         * modules/unictype/property-test: Likewise.
11911         * modules/unictype/property-titlecase: Likewise.
11912         * modules/unictype/property-unassigned-code-value: Likewise.
11913         * modules/unictype/property-unified-ideograph: Likewise.
11914         * modules/unictype/property-uppercase: Likewise.
11915         * modules/unictype/property-variation-selector: Likewise.
11916         * modules/unictype/property-white-space: Likewise.
11917         * modules/unictype/property-xid-continue: Likewise.
11918         * modules/unictype/property-xid-start: Likewise.
11919         * modules/unictype/property-zero-width: Likewise.
11920         * modules/unictype/scripts: Likewise.
11921         * modules/unictype/syntax-c-ident: Likewise.
11922         * modules/unictype/syntax-c-whitespace: Likewise.
11923         * modules/unictype/syntax-java-ident: Likewise.
11924         * modules/unictype/syntax-java-whitespace: Likewise.
11925         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11926         * modules/unilbrk/u8-width-linebreaks: Likewise.
11927         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11928         * modules/unilbrk/u16-width-linebreaks: Likewise.
11929         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11930         * modules/unilbrk/u32-width-linebreaks: Likewise.
11931         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11932         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11933         * modules/uniname/uniname: Likewise.
11934         * modules/uninorm/canonical-decomposition: Likewise.
11935         * modules/uninorm/composition: Likewise.
11936         * modules/uninorm/decomposing-form: Likewise.
11937         * modules/uninorm/decomposition: Likewise.
11938         * modules/uninorm/filter: Likewise.
11939         * modules/uninorm/nfc: Likewise.
11940         * modules/uninorm/nfd: Likewise.
11941         * modules/uninorm/nfkc: Likewise.
11942         * modules/uninorm/nfkd: Likewise.
11943         * modules/uninorm/u8-normalize: Likewise.
11944         * modules/uninorm/u8-normcmp: Likewise.
11945         * modules/uninorm/u8-normcoll: Likewise.
11946         * modules/uninorm/u8-normxfrm: Likewise.
11947         * modules/uninorm/u16-normalize: Likewise.
11948         * modules/uninorm/u16-normcmp: Likewise.
11949         * modules/uninorm/u16-normcoll: Likewise.
11950         * modules/uninorm/u16-normxfrm: Likewise.
11951         * modules/uninorm/u32-normalize: Likewise.
11952         * modules/uninorm/u32-normcmp: Likewise.
11953         * modules/uninorm/u32-normcoll: Likewise.
11954         * modules/uninorm/u32-normxfrm: Likewise.
11955         * modules/unistdio/u8-asnprintf: Likewise.
11956         * modules/unistdio/u8-asprintf: Likewise.
11957         * modules/unistdio/u8-snprintf: Likewise.
11958         * modules/unistdio/u8-sprintf: Likewise.
11959         * modules/unistdio/u8-u8-asnprintf: Likewise.
11960         * modules/unistdio/u8-u8-asprintf: Likewise.
11961         * modules/unistdio/u8-u8-snprintf: Likewise.
11962         * modules/unistdio/u8-u8-sprintf: Likewise.
11963         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11964         * modules/unistdio/u8-u8-vasprintf: Likewise.
11965         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11966         * modules/unistdio/u8-u8-vsprintf: Likewise.
11967         * modules/unistdio/u8-vasnprintf: Likewise.
11968         * modules/unistdio/u8-vasprintf: Likewise.
11969         * modules/unistdio/u8-vsnprintf: Likewise.
11970         * modules/unistdio/u8-vsprintf: Likewise.
11971         * modules/unistdio/u16-asnprintf: Likewise.
11972         * modules/unistdio/u16-asprintf: Likewise.
11973         * modules/unistdio/u16-snprintf: Likewise.
11974         * modules/unistdio/u16-sprintf: Likewise.
11975         * modules/unistdio/u16-u16-asnprintf: Likewise.
11976         * modules/unistdio/u16-u16-asprintf: Likewise.
11977         * modules/unistdio/u16-u16-snprintf: Likewise.
11978         * modules/unistdio/u16-u16-sprintf: Likewise.
11979         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11980         * modules/unistdio/u16-u16-vasprintf: Likewise.
11981         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11982         * modules/unistdio/u16-u16-vsprintf: Likewise.
11983         * modules/unistdio/u16-vasnprintf: Likewise.
11984         * modules/unistdio/u16-vasprintf: Likewise.
11985         * modules/unistdio/u16-vsnprintf: Likewise.
11986         * modules/unistdio/u16-vsprintf: Likewise.
11987         * modules/unistdio/u32-asnprintf: Likewise.
11988         * modules/unistdio/u32-asprintf: Likewise.
11989         * modules/unistdio/u32-snprintf: Likewise.
11990         * modules/unistdio/u32-sprintf: Likewise.
11991         * modules/unistdio/u32-u32-asnprintf: Likewise.
11992         * modules/unistdio/u32-u32-asprintf: Likewise.
11993         * modules/unistdio/u32-u32-snprintf: Likewise.
11994         * modules/unistdio/u32-u32-sprintf: Likewise.
11995         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11996         * modules/unistdio/u32-u32-vasprintf: Likewise.
11997         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11998         * modules/unistdio/u32-u32-vsprintf: Likewise.
11999         * modules/unistdio/u32-vasnprintf: Likewise.
12000         * modules/unistdio/u32-vasprintf: Likewise.
12001         * modules/unistdio/u32-vsnprintf: Likewise.
12002         * modules/unistdio/u32-vsprintf: Likewise.
12003         * modules/unistdio/ulc-asnprintf: Likewise.
12004         * modules/unistdio/ulc-asprintf: Likewise.
12005         * modules/unistdio/ulc-fprintf: Likewise.
12006         * modules/unistdio/ulc-snprintf: Likewise.
12007         * modules/unistdio/ulc-sprintf: Likewise.
12008         * modules/unistdio/ulc-vasnprintf: Likewise.
12009         * modules/unistdio/ulc-vasprintf: Likewise.
12010         * modules/unistdio/ulc-vfprintf: Likewise.
12011         * modules/unistdio/ulc-vsnprintf: Likewise.
12012         * modules/unistdio/ulc-vsprintf: Likewise.
12013         * modules/unistr/u8-check: Likewise.
12014         * modules/unistr/u8-chr: Likewise.
12015         * modules/unistr/u8-cmp: Likewise.
12016         * modules/unistr/u8-cmp2: Likewise.
12017         * modules/unistr/u8-cpy: Likewise.
12018         * modules/unistr/u8-cpy-alloc: Likewise.
12019         * modules/unistr/u8-endswith: Likewise.
12020         * modules/unistr/u8-mblen: Likewise.
12021         * modules/unistr/u8-mbsnlen: Likewise.
12022         * modules/unistr/u8-mbtouc: Likewise.
12023         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12024         * modules/unistr/u8-mbtoucr: Likewise.
12025         * modules/unistr/u8-move: Likewise.
12026         * modules/unistr/u8-next: Likewise.
12027         * modules/unistr/u8-prev: Likewise.
12028         * modules/unistr/u8-set: Likewise.
12029         * modules/unistr/u8-startswith: Likewise.
12030         * modules/unistr/u8-stpcpy: Likewise.
12031         * modules/unistr/u8-stpncpy: Likewise.
12032         * modules/unistr/u8-strcat: Likewise.
12033         * modules/unistr/u8-strchr: Likewise.
12034         * modules/unistr/u8-strcmp: Likewise.
12035         * modules/unistr/u8-strcoll: Likewise.
12036         * modules/unistr/u8-strcpy: Likewise.
12037         * modules/unistr/u8-strcspn: Likewise.
12038         * modules/unistr/u8-strdup: Likewise.
12039         * modules/unistr/u8-strlen: Likewise.
12040         * modules/unistr/u8-strmblen: Likewise.
12041         * modules/unistr/u8-strmbtouc: Likewise.
12042         * modules/unistr/u8-strncat: Likewise.
12043         * modules/unistr/u8-strncmp: Likewise.
12044         * modules/unistr/u8-strncpy: Likewise.
12045         * modules/unistr/u8-strnlen: Likewise.
12046         * modules/unistr/u8-strpbrk: Likewise.
12047         * modules/unistr/u8-strrchr: Likewise.
12048         * modules/unistr/u8-strspn: Likewise.
12049         * modules/unistr/u8-strstr: Likewise.
12050         * modules/unistr/u8-strtok: Likewise.
12051         * modules/unistr/u8-to-u16: Likewise.
12052         * modules/unistr/u8-to-u32: Likewise.
12053         * modules/unistr/u8-uctomb: Likewise.
12054         * modules/unistr/u16-check: Likewise.
12055         * modules/unistr/u16-chr: Likewise.
12056         * modules/unistr/u16-cmp: Likewise.
12057         * modules/unistr/u16-cmp2: Likewise.
12058         * modules/unistr/u16-cpy: Likewise.
12059         * modules/unistr/u16-cpy-alloc: Likewise.
12060         * modules/unistr/u16-endswith: Likewise.
12061         * modules/unistr/u16-mblen: Likewise.
12062         * modules/unistr/u16-mbsnlen: Likewise.
12063         * modules/unistr/u16-mbtouc: Likewise.
12064         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12065         * modules/unistr/u16-mbtoucr: Likewise.
12066         * modules/unistr/u16-move: Likewise.
12067         * modules/unistr/u16-next: Likewise.
12068         * modules/unistr/u16-prev: Likewise.
12069         * modules/unistr/u16-set: Likewise.
12070         * modules/unistr/u16-startswith: Likewise.
12071         * modules/unistr/u16-stpcpy: Likewise.
12072         * modules/unistr/u16-stpncpy: Likewise.
12073         * modules/unistr/u16-strcat: Likewise.
12074         * modules/unistr/u16-strchr: Likewise.
12075         * modules/unistr/u16-strcmp: Likewise.
12076         * modules/unistr/u16-strcoll: Likewise.
12077         * modules/unistr/u16-strcpy: Likewise.
12078         * modules/unistr/u16-strcspn: Likewise.
12079         * modules/unistr/u16-strdup: Likewise.
12080         * modules/unistr/u16-strlen: Likewise.
12081         * modules/unistr/u16-strmblen: Likewise.
12082         * modules/unistr/u16-strmbtouc: Likewise.
12083         * modules/unistr/u16-strncat: Likewise.
12084         * modules/unistr/u16-strncmp: Likewise.
12085         * modules/unistr/u16-strncpy: Likewise.
12086         * modules/unistr/u16-strnlen: Likewise.
12087         * modules/unistr/u16-strpbrk: Likewise.
12088         * modules/unistr/u16-strrchr: Likewise.
12089         * modules/unistr/u16-strspn: Likewise.
12090         * modules/unistr/u16-strstr: Likewise.
12091         * modules/unistr/u16-strtok: Likewise.
12092         * modules/unistr/u16-to-u32: Likewise.
12093         * modules/unistr/u16-to-u8: Likewise.
12094         * modules/unistr/u16-uctomb: Likewise.
12095         * modules/unistr/u32-check: Likewise.
12096         * modules/unistr/u32-chr: Likewise.
12097         * modules/unistr/u32-cmp: Likewise.
12098         * modules/unistr/u32-cmp2: Likewise.
12099         * modules/unistr/u32-cpy: Likewise.
12100         * modules/unistr/u32-cpy-alloc: Likewise.
12101         * modules/unistr/u32-endswith: Likewise.
12102         * modules/unistr/u32-mblen: Likewise.
12103         * modules/unistr/u32-mbsnlen: Likewise.
12104         * modules/unistr/u32-mbtouc: Likewise.
12105         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12106         * modules/unistr/u32-mbtoucr: Likewise.
12107         * modules/unistr/u32-move: Likewise.
12108         * modules/unistr/u32-next: Likewise.
12109         * modules/unistr/u32-prev: Likewise.
12110         * modules/unistr/u32-set: Likewise.
12111         * modules/unistr/u32-startswith: Likewise.
12112         * modules/unistr/u32-stpcpy: Likewise.
12113         * modules/unistr/u32-stpncpy: Likewise.
12114         * modules/unistr/u32-strcat: Likewise.
12115         * modules/unistr/u32-strchr: Likewise.
12116         * modules/unistr/u32-strcmp: Likewise.
12117         * modules/unistr/u32-strcoll: Likewise.
12118         * modules/unistr/u32-strcpy: Likewise.
12119         * modules/unistr/u32-strcspn: Likewise.
12120         * modules/unistr/u32-strdup: Likewise.
12121         * modules/unistr/u32-strlen: Likewise.
12122         * modules/unistr/u32-strmblen: Likewise.
12123         * modules/unistr/u32-strmbtouc: Likewise.
12124         * modules/unistr/u32-strncat: Likewise.
12125         * modules/unistr/u32-strncmp: Likewise.
12126         * modules/unistr/u32-strncpy: Likewise.
12127         * modules/unistr/u32-strnlen: Likewise.
12128         * modules/unistr/u32-strpbrk: Likewise.
12129         * modules/unistr/u32-strrchr: Likewise.
12130         * modules/unistr/u32-strspn: Likewise.
12131         * modules/unistr/u32-strstr: Likewise.
12132         * modules/unistr/u32-strtok: Likewise.
12133         * modules/unistr/u32-to-u16: Likewise.
12134         * modules/unistr/u32-to-u8: Likewise.
12135         * modules/unistr/u32-uctomb: Likewise.
12136         * modules/uniwbrk/u8-wordbreaks: Likewise.
12137         * modules/uniwbrk/u16-wordbreaks: Likewise.
12138         * modules/uniwbrk/u32-wordbreaks: Likewise.
12139         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12140         * modules/uniwbrk/wordbreak-property: Likewise.
12141         * modules/uniwidth/u8-strwidth: Likewise.
12142         * modules/uniwidth/u8-width: Likewise.
12143         * modules/uniwidth/u16-strwidth: Likewise.
12144         * modules/uniwidth/u16-width: Likewise.
12145         * modules/uniwidth/u32-strwidth: Likewise.
12146         * modules/uniwidth/u32-width: Likewise.
12147         * modules/uniwidth/width: Likewise.
12148         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12149         with $(LIBUNISTRING).
12150         * modules/unicase/ignorable-tests: Likewise.
12151         * modules/unicase/locale-language-tests: Likewise.
12152         * modules/unicase/tolower-tests: Likewise.
12153         * modules/unicase/totitle-tests: Likewise.
12154         * modules/unicase/toupper-tests: Likewise.
12155         * modules/unicase/u8-casecmp-tests: Likewise.
12156         * modules/unicase/u8-casecoll-tests: Likewise.
12157         * modules/unicase/u8-casefold-tests: Likewise.
12158         * modules/unicase/u8-is-cased-tests: Likewise.
12159         * modules/unicase/u8-is-casefolded-tests: Likewise.
12160         * modules/unicase/u8-is-lowercase-tests: Likewise.
12161         * modules/unicase/u8-is-titlecase-tests: Likewise.
12162         * modules/unicase/u8-is-uppercase-tests: Likewise.
12163         * modules/unicase/u8-tolower-tests: Likewise.
12164         * modules/unicase/u8-totitle-tests: Likewise.
12165         * modules/unicase/u8-toupper-tests: Likewise.
12166         * modules/unicase/u16-casecmp-tests: Likewise.
12167         * modules/unicase/u16-casecoll-tests: Likewise.
12168         * modules/unicase/u16-casefold-tests: Likewise.
12169         * modules/unicase/u16-is-cased-tests: Likewise.
12170         * modules/unicase/u16-is-casefolded-tests: Likewise.
12171         * modules/unicase/u16-is-lowercase-tests: Likewise.
12172         * modules/unicase/u16-is-titlecase-tests: Likewise.
12173         * modules/unicase/u16-is-uppercase-tests: Likewise.
12174         * modules/unicase/u16-tolower-tests: Likewise.
12175         * modules/unicase/u16-totitle-tests: Likewise.
12176         * modules/unicase/u16-toupper-tests: Likewise.
12177         * modules/unicase/u32-casecmp-tests: Likewise.
12178         * modules/unicase/u32-casecoll-tests: Likewise.
12179         * modules/unicase/u32-casefold-tests: Likewise.
12180         * modules/unicase/u32-is-cased-tests: Likewise.
12181         * modules/unicase/u32-is-casefolded-tests: Likewise.
12182         * modules/unicase/u32-is-lowercase-tests: Likewise.
12183         * modules/unicase/u32-is-titlecase-tests: Likewise.
12184         * modules/unicase/u32-is-uppercase-tests: Likewise.
12185         * modules/unicase/u32-tolower-tests: Likewise.
12186         * modules/unicase/u32-totitle-tests: Likewise.
12187         * modules/unicase/u32-toupper-tests: Likewise.
12188         * modules/unicase/ulc-casecmp-tests: Likewise.
12189         * modules/unicase/ulc-casecoll-tests: Likewise.
12190         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12191         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12192         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12193         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12194         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12195         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12196         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12197         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12198         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12199         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12200         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12201         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12202         * modules/unictype/bidicategory-byname-tests: Likewise.
12203         * modules/unictype/bidicategory-name-tests: Likewise.
12204         * modules/unictype/bidicategory-of-tests: Likewise.
12205         * modules/unictype/bidicategory-test-tests: Likewise.
12206         * modules/unictype/block-list-tests: Likewise.
12207         * modules/unictype/block-of-tests: Likewise.
12208         * modules/unictype/block-test-tests: Likewise.
12209         * modules/unictype/category-C-tests: Likewise.
12210         * modules/unictype/category-Cc-tests: Likewise.
12211         * modules/unictype/category-Cf-tests: Likewise.
12212         * modules/unictype/category-Cn-tests: Likewise.
12213         * modules/unictype/category-Co-tests: Likewise.
12214         * modules/unictype/category-Cs-tests: Likewise.
12215         * modules/unictype/category-L-tests: Likewise.
12216         * modules/unictype/category-Ll-tests: Likewise.
12217         * modules/unictype/category-Lm-tests: Likewise.
12218         * modules/unictype/category-Lo-tests: Likewise.
12219         * modules/unictype/category-Lt-tests: Likewise.
12220         * modules/unictype/category-Lu-tests: Likewise.
12221         * modules/unictype/category-M-tests: Likewise.
12222         * modules/unictype/category-Mc-tests: Likewise.
12223         * modules/unictype/category-Me-tests: Likewise.
12224         * modules/unictype/category-Mn-tests: Likewise.
12225         * modules/unictype/category-N-tests: Likewise.
12226         * modules/unictype/category-Nd-tests: Likewise.
12227         * modules/unictype/category-Nl-tests: Likewise.
12228         * modules/unictype/category-No-tests: Likewise.
12229         * modules/unictype/category-P-tests: Likewise.
12230         * modules/unictype/category-Pc-tests: Likewise.
12231         * modules/unictype/category-Pd-tests: Likewise.
12232         * modules/unictype/category-Pe-tests: Likewise.
12233         * modules/unictype/category-Pf-tests: Likewise.
12234         * modules/unictype/category-Pi-tests: Likewise.
12235         * modules/unictype/category-Po-tests: Likewise.
12236         * modules/unictype/category-Ps-tests: Likewise.
12237         * modules/unictype/category-S-tests: Likewise.
12238         * modules/unictype/category-Sc-tests: Likewise.
12239         * modules/unictype/category-Sk-tests: Likewise.
12240         * modules/unictype/category-Sm-tests: Likewise.
12241         * modules/unictype/category-So-tests: Likewise.
12242         * modules/unictype/category-Z-tests: Likewise.
12243         * modules/unictype/category-Zl-tests: Likewise.
12244         * modules/unictype/category-Zp-tests: Likewise.
12245         * modules/unictype/category-Zs-tests: Likewise.
12246         * modules/unictype/category-and-not-tests: Likewise.
12247         * modules/unictype/category-and-tests: Likewise.
12248         * modules/unictype/category-byname-tests: Likewise.
12249         * modules/unictype/category-name-tests: Likewise.
12250         * modules/unictype/category-none-tests: Likewise.
12251         * modules/unictype/category-of-tests: Likewise.
12252         * modules/unictype/category-or-tests: Likewise.
12253         * modules/unictype/category-test-withtable-tests: Likewise.
12254         * modules/unictype/combining-class-tests: Likewise.
12255         * modules/unictype/ctype-alnum-tests: Likewise.
12256         * modules/unictype/ctype-alpha-tests: Likewise.
12257         * modules/unictype/ctype-blank-tests: Likewise.
12258         * modules/unictype/ctype-cntrl-tests: Likewise.
12259         * modules/unictype/ctype-digit-tests: Likewise.
12260         * modules/unictype/ctype-graph-tests: Likewise.
12261         * modules/unictype/ctype-lower-tests: Likewise.
12262         * modules/unictype/ctype-print-tests: Likewise.
12263         * modules/unictype/ctype-punct-tests: Likewise.
12264         * modules/unictype/ctype-space-tests: Likewise.
12265         * modules/unictype/ctype-upper-tests: Likewise.
12266         * modules/unictype/ctype-xdigit-tests: Likewise.
12267         * modules/unictype/decimal-digit-tests: Likewise.
12268         * modules/unictype/digit-tests: Likewise.
12269         * modules/unictype/mirror-tests: Likewise.
12270         * modules/unictype/numeric-tests: Likewise.
12271         * modules/unictype/property-alphabetic-tests: Likewise.
12272         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12273         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12274         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12275         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12276         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12277         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12278         * modules/unictype/property-bidi-control-tests: Likewise.
12279         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12280         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12281         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12282         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12283         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12284         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12285         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12286         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12287         * modules/unictype/property-bidi-pdf-tests: Likewise.
12288         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12289         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12290         * modules/unictype/property-byname-tests: Likewise.
12291         * modules/unictype/property-combining-tests: Likewise.
12292         * modules/unictype/property-composite-tests: Likewise.
12293         * modules/unictype/property-currency-symbol-tests: Likewise.
12294         * modules/unictype/property-dash-tests: Likewise.
12295         * modules/unictype/property-decimal-digit-tests: Likewise.
12296         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12297         * modules/unictype/property-deprecated-tests: Likewise.
12298         * modules/unictype/property-diacritic-tests: Likewise.
12299         * modules/unictype/property-extender-tests: Likewise.
12300         * modules/unictype/property-format-control-tests: Likewise.
12301         * modules/unictype/property-grapheme-base-tests: Likewise.
12302         * modules/unictype/property-grapheme-extend-tests: Likewise.
12303         * modules/unictype/property-grapheme-link-tests: Likewise.
12304         * modules/unictype/property-hex-digit-tests: Likewise.
12305         * modules/unictype/property-hyphen-tests: Likewise.
12306         * modules/unictype/property-id-continue-tests: Likewise.
12307         * modules/unictype/property-id-start-tests: Likewise.
12308         * modules/unictype/property-ideographic-tests: Likewise.
12309         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12310         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12311         * modules/unictype/property-ignorable-control-tests: Likewise.
12312         * modules/unictype/property-iso-control-tests: Likewise.
12313         * modules/unictype/property-join-control-tests: Likewise.
12314         * modules/unictype/property-left-of-pair-tests: Likewise.
12315         * modules/unictype/property-line-separator-tests: Likewise.
12316         * modules/unictype/property-logical-order-exception-tests: Likewise.
12317         * modules/unictype/property-lowercase-tests: Likewise.
12318         * modules/unictype/property-math-tests: Likewise.
12319         * modules/unictype/property-non-break-tests: Likewise.
12320         * modules/unictype/property-not-a-character-tests: Likewise.
12321         * modules/unictype/property-numeric-tests: Likewise.
12322         * modules/unictype/property-other-alphabetic-tests: Likewise.
12323         * modules/unictype/property-other-default-ignorable-code-point-tests:
12324         Likewise.
12325         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12326         * modules/unictype/property-other-id-continue-tests: Likewise.
12327         * modules/unictype/property-other-id-start-tests: Likewise.
12328         * modules/unictype/property-other-lowercase-tests: Likewise.
12329         * modules/unictype/property-other-math-tests: Likewise.
12330         * modules/unictype/property-other-uppercase-tests: Likewise.
12331         * modules/unictype/property-paired-punctuation-tests: Likewise.
12332         * modules/unictype/property-paragraph-separator-tests: Likewise.
12333         * modules/unictype/property-pattern-syntax-tests: Likewise.
12334         * modules/unictype/property-pattern-white-space-tests: Likewise.
12335         * modules/unictype/property-private-use-tests: Likewise.
12336         * modules/unictype/property-punctuation-tests: Likewise.
12337         * modules/unictype/property-quotation-mark-tests: Likewise.
12338         * modules/unictype/property-radical-tests: Likewise.
12339         * modules/unictype/property-sentence-terminal-tests: Likewise.
12340         * modules/unictype/property-soft-dotted-tests: Likewise.
12341         * modules/unictype/property-space-tests: Likewise.
12342         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12343         * modules/unictype/property-test-tests: Likewise.
12344         * modules/unictype/property-titlecase-tests: Likewise.
12345         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12346         * modules/unictype/property-unified-ideograph-tests: Likewise.
12347         * modules/unictype/property-uppercase-tests: Likewise.
12348         * modules/unictype/property-variation-selector-tests: Likewise.
12349         * modules/unictype/property-white-space-tests: Likewise.
12350         * modules/unictype/property-xid-continue-tests: Likewise.
12351         * modules/unictype/property-xid-start-tests: Likewise.
12352         * modules/unictype/property-zero-width-tests: Likewise.
12353         * modules/unictype/scripts-tests: Likewise.
12354         * modules/unictype/syntax-c-ident-tests: Likewise.
12355         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12356         * modules/unictype/syntax-java-ident-tests: Likewise.
12357         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12358         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12359         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12360         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12361         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12362         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12363         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12364         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12365         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12366         * modules/uniname/uniname-tests: Likewise.
12367         * modules/uninorm/canonical-decomposition-tests: Likewise.
12368         * modules/uninorm/compat-decomposition-tests: Likewise.
12369         * modules/uninorm/composition-tests: Likewise.
12370         * modules/uninorm/decomposing-form-tests: Likewise.
12371         * modules/uninorm/decomposition-tests: Likewise.
12372         * modules/uninorm/filter-tests: Likewise.
12373         * modules/uninorm/nfc-tests: Likewise.
12374         * modules/uninorm/nfd-tests: Likewise.
12375         * modules/uninorm/nfkc-tests: Likewise.
12376         * modules/uninorm/nfkd-tests: Likewise.
12377         * modules/uninorm/u8-normcmp-tests: Likewise.
12378         * modules/uninorm/u8-normcoll-tests: Likewise.
12379         * modules/uninorm/u16-normcmp-tests: Likewise.
12380         * modules/uninorm/u16-normcoll-tests: Likewise.
12381         * modules/uninorm/u32-normcmp-tests: Likewise.
12382         * modules/uninorm/u32-normcoll-tests: Likewise.
12383         * modules/unistdio/u8-asnprintf-tests: Likewise.
12384         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12385         * modules/unistdio/u8-vasprintf-tests: Likewise.
12386         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12387         * modules/unistdio/u8-vsprintf-tests: Likewise.
12388         * modules/unistdio/u16-asnprintf-tests: Likewise.
12389         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12390         * modules/unistdio/u16-vasprintf-tests: Likewise.
12391         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12392         * modules/unistdio/u16-vsprintf-tests: Likewise.
12393         * modules/unistdio/u32-asnprintf-tests: Likewise.
12394         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12395         * modules/unistdio/u32-vasprintf-tests: Likewise.
12396         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12397         * modules/unistdio/u32-vsprintf-tests: Likewise.
12398         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12399         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12400         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12401         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12402         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12403         * modules/unistr/u8-check-tests: Likewise.
12404         * modules/unistr/u8-chr-tests: Likewise.
12405         * modules/unistr/u8-cmp-tests: Likewise.
12406         * modules/unistr/u8-cmp2-tests: Likewise.
12407         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12408         * modules/unistr/u8-cpy-tests: Likewise.
12409         * modules/unistr/u8-mblen-tests: Likewise.
12410         * modules/unistr/u8-mbsnlen-tests: Likewise.
12411         * modules/unistr/u8-mbtouc-tests: Likewise.
12412         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12413         * modules/unistr/u8-mbtoucr-tests: Likewise.
12414         * modules/unistr/u8-move-tests: Likewise.
12415         * modules/unistr/u8-next-tests: Likewise.
12416         * modules/unistr/u8-prev-tests: Likewise.
12417         * modules/unistr/u8-set-tests: Likewise.
12418         * modules/unistr/u8-stpcpy-tests: Likewise.
12419         * modules/unistr/u8-stpncpy-tests: Likewise.
12420         * modules/unistr/u8-strcat-tests: Likewise.
12421         * modules/unistr/u8-strcmp-tests: Likewise.
12422         * modules/unistr/u8-strcoll-tests: Likewise.
12423         * modules/unistr/u8-strcpy-tests: Likewise.
12424         * modules/unistr/u8-strdup-tests: Likewise.
12425         * modules/unistr/u8-strlen-tests: Likewise.
12426         * modules/unistr/u8-strmblen-tests: Likewise.
12427         * modules/unistr/u8-strmbtouc-tests: Likewise.
12428         * modules/unistr/u8-strncat-tests: Likewise.
12429         * modules/unistr/u8-strncmp-tests: Likewise.
12430         * modules/unistr/u8-strncpy-tests: Likewise.
12431         * modules/unistr/u8-strnlen-tests: Likewise.
12432         * modules/unistr/u8-to-u16-tests: Likewise.
12433         * modules/unistr/u8-to-u32-tests: Likewise.
12434         * modules/unistr/u8-uctomb-tests: Likewise.
12435         * modules/unistr/u16-check-tests: Likewise.
12436         * modules/unistr/u16-chr-tests: Likewise.
12437         * modules/unistr/u16-cmp-tests: Likewise.
12438         * modules/unistr/u16-cmp2-tests: Likewise.
12439         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12440         * modules/unistr/u16-cpy-tests: Likewise.
12441         * modules/unistr/u16-mblen-tests: Likewise.
12442         * modules/unistr/u16-mbsnlen-tests: Likewise.
12443         * modules/unistr/u16-mbtouc-tests: Likewise.
12444         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12445         * modules/unistr/u16-mbtoucr-tests: Likewise.
12446         * modules/unistr/u16-move-tests: Likewise.
12447         * modules/unistr/u16-next-tests: Likewise.
12448         * modules/unistr/u16-prev-tests: Likewise.
12449         * modules/unistr/u16-set-tests: Likewise.
12450         * modules/unistr/u16-stpcpy-tests: Likewise.
12451         * modules/unistr/u16-stpncpy-tests: Likewise.
12452         * modules/unistr/u16-strcat-tests: Likewise.
12453         * modules/unistr/u16-strcmp-tests: Likewise.
12454         * modules/unistr/u16-strcoll-tests: Likewise.
12455         * modules/unistr/u16-strcpy-tests: Likewise.
12456         * modules/unistr/u16-strdup-tests: Likewise.
12457         * modules/unistr/u16-strlen-tests: Likewise.
12458         * modules/unistr/u16-strmblen-tests: Likewise.
12459         * modules/unistr/u16-strmbtouc-tests: Likewise.
12460         * modules/unistr/u16-strncat-tests: Likewise.
12461         * modules/unistr/u16-strncmp-tests: Likewise.
12462         * modules/unistr/u16-strncpy-tests: Likewise.
12463         * modules/unistr/u16-strnlen-tests: Likewise.
12464         * modules/unistr/u16-to-u32-tests: Likewise.
12465         * modules/unistr/u16-to-u8-tests: Likewise.
12466         * modules/unistr/u16-uctomb-tests: Likewise.
12467         * modules/unistr/u32-check-tests: Likewise.
12468         * modules/unistr/u32-chr-tests: Likewise.
12469         * modules/unistr/u32-cmp-tests: Likewise.
12470         * modules/unistr/u32-cmp2-tests: Likewise.
12471         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12472         * modules/unistr/u32-cpy-tests: Likewise.
12473         * modules/unistr/u32-mblen-tests: Likewise.
12474         * modules/unistr/u32-mbsnlen-tests: Likewise.
12475         * modules/unistr/u32-mbtouc-tests: Likewise.
12476         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12477         * modules/unistr/u32-mbtoucr-tests: Likewise.
12478         * modules/unistr/u32-move-tests: Likewise.
12479         * modules/unistr/u32-next-tests: Likewise.
12480         * modules/unistr/u32-prev-tests: Likewise.
12481         * modules/unistr/u32-set-tests: Likewise.
12482         * modules/unistr/u32-stpcpy-tests: Likewise.
12483         * modules/unistr/u32-stpncpy-tests: Likewise.
12484         * modules/unistr/u32-strcat-tests: Likewise.
12485         * modules/unistr/u32-strcmp-tests: Likewise.
12486         * modules/unistr/u32-strcoll-tests: Likewise.
12487         * modules/unistr/u32-strcpy-tests: Likewise.
12488         * modules/unistr/u32-strdup-tests: Likewise.
12489         * modules/unistr/u32-strlen-tests: Likewise.
12490         * modules/unistr/u32-strmblen-tests: Likewise.
12491         * modules/unistr/u32-strmbtouc-tests: Likewise.
12492         * modules/unistr/u32-strncat-tests: Likewise.
12493         * modules/unistr/u32-strncmp-tests: Likewise.
12494         * modules/unistr/u32-strncpy-tests: Likewise.
12495         * modules/unistr/u32-strnlen-tests: Likewise.
12496         * modules/unistr/u32-to-u16-tests: Likewise.
12497         * modules/unistr/u32-to-u8-tests: Likewise.
12498         * modules/unistr/u32-uctomb-tests: Likewise.
12499         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12500         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12501         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12502         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12503         * modules/uniwidth/u8-strwidth-tests: Likewise.
12504         * modules/uniwidth/u8-width-tests: Likewise.
12505         * modules/uniwidth/u16-strwidth-tests: Likewise.
12506         * modules/uniwidth/u16-width-tests: Likewise.
12507         * modules/uniwidth/u32-strwidth-tests: Likewise.
12508         * modules/uniwidth/u32-width-tests: Likewise.
12509         * modules/uniwidth/width-tests: Likewise.
12510
12511 2010-05-18  Richard Jones  <rjones@redhat.com>
12512
12513         doc: users.txt: list hivex
12514         * users.txt: Add hivex.
12515
12516 2010-05-18  Richard Jones  <rjones@redhat.com>
12517
12518         doc: users.txt: list febootstrap
12519         * users.txt: Add febootstrap.
12520
12521 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12522
12523         bootstrap: fix an error when gnulib is not used as a git submodule
12524         * build-aux/bootstrap (gnulib_path): If its length is zero then
12525         assign "gnulib" to it.
12526         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12527
12528 2010-05-16  Bruno Haible  <bruno@clisp.org>
12529
12530         Avoid autoconf warnings about AM_ICONV.
12531         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12532         2.64.
12533
12534 2010-05-16  Bruno Haible  <bruno@clisp.org>
12535
12536         absolute-header: Make the macro usable in more situations.
12537         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12538         from gl_ABSOLUTE_HEADER.
12539         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12540
12541 2010-05-16  James Youngman  <jay@gnu.org>
12542
12543         doc: update users.txt
12544         * users.txt: Add CSSC.
12545
12546 2010-05-16  Jim Meyering  <meyering@redhat.com>
12547
12548         init.sh: fix an error in the previous change; add more comments
12549         * tests/init.sh: Compare exit code in loop against 9, not 2.
12550         Patch by Bruno Haible.
12551         Make the two tests more similar by adding an empty "then" clause.
12552         Add comments.
12553
12554         init.sh: avoid unnecessary shell re-exec
12555         * tests/init.sh: Improve the re-exec-required check to first test the
12556         current shell.  If it passes the test, do not search for a shell that
12557         does pass, and do not re-exec.  This test is particularly contorted to
12558         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12559         of $(...) evokes a syntax error and causes immediate shell exit with
12560         status 2.  Bruno Haible reported that the re-exec made it impossible
12561         to single-step through any init.sh-using script.
12562
12563 2010-05-16  Bruno Haible  <bruno@clisp.org>
12564
12565         Fix collision between gnulib's and libintl's printf replacements.
12566         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12567         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12568         (printf): When using GNU C, map the __printf__ function to rpl_printf
12569         via __asm__. When not using GNU C, define rpl_printf instead of
12570         __printf__.
12571         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12572         commit.
12573         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12574         commit.
12575         * m4/asm-underscore.m4: New file.
12576         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12577         * modules/stdio (Files): Add m4/asm-underscore.m4.
12578         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12579         Reported by Ben Pfaff.
12580
12581 2010-05-16  Bruno Haible  <bruno@clisp.org>
12582
12583         verify: Avoid skipping the test on openSUSE 11.0.
12584         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12585
12586 2010-05-13  Bruno Haible  <bruno@clisp.org>
12587
12588         Avoid useless warnings from G++.
12589         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12590         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12592
12593 2010-05-11  Jim Meyering  <meyering@redhat.com>
12594
12595         maint.mk: tweak preceding change
12596         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12597         regexps tighter by anchoring at EOL, and make the new group "shy"
12598         for slightly decreased overhead.
12599
12600 2010-05-11  Eric Blake  <eblake@redhat.com>
12601
12602         maint.mk: gnulib doesn't guarantee NSIG
12603         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12604
12605 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12606
12607         test-pwrite.c: Remove unused variable declaration.
12608         * tests/test-pwrite.c (main): Remove read_buf declaration.
12609
12610         Remove useless test-pwrite.sh file.
12611         * tests/test-pwrite.sh: Delete file.
12612         * modules/pwrite-tests: Remove references.
12613         Reported by Bruno Haible.
12614
12615 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12616
12617         init.sh: fix a typo
12618         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12619
12620 2010-05-10  Jim Meyering  <meyering@redhat.com>
12621
12622         maint.mk: avoid using a temporary file in the always-defined-macros check
12623         * top/maint.mk (.re-defmac): Remove rule.
12624         (gl_trap_): Remove definition.
12625         (sc_prohibit_always-defined_macros): Rewrite not to create and
12626         depend on a temporary file.  Instead, depend on GNU grep's ability
12627         to read a list of regular expressions from stdin when given "-f -".
12628
12629 2010-05-09  Bruno Haible  <bruno@clisp.org>
12630
12631         Update to GNU gettext 0.18, part 1.
12632         * m4/gettext.m4: Update to GNU gettext 0.18.
12633         * m4/intl.m4: Likewise.
12634         * m4/po.m4: Likewise.
12635         * modules/gettext (Files): Add m4/fcntl-o.m4.
12636         (configure.ac): Require gettext infrastructure from version 0.18.
12637
12638 2010-05-09  Jim Meyering  <meyering@redhat.com>
12639
12640         init.sh: enable MALLOC_PERTURB_
12641         * tests/init.sh: Enable glibc's malloc-perturbing option.
12642
12643         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12644         With my recent change in init.sh from the two-line form:
12645             -#   : ${srcdir=.}
12646             -#   . "$srcdir/init.sh"; path_prepend_ .
12647             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12648         I noticed that using the one-line form would cause this test
12649         to fail with a false-positive, or to stop working altogether,
12650         depending on whether help-version changed or all the tests did.
12651         * top/maint.mk (_hv_regex): Remove this definition.
12652         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12653         (_hv_regex_strong): Use a stronger regex to check for conformance.
12654         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12655         Give a separate diagnostic for lack of conforming use.
12656
12657         maint.mk: prohibit definition of symbols defined by gnulib
12658         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12659         definition of symbols defined by gnulib.
12660
12661 2010-05-09  Bruno Haible  <bruno@clisp.org>
12662
12663         acl: Avoid test failure on Cygwin-hosted mingw.
12664         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12665
12666 2010-05-09  Bruno Haible  <bruno@clisp.org>
12667
12668         error: Use system's fcntl function.
12669         * lib/error.c (fcntl): Undefine.
12670
12671 2010-05-09  Jim Meyering  <meyering@redhat.com>
12672
12673         verify: adjust formatting to be more consistent
12674         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12675         argument-list '('s, and after one comma.
12676
12677 2010-05-09  Bruno Haible  <bruno@clisp.org>
12678
12679         error: More reliable output on mingw.
12680         * lib/error.c: Include <windows.h>.
12681         (is_open): New function.
12682         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12683         defined.
12684
12685 2010-05-09  Bruno Haible  <bruno@clisp.org>
12686
12687         vasnprintf: Fix syntax errors in libintl build on mingw.
12688         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12689         pad_ourselves and prec_ourselves after use.
12690
12691 2010-05-08  Bruno Haible  <bruno@clisp.org>
12692
12693         * lib/config.charset: Update comments for Cygwin 1.7.
12694         * lib/localcharset.c: Likewise.
12695
12696 2010-05-07  Jim Meyering  <meyering@redhat.com>
12697
12698         init.sh: improve comments
12699         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12700         . "${srcdir=.}/init.sh"; path_prepend_ .
12701         Add a note about path_prepend_ and the alternative of using
12702         TESTS_ENVIRONMENT.
12703
12704 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12705
12706         exclude: Unescape hashed patterns in wildcard mode.
12707         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12708         to the hash list.
12709         * tests/test-exclude8.sh: New test case.
12710         * modules/exclude-tests: Add new test.
12711
12712 2010-05-05  Eric Blake  <eblake@redhat.com>
12713
12714         verify: automate tests
12715         * modules/verify-tests: New module.
12716         * tests/test-verify.sh: New file.
12717         * tests/test-verify.c: Guard each negative test with a unique id.
12718         Also avoid warning about unused left hand of comma expressions.
12719
12720 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         Further improvements to verify.h, suggested by Eric Blake.
12723         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12724         the GL_* versions, to avoid collision with OpenGL.
12725         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12726         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12727         than testing merely whether it's defined.
12728
12729         Modify verify.h to pacify gcc -Wredundant_decls.
12730         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12731         These use the prefix "GL_" since they're likely to be useful elsewhere.
12732         We may need to break them out into a different .h file.
12733         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12734         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12735         of verify_function__.
12736
12737 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12738
12739         Tests for module pwrite.
12740         * modules/pwrite-tests: New file.
12741         * tests/test-pwrite.sh: New file.
12742         * tests/test-pwrite.c: New file.
12743
12744         New module pwrite.
12745         * lib/unistd.in.h (pwrite): New declaration.
12746         * lib/pwrite.c: New file, from glibc with modifications.
12747         * m4/pwrite.m4: New file.
12748         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12749         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12750         REPLACE_PWRITE.
12751         * modules/pwrite: New file.
12752         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12753         REPLACE_PWRITE.
12754         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12755         * doc/posix-functions/pwrite.texi: Mention the new module.
12756
12757 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12758
12759         pread: Update documentation.
12760         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12761
12762 2010-05-04  Eric Blake  <eblake@redhat.com>
12763
12764         docs: update cygwin progress
12765         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12766         this bug.
12767         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12768         Added in cygwin 1.7.2.
12769         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12770         Likewise.
12771         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12772         Likewise.
12773         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12774         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12775         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12776         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12777         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12778         Mention nproc module.
12779         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12780         bug in cygwin 1.7.5 addition.
12781         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12782         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12783         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12784         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12785         1.7.5.
12786         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12787         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12788         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12789         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12790         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12791         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12792         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12793         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12794         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12795         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12796         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12797         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12798         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12799         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12800         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12801         Likewise.
12802         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12803         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12804         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12805         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12806         Likewise.
12807         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12808         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12809         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12810         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12811         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12812         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12813         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12814         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12815         Likewise.
12816         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12817         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12818         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12819         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12820         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12821         Likewise.
12822         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12823         Likewise.
12824         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12825         Likewise.
12826         * doc/glibc-functions/xdrrec_endofrecord.texi
12827         (xdrrec_endofrecord): Likewise.
12828         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12829         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12830         Likewise.
12831         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12832         Likewise.
12833
12834 2010-05-04  Jim Meyering  <meyering@redhat.com>
12835
12836         gendocs.sh: make its "-s FILE" option more useful
12837         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12838         $PACKAGE to reflect the probably-different basename of "FILE".
12839
12840 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12841
12842         bootstrap: don't ignore download_po_files failure
12843         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12844         failure.
12845
12846 2010-05-03  Jim Meyering  <meyering@redhat.com>
12847
12848         maint.mk: allow to pass options to gendocs.sh
12849         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12850         (gendocs_options_): New overridable variable.
12851
12852         gnu-web-doc-update: don't ignore configure or build failure
12853         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12854
12855         announce-gen: backslash-escape '@'s in --help output
12856         * build-aux/announce-gen: Fix syntax errors.
12857
12858         maint.mk, announce-gen: allow project-specific announcement mail headers
12859         * top/maint.mk (translation_project_): Define default.
12860         (announcement_Cc_, announcement_mail_headers_): Likewise.
12861         (announcement): Invoke announce-gen with new --mail-headers option.
12862         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12863
12864         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12865         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12866         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12867         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12868         line in the "err2" output file when running "make check" in verbose
12869         mode (i.e., with set -x enabled).
12870
12871 2010-05-03  Bruno Haible  <bruno@clisp.org>
12872
12873         wctob: Fix for weird platforms.
12874         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12875         argument value.
12876
12877 2010-05-03  Jim Meyering  <meyering@redhat.com>
12878
12879         maint.mk: prohibit unwarranted use of <strings.h>
12880         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12881         strings.h in a file that does not also use strcasecmp, strncasecmp,
12882         ffs or ffsll.
12883
12884         maint.mk: remove obsolete comments
12885         * top/maint.mk: Remove stale, commented-out rules.
12886
12887 2010-05-02  Bruno Haible  <bruno@clisp.org>
12888
12889         wcwidth: Declare also when it's aliased.
12890         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12891         macro.
12892
12893 2010-05-02  Bruno Haible  <bruno@clisp.org>
12894
12895         Fix regression from 2010-04-25.
12896         * gnulib-tool (func_modules_transitive_closure): Check the status of
12897         all modules, not only of the tests that are of the form foo-tests where
12898         foo is a module.
12899
12900 2010-05-02  Bruno Haible  <bruno@clisp.org>
12901
12902         wctob: Work around nasty Cygwin 1.7.2 bug.
12903         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12904         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12905
12906 2010-05-01  Bruno Haible  <bruno@clisp.org>
12907
12908         fpurge: Sharper test.
12909         * tests/test-fpurge.c (main): Add one more ftell check.
12910         * modules/fpurge-tests (Depends-on): Add ftell.
12911         Suggested by Eric Blake.
12912
12913 2010-05-01  Bruno Haible  <bruno@clisp.org>
12914
12915         ftello: Another test.
12916         * tests/test-ftello3.c: New file.
12917         * modules/ftello-tests (Files): Add it.
12918         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12919         MOSTLYCLEANFILES.
12920
12921         ftell: Another test.
12922         * tests/test-ftell3.c: New file.
12923         * modules/ftell-tests (Files): Add it.
12924         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12925         MOSTLYCLEANFILES.
12926
12927 2010-05-01  Bruno Haible  <bruno@clisp.org>
12928
12929         ftell, ftello: Work around Solaris bug.
12930         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12931         * lib/ftello.c: Include stdio-impl.h.
12932         (ftello): On Solaris, when _IOWRT is set, compute the result without
12933         looking at _IOREAD.
12934         * modules/ftello (Files): Add lib/stdio-impl.h.
12935         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12936         * doc/posix-functions/ftello.texi: Likewise.
12937         Reported by Eric Blake.
12938
12939 2010-05-01  Bruno Haible  <bruno@clisp.org>
12940
12941         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12942         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12943         the _IOWRT flag is also set.
12944
12945 2010-05-01  Bruno Haible  <bruno@clisp.org>
12946
12947         Fix doc about a HP-UX stdio bug.
12948         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12949         * doc/posix-functions/ftello.texi: Likewise.
12950
12951 2010-05-01  Bruno Haible  <bruno@clisp.org>
12952
12953         lseek test: Fix failure on Solaris.
12954         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12955         output.
12956
12957 2010-04-30  Jim Meyering  <meyering@redhat.com>
12958
12959         bootstrap: don't ignore failure to generate po*/Makevars
12960         * build-aux/bootstrap (with_gettext): Don't ignore failure
12961         to create po/Makevars or runtime-po/Makevars.
12962
12963 2010-04-29  Eric Blake  <eblake@redhat.com>
12964
12965         headers: relax license to LGPLv2+
12966         * modules/fcntl-h (License): Relax license.
12967         * modules/getopt-posix (License): Likewise.
12968         * modules/locale (License): Likewise.
12969         * modules/math (License): Likewise.
12970         * modules/pty (License): Likewise.
12971         * modules/sched (License): Likewise.
12972         * modules/search (License): Likewise.
12973         * modules/spawn (License): Likewise.
12974         * modules/stdarg (License): Likewise.
12975         * modules/sysexits (License): Likewise.
12976
12977 2010-04-29  Jim Meyering  <meyering@redhat.com>
12978
12979         inttypes: relax license to LGPLv2+
12980         * modules/inttypes (License): Relax license.
12981
12982 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12983
12984         * top/maint.mk (indent): Run twice to produce idempotent results.
12985
12986 2010-04-28  Bruno Haible  <bruno@clisp.org>
12987
12988         getdate: Generate getdate.c in the source directory.
12989         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12990         MOSTLYCLEANFILES.
12991         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12992
12993 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12994
12995         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12996         is not declared as a const *; avoid warnings in that case.
12997
12998 2010-04-28  Eric Blake  <eblake@redhat.com>
12999
13000         canonicalize-lgpl: avoid compiler warning
13001         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13002         declaration' / 'extraneous semicolon' warning with some compilers.
13003         Reported by Andreas Gruenbacher.
13004
13005 2010-04-28  Jim Meyering  <meyering@redhat.com>
13006
13007         init.sh: ensure a more reliable exit status when exiting via trap
13008         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13009         Inspired by patches from Dmitry V. Levin.
13010         Also trap on signal 3 (SIGQUIT).
13011
13012 2010-04-27  Bruno Haible  <bruno@clisp.org>
13013
13014         Update doc about utimes().
13015         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13016         'utimens' module.
13017         Reported by Andreas Gruenbacher <agruen@suse.de>.
13018
13019 2010-04-27  Eric Blake  <eblake@redhat.com>
13020
13021         full-read, full-write: relax license
13022         * modules/full-read (License): Drop to LGPLv2+.
13023         * modules/full-write (License): Likewise.
13024         * modules/safe-read (License): Likewise.
13025         * modules/safe-write (License): Likewise.
13026
13027         pthread: mention library for linking
13028         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13029
13030 2010-04-27  Jim Meyering  <meyering@redhat.com>
13031
13032         maint.mk: fix a bug introduced in last change
13033         * top/maint.mk (gl_assured_headers_): Now that all names are on
13034         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13035         is not anchored to end of word, it should be adequate.
13036
13037         maint.mk: avoid side-effect in latest syntax-check
13038         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13039         to run commands via $(shell...), and hence to incur cost only when
13040         the new rule is actually run.
13041
13042         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13043         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13044         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13045         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13046         (gl_assured_headers_, az_, AZ_): Define.
13047         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13048
13049 2010-04-26  Jim Meyering  <jim@meyering.net>
13050             Bruno Haible  <bruno@clisp.org>
13051
13052         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13053         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13054         Prompted by an exchange with Gilles Espinasse.
13055
13056 2010-04-26  Jim Meyering  <meyering@redhat.com>
13057
13058         git-version-gen: aesthetic tweak
13059         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13060         so that the command remains on a single line.
13061
13062 2010-04-26  Eric Blake  <eblake@redhat.com>
13063
13064         git-version-gen: allow use on EBCDIC hosts
13065         * build-aux/git-version-gen (dirty): Use literal rather than tying
13066         ourselves to ascii.
13067         Reported by Steve Goetze.
13068
13069 2010-04-25  Bruno Haible  <bruno@clisp.org>
13070
13071         netdb: Add support for GNULIB_POSIXCHECK.
13072         * lib/netdb.in.h: Include warn-on-use.h.
13073         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13074         functions are used when GNULIB_POSIXCHECK is defined and the
13075         getaddrinfo module is not in use.
13076         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13077         freeaddrinfo, gai_strerror, getnameinfo are declared.
13078         * modules/netdb (Depends-on): Add warn-on-use.
13079         (Makefile.am): Include warn-on-use.h in netdb.h.
13080
13081 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13082
13083         build: avoid "make check" failure without .git/ directory
13084         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13085         there is no .git/ directory.
13086
13087 2010-04-25  Bruno Haible  <bruno@clisp.org>
13088
13089         ptsname: Fix misuse of ttyname_r.
13090         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13091         of errno.
13092
13093 2010-04-25  Bruno Haible  <bruno@clisp.org>
13094
13095         ttyname_r: Make it work on Solaris 10.
13096         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13097         if the system function has the POSIX declaration. Test whether the
13098         function fails if the buffer is less than 128 bytes large.
13099         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13100         system's ttyname_r function. Provide a reasonably large buffer.
13101         * modules/ttyname_r (Depends-on): Add extensions.
13102         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13103
13104 2010-04-25  Bruno Haible  <bruno@clisp.org>
13105
13106         Use the 'extensions' module for some more functions on Solaris.
13107         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13108         module.
13109         * doc/posix-functions/ctime_r.texi: Likewise.
13110         * doc/posix-functions/getgrgid_r.texi: Likewise.
13111         * doc/posix-functions/getgrnam_r.texi: Likewise.
13112         * doc/posix-functions/getpwnam_r.texi: Likewise.
13113         * doc/posix-functions/getpwuid_r.texi: Likewise.
13114         * doc/posix-functions/readdir_r.texi: Likewise.
13115         * doc/posix-functions/sigwait.texi: Likewise.
13116         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13117         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13118
13119 2010-04-25  Bruno Haible  <bruno@clisp.org>
13120
13121         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13122         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13123         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13124         * lib/ttyname_r.c: Include <limits.h>.
13125         (ttyname_r): Define using the system's ttyname_r function, if it exists
13126         and not on Solaris.
13127         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13128         set.
13129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13130         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13131         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13132         Reported by Simon Josefsson.
13133
13134 2010-04-25  Bruno Haible  <bruno@clisp.org>
13135
13136         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13137         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13138         * doc/posix-functions/ctime_r.texi: Likewise.
13139         * doc/posix-functions/getgrgid_r.texi: Likewise.
13140         * doc/posix-functions/getgrnam_r.texi: Likewise.
13141         * doc/posix-functions/getlogin_r.texi: Likewise.
13142         * doc/posix-functions/getpwnam_r.texi: Likewise.
13143         * doc/posix-functions/getpwuid_r.texi: Likewise.
13144         * doc/posix-functions/readdir_r.texi: Likewise.
13145         * doc/posix-functions/sigwait.texi: Likewise.
13146         * doc/posix-functions/ttyname_r.texi: Likewise.
13147         Reported by Simon Josefsson.
13148
13149 2010-04-25  Bruno Haible  <bruno@clisp.org>
13150
13151         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13152         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13153         also to --create-testdir.
13154         (func_acceptable): Don't consider the status of *-tests modules here.
13155         (func_modules_transitive_closure): Consider it here, before including a
13156         test module.
13157         (func_import, func_create_testdir): Set inc_all_direct_tests,
13158         inc_all_indirect_tests.
13159         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13160         --create-testdir and --create-megatestdir.
13161
13162 2010-04-25  Bruno Haible  <bruno@clisp.org>
13163
13164         gnulib-tool: Add --without-*-tests options.
13165         * gnulib-tool (func_usage): Document the --without-*-tests options.
13166         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13167         excl_unportable_tests): New variables.
13168         Fail if they are specified with --import or --update.
13169         (func_acceptable): Respect the excl_*_tests variables.
13170         (func_import): Set the excl_*_tests variables to empty.
13171
13172 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13173             Bruno Haible  <bruno@clisp.org>
13174
13175         Work around a MacOS X 10.4 bug with openpty.
13176         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13177         * tests/test-openpty.c (main): Close the master side explicitly.
13178
13179 2010-04-25  Bruno Haible  <bruno@clisp.org>
13180
13181         strnlen: Fix a C++ test error on MacOS X and Solaris.
13182         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13183         the function is not declared.
13184         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13185         Simon Josefsson.
13186
13187 2010-04-24  Bruno Haible  <bruno@clisp.org>
13188
13189         Avoid a gcc warning.
13190         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13191         of correct type for %08lx directive.
13192         Reported by Eric Blake.
13193
13194 2010-04-24  Bruno Haible  <bruno@clisp.org>
13195
13196         vasnprintf: Correct errno value in case of out-of-memory.
13197         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13198         or sprintf. Use the errno value from SNPRINTF or sprintf.
13199         Reported by Ian Beckwith <ianb@erislabs.net>.
13200
13201 2010-04-24  Bruno Haible  <bruno@clisp.org>
13202
13203         ansi-c++-opt: Find correct compiler when cross-compiling.
13204         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13205         AC_CHECK_PROGS.
13206         Reported by Simon Josefsson.
13207
13208 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13209
13210         vc-list-files: Add support for subversion
13211         * build-aux/vc-list-files: Use "svn list" to generate the list of
13212         files controlled by subversion.
13213
13214 2010-04-23  Jim Meyering  <meyering@redhat.com>
13215
13216         vc-list-files tests: convert to use init.sh
13217         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13218         path_prepend_.
13219         Use Exit, not exit.
13220         Use skip_ rather than open coding it.
13221         Remove trap set-up and compare definitions.
13222         * tests/test-vc-list-files-git.sh: Likewise.
13223         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13224
13225 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13226
13227         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13228         backup files.
13229
13230 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13231
13232         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13233
13234 2010-04-20  Eric Blake  <eblake@redhat.com>
13235
13236         tests: be robust to ignored SIGPIPE
13237         * tests/test-select-in.sh: Consume all output.
13238         * tests/test-lseek.sh: Check correct exit status, while avoiding
13239         EPIPE.
13240
13241 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13242             Bruno Haible  <bruno@clisp.org>
13243
13244         visibility: Don't use -fvisibility if it leads to a warning.
13245         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13246         yes, don't pretend that visibility works if it leads to a warning.
13247         Reported by Mike Gran <spk121@yahoo.com>.
13248
13249 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13250
13251         * build-aux/bootstrap: Use "git -h" for testing for supported options
13252         instead of "git --help".  The short-form option only shows a summary,
13253         and doesn't layout the full man page.  Grep for the full option name
13254         in the summary, too.
13255
13256 2010-04-19  Bruno Haible  <bruno@clisp.org>
13257
13258         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13259         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13260         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13261         mention of RELOCATABLE_STRIP.
13262         Reported by Sylvain Beucler <beuc@beuc.net>.
13263
13264 2010-04-19  Bruno Haible  <bruno@clisp.org>
13265
13266         * lib/diffseq.h: Fix typo in comment.
13267         Reported by Eric Blake.
13268
13269 2010-04-19  Bruno Haible  <bruno@clisp.org>
13270
13271         ioctl: Move autoconf macro to a .m4 file.
13272         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13273         * modules/ioctl (Files): Add it.
13274         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13275         Reported by Ian Beckwith <ianb@erislabs.net>.
13276
13277 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13278             Bruno Haible  <bruno@clisp.org>
13279
13280         diffseq: Accommodate use-case with abstract arrays.
13281         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13282         is not defined.
13283         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13284         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13285
13286 2010-04-18  Bruno Haible  <bruno@clisp.org>
13287
13288         * doc/posix-headers/stdbool.texi: More precise wording.
13289
13290 2010-04-17  Jim Meyering  <meyering@redhat.com>
13291
13292         maint.mk: use gnu-style indentation in an embedded perl script
13293         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13294         Rename variable: s/two/last_two_bytes/
13295
13296 2010-04-16  Eric Blake  <eblake@redhat.com>
13297
13298         test-stdbool: skip test that fails with Solaris CC
13299         * tests/test-stdbool.c (f): Skip test that causes compilation
13300         error under buggy C++ compiler.
13301         * lib/stdbool.in.h: Document the limitation.
13302         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13303
13304         setenv: allow compilation with C++
13305         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13306         register keyword.
13307
13308         stdint: allow test to pass with C++
13309         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13310
13311         getopt: allow compilation with C++
13312         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13313         struct.
13314         * lib/getopt.c (_getopt_internal_r): Use correct type.
13315         Reported by Dagobert Michelson, via Joel E. Denny.
13316
13317 2010-04-16  Bruno Haible  <bruno@clisp.org>
13318
13319         Override netdb.h always.
13320         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13321         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13322         Reported by Ludovic Courtès <ludo@gnu.org>.
13323
13324 2010-04-15  Bruno Haible  <bruno@clisp.org>
13325
13326         openpty: Fix mistake from 2010-03-21.
13327         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13328         Reported by Simon Josefsson.
13329
13330 2010-04-15  Eric Blake  <eblake@redhat.com>
13331
13332         test-forkpty: fix expected signature
13333         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13334         Reported by Simon Josefsson.
13335
13336 2010-04-15  Jim Meyering  <meyering@redhat.com>
13337
13338         maint.mk: texinfo_suffix_re_: correct the default regexp
13339         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13340
13341         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13342         make it configurable via texinfo_suffix_re_.
13343
13344 2010-04-14  Eric Blake  <eblake@redhat.com>
13345
13346         strtok_r: relax license to LGPLv2+
13347         * modules/strtok_r (License): Relax license.
13348         Reported by Matthias Bolte.
13349
13350 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13351
13352         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13353         version 1.4.4 by default instead of requiring the libgcrypt
13354         version used during build.  This makes it possible to use the
13355         application with older but still binary compatible libgcrypt
13356         versions.
13357
13358 2010-04-13  Eric Blake  <eblake@redhat.com>
13359
13360         getopt-gnu: match recent glibc fixes and posix ruling
13361         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13362         '+' handling, when requesting extensions.
13363         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13364         'W;' handling.
13365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13366         * doc/posix-functions/getopt.texi (getopt): Document this.
13367         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13368         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13369         Likewise.
13370
13371         getopt: merge bug fixes from glibc
13372         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13373         diagnostics.  Honor '+:' correctly.  Reject ';'.
13374
13375         getopt-posix: detect MacOS bug
13376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13377         optind when missing a required argument.
13378         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13379         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13380         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13381         Likewise.
13382
13383         getopt-posix: avoid spurious failure on Solaris
13384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13385         an indicator that setting optind=1 is sufficient for reset.
13386
13387         getopt-posix: avoid spurious failure on FreeBSD
13388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13389         in POSIX mode, since the m4 test uses it.
13390
13391         gnulib-tool: silence warning on BSD sh
13392         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13393
13394 2010-04-13  Jim Meyering  <meyering@redhat.com>
13395
13396         doc: users.txt: GNU patch now uses gnulib
13397         * users.txt: Add patch.
13398
13399 2010-04-12  Jim Meyering  <meyering@redhat.com>
13400
13401         maint.mk: generate more concise timing data for syntax-check rules
13402         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13403         " done" from each line that reports a syntax-check test duration.
13404
13405 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13406
13407         git-version-gen: use "git update-index..." rather than "git status"
13408         * build-aux/git-version-gen: Use git update-index --refresh, not
13409         "git status".  With some versions of git, "git status" would fail
13410         to update the index and result in an unwarranted "-dirty" suffix.
13411
13412 2010-04-11  Jim Meyering  <meyering@redhat.com>
13413
13414         openat: correct formatting (no semantic change)
13415         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13416         Suggested by Bruno Haible.
13417
13418 2010-04-11  Bruno Haible  <bruno@clisp.org>
13419
13420         Stricter declaration checking in testdirs.
13421         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13422         If for_tests is true, augment AM_CPPFLAGS to define
13423         GNULIB_STRICT_CHECKING.
13424         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13425         GNULIB_STRICT_CHECKING is defined, verify that the function is
13426         declared.
13427
13428 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13429             Bruno Haible  <bruno@clisp.org>
13430
13431         libunistring: Improve configure output.
13432         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13433         Don't say "consider installing GNU libunistring" when checking again
13434         with libiconv.
13435
13436 2010-04-11  Bruno Haible  <bruno@clisp.org>
13437
13438         libunistring: Correct value of $LTLIBUNISTRING.
13439         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13440         correct the value of $LTLIBUNISTRING.
13441
13442 2010-04-11  Bruno Haible  <bruno@clisp.org>
13443
13444         havelib: Add static libraries to LIBS in the right order.
13445         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13446         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13447
13448 2010-04-11  Bruno Haible  <bruno@clisp.org>
13449
13450         libunistring: Detect libunistring also when it depends on libiconv.
13451         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13452         the second AC_LIB_HAVE_LINKFLAGS invocation.
13453
13454 2010-04-11  James Youngman  <jay@gnu.org>
13455
13456         close-stream: declare local scalars to be "const"
13457         * lib/close-stream.c (close_stream): Make boolean variables const
13458         to document the fact that we set but do not change them.
13459
13460 2010-04-11  Bruno Haible  <bruno@clisp.org>
13461
13462         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13463
13464 2010-04-11  Jim Meyering  <meyering@redhat.com>
13465
13466         maint.mk: don't include dist-check.mk
13467         * top/maint.mk: Remove bogus include directive.
13468
13469         maint.mk: improve empty-line-at-EOF check
13470         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13471         solution, rather than tail+Perl-based one.  The latter would read
13472         a few kilobytes from the end of each file, and did not handle empty
13473         files properly.
13474
13475         maint.mk: print the elapsed time for each syntax-check rule
13476         * top/maint.mk (sc_m_rules_): Save start time in a file.
13477         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13478         (local-check): Interpose the .z rules
13479
13480 2010-04-11  Jim Meyering  <meyering@redhat.com>
13481
13482         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13483         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13484         empty file with one that ends in an empty line.
13485
13486 2010-04-10  Bruno Haible  <bruno@clisp.org>
13487
13488         mkdir: Make it work on mingw64.
13489         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13490         * lib/mkdir.c: Update comment.
13491         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
13492
13493 2010-04-10  Bruno Haible  <bruno@clisp.org>
13494
13495         Don't override improved macro from newer autoconf.
13496         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13497         autoconf >= 2.62.
13498         Reported by Joel E. Denny <jdenny@clemson.edu>.
13499
13500 2010-04-10  Jim Meyering  <meyering@redhat.com>
13501
13502         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13503         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13504
13505         maint.mk: correct a diagnostic
13506         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13507         in diagnostic; now use $prohibit.
13508
13509 2010-04-10  Bruno Haible  <address@hidden>
13510
13511         fchownat: Fix a C++ test error on Solaris 8.
13512         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13513         the function does not exist.
13514
13515 2010-04-10  Bruno Haible  <bruno@clisp.org>
13516
13517         vasnprintf: Add more tests.
13518         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13519         (test_function): Test converting an invalid wide string.
13520
13521         vasnprintf: Correct handling of unconvertible wide string arguments.
13522         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13523         VASNPRINTF.
13524         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13525         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13526         smaller than the expected maximum need for the directive. Set errno to
13527         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13528         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13530         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13531         * modules/vasnprintf (Files): Add m4/printf.m4.
13532         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13533
13534 2010-04-10  Bruno Haible  <bruno@clisp.org>
13535
13536         vasnprintf: Fix crash in %ls directive.
13537         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13538         string is passed as argument to %ls, with no precision and no width.
13539         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13540
13541 2010-04-10  Bruno Haible  <bruno@clisp.org>
13542
13543         vasnprintf: Fix multiple test failures on mingw.
13544         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13545         _snprintf, or snwprintf, not _snwprintf.
13546
13547 2010-04-10  Bruno Haible  <bruno@clisp.org>
13548
13549         write: Fix a C++ test error on mingw.
13550         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13551
13552 2010-04-10  Bruno Haible  <bruno@clisp.org>
13553
13554         vasnprintf test: Reduce code duplication.
13555         * tests/test-vasnprintf.c (test_function): New function, extracted from
13556         test_vasnprintf.
13557         (test_vasnprintf, test_asnprintf): Invoke it.
13558
13559 2010-04-10  Bruno Haible  <bruno@clisp.org>
13560
13561         strnlen: Fix warning in C++ mode on MacOS X.
13562         * lib/string.in.h (strnlen): Use the modern idiom.
13563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13564         defining strnlen as a macro already in <config.h>.
13565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13566         REPLACE_STRNLEN.
13567         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13568         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13569
13570 2010-04-08  James Youngman  <jay@gnu.org>
13571
13572         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13573         the example.
13574
13575 2010-04-09  Jim Meyering  <meyering@redhat.com>
13576
13577         maint.mk: print better diagnostic when there is no $(_hv_file)
13578         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13579         announce that when $(_hv_file) (aka help-version) does not exist.
13580
13581         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13582         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13583         not try to interpret its random input bytes.  Jarno Rajahalme reported
13584         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13585         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13586         (mktempd_): Likewise, just in case.
13587
13588         ftruncate: add two years to projected module removal date: 2012
13589         * m4/ftruncate.m4: Adjust comments.
13590
13591         ftruncate: mark module as obsolete; even MinGW provides it, now
13592         * modules/ftruncate (Status): Obsolete.
13593         (Notice): Say that.
13594         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13595         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13596
13597 2010-04-08  Bruno Haible  <bruno@clisp.org>
13598
13599         Fix side effects from tests-related modules.
13600         * modules/dprintf-posix (Comment): New section.
13601         * modules/fprintf-posix (Comment): Likewise.
13602         * modules/obstack-printf-posix (Comment): Likewise.
13603         * modules/printf-posix (Comment): Likewise.
13604         * modules/snprintf-posix (Comment): Likewise.
13605         * modules/sprintf-posix (Comment): Likewise.
13606         * modules/vasnprintf-posix (Comment): Likewise.
13607         * modules/vasprintf-posix (Comment): Likewise.
13608         * modules/vdprintf-posix (Comment): Likewise.
13609         * modules/vfprintf-posix (Comment): Likewise.
13610         * modules/vprintf-posix (Comment): Likewise.
13611         * modules/vsnprintf-posix (Comment): Likewise.
13612         * modules/vsprintf-posix (Comment): Likewise.
13613         * modules/xprintf-posix (Comment): Likewise.
13614         * modules/xvasprintf-posix (Comment): Likewise.
13615         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13616         * modules/floorf-tests (Depends-on): Likewise.
13617         * modules/round-tests (Depends-on): Likewise.
13618         * modules/roundf-tests (Depends-on): Likewise.
13619         * modules/trunc-tests (Depends-on): Likewise.
13620         * modules/truncf-tests (Depends-on): Likewise.
13621         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13622         'fprintf-posix' module is not present.
13623         * tests/test-floorf2.c (check): Likewise.
13624         * tests/test-trunc2.c (check): Likewise.
13625         * tests/test-truncf2.c (check): Likewise.
13626         * tests/test-round2.c (equal): Likewise.
13627         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13628
13629 2010-04-07  Karl Berry  <karl@gnu.org>
13630
13631         * config/srclist.txt,
13632         * config/srclistvars.sh,
13633         * config/srclist-update: doc fixes.
13634
13635 2010-04-07  Jim Meyering  <meyering@redhat.com>
13636
13637         maint.mk: add a PATH crosschecking syntax-check rule
13638         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13639         Useful if you use a test like the one in help-version (coreutils,
13640         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13641         printed by prog --version.
13642
13643 2010-04-06  Bruno Haible  <bruno@clisp.org>
13644
13645         Fix link error on mingw.
13646         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13647         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13648
13649 2010-04-06  Bruno Haible  <bruno@clisp.org>
13650
13651         Assume rmdir exists.
13652         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13653
13654 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13655
13656         doc: update users.txt
13657         * users.txt: Add gcal.
13658
13659 2010-04-06  Jim Meyering  <meyering@redhat.com>
13660
13661         init.sh: simply unset TMPDIR rather than risking env -i
13662         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13663         although it probably works fine on all Unix-based systems, some
13664         systems (Cygwin?) cannot tolerate a totally cleared environment.
13665         Suggestion from Eric Blake.
13666
13667 2010-04-06  Jim Meyering  <meyering@redhat.com>
13668
13669         init.sh: portability fix: use env's POSIX-specified -i option not -u
13670         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13671         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13672
13673 2010-04-05  Bruno Haible  <bruno@clisp.org>
13674
13675         btowc: Work around Cygwin 1.7.2 bug.
13676         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13677         does not map NUL to 0.
13678         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13679
13680 2010-04-05  Bruno Haible  <bruno@clisp.org>
13681
13682         Make the multithread modules work on Cygwin 1.7.2.
13683         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13684         imported symbols can be declared weak, so that it returns "no" on
13685         Cygwin 1.7.2.
13686
13687 2010-04-05  Bruno Haible  <bruno@clisp.org>
13688
13689         Use the module 'strncat'.
13690         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13691
13692         Tests for module 'strncat'.
13693         * modules/strncat-tests: New file.
13694         * tests/test-strncat.c: New file.
13695
13696         New module 'strncat'.
13697         * lib/string.in.h (strncat): New declaration.
13698         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13699         * m4/strncat.m4: New file, based on m4/memchr.m4.
13700         * modules/strncat: New file.
13701         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13702         is declared.
13703         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13704         REPLACE_STRNCAT.
13705         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13706         REPLACE_STRNCAT.
13707         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13708         module.
13709         * tests/test-string-c++.cc: Check signature of strncat.
13710
13711 2010-04-05  Jim Meyering  <meyering@redhat.com>
13712
13713         xstrtoumax-tests: convert to use init.sh
13714         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13715         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13716         Use Exit, not exit.
13717         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13718
13719         xstrtoimax-tests: convert to use init.sh
13720         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13721         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13722         Use Exit, not exit.
13723         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13724
13725 2010-04-05  Bruno Haible  <bruno@clisp.org>
13726
13727         sys_socket: Avoid #define replacements in C++ mode.
13728         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13729         warning to the function if possible, rather than #defining the symbol
13730         to a dysfunctional alias.
13731
13732 2010-04-05  Bruno Haible  <bruno@clisp.org>
13733
13734         fseeko: Fix C++ test error on mingw.
13735         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13736         gl_FUNC_FSEEKO.
13737         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13738         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13739         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13740         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13741
13742 2010-04-05  Bruno Haible  <bruno@clisp.org>
13743
13744         duplocale: Improve test output.
13745         * tests/test-duplocale.c (main): Print reason for skipped test.
13746
13747 2010-04-05  Bruno Haible  <bruno@clisp.org>
13748
13749         Assume rmdir exists.
13750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13751         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13752
13753 2010-04-05  Bruno Haible  <bruno@clisp.org>
13754
13755         Fix link error on Solaris 8 with cc.
13756         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13757
13758 2010-04-05  Bruno Haible  <bruno@clisp.org>
13759
13760         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13761         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13762
13763 2010-04-05  Bruno Haible  <bruno@clisp.org>
13764
13765         vasprintf: Update documentation.
13766         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13767
13768 2010-04-05  Bruno Haible  <bruno@clisp.org>
13769
13770         ptsname: Improve test.
13771         * tests/test-ptsname.c (main): Also try the various master names of BSD
13772         systems.
13773
13774 2010-04-05  Bruno Haible  <bruno@clisp.org>
13775
13776         memchr: Avoid a possible C++ test error.
13777         * lib/string.in.h (memchr): Provide declaration if function is missing.
13778         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13779         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13781         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13782
13783 2010-04-05  Bruno Haible  <bruno@clisp.org>
13784
13785         strtok_r: Improve idiom.
13786         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13787         AC_LIBOBJ is used.
13788
13789 2010-04-05  Bruno Haible  <bruno@clisp.org>
13790
13791         strdup: Improve idiom.
13792         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13793         AC_LIBOBJ is used.
13794         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13795         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13796         when AC_LIBOBJ is used.
13797
13798 2010-04-05  Bruno Haible  <bruno@clisp.org>
13799
13800         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13801         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13802         don't set REPLACE_MBSINIT to 1.
13803         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13804         don't set REPLACE_MBRTOWC to 1.
13805         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13806         exist, don't set REPLACE_MBSRTOWCS to 1.
13807         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13808         exist, don't set REPLACE_MBSNRTOWCS to 1.
13809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13810         don't set REPLACE_WCRTOMB to 1.
13811         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13812         exist, don't set REPLACE_WCSRTOMBS to 1.
13813         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13814         exist, don't set REPLACE_WCSNRTOMBS to 1.
13815
13816 2010-04-05  Bruno Haible  <bruno@clisp.org>
13817
13818         ldexpl: Improve idiom.
13819         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13820         make sure to set HAVE_DECL_LDEXPL to 0.
13821
13822 2010-04-05  Jim Meyering  <meyering@redhat.com>
13823
13824         xstrtol-tests: convert to use init.sh
13825         * modules/xstrtol-tests (Files): Add tests/init.sh.
13826         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13827         Use Exit, not exit.
13828         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13829
13830         atexit-tests: convert to use init.sh
13831         * modules/atexit-tests (Files): Add tests/init.sh.
13832         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13833         Use Exit, not exit.
13834         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13835
13836         init.sh: fix typo
13837         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13838
13839         init.sh: make it easier for a test script to write to the tty, ...
13840         when using automake's parallel-tests mode.
13841         * tests/init.sh (stderr_fileno_): Define overridable variable.
13842         (warn_): New function, to use it.
13843         (fail_, skip_, framework_failure_): Use warn_.
13844
13845 2010-04-04  Bruno Haible  <bruno@clisp.org>
13846
13847         btowc: Avoid warning.
13848         * lib/btowc.c: Include <stdlib.h>.
13849         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13850
13851 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13852             Bruno Haible  <bruno@clisp.org>
13853
13854         wchar: Port to NetBSD 1.5.
13855         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13856         * lib/wctype.in.h (WEOF): Likewise.
13857
13858 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13859             Bruno Haible  <bruno@clisp.org>
13860
13861         Port extended stdio to NetBSD 1.5.
13862         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13863         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13864         older.
13865
13866 2010-04-04  Bruno Haible  <bruno@clisp.org>
13867
13868         string: Remove unused substitution.
13869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13870         HAVE_DECL_STRERROR.
13871         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13872
13873 2010-04-04  Bruno Haible  <bruno@clisp.org>
13874
13875         strtod: Avoid a possible C++ test error.
13876         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13877         set REPLACE_STRTOD.
13878
13879 2010-04-04  Bruno Haible  <bruno@clisp.org>
13880
13881         strerror: Update documentation.
13882         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13883
13884 2010-04-04  Bruno Haible  <bruno@clisp.org>
13885
13886         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13887         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13888         _GL_CXXALIAS_SYS_CAST.
13889
13890 2010-04-04  Bruno Haible  <bruno@clisp.org>
13891
13892         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13893         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13894         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13895         REPLACE_FREXPL to 1.
13896         * doc/posix-functions/frexpl.texi: Update documentation.
13897
13898 2010-04-04  Bruno Haible  <bruno@clisp.org>
13899
13900         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13901         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13902
13903 2010-04-04  Bruno Haible  <bruno@clisp.org>
13904
13905         Implement nanosleep for native Windows.
13906         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13907
13908 2010-04-04  Bruno Haible  <bruno@clisp.org>
13909
13910         math: Fix some C++ test errors on Solaris 8.
13911         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13912
13913 2010-04-04  Bruno Haible  <bruno@clisp.org>
13914
13915         math: Fix some C++ test errors on Cygwin.
13916         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13917         truncl): Provide declaration if the system does not have it.
13918         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13919         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13920         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13921         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13922         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13923         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13924         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13925         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13926         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13927         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13928         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13929         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13930         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13931         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13932         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13933         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13935         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13936         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13937         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13938         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13939         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13940
13941 2010-04-04  Bruno Haible  <bruno@clisp.org>
13942
13943         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13944         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13945         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13946         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13947         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13948         * m4/isinf.m4 (gl_ISINF): Likewise.
13949         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13950
13951 2010-04-04  Bruno Haible  <bruno@clisp.org>
13952
13953         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13954         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13955
13956 2010-04-04  Bruno Haible  <bruno@clisp.org>
13957
13958         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13959         * modules/tmpfile (configure.ac): Update.
13960
13961         tmpfile: Fix C++ test error on mingw.
13962         * lib/stdio.in.h (tmpfile): New declaration.
13963         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13964         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13965         * modules/tmpfile (Depends-on): Add stdio.
13966         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13967         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13968         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13969         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13970         REPLACE_TMPFILE.
13971         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13972
13973 2010-04-04  Bruno Haible  <bruno@clisp.org>
13974
13975         ioctl: Fix C++ test error on mingw.
13976         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13977         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13978         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13979
13980 2010-04-03  Bruno Haible  <bruno@clisp.org>
13981
13982         wcwidth: Fix C++ test error on mingw.
13983         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13985         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13986
13987 2010-04-03  Bruno Haible  <bruno@clisp.org>
13988
13989         nanosleep: Fix C++ test error on mingw.
13990         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13991         * lib/time.in.h (nanosleep): Use modern idiom.
13992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13993         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13994         REPLACE_NANOSLEEP to 1.
13995         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13996         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13997
13998 2010-04-03  Bruno Haible  <bruno@clisp.org>
13999
14000         strptime: Fix C++ test error on mingw.
14001         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14002         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14003         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14004         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14005         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14006         not REPLACE_STRPTIME.
14007         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14008         REPLACE_STRPTIME.
14009
14010 2010-04-03  Bruno Haible  <bruno@clisp.org>
14011
14012         timegm: Fix C++ test error on mingw.
14013         * lib/time.in.h (timegm): Use modern idiom.
14014         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14015         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14016         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14017         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14018
14019 2010-04-03  Bruno Haible  <bruno@clisp.org>
14020
14021         timegm: Assume declaration if function exists.
14022         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14023         if it exists. Don't clobber ac_cv_func_timegm.
14024
14025 2010-04-03  Bruno Haible  <bruno@clisp.org>
14026
14027         time_r: Fix C++ test error on mingw.
14028         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14029         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14030         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14031         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14032         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14033
14034 2010-04-03  Bruno Haible  <bruno@clisp.org>
14035
14036         time_r: Minor updates.
14037         * modules/time_r (Description): Mention the provided functions.
14038         * lib/time_r.c: Don't include <string.h>.
14039         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14040         * doc/posix-functions/localtime_r.texi: Likewise.
14041
14042 2010-04-03  Bruno Haible  <bruno@clisp.org>
14043
14044         time: Fix regression introduced on 2010-03-08.
14045         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14046         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14047
14048 2010-04-03  Jim Meyering  <meyering@redhat.com>
14049
14050         maint.mk: don't silently disable project-specific syntax-check rules
14051         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14052         that they need to convert their project-specific syntax-check rules
14053         to use the new _sc_search_regexp.
14054
14055 2010-04-03  Bruno Haible  <bruno@clisp.org>
14056
14057         fchdir: Fix regression introduced on 2010-03-08.
14058         * lib/unistd.in.h (fchdir): Fix declaration.
14059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14061         REPLACE_FCHDIR.
14062         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14063         REPLACE_FCHDIR.
14064
14065 2010-04-03  Bruno Haible  <bruno@clisp.org>
14066
14067         getpagesize: Fix C++ test error on mingw.
14068         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14069         system does not declare the function.
14070         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14071         declared.
14072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14073         HAVE_DECL_GETPAGESIZE.
14074         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14075
14076 2010-04-03  Bruno Haible  <bruno@clisp.org>
14077
14078         stdio: Make C++ tests work on mingw.
14079         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14080         does not declare the function.
14081
14082 2010-04-03  Bruno Haible  <bruno@clisp.org>
14083
14084         ftello: Fix C++ test error on mingw.
14085         * lib/stdio.in.h (ftello): Use modern idiom.
14086         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14087         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14088         is missing and that it needs to be replaced.
14089         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14091         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14092
14093 2010-04-03  Bruno Haible  <bruno@clisp.org>
14094
14095         fseeko: Fix C++ test error on mingw.
14096         * lib/stdio.in.h (fseeko): Use modern idiom.
14097         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14098         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14099         is missing and that it needs to be replaced.
14100         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14102         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14103
14104 2010-04-03  Bruno Haible  <bruno@clisp.org>
14105
14106         mkstemp: Fix C++ test error on mingw.
14107         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14109         function is missing and that it needs to be replaced.
14110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14111         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14112
14113 2010-04-03  Bruno Haible  <bruno@clisp.org>
14114
14115         stpncpy: Fix C++ test error on mingw.
14116         * lib/string.in.h (stpncpy): Use modern idiom.
14117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14118         function is missing and that it needs to be replaced.
14119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14120         REPLACE_STPNCPY.
14121         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14122
14123 2010-04-03  Bruno Haible  <bruno@clisp.org>
14124
14125         sys_stat: Fix C++ test error on mingw.
14126         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14127         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14128
14129 2010-04-03  Bruno Haible  <bruno@clisp.org>
14130
14131         pty: Update doc.
14132         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14133
14134 2010-04-03  Bruno Haible  <bruno@clisp.org>
14135
14136         unistd: Fix C++ test error on mingw.
14137         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14138
14139 2010-04-03  Bruno Haible  <bruno@clisp.org>
14140
14141         Update doc regarding mingw.
14142         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14143         * doc/glibc-functions/login_tty.texi: Likewise.
14144         * doc/glibc-functions/forkpty.texi: Likewise.
14145
14146 2010-04-03  Bruno Haible  <bruno@clisp.org>
14147
14148         stdlib: Avoid compilation failure of c-strtold on mingw.
14149         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14150
14151 2010-04-03  Bruno Haible  <bruno@clisp.org>
14152
14153         locale: Make C++ tests work on Cygwin and mingw.
14154         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14155         cannot provide the function.
14156         Reported by Simon Josefsson.
14157
14158 2010-04-03  Bruno Haible  <bruno@clisp.org>
14159
14160         localename: Port to MacOS X 10.6.
14161         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14162         memory layout of the locales in MacOS X 10.6 as well.
14163         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14164
14165 2010-04-02  Bruno Haible  <bruno@clisp.org>
14166
14167         gnulib-tool: Ensure that long-running tests are executed last.
14168         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14169         running tests after the one for the other tests.
14170
14171 2010-04-02  Bruno Haible  <bruno@clisp.org>
14172
14173         gnulib-tool: Ensure the tests in the main directory are executed first.
14174         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14175         start with the current directory.
14176
14177 2010-04-02  Bruno Haible  <bruno@clisp.org>
14178
14179         Tests for module 'havelib', moved here from GNU gettext.
14180         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14181         modifications.
14182         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14183         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14184         with modifications.
14185         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14186         modifications.
14187         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14188         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14189         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14190         with modifications.
14191         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14192         with modifications.
14193         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14194         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14195         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14196         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14197         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14198         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14199         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14200         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14201         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14202         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14203         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14204         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14205         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14206         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14207         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14208         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14209         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14210         with modifications.
14211         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14212         with modifications.
14213         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14214         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14215         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14216         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14217         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14218         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14219         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14220         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14221         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14222         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14223         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14224         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14225         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14226         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14227         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14228         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14229         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14230         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14231         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14232         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14233         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14234         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14235         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14236         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14237         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14238         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14239         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14240         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14241         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14242         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14243         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14244         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14245         * tests/havelib/rpathx/rpathx.c: New file, from
14246         gettext/autoconf-lib-link.
14247         * tests/havelib/rpathx/Makefile.am: New file, from
14248         gettext/autoconf-lib-link.
14249         * tests/havelib/rpathx/configure.ac: New file, from
14250         gettext/autoconf-lib-link with modifications.
14251         * tests/havelib/rpathy/rpathy.c: New file, from
14252         gettext/autoconf-lib-link.
14253         * tests/havelib/rpathy/Makefile.am: New file, from
14254         gettext/autoconf-lib-link.
14255         * tests/havelib/rpathy/configure.ac: New file, from
14256         gettext/autoconf-lib-link with modifications.
14257         * tests/havelib/rpathz/rpathz.c: New file, from
14258         gettext/autoconf-lib-link.
14259         * tests/havelib/rpathz/Makefile.am: New file, from
14260         gettext/autoconf-lib-link.
14261         * tests/havelib/rpathz/configure.ac: New file, from
14262         gettext/autoconf-lib-link with modifications.
14263         * tests/havelib/rpathlx/usex.c: New file, from
14264         gettext/autoconf-lib-link.
14265         * tests/havelib/rpathlx/Makefile.am: New file, from
14266         gettext/autoconf-lib-link.
14267         * tests/havelib/rpathlx/configure.ac: New file, from
14268         gettext/autoconf-lib-link with modifications.
14269         * tests/havelib/rpathly/usey.c: New file, from
14270         gettext/autoconf-lib-link.
14271         * tests/havelib/rpathly/Makefile.am: New file, from
14272         gettext/autoconf-lib-link.
14273         * tests/havelib/rpathly/configure.ac: New file, from
14274         gettext/autoconf-lib-link with modifications.
14275         * tests/havelib/rpathlz/usez.c: New file, from
14276         gettext/autoconf-lib-link.
14277         * tests/havelib/rpathlz/Makefile.am: New file, from
14278         gettext/autoconf-lib-link.
14279         * tests/havelib/rpathlz/configure.ac: New file, from
14280         gettext/autoconf-lib-link with modifications.
14281         * tests/havelib/rpathlyx/usey.c: New file, from
14282         gettext/autoconf-lib-link.
14283         * tests/havelib/rpathlyx/Makefile.am: New file, from
14284         gettext/autoconf-lib-link.
14285         * tests/havelib/rpathlyx/configure.ac: New file, from
14286         gettext/autoconf-lib-link with modifications.
14287         * tests/havelib/rpathlzyx/usez.c: New file, from
14288         gettext/autoconf-lib-link.
14289         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14290         gettext/autoconf-lib-link.
14291         * tests/havelib/rpathlzyx/configure.ac: New file, from
14292         gettext/autoconf-lib-link with modifications.
14293         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14294         with modifications.
14295
14296 2010-04-02  Bruno Haible  <bruno@clisp.org>
14297
14298         gnulib-tool: Create distributed built sources also for the tests.
14299         * gnulib-tool (func_create_testdir): Also generate distributed built
14300         sources in the tests directory.
14301
14302 2010-04-02  Bruno Haible  <bruno@clisp.org>
14303
14304         gnulib-tool: Obey user's environment variables.
14305         * gnulib-tool (func_create_testdir): When creating built sources,
14306         respect the environment variables for autoconf, automake, etc. given by
14307         the user.
14308
14309 2010-04-02  Bruno Haible  <bruno@clisp.org>
14310
14311         gnulib-tool: Provide the value of --m4-base to modules.
14312         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14313         of gl_m4_base.
14314
14315 2010-04-02  Eric Blake  <eblake@redhat.com>
14316
14317         maint.mk: fix some fallout
14318         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14319         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14320
14321 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14322
14323         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14324         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14325         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14326         (sc_cast_of_x_alloc_return_value): Likewise.
14327         (sc_cast_of_alloca_return_value): Likewise.
14328         (sc_space_tab): Likewise.
14329         (sc_prohibit_atoi_atof): Likewise.
14330         (sc_prohibit_magic_number_exit): Likewise.
14331         (sc_error_exit_success): Likewise.
14332         (sc_file_system): Likewise.
14333         (sc_prohibit_have_config_h): Likewise.
14334         (sc_require_config_h): Likewise.
14335         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14336         (sc_obsolete_symbols): Likewise.
14337         (sc_changelog): Likewise.
14338         (sc_program_name): Likewise.
14339         (sc_the_the): Likewise.
14340         (sc_trailing_blank): Likewise.
14341         (sc_two_space_separator_in_usage): Likewise.
14342         (sc_useless_cpp_parens): Likewise.
14343         (sc_GPL_version): Likewise.
14344         (sc_GFDL_version): Likewise.
14345         (sc_texinfo_acronym): Likewise.
14346         (sc_prohibit_cvs_keyword): Likewise.
14347         (sc_prohibit_stat_st_blocks): Likewise.
14348         (sc_prohibit_S_IS_definition): Likewise.
14349         (sc_redundant_const): Likewise.
14350         (sc_makefile_TAB_only_indentation): Likewise.
14351         (sc_m4_quote_check): Likewise.
14352         (sc_makefile_path_separator_check): Likewise.
14353         (sc_copyright_check): Likewise.
14354         (sc_Wundef_boolean): Likewise.
14355         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14356
14357         maint.mk: match 0 or more whitespace-before-function-call '('
14358         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14359         that have zero or two-and-more spaces between the function name
14360         and the open parenthesis.
14361         (sc_error_message_warn_fatal): Likewise.
14362         (sc_error_message_uppercase): Likewise.
14363         (sc_error_message_period): Likewise.
14364
14365 2010-03-31  Eric Blake  <eblake@redhat.com>
14366
14367         maint.mk: check for [ as well as test
14368         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14369         Based on a libvirt report by Matthias Bolte.
14370
14371         gnumakefile: don't squelch _version output
14372         * top/GNUmakefile (_version): Create one-shot dependency rather
14373         than using $(shell) when version must be regenerated.
14374         (_autoreconf): Run verbosely, by default.
14375
14376         sys_time: avoid compiler warnings
14377         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14378         unconditional, fixing regression from 2010-03-29.
14379         Reported by Simon Josefsson.
14380
14381 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14382
14383         maint.mk: s/_header_without_use/_sc_header_without_use/
14384         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14385         (sc_prohibit_assert_without_use): Use the new name.
14386         (sc_prohibit_close_stream_without_use): Likewise.
14387         (sc_prohibit_getopt_without_use): Likewise.
14388         (sc_prohibit_quotearg_without_use): Likewise.
14389         (sc_prohibit_quote_without_use): Likewise.
14390         (sc_prohibit_long_options_without_use): Likewise.
14391         (sc_prohibit_inttostr_without_use): Likewise.
14392         (sc_prohibit_ignore_value_without_use): Likewise.
14393         (sc_prohibit_error_without_use): Likewise.
14394         (sc_prohibit_xalloc_without_use): Likewise.
14395         (sc_prohibit_hash_without_use): Likewise.
14396         (sc_prohibit_hash_pjw_without_use): Likewise.
14397         (sc_prohibit_safe_read_without_use): Likewise.
14398         (sc_prohibit_argmatch_without_use): Likewise.
14399         (sc_prohibit_canonicalize_without_use): Likewise.
14400         (sc_prohibit_root_dev_ino_without_use): Likewise.
14401         (sc_prohibit_openat_without_use): Likewise.
14402         (sc_prohibit_c_ctype_without_use): Likewise.
14403         (sc_prohibit_signal_without_use): Likewise.
14404         (sc_prohibit_intprops_without_use): Likewise.
14405
14406 2010-03-30  Eric Blake  <eblake@redhat.com>
14407
14408         maint: improve module indicators
14409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14410         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14411         columns, and avoid extra macro expansion.
14412
14413         fdopendir: work around FreeBSD bug
14414         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14415         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14416         * modules/dirent (Makefile.am): Substitute it.
14417         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14418         declaration.
14419         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14420         fix.
14421         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14422
14423 2010-03-29  Bruno Haible  <bruno@clisp.org>
14424
14425         Emit #pragma system_header after the inclusion guard, not before.
14426         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14427         guard that spans the entire file, not before. This enables an
14428         optimization in GCC's preprocessor.
14429         * lib/ctype.in.h: Likewise.
14430         * lib/dirent.in.h: Likewise.
14431         * lib/errno.in.h: Likewise.
14432         * lib/float.in.h: Likewise.
14433         * lib/getopt.in.h: Likewise.
14434         * lib/iconv.in.h: Likewise.
14435         * lib/langinfo.in.h: Likewise.
14436         * lib/locale.in.h: Likewise.
14437         * lib/math.in.h: Likewise.
14438         * lib/netdb.in.h: Likewise.
14439         * lib/netinet_in.in.h: Likewise.
14440         * lib/pty.in.h: Likewise.
14441         * lib/sched.in.h: Likewise.
14442         * lib/se-selinux.in.h: Likewise.
14443         * lib/search.in.h: Likewise.
14444         * lib/spawn.in.h: Likewise.
14445         * lib/stdarg.in.h: Likewise.
14446         * lib/stdint.in.h: Likewise.
14447         * lib/string.in.h: Likewise.
14448         * lib/strings.in.h: Likewise.
14449         * lib/sys_file.in.h: Likewise.
14450         * lib/sys_ioctl.in.h: Likewise.
14451         * lib/sys_time.in.h: Likewise.
14452         * lib/sys_times.in.h: Likewise.
14453         * lib/sys_utsname.in.h: Likewise.
14454         * lib/sys_wait.in.h: Likewise.
14455         * lib/sysexits.in.h: Likewise.
14456         * lib/wctype.in.h: Likewise.
14457
14458 2010-03-28  James Youngman  <jay@gnu.org>
14459
14460         save-cwd: don't leak a file descriptor when the caller execs.
14461         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14462         saved file descriptor.
14463         * modules/save-cwd (Depends-on): Depend on cloexec.
14464
14465 2010-03-29  Bruno Haible  <bruno@clisp.org>
14466
14467         Remove vestiges of fts-lgpl module.
14468         * lib/fts_.h: Assume GNULIB_FTS is 1.
14469         * lib/fts.c: Likewise.
14470         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14471
14472 2010-03-28  Bruno Haible  <bruno@clisp.org>
14473
14474         Fix definition of tests witness macro.
14475         * gnulib-tool (func_import): Fix definition of witness macro.
14476
14477 2010-03-28  Bruno Haible  <bruno@clisp.org>
14478
14479         Fix ioctl's protoype on glibc systems.
14480         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14481         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14482         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14483         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14484         signature. If not, arrange to replace the ioctl function.
14485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14486         REPLACE_IOCTL.
14487         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14488         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14489         Reported by Ludovic Courtès <ludo@gnu.org>.
14490
14491 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14492
14493         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14494         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14495         made it so grep -r --include=GLOB* ... did not work.
14496
14497 2010-03-26  Jim Meyering  <meyering@redhat.com>
14498             Eric Blake  <eblake@redhat.com>
14499
14500         maint.mk: prohibit use of test's -o and -a operators
14501         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14502
14503 2010-03-28  Bruno Haible  <bruno@clisp.org>
14504
14505         Remove unused GNULIB_XYZ macro definitions.
14506         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14507         invocation.
14508
14509 2010-03-28  Bruno Haible  <bruno@clisp.org>
14510
14511         Mark privileged tests modules.
14512         * modules/idpriv-drop-tests (Status): New section.
14513         * modules/idpriv-droptemp-tests (Status): New section.
14514
14515 2010-03-28  Bruno Haible  <bruno@clisp.org>
14516
14517         Split C++ tests into separate tests modules.
14518         * modules/dirent-c++-tests: New file, extracted from
14519         modules/dirent-tests.
14520         * modules/dirent-tests: Depend on it.
14521         * modules/fcntl-h-c++-tests: New file, extracted from
14522         modules/fcntl-h-tests.
14523         * modules/fcntl-h-tests: Depend on it.
14524         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14525         * modules/glob-tests: Depend on it.
14526         * modules/iconv-h-c++-tests: New file, extracted from
14527         modules/iconv-h-tests.
14528         * modules/iconv-h-tests: Depend on it.
14529         * modules/langinfo-c++-tests: New file, extracted from
14530         modules/langinfo-tests.
14531         * modules/langinfo-tests: Depend on it.
14532         * modules/locale-c++-tests: New file, extracted from
14533         modules/locale-tests.
14534         * modules/locale-tests: Depend on it.
14535         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14536         * modules/math-tests: Depend on it.
14537         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14538         * modules/pty-tests: Depend on it.
14539         * modules/search-c++-tests: New file, extracted from
14540         modules/search-tests.
14541         * modules/search-tests: Depend on it.
14542         * modules/signal-c++-tests: New file, extracted from
14543         modules/signal-tests.
14544         * modules/signal-tests: Depend on it.
14545         * modules/spawn-c++-tests: New file, extracted from
14546         modules/spawn-tests.
14547         * modules/spawn-tests: Depend on it.
14548         * modules/stdio-c++-tests: New file, extracted from
14549         modules/stdio-tests.
14550         * modules/stdio-tests: Depend on it.
14551         * modules/stdlib-c++-tests: New file, extracted from
14552         modules/stdlib-tests.
14553         * modules/stdlib-tests: Depend on it.
14554         * modules/string-c++-tests: New file, extracted from
14555         modules/string-tests.
14556         * modules/string-tests: Depend on it.
14557         * modules/sys_ioctl-c++-tests: New file, extracted from
14558         modules/sys_ioctl-tests.
14559         * modules/sys_ioctl-tests: Depend on it.
14560         * modules/sys_select-c++-tests: New file, extracted from
14561         modules/sys_select-tests.
14562         * modules/sys_select-tests: Depend on it.
14563         * modules/sys_socket-c++-tests: New file, extracted from
14564         modules/sys_socket-tests.
14565         * modules/sys_socket-tests: Depend on it.
14566         * modules/sys_stat-c++-tests: New file, extracted from
14567         modules/sys_stat-tests.
14568         * modules/sys_stat-tests: Depend on it.
14569         * modules/sys_time-c++-tests: New file, extracted from
14570         modules/sys_time-tests.
14571         * modules/sys_time-tests: Depend on it.
14572         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14573         * modules/time-tests: Depend on it.
14574         * modules/unistd-c++-tests: New file, extracted from
14575         modules/unistd-tests.
14576         * modules/unistd-tests: Depend on it.
14577         * modules/wchar-c++-tests: New file, extracted from
14578         modules/wchar-tests.
14579         * modules/wchar-tests: Depend on it.
14580         * modules/wctype-c++-tests: New file, extracted from
14581         modules/wctype-tests.
14582         * modules/wctype-tests: Depend on it.
14583         Reported by Simon Josefsson.
14584
14585 2010-03-28  Bruno Haible  <bruno@clisp.org>
14586
14587         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14588         * gnulib-tool (func_exists_module): New function, extracted from
14589         func_verify_module.
14590         (func_verify_module): Use it.
14591         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14592         'foo' only if 'foo' exists.
14593         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14594         module.
14595
14596 2010-03-28  Bruno Haible  <bruno@clisp.org>
14597
14598         gnulib-tool: Add support for special categories of tests.
14599         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14600         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14601         (func_usage): Document them.
14602         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14603         inc_unportable_tests, inc_all_tests): New variables.
14604         (func_acceptable): Consider these variables.
14605         (func_modules_transitive_closure): Make it work when the 'Status' field
14606         consists of multiple words.
14607         (func_import): Store and restore the values of inc_cxx_tests,
14608         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14609         inc_all_tests in gnulib-comp.m4.
14610         (func_create_testdir): Set inc_all_tests to true.
14611         * doc/gnulib.texi (Extra tests modules): New section.
14612         Suggested by Jim Meyering.
14613
14614 2010-03-28  Bruno Haible  <bruno@clisp.org>
14615
14616         ansi-c++-opt: Allow turning off the C++ build by default.
14617         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14618         gl_CXX_CHOICE_DEFAULT_NO is defined.
14619         Requested by Eric Blake.
14620
14621 2010-03-28  Bruno Haible  <bruno@clisp.org>
14622
14623         unistd: Avoid #define replacements in C++ mode.
14624         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14625         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14626         setsockopt, shutdown, select): In C++, attach a warning to the function
14627         if possible, rather than #defining the symbol to a dysfunctional alias.
14628         Reported by John W. Eaton <jwe@gnu.org>.
14629
14630 2010-03-28  Bruno Haible  <bruno@clisp.org>
14631
14632         Fix link errors on mingw.
14633         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14634         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14635         $(LIBSOCKET).
14636         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14637         $(LIBSOCKET).
14638
14639 2010-03-28  Bruno Haible  <bruno@clisp.org>
14640             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14641
14642         lib-ignore: Determine different options for different compilers.
14643         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14644         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14645         Add comments.
14646         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14647         * NEWS: Mention the change.
14648
14649 2010-03-27  Bruno Haible  <bruno@clisp.org>
14650
14651         Remove unused GNULIB_XYZ macro definitions.
14652         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14653         * modules/fseek (configure.ac): Likewise.
14654         * modules/ioctl (configure.ac): Likewise.
14655         * modules/open (configure.ac): Likewise.
14656         * modules/stdlib-safer (configure.ac): Likewise.
14657
14658 2010-03-27  Bruno Haible  <bruno@clisp.org>
14659
14660         Add a remark about certain modules.
14661         * modules/malloc (Comment): New section.
14662         * modules/realloc (Comment): Likewise.
14663         * modules/sigpipe (Comment): Likewise.
14664
14665 2010-03-27  Bruno Haible  <bruno@clisp.org>
14666
14667         Resolve conflict between the two kinds of module indicators.
14668         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14669         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14670         * modules/canonicalize (configure.ac): Invoke
14671         gl_MODULE_INDICATOR_FOR_TESTS.
14672         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14673         GNULIB_XYZ.
14674         * tests/test-dirent-c++.cc: Likewise.
14675         * tests/test-dirent-safer.c: Likewise.
14676         * tests/test-dup2.c: Likewise.
14677         * tests/test-fchdir.c: Likewise.
14678         * tests/test-fcntl-h-c++.cc: Likewise.
14679         * tests/test-getopt.c: Likewise.
14680         * tests/test-getopt.h: Likewise.
14681         * tests/test-langinfo-c++.cc: Likewise.
14682         * tests/test-locale-c++.cc: Likewise.
14683         * tests/test-math-c++.cc: Likewise.
14684         * tests/test-pty-c++.cc: Likewise.
14685         * tests/test-search-c++.cc: Likewise.
14686         * tests/test-signal-c++.cc: Likewise.
14687         * tests/test-spawn-c++.cc: Likewise.
14688         * tests/test-stdio-c++.cc: Likewise.
14689         * tests/test-stdlib-c++.cc: Likewise.
14690         * tests/test-string-c++.cc: Likewise.
14691         * tests/test-sys_ioctl-c++.cc: Likewise.
14692         * tests/test-sys_select-c++.cc: Likewise.
14693         * tests/test-sys_socket-c++.cc: Likewise.
14694         * tests/test-sys_stat-c++.cc: Likewise.
14695         * tests/test-sys_time-c++.cc: Likewise.
14696         * tests/test-time-c++.cc: Likewise.
14697         * tests/test-unistd-c++.cc: Likewise.
14698         * tests/test-wchar-c++.cc: Likewise.
14699         * tests/uninorm/test-u8-nfc.c: Likewise.
14700         * tests/uninorm/test-u8-nfd.c: Likewise.
14701         * tests/uninorm/test-u8-nfkc.c: Likewise.
14702         * tests/uninorm/test-u8-nfkd.c: Likewise.
14703         * tests/uninorm/test-u16-nfc.c: Likewise.
14704         * tests/uninorm/test-u16-nfd.c: Likewise.
14705         * tests/uninorm/test-u16-nfkc.c: Likewise.
14706         * tests/uninorm/test-u16-nfkd.c: Likewise.
14707         * tests/uninorm/test-u32-nfc.c: Likewise.
14708         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14709         * tests/uninorm/test-u32-nfd.c: Likewise.
14710         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14711         * tests/uninorm/test-u32-nfkc.c: Likewise.
14712         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14713         * tests/uninorm/test-u32-nfkd.c: Likewise.
14714         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14715         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14716
14717 2010-03-27  Bruno Haible  <bruno@clisp.org>
14718
14719         Distinguish two kinds of module indicators.
14720         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14721         gl_MODULE_INDICATOR.
14722         (gl_MODULE_INDICATOR): New macro.
14723         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14724         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14725         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14726         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14727         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14728         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14729         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14730         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14731         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14732         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14733         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14734         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14736         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14737         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14738         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14739         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14740         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14741         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14742         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14743         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14744         * modules/cloexec (configure.ac): Likewise.
14745         * modules/getopt-gnu (configure.ac): Likewise.
14746         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14747         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14748         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14749         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14750
14751 2010-03-27  Bruno Haible  <bruno@clisp.org>
14752
14753         New module description field 'Comment'.
14754         * gnulib-tool: New option --extract-comment.
14755         (func_usage): Document it.
14756         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14757         (func_get_comment): New function.
14758         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14759
14760 2010-03-27  Bruno Haible  <bruno@clisp.org>
14761
14762         Addendum to 2010-02-07 commit.
14763         * gnulib-tool (func_usage): Document --extract-applicability option.
14764
14765 2010-03-27  Bruno Haible  <bruno@clisp.org>
14766
14767         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14768         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14769         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14770         rather than link errors.
14771
14772 2010-03-27  Bruno Haible  <bruno@clisp.org>
14773
14774         Avoid side effects from tests-related modules on the compilation of lib.
14775         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14776         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14777         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14778         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14779         macro.
14780         (func_import): Define a witness macro. Assign it a value that depends
14781         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14782         tests-related modules.
14783         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14784         Reported by Jim Meyering.
14785
14786 2010-03-27  Bruno Haible  <bruno@clisp.org>
14787
14788         Factorize common .m4 code.
14789         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14790         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14791         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14792         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14793         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14794         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14795         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14796         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14797         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14798         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14799         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14800         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14801         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14802         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14803         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14804         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14805         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14806         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14807         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14808         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14809         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14810         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14811         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14812         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14813         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14814         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14815         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14817         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14818         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14819         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14820         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14821
14822 2010-03-27  Bruno Haible  <bruno@clisp.org>
14823
14824         Fix a compilation error on Cygwin with g++ >= 4.3.
14825         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14826         if it is undefined or if we alias it to chmod.
14827         (lstat): Don't warn about the use of this function if it is undefined
14828         or if we alias it to stat.
14829         Reported by Simon Josefsson.
14830
14831 2010-03-27  Bruno Haible  <bruno@clisp.org>
14832
14833         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14834         * modules/getlogin (configure.ac): Update.
14835
14836         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14837         * modules/getlogin_r (configure.ac): Update.
14838
14839         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14841         * modules/inet_ntop (configure.ac): Update.
14842
14843         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14844         * modules/inet_pton (configure.ac): Update.
14845
14846         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14847         * modules/mbslen (configure.ac): Update.
14848
14849         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14850         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14851         * modules/forkpty (configure.ac): Update.
14852         * modules/openpty (configure.ac): Update.
14853
14854 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14855
14856         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14857         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14858
14859 2010-03-25  Eric Blake  <eblake@redhat.com>
14860
14861         maint: use pragma consistently across replacement headers
14862         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14863         * lib/dirent.in.h (system_header): Likewise.
14864         * lib/errno.in.h (system_header): Likewise.
14865         * lib/float.in.h (system_header): Likewise.
14866         * lib/getopt.in.h (system_header): Likewise.
14867         * lib/iconv.in.h (system_header): Likewise.
14868         * lib/inttypes.in.h (system_header): Likewise.
14869         * lib/langinfo.in.h (system_header): Likewise.
14870         * lib/locale.in.h (system_header): Likewise.
14871         * lib/math.in.h (system_header): Likewise.
14872         * lib/netdb.in.h (system_header): Likewise.
14873         * lib/netinet_in.in.h (system_header): Likewise.
14874         * lib/pty.in.h (system_header): Likewise.
14875         * lib/sched.in.h (system_header): Likewise.
14876         * lib/se-selinux.in.h (system_header): Likewise.
14877         * lib/search.in.h (system_header): Likewise.
14878         * lib/spawn.in.h (system_header): Likewise.
14879         * lib/stdarg.in.h (system_header): Likewise.
14880         * lib/stdint.in.h (system_header): Likewise.
14881         * lib/string.in.h (system_header): Likewise.
14882         * lib/strings.in.h (system_header): Likewise.
14883         * lib/sys_file.in.h (system_header): Likewise.
14884         * lib/sys_ioctl.in.h (system_header): Likewise.
14885         * lib/sys_socket.in.h (system_header): Likewise.
14886         * lib/sys_times.in.h (system_header): Likewise.
14887         * lib/sys_utsname.in.h (system_header): Likewise.
14888         * lib/sys_wait.in.h (system_header): Likewise.
14889         * lib/sysexits.in.h (system_header): Likewise.
14890         * lib/unistd.in.h (system_header): Likewise.
14891         * lib/wctype.in.h (system_header): Likewise.
14892
14893         arpa/inet: fix mingw compilation warning
14894         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14895         Reported by Matthew Bolte.
14896
14897 2010-03-25  Bruno Haible  <bruno@clisp.org>
14898
14899         Avoid collision between gnulib wrapper and libintl wrapper.
14900         * lib/printf.c (printf): Don't define if a printf wrapper is already
14901         defined in intl/printf.c.
14902         Reported by Michel Boaventura <michel@michelboaventura.com>.
14903
14904 2010-03-25  Bruno Haible  <bruno@clisp.org>
14905
14906         Use ANSI C.
14907         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14908
14909 2010-03-25  Bruno Haible  <bruno@clisp.org>
14910
14911         Minor formatting changes.
14912         * lib/acosl.c: Insert space before function argument list.
14913         * lib/argz.c: Likewise.
14914         * lib/asinl.c: Likewise.
14915         * lib/expl.c: Likewise.
14916         * lib/gen-uni-tables.c: Likewise.
14917         * lib/gettext.h: Likewise.
14918         * lib/glthread/lock.h: Likewise.
14919         * lib/tanl.c: Likewise.
14920         * lib/uniname/uniname.c: Likewise.
14921         * tests/test-idpriv-drop.c: Likewise.
14922         * tests/test-idpriv-droptemp.c: Likewise.
14923         * tests/test-lock.c: Likewise.
14924         * tests/test-tls.c: Likewise.
14925         * lib/argp-help.c: Insert space before function-like macro argument
14926         list.
14927         * lib/memcmp.c: Likewise.
14928         * tests/test-base64.c: Likewise.
14929         * lib/localename.c: Insert space before sizeof's argument list.
14930         * lib/safe-alloc.h: Likewise.
14931         * lib/file-set.h: Insert space before macro argument list.
14932         * tests/test-argp.c: Likewise.
14933         * lib/argp-namefrob.h: Insert space before function parameter list.
14934         * lib/getaddrinfo.c: Likewise.
14935         * lib/netdb.in.h: Likewise.
14936         * lib/parse-duration.h: Likewise.
14937         * lib/parse-duration.c: Likewise.
14938         * lib/poll.c: Likewise.
14939         * lib/select.c: Likewise.
14940         * lib/trim.h: Likewise.
14941         * tests/test-usleep.c: Likewise.
14942         * lib/ldexpl.c: Insert space before function parameter list and before
14943         function argument list.
14944         * lib/logl.c: Likewise.
14945         * lib/sqrtl.c: Likewise.
14946         * lib/trim.c: Likewise.
14947         * lib/cosl.c: Use GNU style indentation. Insert space before function
14948         argument list.
14949         * lib/sinl.c: Likewise.
14950         * lib/tsearch.c: Insert space after 'for'.
14951         Reported by Jim Meyering.
14952
14953 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14954
14955         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14956         config header before grepping, as it's not present before
14957         autoreconf/configure are run.  Reported by Simon Josefsson.
14958
14959 2010-03-23  Bruno Haible  <bruno@clisp.org>
14960
14961         pt_chown: Make it work with automake < 1.11.
14962         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14963         Reported by Simon Josefsson.
14964
14965 2010-03-23  Bruno Haible  <bruno@clisp.org>
14966
14967         pt_chown: Don't depend on GPLed modules.
14968         * lib/pt_chown.c: Don't include idpriv.h.
14969         (main): Don't drop privileges.
14970         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14971         Reported by Simon Josefsson.
14972
14973 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14974
14975         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14976         suggestions from karl@freefriends.org (Karl Berry).
14977
14978 2010-03-22  Eric Blake  <eblake@redhat.com>
14979
14980         gethostname: further tweaks
14981         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14982         are overriding gethostname.
14983         Suggested by Bruno Haible.
14984
14985 2010-03-21  Bruno Haible  <bruno@clisp.org>
14986
14987         Fix comments.
14988         * lib/forkpty.c (rpl_forkpty): Fix comment.
14989         * lib/openpty.c (rpl_openpty): Likewise.
14990         Reported by Eric Blake.
14991
14992 2010-03-22  Eric Blake  <eblake@redhat.com>
14993
14994         gethostname: fix build on mingw
14995         * lib/unistd.in.h (includes): Work around fact that mingw
14996         <winsock2.h> re-includes <unistd.h>, by avoiding any
14997         redeclarations if we are being included by <winsock2.h>.
14998         Reported by Matthias Bolte.
14999
15000 2010-03-21  Bruno Haible  <bruno@clisp.org>
15001
15002         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15003         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15004         modifications.
15005         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15006         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15007         provide the replacement.
15008         * modules/forkpty (Depends-on): Add openpty, login_tty.
15009         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15010         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15011         * doc/glibc-functions/forkpty.texi: More supported platforms.
15012         * config/srclist.txt: Add forkpty.c (commented).
15013
15014 2010-03-21  Bruno Haible  <bruno@clisp.org>
15015
15016         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15017         (Makefile.am): Verify that PTY_LIB is defined.
15018
15019         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15020
15021 2010-03-21  Bruno Haible  <bruno@clisp.org>
15022
15023         Tests for module 'login_tty'.
15024         * modules/login_tty-tests: New file.
15025         * tests/test-login_tty.c: New file.
15026
15027         New module 'login_tty'.
15028         * lib/login_tty.c: New file.
15029         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15030         * modules/login_tty: New file.
15031         * doc/glibc-functions/login_tty.texi: Mention the new module.
15032
15033 2010-03-21  Bruno Haible  <bruno@clisp.org>
15034
15035         login_tty: Documentation.
15036         * doc/glibc-functions/login_tty.texi: New file.
15037         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15038
15039 2010-03-21  Bruno Haible  <bruno@clisp.org>
15040
15041         pty: Consistent macro naming.
15042         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15043         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15044         * modules/pty (configure.ac): Update.
15045
15046 2010-03-21  Bruno Haible  <bruno@clisp.org>
15047
15048         Tests for openpty: Make stricter.
15049         * tests/test-openpty.c (main): Add test of canonical processing and
15050         erase.
15051         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15052
15053         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15054         * lib/openpty.c (openpty): New replacement function.
15055         * lib/pty.in.h: Include <termios.h>.
15056         (openpty): Update declaration. Add comments.
15057         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15058         is not declared, arrange to provide the replacement. Check for _getpty
15059         and posix_openpt.
15060         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15061         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15062         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15063         * modules/pty-tests (test_pty_c___LDADD): New variable.
15064         * doc/glibc-functions/openpty.texi: More supported platforms.
15065
15066 2010-03-21  Bruno Haible  <bruno@clisp.org>
15067
15068         setenv: Tweaks.
15069         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15070         the test program.
15071         * doc/posix-functions/setenv.texi: Update platforms list.
15072
15073 2010-03-21  Bruno Haible  <bruno@clisp.org>
15074
15075         New module 'unlockpt'.
15076         * lib/unlockpt.c: New file, from glibc with modifications.
15077         * m4/unlockpt.m4: New file.
15078         * modules/unlockpt: New file.
15079         * lib/stdlib.in.h (unlockpt): New declaration.
15080         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15081         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15082         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15083         HAVE_UNLOCKPT.
15084         * doc/posix-functions/unlockpt.texi: Mention the new module.
15085         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15086         * config/srclist.txt: Add unlockpt.c (commented).
15087
15088 2010-03-21  Jim Meyering  <meyering@redhat.com>
15089
15090         maint.mk: prohibit inclusion of "intprops.h" without use
15091         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15092
15093 2010-03-21  Bruno Haible  <bruno@clisp.org>
15094
15095         New module 'grantpt'.
15096         * lib/grantpt.c: New file, from glibc with modifications.
15097         * m4/grantpt.m4: New file.
15098         * modules/grantpt: New file.
15099         * lib/stdlib.in.h (grantpt): New declaration.
15100         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15101         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15102         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15103         HAVE_GRANTPT.
15104         * doc/posix-functions/grantpt.texi: Mention the new module.
15105         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15106         * config/srclist.txt: Add grantpt.c (commented).
15107
15108 2010-03-21  Bruno Haible  <bruno@clisp.org>
15109
15110         New module 'pt_chown'.
15111         * lib/pt_chown.c: New file, from glibc with modifications.
15112         * lib/pty-private.h: New file, from glibc with modifications.
15113         * modules/pt_chown: New file.
15114         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15115
15116 2010-03-21  Bruno Haible  <bruno@clisp.org>
15117
15118         Tests for module 'ptsname'.
15119         * modules/ptsname-tests: New file.
15120         * tests/test-ptsname.c: New file.
15121
15122         New module 'ptsname'.
15123         * lib/ptsname.c: New file, from glibc with modifications.
15124         * m4/ptsname.m4: New file.
15125         * modules/ptsname: New file.
15126         * lib/stdlib.in.h (ptsname): New declaration.
15127         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15128         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15129         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15130         HAVE_PTSNAME.
15131         * doc/posix-functions/ptsname.texi: Mention the new module.
15132         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15133         * config/srclist.txt: Add ptsname.c (commented).
15134
15135 2010-03-21  Bruno Haible  <bruno@clisp.org>
15136
15137         Tests for module 'ttyname_r'.
15138         * modules/ttyname_r-tests: New file.
15139         * tests/test-ttyname_r.c: New file.
15140
15141         New module 'ttyname_r'.
15142         * lib/ttyname_r.c: New file.
15143         * m4/ttyname_r.m4: New file.
15144         * modules/ttyname_r: New file.
15145         * lib/unistd.in.h (ttyname_r): New declaration.
15146         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15147         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15148         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15149         HAVE_TTYNAME_R.
15150         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15151         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15152
15153 2010-03-20  Bruno Haible  <bruno@clisp.org>
15154
15155         signal: Undefine macro definitions in C++ mode.
15156         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15157         sigfillset): Undefine macro definitions from the system header in C++
15158         mode.
15159         Reported by John W. Eaton <jwe@gnu.org>.
15160
15161 2010-03-20  Bruno Haible  <bruno@clisp.org>
15162
15163         Ensure no #include statements inside extern "C" { ... }.
15164         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15165         contain #include statements.
15166         * lib/time.in.h: Likewise.
15167
15168 2010-03-20  Bruno Haible  <bruno@clisp.org>
15169
15170         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15171         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15172         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15173         Reported by John W. Eaton <jwe@gnu.org>.
15174
15175 2010-03-20  Bruno Haible  <bruno@clisp.org>
15176
15177         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15178         Reported by Jim Meyering.
15179
15180 2010-03-20  Bruno Haible  <bruno@clisp.org>
15181
15182         pipe: Set errno upon failure.
15183         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15184         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15185         errno value in error message.
15186
15187 2010-03-20  Bruno Haible  <bruno@clisp.org>
15188             Jim Meyering  <meyering@redhat.com>
15189
15190         lchown: Avoid "unused variable" warning.
15191         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15192
15193 2010-03-20  Bruno Haible  <bruno@clisp.org>
15194
15195         Work around unlink() bug on MacOS X 10.5.6.
15196         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15197         attempting to unlink a parent directory.
15198         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15199         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15200         activate for the replacement function.
15201         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15202
15203 2010-03-20  Bruno Haible  <bruno@clisp.org>
15204
15205         Fix link errors on Solaris 8.
15206         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15207         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15208
15209 2010-03-19  Jim Meyering  <meyering@redhat.com>
15210
15211         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15212         The _LIBC implementation of build_range_exp correctly honors the
15213         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15214         However, the non-_LIBC implementation would ignore that syntax-bit
15215         flag and return REG_ERANGE unconditionally.
15216         This change makes it honor that flag.
15217         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15218         Make two pointer parameters "const".
15219         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15220         (parse_bracket_exp): Update caller.
15221
15222         regex.m4: correct the reversed range endpoint ([b-a]) test
15223         * m4/regex.m4: When requiring that [b-a] evoke failure,
15224         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15225         test pass once again for x86-based systems.
15226
15227 2010-03-19  Bruno Haible  <bruno@clisp.org>
15228
15229         scandir: Fix link error on Solaris 8.
15230         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15231         macros.
15232
15233 2010-03-19  Bruno Haible  <bruno@clisp.org>
15234
15235         getusershell: Fix documentation.
15236         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15237         module.
15238         * doc/glibc-functions/setusershell.texi: Likewise.
15239
15240         getusershell: Provide declaration, missing on Solaris 9.
15241         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15242         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15243         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15244         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15246         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15247         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15248         HAVE_GETUSERSHELL.
15249         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15250
15251 2010-03-19  Bruno Haible  <bruno@clisp.org>
15252
15253         wctype: Provide iswblank function.
15254         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15255         exists and is fine.
15256         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15257         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15258         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15259         * doc/posix-functions/iswblank.texi: Update.
15260
15261 2010-03-19  Bruno Haible  <bruno@clisp.org>
15262
15263         Tests of module 'pty' in C++ mode.
15264         * modules/pty-tests: New file.
15265         * tests/test-pty-c++.cc: New file.
15266         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15267
15268 2010-03-19  Eric Blake  <eblake@redhat.com>
15269
15270         logb: fix documentation
15271         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15272         1.5 declaration bug.
15273
15274         forkpty, openpty: prefer glibc's const-safe prototype
15275         * lib/forkpty.c (rpl_forkpty): New file.
15276         * lib/openpty.c (rpl_openpty): Likewise.
15277         * modules/forkpty (Files): Distribute it.
15278         * modules/openpty (Files): Likewise.
15279         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15280         check...
15281         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15282         replacement for for non-const BSD signature.
15283         * modules/pty (Makefile.am): Substitute witnesses.
15284         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15285         * tests/test-forkpty.c: Update signature check.
15286         * tests/test-openpty.c: Likewise.
15287         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15288         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15289
15290         forkpty, openpty: split functions into new modules
15291         * modules/pty (Makefile.am): Substitute new witnesses.
15292         (Libraries): Move library detection...
15293         * modules/forkpty: ...into new module.
15294         * modules/openpty: Another new module.
15295         * modules/pty-tests: Rename and split...
15296         * modules/forkpty-tests: ...to this...
15297         * modules/openpty-tests: ...and this.
15298         * tests/test-pty.c: Rename and split...
15299         * tests/test-forkpty.c: ...to this...
15300         * tests/test-openpty.c: ...and this.
15301         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15302         (gl_PTY): Split library searching...
15303         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15304         (gl_FORKPTY, gl_OPENPTY): New macros.
15305         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15306         * NEWS: Mention the split.
15307         * MODULES.html.sh (Misc): Document the modules.
15308         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15309         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15310
15311         pty: improve replacement header
15312         * lib/pty.in.h: New file.
15313         * modules/pty (Files): Ship it.
15314         (Makefile.am): Always build replacement.
15315         * m4/pty.m4: Rename...
15316         * m4/pty_h.m4: ...to this.
15317         (gl_PTY): Modernize setting of witness macros; update check of
15318         forkpty to take proper advantage of cache.
15319         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15320
15321         getopt: avoid compiler warning
15322         * lib/getopt.c (attribute_hidden): Remove unused macro.
15323
15324 2010-03-18  Bruno Haible  <bruno@clisp.org>
15325
15326         Fix link errors on Solaris 8.
15327         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15328         * modules/search-tests (test_search_c___LDADD): Likewise.
15329         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15330         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15331         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15332         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15333         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15334         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15335         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15336
15337 2010-03-18  Bruno Haible  <bruno@clisp.org>
15338
15339         Fix bug introduced on 2010-03-14.
15340         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15341         (gl_SPAWN_H): Require it.
15342         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15343         Reported by Simon Josefsson.
15344
15345 2010-03-18  Bruno Haible  <bruno@clisp.org>
15346
15347         Fix typo introduced on 2009-12-31.
15348         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15349         posix_spawn_file_actions_adddup2.
15350
15351 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15352         and Eric Blake  <eblake@redhat.com>
15353
15354         test-vc-list-files-git: make more robust
15355         * tests/test-vc-list-files-git.sh: Unset problematic environment
15356         variables.  Chain commands together.
15357
15358 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15359
15360         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15361         `AC_CHECK_DECL' invocation.
15362
15363 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15364
15365         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15366         appears before executable statements. Suggested by Petr Sumbera
15367         <Petr.Sumbera@Sun.COM>.
15368
15369 2010-03-14  Bruno Haible  <bruno@clisp.org>
15370
15371         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15372         portability problems. Instead use a simpler test.
15373         (main): Check that invalid arguments are rejected only on Linux.
15374
15375 2010-03-14  Bruno Haible  <bruno@clisp.org>
15376
15377         Fix bug introduced on 2009-12-31.
15378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15379         gl_PREREQ_SYS_H_WINSOCK2 always.
15380         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15381         SYS_SOCKET_H variable.
15382         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15383         Update comments.
15384         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15385         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15386         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15387         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15388         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15389
15390 2010-03-14  Bruno Haible  <bruno@clisp.org>
15391
15392         Fix values returned by sinl, cosl.
15393         * lib/trigl.h: Add specification comments.
15394         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15395         that combines the values from the precomputed table with the values of
15396         the Chebyshev polynomials.
15397
15398 2010-03-14  Bruno Haible  <bruno@clisp.org>
15399
15400         Fix compilation error when modules 'posix_spawn[p]' are not used.
15401         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15402         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15403
15404 2010-03-14  Bruno Haible  <bruno@clisp.org>
15405
15406         Fix compilation error on mingw when module 'time_r' is not used.
15407         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15408         is 1.
15409         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15410         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15411         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15412         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15413
15414 2010-03-14  Bruno Haible  <bruno@clisp.org>
15415
15416         Fix compilation error with Sun C.
15417         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15418         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15419         instead of GCC specific ULONG_LONG_MAX.
15420         * lib/xstrtoll.c: Likewise.
15421         * lib/xstrtoull.c: Likewise.
15422
15423 2010-03-13  Bruno Haible  <bruno@clisp.org>
15424
15425         Allow the user to disable C++ code and tests.
15426         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15427         (gl_PROG_ANSI_CXX): Require it.
15428
15429 2010-03-13  Bruno Haible  <bruno@clisp.org>
15430
15431         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15432         cases.
15433
15434 2010-03-13  Bruno Haible  <bruno@clisp.org>
15435
15436         Test that gnulib does not break the standard C++ headers.
15437         * tests/test-locale-c++2.cc: New file.
15438         * modules/locale-tests (Files): Add it.
15439         (Makefile.am): Compile it for test-locale-c++.
15440         * tests/test-math-c++2.cc: New file.
15441         * modules/math-tests (Files): Add it.
15442         (Makefile.am): Compile it for test-math-c++.
15443         * tests/test-signal-c++2.cc: New file.
15444         * modules/signal-tests (Files): Add it.
15445         (Makefile.am): Compile it for test-signal-c++.
15446         * tests/test-stdio-c++2.cc: New file.
15447         * modules/stdio-tests (Files): Add it.
15448         (Makefile.am): Compile it for test-stdio-c++.
15449         * tests/test-stdlib-c++2.cc: New file.
15450         * modules/stdlib-tests (Files): Add it.
15451         (Makefile.am): Compile it for test-stdlib-c++.
15452         * tests/test-string-c++2.cc: New file.
15453         * modules/string-tests (Files): Add it.
15454         (Makefile.am): Compile it for test-string-c++.
15455         * tests/test-time-c++2.cc: New file.
15456         * modules/time-tests (Files): Add it.
15457         (Makefile.am): Compile it for test-time-c++.
15458         Reported by John W. Eaton <jwe@gnu.org>.
15459
15460 2010-03-13  Bruno Haible  <bruno@clisp.org>
15461
15462         * gnulib-tool (func_usage): Clarify which options are available for
15463         --create-testdir and --create-megatestdir.
15464
15465 2010-03-13  Bruno Haible  <bruno@clisp.org>
15466
15467         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15468         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15469         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15470         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15471         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15472         when appropriate.
15473         Reported by Jim Meyering.
15474
15475 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15476
15477         * gnulib-tool (func_import): Explain origin of code.
15478
15479 2010-03-12  Bruno Haible  <bruno@clisp.org>
15480
15481         Fix problem with automake's definition of CXXLINK.
15482         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15483         Reported by Simon Josefsson and Ludovic Courtès.
15484
15485 2010-03-12  Bruno Haible  <bruno@clisp.org>
15486
15487         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15488         stable releases.
15489
15490 2010-03-11  Bruno Haible  <bruno@clisp.org>
15491
15492         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15493         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15494         whether the system provides one variant or multiple variants of the
15495         function.
15496         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15497         C++ compilers.
15498         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15499         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15500         Reported by Jim Meyering.
15501
15502 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15503
15504         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15505
15506 2010-03-08  Bruno Haible  <bruno@clisp.org>
15507
15508         gnulib-tool: Add support for --libtool in --create-testdir.
15509         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15510         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15511
15512 2010-03-08  Eric Blake  <eblake@redhat.com>
15513
15514         gnulib-tool.texi: mention possibility of git submodule
15515         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15516         submodules.
15517         * doc/.gitignore: Ignore another generated file.
15518
15519 2010-03-08  Karl Berry  <karl@gnu.org>
15520
15521         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15522         of committing gnulib files while skipping others.
15523
15524 2010-03-07  Bruno Haible  <bruno@clisp.org>
15525
15526         Tests of module 'wctype' in C++ mode.
15527         * tests/test-wctype-c++.cc: New file.
15528         * modules/wctype-tests (Files): Add it and tests/signature.h.
15529         (Depends-on): Add ansi-c++-opt.
15530         (Makefile.am): Arrange to compile and run test-wctype-c++.
15531
15532         Tests of module 'wchar' in C++ mode.
15533         * tests/test-wchar-c++.cc: New file.
15534         * modules/wchar-tests (Files): Add it and tests/signature.h.
15535         (Depends-on): Add ansi-c++-opt.
15536         (Makefile.am): Arrange to compile and run test-wchar-c++.
15537         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15538         gl_MODULE_INDICATOR.
15539
15540         Tests of module 'unistd' in C++ mode.
15541         * tests/test-unistd-c++.cc: New file.
15542         * modules/unistd-tests (Files): Add it and tests/signature.h.
15543         (Depends-on): Add ansi-c++-opt.
15544         (Makefile.am): Arrange to compile and run test-unistd-c++.
15545         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15546         gl_MODULE_INDICATOR.
15547
15548         Tests of module 'time' in C++ mode.
15549         * tests/test-time-c++.cc: New file.
15550         * modules/time-tests (Files): Add it and tests/signature.h.
15551         (Depends-on): Add ansi-c++-opt.
15552         (Makefile.am): Arrange to compile and run test-time-c++.
15553         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15554
15555         Tests of module 'sys_time' in C++ mode.
15556         * tests/test-sys_time-c++.cc: New file.
15557         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15558         (Depends-on): Add ansi-c++-opt.
15559         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15560         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15561         gl_MODULE_INDICATOR.
15562
15563         Tests of module 'sys_stat' in C++ mode.
15564         * tests/test-sys_stat-c++.cc: New file.
15565         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15566         (Depends-on): Add ansi-c++-opt.
15567         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15568         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15569         gl_MODULE_INDICATOR.
15570
15571         Tests of module 'sys_socket' in C++ mode.
15572         * tests/test-sys_socket-c++.cc: New file.
15573         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15574         (Depends-on): Add ansi-c++-opt.
15575         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15576         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15577         gl_MODULE_INDICATOR.
15578
15579         Tests of module 'sys_select' in C++ mode.
15580         * tests/test-sys_select-c++.cc: New file.
15581         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15582         (Depends-on): Add ansi-c++-opt.
15583         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15584         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15585         gl_MODULE_INDICATOR.
15586
15587         Tests of module 'sys_ioctl' in C++ mode.
15588         * tests/test-sys_ioctl-c++.cc: New file.
15589         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15590         (Depends-on): Add ansi-c++-opt.
15591         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15592         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15593         gl_MODULE_INDICATOR.
15594
15595         Tests of module 'string' in C++ mode.
15596         * tests/test-string-c++.cc: New file.
15597         * modules/string-tests (Files): Add it and tests/signature.h.
15598         (Depends-on): Add ansi-c++-opt.
15599         (Makefile.am): Arrange to compile and run test-string-c++.
15600         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15601         gl_MODULE_INDICATOR.
15602
15603         Tests of module 'stdlib' in C++ mode.
15604         * tests/test-stdlib-c++.cc: New file.
15605         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15606         (Depends-on): Add ansi-c++-opt.
15607         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15608         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15609         gl_MODULE_INDICATOR.
15610
15611         Tests of module 'stdio' in C++ mode.
15612         * tests/test-stdio-c++.cc: New file.
15613         * modules/stdio-tests (Files): Add it and tests/signature.h.
15614         (Depends-on): Add ansi-c++-opt.
15615         (Makefile.am): Arrange to compile and run test-stdio-c++.
15616         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15617         gl_MODULE_INDICATOR.
15618
15619         Tests of module 'spawn' in C++ mode.
15620         * tests/test-spawn-c++.cc: New file.
15621         * modules/spawn-tests (Files): Add it and tests/signature.h.
15622         (Depends-on): Add ansi-c++-opt.
15623         (Makefile.am): Arrange to compile and run test-spawn-c++.
15624         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15625         gl_MODULE_INDICATOR.
15626
15627         Tests of module 'signal' in C++ mode.
15628         * tests/test-signal-c++.cc: New file.
15629         * modules/signal-tests (Files): Add it and tests/signature.h.
15630         (Depends-on): Add ansi-c++-opt.
15631         (Makefile.am): Arrange to compile and run test-signal-c++.
15632         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15633         gl_MODULE_INDICATOR.
15634
15635         Tests of module 'search' in C++ mode.
15636         * tests/test-search-c++.cc: New file.
15637         * modules/search-tests (Files): Add it and tests/signature.h.
15638         (Depends-on): Add ansi-c++-opt.
15639         (Makefile.am): Arrange to compile and run test-search-c++.
15640         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15641         gl_MODULE_INDICATOR.
15642
15643         Tests of module 'math' in C++ mode.
15644         * tests/test-math-c++.cc: New file.
15645         * modules/math-tests (Files): Add it and tests/signature.h.
15646         (Depends-on): Add ansi-c++-opt.
15647         (Makefile.am): Arrange to compile and run test-math-c++.
15648         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15649
15650         Tests of module 'locale' in C++ mode.
15651         * tests/test-locale-c++.cc: New file.
15652         * modules/locale-tests (Files): Add it and tests/signature.h.
15653         (Depends-on): Add ansi-c++-opt.
15654         (Makefile.am): Arrange to compile and run test-locale-c++.
15655         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15656         gl_MODULE_INDICATOR.
15657
15658         Tests of module 'langinfo' in C++ mode.
15659         * tests/test-langinfo-c++.cc: New file.
15660         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15661         (Depends-on): Add ansi-c++-opt.
15662         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15663         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15664         gl_MODULE_INDICATOR.
15665
15666         Tests of module 'iconv-h' in C++ mode.
15667         * tests/test-iconv-h-c++.cc: New file.
15668         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15669         (Depends-on): Add ansi-c++-opt.
15670         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15671
15672         Tests of module 'glob' in C++ mode.
15673         * tests/test-glob-c++.cc: New file.
15674         * modules/glob-tests (Files): Add it.
15675         (Depends-on): Add ansi-c++-opt.
15676         (Makefile.am): Arrange to compile and run test-glob-c++.
15677
15678         Tests of module 'fcntl-h' in C++ mode.
15679         * tests/test-fcntl-h-c++.cc: New file.
15680         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15681         (Depends-on): Add ansi-c++-opt.
15682         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15683         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15684         gl_MODULE_INDICATOR.
15685
15686         Tests of module 'dirent' in C++ mode.
15687         * tests/test-dirent-c++.cc: New file.
15688         * modules/dirent-tests (Files): Add it and tests/signature.h.
15689         (Depends-on): Add ansi-c++-opt.
15690         (Makefile.am): Arrange to compile and run test-dirent-c++.
15691         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15692         gl_MODULE_INDICATOR.
15693
15694         New module 'ansi-c++-opt'.
15695         * modules/ansi-c++-opt: New file.
15696         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15697
15698         Document C++ namespace mode.
15699         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15700
15701         wctype: Avoid #define replacements in C++ mode.
15702         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15703         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15704         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15705         In C++, define a namespaced alias symbol.
15706         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15707         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15708         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15709         rule.
15710
15711         wchar: Avoid #define replacements in C++ mode.
15712         * lib/wchar.in.h: Include c++defs.h.
15713         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15714         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15715         symbol.
15716         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15717         * modules/wchar (Depends-on): Add c++defs.
15718         (Makefile.am): Update wchar.h rule.
15719
15720         unistd: Avoid #define replacements in C++ mode.
15721         * lib/unistd.in.h: Include c++defs.h.
15722         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15723         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15724         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15725         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15726         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15727         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15728         symbol.
15729         (environ): Update.
15730         * modules/unistd (Depends-on): Add c++defs.
15731         (Makefile.am): Update unistd.h rule.
15732
15733         time: Avoid #define replacements in C++ mode.
15734         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15735         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15736         define a namespaced alias symbol.
15737         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15738         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15739         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15740         * modules/time (Depends-on): Add c++defs, warn-on-use.
15741         (Makefile.am): Update time.h rule.
15742         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15743         * modules/nanosleep (configure.ac): Likewise.
15744         * modules/strptime (configure.ac): Likewise.
15745         * modules/timegm (configure.ac): Likewise.
15746
15747         sys_time: Avoid #define replacements in C++ mode.
15748         * lib/sys_time.in.h: Include c++defs.h.
15749         (gettimeofday): In C++, define a namespaced alias symbol.
15750         * modules/sys_time (Depends-on): Add c++defs.
15751         (Makefile.am): Update sys/time.h rule.
15752
15753         sys_stat: Avoid #define replacements in C++ mode.
15754         * lib/sys_stat.in.h: Include c++defs.h.
15755         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15756         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15757         namespaced alias symbol.
15758         In C++, define a namespaced alias symbol.
15759         * modules/sys_stat (Depends-on): Add c++defs.
15760         (Makefile.am): Update sys/stat.h rule.
15761
15762         sys_socket: Avoid #define replacements in C++ mode.
15763         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15764         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15765         definitions also when the system has a <sys/socket.h>.
15766         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15767         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15768         In C++, define a namespaced alias symbol.
15769         * modules/sys_socket (Depends-on): Add c++defs.
15770         (Makefile.am): Update sys/socket.h rule.
15771
15772         sys_select: Avoid #define replacements in C++ mode.
15773         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15774         definitions also when the system has a <sys/select.h>.
15775         (select): In C++, define a namespaced alias symbol.
15776         * modules/sys_select (Depends-on): Add c++defs.
15777         (Makefile.am): Update sys/select.h rule.
15778
15779         sys_ioctl: Avoid #define replacements in C++ mode.
15780         * lib/sys_ioctl.in.h: Include c++defs.h.
15781         (ioctl): In C++, define a namespaced alias symbol.
15782         * modules/sys_ioctl (Depends-on): Add c++defs.
15783         (Makefile.am): Update sys/ioctl.h rule.
15784
15785         string: Avoid #define replacements in C++ mode.
15786         * lib/string.in.h: Include c++defs.h.
15787         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15788         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15789         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15790         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15791         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15792         * modules/string (Depends-on): Add c++defs.
15793         (Makefile.am): Update string.h rule.
15794
15795         stdlib: Avoid #define replacements in C++ mode.
15796         * lib/stdlib.in.h: Include c++defs.h.
15797         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15798         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15799         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15800         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15801         symbol.
15802         * modules/stdlib (Depends-on): Add c++defs.
15803         (Makefile.am): Update stdlib.h rule.
15804
15805         stdio: Avoid #define replacements in C++ mode.
15806         * lib/stdio.in.h: Include c++defs.h.
15807         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15808         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15809         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15810         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15811         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15812         namespaced alias symbol.
15813         * modules/stdio (Depends-on): Add c++defs.
15814         (Makefile.am): Update stdio.h rule.
15815
15816         spawn: Avoid #define replacements in C++ mode.
15817         * lib/spawn.in.h: Include c++defs.h.
15818         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15819         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15820         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15821         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15822         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15823         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15824         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15825         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15826         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15827         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15828         In C++, define a namespaced alias symbol.
15829         * modules/spawn (Depends-on): Add c++defs.
15830         (Makefile.am): Update spawn.h rule.
15831
15832         signal: Avoid #define replacements in C++ mode.
15833         * lib/signal.in.h: Include c++defs.h.
15834         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15835         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15836         namespaced alias symbol.
15837         * modules/signal (Depends-on): Add c++defs.
15838         (Makefile.am): Update signal.h rule.
15839
15840         search: Avoid #define replacements in C++ mode.
15841         * lib/search.in.h: Include c++defs.h.
15842         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15843         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15844         symbol.
15845         * modules/search (Depends-on): Add c++defs.
15846         (Makefile.am): Update search.h rule.
15847
15848         math: Avoid #define replacements in C++ mode.
15849         * lib/math.in.h: Include c++defs.h.
15850         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15851         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15852         trunc, truncl): In C++, define a namespaced alias symbol.
15853         * modules/math (Depends-on): Add c++defs.
15854         (Makefile.am): Update math.h rule.
15855
15856         locale: Avoid #define replacements in C++ mode.
15857         * lib/locale.in.h: Include c++defs.h.
15858         (duplocale): In C++, define a namespaced alias symbol.
15859         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15860         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15861         * modules/locale (Depends-on): Add c++defs.
15862         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15863
15864         langinfo: Avoid #define replacements in C++ mode.
15865         * lib/langinfo.in.h: Include c++defs.h.
15866         (nl_langinfo): In C++, define a namespaced alias symbol.
15867         * modules/langinfo (Depends-on): Add c++defs.
15868         (Makefile.am): Update langinfo.h rule.
15869
15870         iconv-h: Avoid #define replacements in C++ mode.
15871         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15872         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15873         symbol.
15874         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15875         whenever iconv is present.
15876         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15877         (Makefile.am): Update iconv.h rule.
15878
15879         glob: Avoid #define replacements in C++ mode.
15880         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15881         (_gl_glob_errfunc_fn): New type.
15882         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15883         symbol.
15884         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15885         (Makefile.am): Update glob.h rule.
15886
15887         fcntl-h: Avoid #define replacements in C++ mode.
15888         * lib/fcntl.in.h: Include c++defs.h.
15889         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15890         * modules/fcntl-h (Depends-on): Add c++defs.
15891         (Makefile.am): Update fcntl.h rule.
15892
15893         dirent: Avoid #define replacements in C++ mode.
15894         * lib/dirent.in.h: Include c++defs.h.
15895         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15896         namespaced alias symbol.
15897         (dirfd): Update declaration.
15898         * modules/dirent (Depends-on): Add c++defs.
15899         (Makefile.am): Update dirent.h rule.
15900
15901         ctype: Make it usable in C++ code.
15902         * lib/ctype.in.h: Include c++defs.h.
15903         (isblank): Declare as extern "C".
15904         * modules/ctype (Depends-on): Add c++defs.
15905         (Makefile.am): Update ctype.h rule.
15906
15907         New module 'c++defs'.
15908         * modules/c++defs: New file.
15909         * build-aux/c++defs.h: New file.
15910         Reported by John W. Eaton <jwe@gnu.org>.
15911
15912 2010-03-07  Bruno Haible  <bruno@clisp.org>
15913
15914         logb: Provide missing declaration for Cygwin.
15915         * lib/math.in.h (logb): New declaration.
15916         * m4/logb.m4: New file.
15917         * modules/logb (Files): Add m4/logb.m4.
15918         (Depends-on): Add math.
15919         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15920         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15922         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15923         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15924
15925 2010-03-07  Bruno Haible  <bruno@clisp.org>
15926
15927         Fix test-cond link error.
15928         * tests/test-cond.c: Include <stdio.h>.
15929
15930 2010-03-07  Bruno Haible  <bruno@clisp.org>
15931
15932         Fix test-dirent-safer link error.
15933         * modules/dirent-safer-tests (Makefile.am): Define
15934         test_dirent_safer_LDADD.
15935
15936 2010-03-07  Bruno Haible  <bruno@clisp.org>
15937
15938         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15939         among default module list.
15940
15941 2010-03-07  Bruno Haible  <bruno@clisp.org>
15942
15943         Fix link error on platforms with GNU libiconv.
15944         * modules/unistr/u8-strcoll-tests (Makefile): Define
15945         test_u8_strcoll_LDADD.
15946         * modules/unistr/u16-strcoll-tests (Makefile): Define
15947         test_u16_strcoll_LDADD.
15948         * modules/unistr/u32-strcoll-tests (Makefile): Define
15949         test_u32_strcoll_LDADD.
15950
15951 2010-03-07  Bruno Haible  <bruno@clisp.org>
15952
15953         Use POSIX declarations for socket functions.
15954         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15955         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15956         rpl_sendto): Change declaration to match POSIX.
15957         * lib/connect.c (rpl_connect): Likewise.
15958         * lib/accept.c (rpl_accept): Likewise.
15959         * lib/bind.c (rpl_bind): Likewise.
15960         * lib/getpeername.c (rpl_getpeername): Likewise.
15961         * lib/getsockname.c (rpl_getsockname): Likewise.
15962         * lib/recv.c (rpl_recv): Likewise.
15963         * lib/send.c (rpl_send): Likewise.
15964         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15965         * lib/sendto.c (rpl_sendto): Likewise.
15966
15967 2010-03-06  Bruno Haible  <bruno@clisp.org>
15968
15969         Clarify access, euidaccess, faccessat.
15970         * doc/posix-functions/faccessat.texi: Mention security problem under
15971         "Other problems", not "Portability problems".
15972         * doc/posix-functions/access.texi: Likewise. Mention a related security
15973         problem.
15974         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15975         * lib/euidaccess.c: Add comments about platforms.
15976         * lib/unistd.in.h (access, euidaccess): Add warnings.
15977
15978 2010-03-07  Bruno Haible  <bruno@clisp.org>
15979
15980         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15981         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15982         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15983         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15984         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15985         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15986         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15987         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15988         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15990         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15991         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15992         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15993         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15994         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15995         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15996         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15997         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15998         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15999         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16000         Likewise.
16001         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16002         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16003         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16004         Likewise.
16005         * tests/test-spawn.c (main): Make it work when
16006         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16007
16008 2010-03-07  Bruno Haible  <bruno@clisp.org>
16009
16010         Fix incorrect Makefile.am generation in German locale.
16011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16012         Execute sed command with character range in C locale.
16013
16014 2010-03-06  Bruno Haible  <bruno@clisp.org>
16015
16016         Tests for module 'iconv-h'.
16017         * modules/iconv-h-tests: New file.
16018         * tests/test-iconv-h.c: New file.
16019
16020         New module 'iconv-h'.
16021         * modules/iconv-h: New file.
16022         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16023         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16024         (configure.ac): Remove gl_ICONV_H.
16025         (Makefile.am): Remove rule for iconv.h.
16026
16027 2010-03-06  Bruno Haible  <bruno@clisp.org>
16028
16029         More consistent naming of *.m4 files.
16030         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16031         * modules/wctype (Files): Update.
16032
16033         More consistent naming of *.m4 files.
16034         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16035         * modules/wchar (Files): Update.
16036
16037 2010-03-06  Jim Meyering  <meyering@redhat.com>
16038
16039         euidaccess: relax license to LGPLv2+
16040         * modules/euidaccess (License): Relax to LGPLv2+.
16041
16042 2010-03-06  Bruno Haible  <bruno@clisp.org>
16043
16044         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16045         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16046         (Makefile.am): Augment lib_SOURCES instead.
16047
16048 2010-03-04  Jim Meyering  <meyering@redhat.com>
16049
16050         utime: remove obsolete module
16051         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16052         unnecessary for years, and has been marked as obsolete for 10 months.
16053         * modules/utime: Remove file.
16054         * lib/utime.c: Remove file.
16055         * m4/utime.m4: Remove file.
16056         * m4/utimes-null.m4: Remove file.
16057         * doc/posix-functions/utime.texi (utime): Remove reference to
16058         the module.  Move the sole "fixed by gnulib" item into the
16059         "problems not fixed by Gnulib" list.
16060         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16061
16062 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16063
16064         * modules/exit (License): Relax license to LGPLv2+.
16065         (Status): Mark as obsolete.
16066         * NEWS: Mention deprecated 'exit' module.
16067         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16068         of now obsolete 'exit'.
16069
16070 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16071
16072         fts-lgpl: remove unused module
16073         * modules/fts-lgpl: Remove.
16074         * MODULES.html.sh (func_all_modules): Adjust.
16075         * check-module (find_included_lib_files): Adjust.
16076         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16077
16078 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16079
16080         copy-acl: enhance Solaris ACL error handling
16081         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16082         * lib/set-mode-acl.c (qset_acl): Likewise.
16083
16084 2010-03-02  Bruno Haible  <bruno@clisp.org>
16085
16086         spawn: Don't override the system defined values on FreeBSD 8.
16087         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16088         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16089         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16090         if HAVE_POSIX_SPAWN is 1.
16091         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16092
16093 2010-03-01  Bruno Haible  <bruno@clisp.org>
16094
16095         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16096         regarding Automake.
16097
16098 2010-02-25  Bruno Haible  <bruno@clisp.org>
16099
16100         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16101         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16102         setting, not afterwards.
16103         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16104
16105 2010-02-24  Eric Blake  <eblake@redhat.com>
16106
16107         bootstrap, git-version-gen: use timestamp
16108         * build-aux/git-version-gen (scriptversion): Force UTC.
16109         * build-aux/bootstrap (scriptversion): New variable.
16110
16111         bootstrap: allow older git
16112         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16113         older than 1.6.4.  Requested by the libvirt project.
16114
16115 2010-02-23  Eric Blake  <eblake@redhat.com>
16116
16117         warn-on-use: work with old autoconf
16118         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16119         AS_VAR semantics of autoconf 2.60.
16120         Reported by Bruno Haible.
16121
16122         bootstrap: improve some comments
16123         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16124         clarification comments.
16125
16126         gettimeofday: provide correct function
16127         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16128         when replacement is declared, otherwise provide gettimeofday.
16129         Reported by Michael Goffioul.
16130
16131 2010-02-23  Jim Meyering  <meyering@redhat.com>
16132
16133         lib-ignore: relax license to "unlimited", not LGPLv2+
16134         * modules/lib-ignore (License): Relax to "unlimited".
16135
16136 2010-02-23  Jim Meyering  <meyering@redhat.com>
16137
16138         lib-ignore: relax license to LGPLv2+
16139         * modules/lib-ignore (License): Relax to LGPLv2+.
16140
16141 2010-02-22  Eric Blake  <eblake@redhat.com>
16142
16143         lseek: avoid bash 3.2 broken pipe bug
16144         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16145         warning from bash 3.2.
16146         Reported by Ben Pfaff, with analysis from Bruno Haible.
16147
16148         bootstrap: support non-FSF copyright holder
16149         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16150         bootstrap.conf override of COPYRIGHT_HOLDER.
16151         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16152
16153         bootstrap: interoperate with gettext 0.14.1
16154         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16155
16156         bootstrap: allow for alternate submodule location
16157         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16158         hardcoding submodule location.
16159         (gnulib_mk): Allow direct use of Makefile.am.
16160
16161         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16162         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16163         rather than reconfiguring where the submodule points.
16164
16165         gettimeofday: restore support for platforms that lack function
16166         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16167         replacement if function is missing.
16168         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16169         * modules/sys_time (Makefile.am): Substitute it.
16170         * lib/sys_time.in.h (gettimeofday): Check it.
16171         Reported by Michael Goffioul.
16172
16173 2010-02-21  Bruno Haible  <bruno@clisp.org>
16174
16175         * lib/stdio.in.h (obstack_printf): Fix typo.
16176
16177 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16178
16179         vc-list-files: use bzr ls's -R option
16180         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16181         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16182
16183 2010-02-21  Jim Meyering  <meyering@redhat.com>
16184
16185         init.sh: fix EXEEXT shims to work also for names like test-prog
16186         * tests/init.sh: Re-exec a better shell, when needed.
16187         If the current shell lacks support for posix $(...), an init.sh-using
16188         test will now try to find a shell that supports that.  If EXEEXT is
16189         nonempty, we also require support for hyphen-in-alias-name and shell
16190         substitutions like ${var#glob}.  Failure to find such a shell results
16191         in a skipped test.
16192
16193 2010-02-21  Bruno Haible  <bruno@clisp.org>
16194
16195         Really work around around "broken pipe" error message from bash 3.2.
16196         * gnulib-tool (func_reset_sigpipe): Remove function.
16197         (echo): In bash 3.2, define to a function that uses printf.
16198         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16199
16200 2010-02-20  Bruno Haible  <bruno@clisp.org>
16201
16202         Restore support for automake 1.9.6 with autoconf 2.61.
16203         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16204         Reported by James Youngman <jay@gnu.org>.
16205
16206 2010-02-20  Bruno Haible  <bruno@clisp.org>
16207
16208         Improve *printf warning condition.
16209         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16210         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16211         and the function is overridden due to SIGPIPE emulation.
16212
16213 2010-02-20  Bruno Haible  <bruno@clisp.org>
16214
16215         * lib/stdio.in.h: Tweak comments.
16216
16217 2010-02-19  Bruno Haible  <bruno@clisp.org>
16218
16219         Make it easier to find modules. New gnulib-tool option '--find'.
16220         * gnulib-tool: New option --find.
16221         (func_usage): Document it.
16222         (func_sanitize_modulelist): New function, extracted from
16223         func_all_modules.
16224         (func_all_modules): Invoke it.
16225         * doc/gnulib-tool.texi (Which modules?): New node.
16226
16227 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16228
16229         * lib/sys_select.in.h: Provide select replacement even if
16230         sys/select.h exists on a system, for Interix.
16231
16232 2010-02-18  Jim Meyering  <meyering@redhat.com>
16233
16234         init.sh: don't use $(...) just yet
16235         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16236         to accommodate e.g., Solaris' /bin/sh.
16237
16238 2010-02-17  Bruno Haible  <bruno@clisp.org>
16239
16240         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16241         Reported by Ludovic Courtès <ludo@gnu.org>.
16242
16243 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16244
16245         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16246         linking with -lintl.
16247
16248 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16249
16250         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16251         if not provided by the system's netdb.h.  Reported by
16252         ludo@gnu.org (Ludovic Courtès).
16253
16254 2010-02-15  Jim Meyering  <meyering@redhat.com>
16255
16256         init.sh: improve portability and efficiency
16257         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16258         "dummy" in a for loop.
16259         Use '!', not '^' to select the complement of a character set used
16260         in a "case" statement.
16261         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16262         Suggestions from Eric Blake.
16263
16264         init.sh: automatically accommodate programs with the .exe suffix
16265         Automatically arrange for an invocation of "prog" to execute the
16266         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16267         may use the simpler "prog", yet still work when built on a system
16268         that requires specifying the added suffix.
16269         Do this by constructing a function named "prog" that invokes
16270         "prog.exe" for each .exe file in selected directories.
16271         * tests/init.sh (find_exe_basenames_): New function.
16272         (create_exe_shim_functions_): New function.
16273         (path_prepend_): Use it.
16274
16275         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16276         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16277         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16278
16279 2010-02-14  Jim Meyering  <meyering@redhat.com>
16280
16281         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16282         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16283         (sc_prohibit_hash_pjw_without_use): New rule.
16284
16285         maint.mk: allow the default upload destination dir to be overridden
16286         * top/maint.mk (upload_dest_dir_): Define with a default that
16287         preserves the status quo.
16288         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16289         Reported by Peter Simons.
16290
16291         maint.mk: prohibit inclusion of "hash.h" without_use
16292         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16293
16294 2010-02-10  Jim Meyering  <meyering@redhat.com>
16295
16296         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16297         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16298
16299 2010-02-09  Eric Blake  <ebb9@byu.net>
16300         and Bruno Haible  <bruno@clisp.org>
16301
16302         obstack-printf-posix: ensure declaration
16303         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16304         extracted from gl_FUNC_OBSTACK_PRINTF.
16305         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16306         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16307         Likewise.
16308         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16309         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16310         0.
16311
16312 2010-02-08  Bruno Haible  <bruno@clisp.org>
16313
16314         gnulib-tool: Fix typo in 2010-02-07 commit.
16315         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16316         Reported by Eric Blake.
16317
16318 2010-02-07  Bruno Haible  <bruno@clisp.org>
16319
16320         gnulib-tool: Fix up caching patches.
16321         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16322         option --no-cache. Use associative arrays when supported by the shell.
16323         (sed_comments): New variable.
16324         (modcache): Renamed from do_cache.
16325         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16326         abbreviate unnecessarily.
16327         (have_associative): New variable.
16328         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16329         way also for ksh and zsh.
16330         (func_init_sed_convert_to_cache_statements): New function, extracted
16331         from func_cache_lookup_module. Add support for associative arrays.
16332         Don't set the c_MODULE_cached variable here. Ignore all lines before
16333         the first field header. Remove only the final newline, not all trailing
16334         newlines. Support empty fields correctly. Limit the use of 'eval' to
16335         assignments.
16336         (func_get_description, func_get_status, func_get_notice,
16337         func_get_applicability, func_get_filelist, func_get_dependencies,
16338         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16339         func_get_automake_snippet, func_get_include_directive,
16340         func_get_link_directive, func_get_license, func_get_maintainer):
16341         Update documentation. List the unoptimized code first. Add support for
16342         associative arrays. Limit the use of 'eval' to assignments.
16343         (func_get_applicability): Undo stylistic pessimisations.
16344         (func_get_automake_snippet, func_get_include_directive): Reduce code
16345         duplication.
16346         (func_modules_transitive_closure, func_modules_add_dummy,
16347         func_modules_notice, func_modules_to_filelist, func_add_file,
16348         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16349         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16350         func_create_testdir, func_create_megatestdir): Update documentation.
16351
16352 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16353
16354         * gnulib-tool (func_cache_lookup_module): Store the module name
16355         belonging to the cache variable; error out if two different
16356         module names map to the same cache variable name.
16357
16358 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16359
16360         gnulib-tool: Make caching optional.
16361         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16362         Update matching short versions of --no-changelog.
16363         (func_usage): Update.
16364         (sed_extract_cache_prog): Renamed from ...
16365         (sed_extract_prog): ... this; revert to old extraction script.
16366         (func_get_description, func_get_status)
16367         (func_get_notice, func_get_applicability, func_get_filelist)
16368         (func_get_dependencies, func_get_autoconf_early_snippet)
16369         (func_get_autoconf_snippet, func_get_automake_snippet)
16370         (func_get_include_directive, func_get_link_directive)
16371         (func_get_license, func_get_maintainer): If $do_cache is false,
16372         use old, non-caching extraction scripts.
16373         Suggestion by Bruno Haible.
16374
16375 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16376
16377         gnulib-tool: cache module metainformation.
16378         * gnulib-tool (sed_extract_prog): Match newline before each
16379         header, and rewrite header to a shell variable suffix.
16380         (func_cache_var, func_cache_lookup_module): New functions,
16381         to turn a module name into a cache variable prefix, and to
16382         look up and cache module metainformation.
16383         (func_get_description, func_get_status)
16384         (func_get_notice, func_get_applicability, func_get_filelist)
16385         (func_get_dependencies, func_get_autoconf_early_snippet)
16386         (func_get_autoconf_snippet, func_get_automake_snippet)
16387         (func_get_include_directive, func_get_link_directive)
16388         (func_get_license, func_get_maintainer): Use
16389         func_cache_lookup_module.
16390
16391 2010-02-07  Bruno Haible  <bruno@clisp.org>
16392
16393         fnctl: Fix missing dependency.
16394         * modules/fcntl (Depends-on): Add getdtablesize.
16395         Reported by John W. Eaton <jwe@gnu.org>.
16396
16397 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16398
16399         Argp: fix recognition of short alias options.
16400
16401         * lib/argp-parse.c (convert_options): Fix improper use of
16402         `|' between character values.
16403         * tests/test-argp.c (group1_option): New alias option
16404         --read (-r).
16405         (group1_parser): Special handling for 'r'.
16406         (test15): New test case.
16407         (test_fun): Add test15.
16408         * tests/test-argp-2.sh: Update expected --help and --usage
16409         outputs.
16410
16411 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16412
16413         * tests/test-argp.c: Fix indentation.
16414
16415 2010-02-04  Eric Blake  <ebb9@byu.net>
16416
16417         gettimeofday: expose type of second argument
16418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16419         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16420         * tests/test-gettimeofday.c: Use it to silence warning.
16421         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16422         the issue.
16423
16424 2010-02-03  Jim Meyering  <meyering@redhat.com>
16425
16426         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16427         * lib/regcomp.c (TYPE_SIGNED): Define.
16428         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16429
16430         regcomp.c: avoid a new -Wshadow warning
16431         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16432
16433 2010-02-01  Jim Meyering  <meyering@redhat.com>
16434
16435         removing useless parentheses in cpp #define directives
16436         For motivation, see commit c0221df4, "define STREQ(a,b)
16437         consistently, removing useless parentheses"
16438         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16439         * lib/mountlist.c (MNT_IGNORE): Likewise.
16440         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16441
16442 2010-02-01  Eric Blake  <ebb9@byu.net>
16443
16444         sys_time: use link-warning
16445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16446         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16447         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16448         * modules/sys_time (Depends-on): Add warn-on-use.
16449         (Makefile.am): Always build replacement.
16450         (configure.ac): Update substitutions.
16451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16452         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16453         bother with SYS_TIME_H.
16454         * modules/gettimeofday (configure.ac): Declare indicator.
16455         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16456         in use.
16457
16458         closein-tests: silence compiler warning
16459         * tests/test-closein.c (main): Ignore fread result.
16460         * modules/closein-tests (Depends-on): Add ignore-value.
16461
16462         tests: silence warning about system return
16463         * tests/test-areadlink-with-size.c (main): Ignore system result.
16464         * tests/test-areadlink.c (main): Likewise.
16465         * tests/test-areadlinkat-with-size.c (main): Likewise.
16466         * tests/test-areadlinkat.c (main): Likewise.
16467         * tests/test-canonicalize-lgpl.c (main): Likewise.
16468         * tests/test-canonicalize.c (main): Likewise.
16469         * tests/test-chown.c (main): Likewise.
16470         * tests/test-fchownat.c (main): Likewise.
16471         * tests/test-fdutimensat.c (main): Likewise.
16472         * tests/test-fstatat.c (main): Likewise.
16473         * tests/test-futimens.c (main): Likewise.
16474         * tests/test-lchown.c (main): Likewise.
16475         * tests/test-link.c (main): Likewise.
16476         * tests/test-linkat.c (main): Likewise.
16477         * tests/test-lstat.c (main): Likewise.
16478         * tests/test-mkdir.c (main): Likewise.
16479         * tests/test-mkdirat.c (main): Likewise.
16480         * tests/test-mkfifo.c (main): Likewise.
16481         * tests/test-mkfifoat.c (main): Likewise.
16482         * tests/test-mknod.c (main): Likewise.
16483         * tests/test-readlink.c (main): Likewise.
16484         * tests/test-remove.c (main): Likewise.
16485         * tests/test-rename.c (main): Likewise.
16486         * tests/test-renameat.c (main): Likewise.
16487         * tests/test-rmdir.c (main): Likewise.
16488         * tests/test-symlink.c (main): Likewise.
16489         * tests/test-symlinkat.c (main): Likewise.
16490         * tests/test-unlink.c (main): Likewise.
16491         * tests/test-unlinkat.c (main): Likewise.
16492         * tests/test-utimens.c (main): Likewise.
16493         * tests/test-utimensat.c (main): Likewise.
16494         * modules/areadlink-tests (Depends-on): Add ignore-value.
16495         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16496         * modules/areadlinkat-tests (Depends-on): Likewise.
16497         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16498         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16499         * modules/canonicalize-tests (Depends-on): Likewise.
16500         * modules/chown-tests (Depends-on): Likewise.
16501         * modules/fdutimensat-tests (Depends-on): Likewise.
16502         * modules/futimens-tests (Depends-on): Likewise.
16503         * modules/lchown-tests (Depends-on): Likewise.
16504         * modules/link-tests (Depends-on): Likewise.
16505         * modules/linkat-tests (Depends-on): Likewise.
16506         * modules/lstat-tests (Depends-on): Likewise.
16507         * modules/mkdir-tests (Depends-on): Likewise.
16508         * modules/mkfifo-tests (Depends-on): Likewise.
16509         * modules/mkfifoat-tests (Depends-on): Likewise.
16510         * modules/mknod-tests (Depends-on): Likewise.
16511         * modules/openat-tests (Depends-on): Likewise.
16512         * modules/readlink-tests (Depends-on): Likewise.
16513         * modules/remove-tests (Depends-on): Likewise.
16514         * modules/rename-tests (Depends-on): Likewise.
16515         * modules/renameat-tests (Depends-on): Likewise.
16516         * modules/rmdir-tests (Depends-on): Likewise.
16517         * modules/symlink-tests (Depends-on): Likewise.
16518         * modules/symlinkat-tests (Depends-on): Likewise.
16519         * modules/unlink-tests (Depends-on): Likewise.
16520         * modules/utimens-tests (Depends-on): Likewise.
16521         * modules/utimensat-tests (Depends-on): Likewise.
16522
16523 2010-01-31  Bruno Haible  <bruno@clisp.org>
16524
16525         Perform the same test for many <math.h> functions.
16526         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16527         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16528         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16529         of gl_MATHFUNC.
16530         * modules/acos (configure.ac): Likewise.
16531         * modules/asin (configure.ac): Likewise.
16532         * modules/atan (configure.ac): Likewise.
16533         * modules/atan2 (configure.ac): Likewise.
16534         * modules/cbrt (configure.ac): Likewise.
16535         * modules/copysign (configure.ac): Likewise.
16536         * modules/cos (configure.ac): Likewise.
16537         * modules/cosh (configure.ac): Likewise.
16538         * modules/erf (configure.ac): Likewise.
16539         * modules/erfc (configure.ac): Likewise.
16540         * modules/exp (configure.ac): Likewise.
16541         * modules/fmod (configure.ac): Likewise.
16542         * modules/hypot (configure.ac): Likewise.
16543         * modules/j0 (configure.ac): Likewise.
16544         * modules/j1 (configure.ac): Likewise.
16545         * modules/jn (configure.ac): Likewise.
16546         * modules/lgamma (configure.ac): Likewise.
16547         * modules/log (configure.ac): Likewise.
16548         * modules/log10 (configure.ac): Likewise.
16549         * modules/log1p (configure.ac): Likewise.
16550         * modules/pow (configure.ac): Likewise.
16551         * modules/remainder (configure.ac): Likewise.
16552         * modules/sin (configure.ac): Likewise.
16553         * modules/sinh (configure.ac): Likewise.
16554         * modules/tan (configure.ac): Likewise.
16555         * modules/tanh (configure.ac): Likewise.
16556         * modules/y0 (configure.ac): Likewise.
16557         * modules/y1 (configure.ac): Likewise.
16558         * modules/yn (configure.ac): Likewise.
16559         Suggested by Paolo Bonzini.
16560
16561 2010-01-31  Bruno Haible  <bruno@clisp.org>
16562
16563         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16564
16565 2010-01-31  Bruno Haible  <bruno@clisp.org>
16566
16567         Work around getdelim() bug on FreeBSD 8.0.
16568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16569         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16570         not work.
16571         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16572         is 1.
16573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16574         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16575         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16576         a non-zero size.
16577         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16578
16579 2010-01-31  Bruno Haible  <bruno@clisp.org>
16580
16581         Work around getline() bug on FreeBSD 8.0.
16582         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16583         and a non-zero size.
16584         * tests/test-getline.c (main): Likewise.
16585         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16586         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16587
16588 2010-01-28  Eric Blake  <ebb9@byu.net>
16589
16590         regex: fix build failure
16591         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16592         platforms.
16593
16594 2010-01-28  Jim Meyering  <meyering@redhat.com>
16595
16596         regex: do not ignore memory allocation failure
16597         * lib/regex_internal.c (create_cd_newstate): Detect
16598         re_node_set_init_copy failure.   Extracted from glibc commit
16599         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16600
16601         regex: sync more white-space changes from libc
16602         * lib/regex_internal.c: White-space only changes.
16603         * lib/regexec.c: Likewise.
16604
16605         regex: add many uses of __attribute_warn_unused_result__
16606         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16607         * lib/regexec.c: Likewise.
16608         Extracted from a messy glibc commit.
16609
16610         regcomp.c: spelling and merge-artifact from glibc
16611         * lib/regcomp.c: Merge remainder of glibc's
16612         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16613
16614         regcomp.c: sync white-space changes from glibc
16615         * lib/regcomp.c: Merge to accommodate white space
16616         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16617
16618         regcomp.c: do not ignore internal return values
16619         * lib/regcomp.c: Do not ignore internal return values.
16620         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16621         but without its white-space changes and spelling fixes.
16622
16623         regex_internal.h: define __attribute_warn_unused_result__
16624         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16625
16626         maint: add a syntax-check rule to check for vulnerable Makefile.in
16627         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16628
16629 2010-01-27  Jim Meyering  <meyering@redhat.com>
16630
16631         ncftpput-ftp: clean up spaces
16632         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16633         Remove trailing blanks.
16634
16635 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16636
16637         * build-aux/git-version-gen: Fix copyright statement.
16638         * build-aux/gnupload: Likewise.
16639         * tests/test-arcfour.c: Likewise.
16640         * tests/test-arctwo.c: Likewise.
16641         * tests/test-count-one-bits.c: Likewise.
16642         * tests/test-crc.c: Likewise.
16643         * tests/test-des.c: Likewise.
16644         * tests/test-gc-arcfour.c: Likewise.
16645         * tests/test-gc-arctwo.c: Likewise.
16646         * tests/test-gc-des.c: Likewise.
16647         * tests/test-gc-hmac-md5.c: Likewise.
16648         * tests/test-gc-hmac-sha1.c: Likewise.
16649         * tests/test-gc-md2.c: Likewise.
16650         * tests/test-gc-md4.c: Likewise.
16651         * tests/test-gc-md5.c: Likewise.
16652         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16653         * tests/test-gc-rijndael.c: Likewise.
16654         * tests/test-gc-sha1.c: Likewise.
16655         * tests/test-gc.c: Likewise.
16656         * tests/test-gethostname.c: Likewise.
16657         * tests/test-gettimeofday.c: Likewise.
16658         * tests/test-hash.c: Likewise.
16659         * tests/test-hmac-md5.c: Likewise.
16660         * tests/test-hmac-sha1.c: Likewise.
16661         * tests/test-md2.c: Likewise.
16662         * tests/test-md4.c: Likewise.
16663         * tests/test-md5.c: Likewise.
16664         * tests/test-memchr.c: Likewise.
16665         * tests/test-memchr2.c: Likewise.
16666         * tests/test-memcmp.c: Likewise.
16667         * tests/test-memmem.c: Likewise.
16668         * tests/test-memrchr.c: Likewise.
16669         * tests/test-rawmemchr.c: Likewise.
16670         * tests/test-read-file.c: Likewise.
16671         * tests/test-rijndael.c: Likewise.
16672         * tests/test-sockets.c: Likewise.
16673         * tests/test-strchrnul.c: Likewise.
16674         * tests/test-strstr.c: Likewise.
16675         * tests/test-strtod.c: Likewise.
16676         * build-aux/ncftpput-ftp: Likewise.
16677
16678 2010-01-26  Eric Blake  <ebb9@byu.net>
16679
16680         ignore-value: update recommended header name
16681         * modules/ignore-value (Include): Only use <> for headers that
16682         exist in glibc.
16683
16684 2010-01-26  Jim Meyering  <meyering@redhat.com>
16685
16686         test-userspec.c: avoid compiler warnings
16687         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16688         and "initialization discards qualifiers..." warnings.
16689         Put the first "uid" in its own scope, and make char* members "const".
16690
16691 2010-01-25  Bruno Haible  <bruno@clisp.org>
16692
16693         gnulib-tool: Make warning diagnostics consistent.
16694         * gnulib-tool (func_warning): New function.
16695         Use it everywhere where gnulib-tool produces output to stderr and it is
16696         not a fatal error.
16697
16698 2010-01-25  Bruno Haible  <bruno@clisp.org>
16699
16700         Fix test dependencies.
16701         * modules/xstrtol-tests (Depends-on): Add inttypes.
16702         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16703
16704 2010-01-25 Pádraig Brady <P@draigBrady.com>
16705
16706         syntax-check: detect incorrect boolean macro values in config.h
16707         * modules/maintainer-makefile (configure.ac): Parameterize the location
16708         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16709         The logic is from Eric Blake and the location indicated by Jim Meyering.
16710         Note the more natural CONFIG_HEADER name is prohibited by automake
16711         for backwards compatibility reasons.
16712         * top/maint.mk (sc_Wundef_boolean): New rule.
16713
16714 2010-01-25  Jim Meyering  <meyering@redhat.com>
16715
16716         bootstrap: detect MacOS 10.6's shasum, too
16717         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16718         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16719
16720 2010-01-23  Jim Meyering  <meyering@redhat.com>
16721
16722         xstrtoll: new module
16723         * modules/xstrtoll: New file.
16724         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16725         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16726         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16727         ./configure fails if you use this module and lack "long long".
16728         * modules/xstrtoll-tests: New module.
16729         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16730         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16731         new init.sh-based test framework.
16732
16733 2010-01-24  Bruno Haible  <bruno@clisp.org>
16734
16735         Tests for module 'yn'.
16736         * modules/yn-tests: New file.
16737         * tests/test-yn.c: New file.
16738
16739         Tests for module 'y1'.
16740         * modules/y1-tests: New file.
16741         * tests/test-y1.c: New file.
16742
16743         Tests for module 'y0'.
16744         * modules/y0-tests: New file.
16745         * tests/test-y0.c: New file.
16746
16747         Tests for module 'tanh'.
16748         * modules/tanh-tests: New file.
16749         * tests/test-tanh.c: New file.
16750
16751         Tests for module 'tan'.
16752         * modules/tan-tests: New file.
16753         * tests/test-tan.c: New file.
16754
16755         Tests for module 'sqrt'.
16756         * modules/sqrt-tests: New file.
16757         * tests/test-sqrt.c: New file.
16758
16759         Tests for module 'sinh'.
16760         * modules/sinh-tests: New file.
16761         * tests/test-sinh.c: New file.
16762
16763         Tests for module 'sin'.
16764         * modules/sin-tests: New file.
16765         * tests/test-sin.c: New file.
16766
16767         Tests for module 'rint'.
16768         * modules/rint-tests: New file.
16769         * tests/test-rint.c: New file.
16770
16771         Tests for module 'remainder'.
16772         * modules/remainder-tests: New file.
16773         * tests/test-remainder.c: New file.
16774
16775         Tests for module 'pow'.
16776         * modules/pow-tests: New file.
16777         * tests/test-pow.c: New file.
16778
16779         Tests for module 'nextafter'.
16780         * modules/nextafter-tests: New file.
16781         * tests/test-nextafter.c: New file.
16782
16783         Tests for module 'modf'.
16784         * modules/modf-tests: New file.
16785         * tests/test-modf.c: New file.
16786
16787         Tests for module 'logb'.
16788         * modules/logb-tests: New file.
16789         * tests/test-logb.c: New file.
16790
16791         Tests for module 'log1p'.
16792         * modules/log1p-tests: New file.
16793         * tests/test-log1p.c: New file.
16794
16795         Tests for module 'log10'.
16796         * modules/log10-tests: New file.
16797         * tests/test-log10.c: New file.
16798
16799         Tests for module 'log'.
16800         * modules/log-tests: New file.
16801         * tests/test-log.c: New file.
16802
16803         Tests for module 'lgamma'.
16804         * modules/lgamma-tests: New file.
16805         * tests/test-lgamma.c: New file.
16806
16807         Tests for module 'ldexp'.
16808         * modules/ldexp-tests: New file.
16809         * tests/test-ldexp.c: New file.
16810
16811         Tests for module 'jn'.
16812         * modules/jn-tests: New file.
16813         * tests/test-jn.c: New file.
16814
16815         Tests for module 'j1'.
16816         * modules/j1-tests: New file.
16817         * tests/test-j1.c: New file.
16818
16819         Tests for module 'j0'.
16820         * modules/j0-tests: New file.
16821         * tests/test-j0.c: New file.
16822
16823         Tests for module 'hypot'.
16824         * modules/hypot-tests: New file.
16825         * tests/test-hypot.c: New file.
16826
16827         Tests for module 'fmod'.
16828         * modules/fmod-tests: New file.
16829         * tests/test-fmod.c: New file.
16830
16831         Tests for module 'fabs'.
16832         * modules/fabs-tests: New file.
16833         * tests/test-fabs.c: New file.
16834
16835         Tests for module 'exp'.
16836         * modules/exp-tests: New file.
16837         * tests/test-exp.c: New file.
16838
16839         Tests for module 'erfc'.
16840         * modules/erfc-tests: New file.
16841         * tests/test-erfc.c: New file.
16842
16843         Tests for module 'erf'.
16844         * modules/erf-tests: New file.
16845         * tests/test-erf.c: New file.
16846
16847         Tests for module 'cosh'.
16848         * modules/cosh-tests: New file.
16849         * tests/test-cosh.c: New file.
16850
16851         Tests for module 'cos'.
16852         * modules/cos-tests: New file.
16853         * tests/test-cos.c: New file.
16854
16855         Tests for module 'copysign'.
16856         * modules/copysign-tests: New file.
16857         * tests/test-copysign.c: New file.
16858
16859         Tests for module 'cbrt'.
16860         * modules/cbrt-tests: New file.
16861         * tests/test-cbrt.c: New file.
16862
16863         Tests for module 'atan2'.
16864         * modules/atan2-tests: New file.
16865         * tests/test-atan2.c: New file.
16866
16867         Tests for module 'atan'.
16868         * modules/atan-tests: New file.
16869         * tests/test-atan.c: New file.
16870
16871         Tests for module 'asin'.
16872         * modules/asin-tests: New file.
16873         * tests/test-asin.c: New file.
16874
16875         Tests for module 'acos'.
16876         * modules/acos-tests: New file.
16877         * tests/test-acos.c: New file.
16878
16879 2010-01-24  Bruno Haible  <bruno@clisp.org>
16880
16881         Fix tests for common <math.h> functions.
16882         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16883         code snippet that references the function pointer, rather than merely
16884         calling the function. Substitute the FUNC_LIBM variable.
16885         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16886         * modules/acos (configure.ac): Likewise.
16887         * modules/asin (configure.ac): Likewise.
16888         * modules/atan (configure.ac): Likewise.
16889         * modules/atan2 (configure.ac): Likewise.
16890         * modules/cbrt (configure.ac): Likewise.
16891         * modules/copysign (configure.ac): Likewise.
16892         * modules/cos (configure.ac): Likewise.
16893         * modules/cosh (configure.ac): Likewise.
16894         * modules/erf (configure.ac): Likewise.
16895         * modules/erfc (configure.ac): Likewise.
16896         * modules/exp (configure.ac): Likewise.
16897         * modules/fabs (configure.ac): Likewise.
16898         * modules/fmod (configure.ac): Likewise.
16899         * modules/hypot (configure.ac): Likewise.
16900         * modules/j0 (configure.ac): Likewise.
16901         * modules/j1 (configure.ac): Likewise.
16902         * modules/jn (configure.ac): Likewise.
16903         * modules/ldexp (configure.ac): Likewise.
16904         * modules/lgamma (configure.ac): Likewise.
16905         * modules/log (configure.ac): Likewise.
16906         * modules/log10 (configure.ac): Likewise.
16907         * modules/log1p (configure.ac): Likewise.
16908         * modules/logb (configure.ac): Likewise.
16909         * modules/modf (configure.ac): Likewise.
16910         * modules/nextafter (configure.ac): Likewise.
16911         * modules/pow (configure.ac): Likewise.
16912         * modules/remainder (configure.ac): Likewise.
16913         * modules/rint (configure.ac): Likewise.
16914         * modules/sin (configure.ac): Likewise.
16915         * modules/sinh (configure.ac): Likewise.
16916         * modules/tan (configure.ac): Likewise.
16917         * modules/tanh (configure.ac): Likewise.
16918         * modules/y0 (configure.ac): Likewise.
16919         * modules/y1 (configure.ac): Likewise.
16920         * modules/yn (configure.ac): Likewise.
16921
16922 2010-01-24  Bruno Haible  <bruno@clisp.org>
16923
16924         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16925         * tests/test-acosl.c (x): New variable.
16926         (main): Store argument in x and fetch it from x.
16927         * tests/test-asinl.c (x): New variable.
16928         (main): Store argument in x and fetch it from x.
16929         * tests/test-atanl.c (x): New variable.
16930         (main): Store argument in x and fetch it from x.
16931         * tests/test-cosl.c (x): New variable.
16932         (main): Store argument in x and fetch it from x.
16933         * tests/test-expl.c (x): New variable.
16934         (main): Store argument in x and fetch it from x.
16935         * tests/test-logl.c (x): New variable.
16936         (main): Store argument in x and fetch it from x.
16937         * tests/test-sinl.c (x): New variable.
16938         (main): Store argument in x and fetch it from x.
16939         * tests/test-sqrtl.c (x): New variable.
16940         (main): Store argument in x and fetch it from x.
16941         * tests/test-tanl.c (x): New variable.
16942         (main): Store argument in x and fetch it from x.
16943
16944 2010-01-24  Bruno Haible  <bruno@clisp.org>
16945
16946         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16947         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16948         assignments to the initial TESTS_ENVIRONMENT.
16949         * doc/gnulib.texi (Unit test modules): Document it.
16950         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16951         TESTS_ENVIRONMENT.
16952         * modules/btowc-tests (Makefile.am): Likewise.
16953         * modules/c-stack-tests (Makefile.am): Likewise.
16954         * modules/c-strcase-tests (Makefile.am): Likewise.
16955         * modules/copy-file-tests (Makefile.am): Likewise.
16956         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16957         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16958         * modules/mbrtowc-tests (Makefile.am): Likewise.
16959         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16960         * modules/mbscasestr-tests (Makefile.am): Likewise.
16961         * modules/mbschr-tests (Makefile.am): Likewise.
16962         * modules/mbscspn-tests (Makefile.am): Likewise.
16963         * modules/mbsinit-tests (Makefile.am): Likewise.
16964         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16965         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16966         * modules/mbspbrk-tests (Makefile.am): Likewise.
16967         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16968         * modules/mbsrchr-tests (Makefile.am): Likewise.
16969         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16970         * modules/mbsspn-tests (Makefile.am): Likewise.
16971         * modules/mbsstr-tests (Makefile.am): Likewise.
16972         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16973         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16974         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16975         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16976         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16977         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16978         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16979         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16980         * modules/wcrtomb-tests (Makefile.am): Likewise.
16981         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16982         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16983         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16984         assignments from TESTS_ENVIRONMENT.
16985         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16986         augmentation.
16987         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16988         * modules/atexit-tests (Makefile.am): Likewise.
16989         * modules/binary-io-tests (Makefile.am): Likewise.
16990         * modules/closein-tests (Makefile.am): Likewise.
16991         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16992         * modules/exclude-tests (Makefile.am): Likewise.
16993         * modules/fflush-tests (Makefile.am): Likewise.
16994         * modules/fpending-tests (Makefile.am): Likewise.
16995         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16996         * modules/freadahead-tests (Makefile.am): Likewise.
16997         * modules/freadptr-tests (Makefile.am): Likewise.
16998         * modules/freadseek-tests (Makefile.am): Likewise.
16999         * modules/fseek-tests (Makefile.am): Likewise.
17000         * modules/fseeko-tests (Makefile.am): Likewise.
17001         * modules/ftell-tests (Makefile.am): Likewise.
17002         * modules/ftello-tests (Makefile.am): Likewise.
17003         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17004         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17005         * modules/lseek-tests (Makefile.am): Likewise.
17006         * modules/parse-duration-tests (Makefile.am): Likewise.
17007         * modules/perror-tests (Makefile.am): Likewise.
17008         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17009         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17010         * modules/pipe-tests (Makefile.am): Likewise.
17011         * modules/pread-tests (Makefile.am): Likewise.
17012         * modules/printf-posix-tests (Makefile.am): Likewise.
17013         * modules/select-tests (Makefile.am): Likewise.
17014         * modules/sigpipe-tests (Makefile.am): Likewise.
17015         * modules/tsearch-tests (Makefile.am): Likewise.
17016         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17017         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17018         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17019         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17020         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17021         * modules/version-etc-tests (Makefile.am): Likewise.
17022         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17023         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17024         * modules/xalloc-die-tests (Makefile.am): Likewise.
17025         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17026         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17027         * modules/xstrtol-tests (Makefile.am): Likewise.
17028         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17029         * modules/yesno-tests (Makefile.am): Likewise.
17030         Suggested by Jim Meyering.
17031
17032 2010-01-24  Bruno Haible  <bruno@clisp.org>
17033
17034         More documentation.
17035         * doc/gnulib.texi (Writing modules): New chapter.
17036         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17037         the new chapter.
17038
17039 2010-01-24  Jim Meyering  <meyering@redhat.com>
17040
17041         maint.mk: do not prepend "./" after filtering
17042         * top/maint.mk (_prepend_srcdir_prefix): New variable
17043         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17044         "./" when $(srcdir) is ".".
17045
17046         define STREQ(a,b) consistently, removing useless parentheses
17047         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17048         since the only risk is that "a" or "b" contains an unparenthesized
17049         comma, but if either did that, STREQ would have 3 or more arguments.
17050         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17051         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17052         * lib/hash-triple.c (STREQ): Likewise.
17053         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17054         * lib/getugroups.c (STREQ): Likewise.
17055
17056 2010-01-23  Jim Meyering  <meyering@redhat.com>
17057
17058         maint.mk: fix syntax-check in a non-srcdir build directory
17059         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17060         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17061
17062 2010-01-22  Jim Meyering  <meyering@redhat.com>
17063
17064         userspec: add unit tests
17065         * tests/test-userspec.c: New file.
17066         * modules/userspec-tests: Likewise.
17067
17068 2010-01-21  Jim Meyering  <meyering@redhat.com>
17069
17070         maint.mk: handle source file names containing "." robustly
17071         * top/maint.mk (_dot_escaped_srcdir): Define.
17072         (VC_LIST): Use it in LHS of sed substitution.
17073
17074 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17075
17076         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17077         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17078         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17079         from a non-srcdir build.
17080
17081 2010-01-20  Eric Blake  <ebb9@byu.net>
17082
17083         warn-on-use: use instead of link-warning
17084         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17085         * modules/unistd (Depends-on, Makefile.am): Likewise.
17086         * modules/arpa_inet (Depends-on): Replace link-warning with
17087         warn-on-use.
17088         (Makefile.am): Update rules accordingly.
17089         * modules/ctype (Depends-on, Makefile.am): Likewise.
17090         * modules/dirent (Depends-on, Makefile.am): Likewise.
17091         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17092         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17093         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17094         * modules/locale (Depends-on, Makefile.am): Likewise.
17095         * modules/math (Depends-on, Makefile.am): Likewise.
17096         * modules/search (Depends-on, Makefile.am): Likewise.
17097         * modules/signal (Depends-on, Makefile.am): Likewise.
17098         * modules/spawn (Depends-on, Makefile.am): Likewise.
17099         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17100         * modules/string (Depends-on, Makefile.am): Likewise.
17101         * modules/strings (Depends-on, Makefile.am): Likewise.
17102         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17103         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17104         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17105         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17106         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17107         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17108         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17109         * modules/wchar (Depends-on, Makefile.am): Likewise.
17110         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17111         should be poisoned.
17112         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17113         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17114         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17115         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17116         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17117         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17118         * m4/math_h.m4 (gl_MATH_H): Likewise.
17119         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17120         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17121         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17122         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17123         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17124         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17125         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17126         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17133         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17134         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17135         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17136         GL_LINK_WARNING.
17137         * lib/ctype.in.h: Likewise.
17138         * lib/dirent.in.h: Likewise.
17139         * lib/fcntl.in.h: Likewise.
17140         * lib/inttypes.in.h: Likewise.
17141         * lib/langinfo.in.h: Likewise.
17142         * lib/locale.in.h: Likewise.
17143         * lib/math.in.h: Likewise.
17144         * lib/search.in.h: Likewise.
17145         * lib/signal.in.h: Likewise.
17146         * lib/spawn.in.h: Likewise.
17147         * lib/stdio.in.h: Likewise.
17148         * lib/stdlib.in.h: Likewise.
17149         * lib/string.in.h: Likewise.
17150         * lib/strings.in.h: Likewise.
17151         * lib/sys_file.in.h: Likewise.
17152         * lib/sys_ioctl.in.h: Likewise.
17153         * lib/sys_select.in.h: Likewise.
17154         * lib/sys_socket.in.h: Likewise.
17155         * lib/sys_stat.in.h: Likewise.
17156         * lib/sys_times.in.h: Likewise.
17157         * lib/sys_utsname.in.h: Likewise.
17158         * lib/unistd.in.h: Likewise.
17159         * lib/wchar.in.h: Likewise.
17160
17161 2010-01-20  Bruno Haible  <bruno@clisp.org>
17162
17163         Avoid duplicate -lm.
17164         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17165         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17166         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17167         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17168         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17169         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17170         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17171         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17172         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17173         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17174         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17175         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17176         Reported by Paolo Bonzini.
17177
17178 2010-01-19  Bruno Haible  <bruno@clisp.org>
17179
17180         langinfo, nl_langinfo: Relicense under LGPLv2+.
17181         * modules/langinfo (License): Change to LGPLv2+.
17182         * modules/nl_langinfo (License): Likewise.
17183         Patch by David Lutterkort <lutter@redhat.com>.
17184
17185 2010-01-19  Bruno Haible  <bruno@clisp.org>
17186
17187         Avoid compilation error with cc on OSF/1 5.1.
17188         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17189         statement, not before.
17190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17191
17192 2010-01-18  Bruno Haible  <bruno@clisp.org>
17193
17194         Avoid a link error due to the __printf__ symbol.
17195         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17196         and 2.6.x.
17197         (__format__, __printf__): Remove definitions.
17198         * lib/argp-fmtstream.h: Likewise.
17199         * lib/argp.h: Likewise.
17200         * lib/error.h: Likewise.
17201         * lib/vasnprintf.h: Likewise.
17202         * lib/xprintf.h: Likewise.
17203         * lib/xvasprintf.h: Likewise.
17204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17205
17206 2010-01-18  Bruno Haible  <bruno@clisp.org>
17207
17208         Tests for module 'tanl'.
17209         * modules/tanl-tests: New file.
17210         * tests/test-tanl.c: New file.
17211
17212         Tests for module 'sqrtl'.
17213         * modules/sqrtl-tests: New file.
17214         * tests/test-sqrtl.c: New file.
17215
17216         Tests for module 'sinl'.
17217         * modules/sinl-tests: New file.
17218         * tests/test-sinl.c: New file.
17219
17220         Tests for module 'logl'.
17221         * modules/logl-tests: New file.
17222         * tests/test-logl.c: New file.
17223
17224         Tests for module 'expl'.
17225         * modules/expl-tests: New file.
17226         * tests/test-expl.c: New file.
17227
17228         Tests for module 'cosl'.
17229         * modules/cosl-tests: New file.
17230         * tests/test-cosl.c: New file.
17231
17232         Tests for module 'atanl'.
17233         * modules/atanl-tests: New file.
17234         * tests/test-atanl.c: New file.
17235
17236         Tests for module 'asinl'.
17237         * modules/asinl-tests: New file.
17238         * tests/test-asinl.c: New file.
17239
17240         Tests for module 'acosl'.
17241         * modules/acosl-tests: New file.
17242         * tests/test-acosl.c: New file.
17243
17244         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17245         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17246         tanl): Use the standard gnulib idiom.
17247         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17248         * lib/sinl.c: Likewise.
17249         * lib/tanl.c: Don't include trigl.c.
17250         (kernel_tanl): Make static.
17251         * lib/sincosl.c: Include trigl.h first.
17252         * lib/trigl.c: Likewise.
17253         * m4/acosl.m4: New file.
17254         * m4/asinl.m4: New file.
17255         * m4/atanl.m4: New file.
17256         * m4/cosl.m4: New file.
17257         * m4/expl.m4: New file.
17258         * m4/logl.m4: New file.
17259         * m4/sinl.m4: New file.
17260         * m4/sqrtl.m4: New file.
17261         * m4/tanl.m4: New file.
17262         * m4/mathl.m4: Remove file.
17263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17264         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17265         Don't initialize GNULIB_MATHL.
17266         * modules/acosl: New file.
17267         * modules/asinl: New file.
17268         * modules/atanl: New file.
17269         * modules/cosl: New file.
17270         * modules/expl: New file.
17271         * modules/logl: New file.
17272         * modules/sinl: New file.
17273         * modules/sqrtl: New file.
17274         * modules/tanl: New file.
17275         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17276         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17277         substitute GNULIB_MATHL.
17278         * modules/mathl: Rewritten.
17279         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17280         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17281         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17282         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17283         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17284         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17285         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17286         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17287         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17288
17289 2010-01-18  Bruno Haible  <bruno@clisp.org>
17290
17291         sqrt: Make gl_FUNC_SQRT requirable.
17292         * m4/sqrt.m4: New file.
17293         * modules/sqrt (Files): Add it.
17294         (configure.ac): Invoke gl_FUNC_SQRT.
17295
17296 2010-01-18  Bruno Haible  <bruno@clisp.org>
17297
17298         New modules for common <math.h> functions.
17299         * m4/mathfunc.m4: New file.
17300         * modules/acos: New file.
17301         * modules/asin: New file.
17302         * modules/atan: New file.
17303         * modules/atan2: New file.
17304         * modules/cbrt: New file.
17305         * modules/copysign: New file.
17306         * modules/cos: New file.
17307         * modules/cosh: New file.
17308         * modules/erf: New file.
17309         * modules/erfc: New file.
17310         * modules/exp: New file.
17311         * modules/fabs: New file.
17312         * modules/fmod: New file.
17313         * modules/hypot: New file.
17314         * modules/j0: New file.
17315         * modules/j1: New file.
17316         * modules/jn: New file.
17317         * modules/ldexp: New file.
17318         * modules/lgamma: New file.
17319         * modules/log: New file.
17320         * modules/log10: New file.
17321         * modules/log1p: New file.
17322         * modules/logb: New file.
17323         * modules/modf: New file.
17324         * modules/nextafter: New file.
17325         * modules/pow: New file.
17326         * modules/remainder: New file.
17327         * modules/rint: New file.
17328         * modules/sin: New file.
17329         * modules/sinh: New file.
17330         * modules/sqrt: New file.
17331         * modules/tan: New file.
17332         * modules/tanh: New file.
17333         * modules/y0: New file.
17334         * modules/y1: New file.
17335         * modules/yn: New file.
17336         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17337         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17338         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17339         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17340         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17341         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17342         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17343         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17344         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17345         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17346         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17347         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17348         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17349         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17350         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17351         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17352         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17353         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17354         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17355         * doc/posix-functions/log.texi: Mention the 'log' module.
17356         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17357         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17358         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17359         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17360         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17361         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17362         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17363         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17364         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17365         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17366         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17367         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17368         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17369         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17370         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17371         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17372
17373 2010-01-18  Jim Meyering  <meyering@redhat.com>
17374
17375         ignore-value: relax license to LGPLv2+
17376         * modules/ignore-value (License): Relax to LGPLv2+.
17377
17378         getdate: don't leak when TZ contains two or more '"'s
17379         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17380         double quote in TZ after the first one.
17381
17382         readtokens: do not leak internal token_lengths buffer
17383         * lib/readtokens.c (readtokens): Free the local, lengths,
17384         when the supplied "token_lengths" parameter is NULL.
17385
17386 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17387
17388         Fix a couple of missing LIBTHREAD link failures on AIX.
17389         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17390         $(LIBTHREAD).
17391         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17392
17393         Link test-poll against INET_PTON_LIB.
17394         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17395         for inet_pton on Solaris 10.
17396
17397 2010-01-17  Bruno Haible  <bruno@clisp.org>
17398
17399         unistdio/*-sprintf: Fix typo in module description.
17400         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17401         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17402         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17403         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17404         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17405         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17406         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17408
17409 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17410
17411         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17412         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17413         variables in shell case patterns, for AIX and HP-UX ksh.
17414
17415         Split large sed scripts, for HP-UX sed.
17416         * modules/stdio: Split sed scripts around 50 sed commands,
17417         to avoid HP-UX limit of 99 commands, in the near future.
17418         * modules/string: Likewise.
17419         * modules/unistd: Likewise.
17420
17421         gnulib-tool: avoid writing in the current directory.
17422         * gnulib-tool (func_emit_lib_Makefile_am)
17423         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17424         not in the current directory, so concurrent gnulib-tool
17425         instances do not interfere.
17426
17427 2010-01-16  Jim Meyering  <meyering@redhat.com>
17428
17429         doc: update users.txt
17430         * users.txt: Add grep.
17431         (diffutils, gzip): Update URLs.
17432
17433 2010-01-12  Bruno Haible  <bruno@clisp.org>
17434
17435         posix_spawn: Avoid test failure on Cygwin.
17436         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17437         characters.
17438         Reported by Simon Josefsson.
17439
17440 2010-01-12  Bruno Haible  <bruno@clisp.org>
17441
17442         * tests/test-cond.c (main): When skipping the test, show the reason.
17443
17444 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17445
17446         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17447
17448 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17449
17450         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17451         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17452
17453 2010-01-12  Eric Blake  <ebb9@byu.net>
17454
17455         build: guarantee AS_VAR_IF
17456         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17457         (gl_AS_VAR_IF): Move...
17458         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17459         Reported by Simon Josefsson.
17460
17461 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17462
17463         * lib/stdio.in.h: Fix typo.
17464
17465 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17466
17467         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17468         libgpg-error.
17469
17470 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17471
17472         * tests/test-xalloc-die.sh: Use $EXEEXT.
17473
17474 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17475             Bruno Haible  <bruno@clisp.org>
17476
17477         getlogin, getlogin_r: Avoid test failure.
17478         * tests/test-getlogin.c: Include <stdio.h>.
17479         (main): Skip the test when the function fails because stdin is not a
17480         tty.
17481         * tests/test-getlogin_r.c: Include <stdio.h>.
17482         (main): Skip the test when the function fails because stdin is not a
17483         tty.
17484
17485 2010-01-11  Eric Blake  <ebb9@byu.net>
17486
17487         tests: avoid more large file warnings
17488         * tests/test-fflush.c: Avoid warning about ftell use.
17489         * tests/test-fseek.c: Avoid warning about fseek use.
17490
17491 2010-01-10  Bruno Haible  <bruno@clisp.org>
17492
17493         nproc: Work better on Linux when /proc and /sys are not mounted.
17494         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17495         as lower bound when, on glibc/Linux systems,
17496         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17497         Suggested by Pádraig Brady <P@draigbrady.com>.
17498         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17499
17500         nproc: Refactor.
17501         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17502         extracted from num_processors.
17503         (num_processors): Call it.
17504
17505 2010-01-11  Jim Meyering  <meyering@redhat.com>
17506
17507         utimecmp: avoid new warning from upcoming gcc-4.5.0
17508         * lib/utimecmp.c (BILLION): Define using #define rather than an
17509         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17510
17511 2010-01-11  Eric Blake  <ebb9@byu.net>
17512
17513         math: add portability warnings for classification macros
17514         * modules/math (Depends-on): Add warn-on-use.
17515         (Makefile.am): Provide new substitutions.
17516         * m4/math_h.m4 (gl_MATH_H): Require inline.
17517         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17518         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17519         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17520         implement warnings.
17521
17522         unistd: warn on use of environ without module
17523         * modules/unistd (Depends-on): Add warn-on-use.
17524         (Makefile.am): Provide new substitutions.
17525         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17526         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17527
17528         stdio: warn on suspicious uses
17529         * modules/stdio (Depends-on): Add warn-on-use.
17530         (Makefile.am): Provide new substitutions.
17531         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17532         fseeko.
17533         * lib/stdio.in.h (gets): Always warn on use.
17534         (fseek, ftell): Adjust when warnings are issued, and honor
17535         _GL_NO_LARGE_FILES as a way to silence the warning.
17536         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17537         any warning about large file offsets.
17538         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17539         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17540         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17541         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17542         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17543         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17544         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17545         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17546
17547         warn-on-use: new module
17548         * modules/warn-on-use: New file.
17549         * build-aux/warn-on-use.h: Likewise.
17550         * m4/warn-on-use.m4: Likewise.
17551         * MODULES.html.sh (Support for building): Mention it.
17552
17553 2010-01-10  Bruno Haible  <bruno@clisp.org>
17554
17555         Tests for module 'unistr/u32-strdup'.
17556         * modules/unistr/u32-strdup-tests: New file.
17557         * tests/unistr/test-u32-strdup.c: New file.
17558
17559         Tests for module 'unistr/u16-strdup'.
17560         * modules/unistr/u16-strdup-tests: New file.
17561         * tests/unistr/test-u16-strdup.c: New file.
17562
17563         Tests for module 'unistr/u8-strdup'.
17564         * modules/unistr/u8-strdup-tests: New file.
17565         * tests/unistr/test-u8-strdup.c: New file.
17566         * tests/unistr/test-strdup.h: New file.
17567
17568         Tests for module 'unistr/u32-strncmp'.
17569         * modules/unistr/u32-strncmp-tests: New file.
17570         * tests/unistr/test-u32-strncmp.c: New file.
17571
17572         Tests for module 'unistr/u16-strncmp'.
17573         * modules/unistr/u16-strncmp-tests: New file.
17574         * tests/unistr/test-u16-strncmp.c: New file.
17575
17576         Tests for module 'unistr/u8-strncmp'.
17577         * modules/unistr/u8-strncmp-tests: New file.
17578         * tests/unistr/test-u8-strncmp.c: New file.
17579         * tests/unistr/test-strncmp.h: New file.
17580
17581         Tests for module 'unistr/u32-strcoll'.
17582         * modules/unistr/u32-strcoll-tests: New file.
17583         * tests/unistr/test-u32-strcoll.c: New file.
17584
17585         Tests for module 'unistr/u16-strcoll'.
17586         * modules/unistr/u16-strcoll-tests: New file.
17587         * tests/unistr/test-u16-strcoll.c: New file.
17588
17589         Tests for module 'unistr/u8-strcoll'.
17590         * modules/unistr/u8-strcoll-tests: New file.
17591         * tests/unistr/test-u8-strcoll.c: New file.
17592
17593         Tests for module 'unistr/u32-strcmp'.
17594         * modules/unistr/u32-strcmp-tests: New file.
17595         * tests/unistr/test-u32-strcmp.c: New file.
17596         * tests/unistr/test-u32-strcmp.h: New file.
17597
17598         Tests for module 'unistr/u16-strcmp'.
17599         * modules/unistr/u16-strcmp-tests: New file.
17600         * tests/unistr/test-u16-strcmp.c: New file.
17601         * tests/unistr/test-u16-strcmp.h: New file.
17602
17603         Tests for module 'unistr/u8-strcmp'.
17604         * modules/unistr/u8-strcmp-tests: New file.
17605         * tests/unistr/test-u8-strcmp.c: New file.
17606         * tests/unistr/test-u8-strcmp.h: New file.
17607         * tests/unistr/test-strcmp.h: New file.
17608
17609         Tests for module 'unistr/u32-strncat'.
17610         * modules/unistr/u32-strncat-tests: New file.
17611         * tests/unistr/test-u32-strncat.c: New file.
17612
17613         Tests for module 'unistr/u16-strncat'.
17614         * modules/unistr/u16-strncat-tests: New file.
17615         * tests/unistr/test-u16-strncat.c: New file.
17616
17617         Tests for module 'unistr/u8-strncat'.
17618         * modules/unistr/u8-strncat-tests: New file.
17619         * tests/unistr/test-u8-strncat.c: New file.
17620         * tests/unistr/test-strncat.h: New file.
17621
17622         Tests for module 'unistr/u32-strcat'.
17623         * modules/unistr/u32-strcat-tests: New file.
17624         * tests/unistr/test-u32-strcat.c: New file.
17625
17626         Tests for module 'unistr/u16-strcat'.
17627         * modules/unistr/u16-strcat-tests: New file.
17628         * tests/unistr/test-u16-strcat.c: New file.
17629
17630         Tests for module 'unistr/u8-strcat'.
17631         * modules/unistr/u8-strcat-tests: New file.
17632         * tests/unistr/test-u8-strcat.c: New file.
17633         * tests/unistr/test-strcat.h: New file.
17634
17635         Tests for module 'unistr/u32-stpncpy'.
17636         * modules/unistr/u32-stpncpy-tests: New file.
17637         * tests/unistr/test-u32-stpncpy.c: New file.
17638
17639         Tests for module 'unistr/u16-stpncpy'.
17640         * modules/unistr/u16-stpncpy-tests: New file.
17641         * tests/unistr/test-u16-stpncpy.c: New file.
17642
17643         Tests for module 'unistr/u8-stpncpy'.
17644         * modules/unistr/u8-stpncpy-tests: New file.
17645         * tests/unistr/test-u8-stpncpy.c: New file.
17646         * tests/unistr/test-stpncpy.h: New file.
17647
17648         Tests for module 'unistr/u32-strncpy'.
17649         * modules/unistr/u32-strncpy-tests: New file.
17650         * tests/unistr/test-u32-strncpy.c: New file.
17651
17652         Tests for module 'unistr/u16-strncpy'.
17653         * modules/unistr/u16-strncpy-tests: New file.
17654         * tests/unistr/test-u16-strncpy.c: New file.
17655
17656         Tests for module 'unistr/u8-strncpy'.
17657         * modules/unistr/u8-strncpy-tests: New file.
17658         * tests/unistr/test-u8-strncpy.c: New file.
17659         * tests/unistr/test-strncpy.h: New file.
17660
17661         Tests for module 'unistr/u32-stpcpy'.
17662         * modules/unistr/u32-stpcpy-tests: New file.
17663         * tests/unistr/test-u32-stpcpy.c: New file.
17664
17665         Tests for module 'unistr/u16-stpcpy'.
17666         * modules/unistr/u16-stpcpy-tests: New file.
17667         * tests/unistr/test-u16-stpcpy.c: New file.
17668
17669         Tests for module 'unistr/u8-stpcpy'.
17670         * modules/unistr/u8-stpcpy-tests: New file.
17671         * tests/unistr/test-u8-stpcpy.c: New file.
17672         * tests/unistr/test-stpcpy.h: New file.
17673
17674         Tests for module 'unistr/u32-strcpy'.
17675         * modules/unistr/u32-strcpy-tests: New file.
17676         * tests/unistr/test-u32-strcpy.c: New file.
17677
17678         Tests for module 'unistr/u16-strcpy'.
17679         * modules/unistr/u16-strcpy-tests: New file.
17680         * tests/unistr/test-u16-strcpy.c: New file.
17681
17682         Tests for module 'unistr/u8-strcpy'.
17683         * modules/unistr/u8-strcpy-tests: New file.
17684         * tests/unistr/test-u8-strcpy.c: New file.
17685         * tests/unistr/test-strcpy.h: New file.
17686
17687         Tests for module 'unistr/u32-strnlen'.
17688         * modules/unistr/u32-strnlen-tests: New file.
17689         * tests/unistr/test-u32-strnlen.c: New file.
17690
17691         Tests for module 'unistr/u16-strnlen'.
17692         * modules/unistr/u16-strnlen-tests: New file.
17693         * tests/unistr/test-u16-strnlen.c: New file.
17694
17695         Tests for module 'unistr/u8-strnlen'.
17696         * modules/unistr/u8-strnlen-tests: New file.
17697         * tests/unistr/test-u8-strnlen.c: New file.
17698         * tests/unistr/test-strnlen.h: New file.
17699
17700         Tests for module 'unistr/u32-strlen'.
17701         * modules/unistr/u32-strlen-tests: New file.
17702         * tests/unistr/test-u32-strlen.c: New file.
17703
17704         Tests for module 'unistr/u16-strlen'.
17705         * modules/unistr/u16-strlen-tests: New file.
17706         * tests/unistr/test-u16-strlen.c: New file.
17707
17708         Tests for module 'unistr/u8-strlen'.
17709         * modules/unistr/u8-strlen-tests: New file.
17710         * tests/unistr/test-u8-strlen.c: New file.
17711
17712         Tests for module 'unistr/u32-prev'.
17713         * modules/unistr/u32-prev-tests: New file.
17714         * tests/unistr/test-u32-prev.c: New file.
17715
17716         Tests for module 'unistr/u16-prev'.
17717         * modules/unistr/u16-prev-tests: New file.
17718         * tests/unistr/test-u16-prev.c: New file.
17719
17720         Tests for module 'unistr/u8-prev'.
17721         * modules/unistr/u8-prev-tests: New file.
17722         * tests/unistr/test-u8-prev.c: New file.
17723
17724         Tests for module 'unistr/u32-next'.
17725         * modules/unistr/u32-next-tests: New file.
17726         * tests/unistr/test-u32-next.c: New file.
17727
17728         Tests for module 'unistr/u16-next'.
17729         * modules/unistr/u16-next-tests: New file.
17730         * tests/unistr/test-u16-next.c: New file.
17731
17732         Tests for module 'unistr/u8-next'.
17733         * modules/unistr/u8-next-tests: New file.
17734         * tests/unistr/test-u8-next.c: New file.
17735
17736         Tests for module 'unistr/u32-strmbtouc'.
17737         * modules/unistr/u32-strmbtouc-tests: New file.
17738         * tests/unistr/test-u32-strmbtouc.c: New file.
17739
17740         Tests for module 'unistr/u16-strmbtouc'.
17741         * modules/unistr/u16-strmbtouc-tests: New file.
17742         * tests/unistr/test-u16-strmbtouc.c: New file.
17743
17744         Tests for module 'unistr/u8-strmbtouc'.
17745         * modules/unistr/u8-strmbtouc-tests: New file.
17746         * tests/unistr/test-u8-strmbtouc.c: New file.
17747
17748         Tests for module 'unistr/u32-strmblen'.
17749         * modules/unistr/u32-strmblen-tests: New file.
17750         * tests/unistr/test-u32-strmblen.c: New file.
17751
17752         Tests for module 'unistr/u16-strmblen'.
17753         * modules/unistr/u16-strmblen-tests: New file.
17754         * tests/unistr/test-u16-strmblen.c: New file.
17755
17756         Tests for module 'unistr/u8-strmblen'.
17757         * modules/unistr/u8-strmblen-tests: New file.
17758         * tests/unistr/test-u8-strmblen.c: New file.
17759
17760         Tests for module 'unistr/u32-cpy-alloc'.
17761         * modules/unistr/u32-cpy-alloc-tests: New file.
17762         * tests/unistr/test-u32-cpy-alloc.c: New file.
17763
17764         Tests for module 'unistr/u16-cpy-alloc'.
17765         * modules/unistr/u16-cpy-alloc-tests: New file.
17766         * tests/unistr/test-u16-cpy-alloc.c: New file.
17767
17768         Tests for module 'unistr/u8-cpy-alloc'.
17769         * modules/unistr/u8-cpy-alloc-tests: New file.
17770         * tests/unistr/test-u8-cpy-alloc.c: New file.
17771         * tests/unistr/test-cpy-alloc.h: New file.
17772
17773         Tests for module 'unistr/u32-mbsnlen'.
17774         * modules/unistr/u32-mbsnlen-tests: New file.
17775         * tests/unistr/test-u32-mbsnlen.c: New file.
17776
17777         Tests for module 'unistr/u16-mbsnlen'.
17778         * modules/unistr/u16-mbsnlen-tests: New file.
17779         * tests/unistr/test-u16-mbsnlen.c: New file.
17780
17781         Tests for module 'unistr/u8-mbsnlen'.
17782         * modules/unistr/u8-mbsnlen-tests: New file.
17783         * tests/unistr/test-u8-mbsnlen.c: New file.
17784
17785         Tests for module 'unistr/u32-chr'.
17786         * modules/unistr/u32-chr-tests: New file.
17787         * tests/unistr/test-u32-chr.c: New file.
17788
17789         Tests for module 'unistr/u16-chr'.
17790         * modules/unistr/u16-chr-tests: New file.
17791         * tests/unistr/test-u16-chr.c: New file.
17792
17793         Tests for module 'unistr/u8-chr'.
17794         * modules/unistr/u8-chr-tests: New file.
17795         * tests/unistr/test-u8-chr.c: New file.
17796         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17797
17798         Tests for module 'unistr/u32-cmp2'.
17799         * modules/unistr/u32-cmp2-tests: New file.
17800         * tests/unistr/test-u32-cmp2.c: New file.
17801
17802         Tests for module 'unistr/u16-cmp2'.
17803         * modules/unistr/u16-cmp2-tests: New file.
17804         * tests/unistr/test-u16-cmp2.c: New file.
17805
17806         Tests for module 'unistr/u8-cmp2'.
17807         * modules/unistr/u8-cmp2-tests: New file.
17808         * tests/unistr/test-u8-cmp2.c: New file.
17809         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17810
17811         Tests for module 'unistr/u32-cmp'.
17812         * modules/unistr/u32-cmp-tests: New file.
17813         * tests/unistr/test-u32-cmp.c: New file.
17814
17815         Tests for module 'unistr/u16-cmp'.
17816         * modules/unistr/u16-cmp-tests: New file.
17817         * tests/unistr/test-u16-cmp.c: New file.
17818
17819         Tests for module 'unistr/u8-cmp'.
17820         * modules/unistr/u8-cmp-tests: New file.
17821         * tests/unistr/test-u8-cmp.c: New file.
17822         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17823
17824         Tests for module 'unistr/u32-set'.
17825         * modules/unistr/u32-set-tests: New file.
17826         * tests/unistr/test-u32-set.c: New file.
17827
17828         Tests for module 'unistr/u16-set'.
17829         * modules/unistr/u16-set-tests: New file.
17830         * tests/unistr/test-u16-set.c: New file.
17831
17832         Tests for module 'unistr/u8-set'.
17833         * modules/unistr/u8-set-tests: New file.
17834         * tests/unistr/test-u8-set.c: New file.
17835         * tests/unistr/test-set.h: New file.
17836
17837         Tests for module 'unistr/u32-move'.
17838         * modules/unistr/u32-move-tests: New file.
17839         * tests/unistr/test-u32-move.c: New file.
17840
17841         Tests for module 'unistr/u16-move'.
17842         * modules/unistr/u16-move-tests: New file.
17843         * tests/unistr/test-u16-move.c: New file.
17844
17845         Tests for module 'unistr/u8-move'.
17846         * modules/unistr/u8-move-tests: New file.
17847         * tests/unistr/test-u8-move.c: New file.
17848         * tests/unistr/test-move.h: New file.
17849
17850         Tests for module 'unistr/u32-cpy'.
17851         * modules/unistr/u32-cpy-tests: New file.
17852         * tests/unistr/test-u32-cpy.c: New file.
17853
17854         Tests for module 'unistr/u16-cpy'.
17855         * modules/unistr/u16-cpy-tests: New file.
17856         * tests/unistr/test-u16-cpy.c: New file.
17857
17858         Tests for module 'unistr/u8-cpy'.
17859         * modules/unistr/u8-cpy-tests: New file.
17860         * tests/unistr/test-u8-cpy.c: New file.
17861         * tests/unistr/test-cpy.h: New file.
17862
17863 2010-01-09  Bruno Haible  <bruno@clisp.org>
17864
17865         Tests for module 'unistr/u32-uctomb'.
17866         * modules/unistr/u32-uctomb-tests: New file.
17867         * tests/unistr/test-u32-uctomb.c: New file.
17868
17869         Tests for module 'unistr/u16-uctomb'.
17870         * modules/unistr/u16-uctomb-tests: New file.
17871         * tests/unistr/test-u16-uctomb.c: New file.
17872
17873         Tests for module 'unistr/u8-uctomb'.
17874         * modules/unistr/u8-uctomb-tests: New file.
17875         * tests/unistr/test-u8-uctomb.c: New file.
17876
17877         Tests for module 'unistr/u32-mbtoucr'.
17878         * modules/unistr/u32-mbtoucr-tests: New file.
17879         * tests/unistr/test-u32-mbtoucr.c: New file.
17880
17881         Tests for module 'unistr/u16-mbtoucr'.
17882         * modules/unistr/u16-mbtoucr-tests: New file.
17883         * tests/unistr/test-u16-mbtoucr.c: New file.
17884
17885         Tests for module 'unistr/u8-mbtoucr'.
17886         * modules/unistr/u8-mbtoucr-tests: New file.
17887         * tests/unistr/test-u8-mbtoucr.c: New file.
17888
17889         Tests for module 'unistr/u32-mbtouc'.
17890         * modules/unistr/u32-mbtouc-tests: New file.
17891         * tests/unistr/test-u32-mbtouc.c: New file.
17892
17893         Tests for module 'unistr/u16-mbtouc'.
17894         * modules/unistr/u16-mbtouc-tests: New file.
17895         * tests/unistr/test-u16-mbtouc.c: New file.
17896
17897         Tests for module 'unistr/u8-mbtouc'.
17898         * modules/unistr/u8-mbtouc-tests: New file.
17899         * tests/unistr/test-u8-mbtouc.c: New file.
17900
17901         Tests for module 'unistr/u32-mbtouc-unsafe'.
17902         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17903         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17904         * tests/unistr/test-u32-mbtouc.h: New file.
17905
17906         Tests for module 'unistr/u16-mbtouc-unsafe'.
17907         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17908         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17909         * tests/unistr/test-u16-mbtouc.h: New file.
17910
17911         Tests for module 'unistr/u8-mbtouc-unsafe'.
17912         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17913         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17914         * tests/unistr/test-u8-mbtouc.h: New file.
17915
17916         Tests for module 'unistr/u32-mblen'.
17917         * modules/unistr/u32-mblen-tests: New file.
17918         * tests/unistr/test-u32-mblen.c: New file.
17919
17920         Tests for module 'unistr/u16-mblen'.
17921         * modules/unistr/u16-mblen-tests: New file.
17922         * tests/unistr/test-u16-mblen.c: New file.
17923
17924         Tests for module 'unistr/u8-mblen'.
17925         * modules/unistr/u8-mblen-tests: New file.
17926         * tests/unistr/test-u8-mblen.c: New file.
17927
17928         Tests for module 'unistr/u32-to-u16'.
17929         * modules/unistr/u32-to-u16-tests: New file.
17930         * tests/unistr/test-u32-to-u16.c: New file.
17931
17932         Tests for module 'unistr/u32-to-u8'.
17933         * modules/unistr/u32-to-u8-tests: New file.
17934         * tests/unistr/test-u32-to-u8.c: New file.
17935
17936         Tests for module 'unistr/u16-to-u32'.
17937         * modules/unistr/u16-to-u32-tests: New file.
17938         * tests/unistr/test-u16-to-u32.c: New file.
17939
17940         Tests for module 'unistr/u16-to-u8'.
17941         * modules/unistr/u16-to-u8-tests: New file.
17942         * tests/unistr/test-u16-to-u8.c: New file.
17943
17944         Tests for module 'unistr/u8-to-u32'.
17945         * modules/unistr/u8-to-u32-tests: New file.
17946         * tests/unistr/test-u8-to-u32.c: New file.
17947
17948         Tests for module 'unistr/u8-to-u16'.
17949         * modules/unistr/u8-to-u16-tests: New file.
17950         * tests/unistr/test-u8-to-u16.c: New file.
17951
17952         Tests for module 'unistr/u32-check'.
17953         * modules/unistr/u32-check-tests: New file.
17954         * tests/unistr/test-u32-check.c: New file.
17955
17956         Tests for module 'unistr/u16-check'.
17957         * modules/unistr/u16-check-tests: New file.
17958         * tests/unistr/test-u16-check.c: New file.
17959
17960         Tests for module 'unistr/u8-check'.
17961         * modules/unistr/u8-check-tests: New file.
17962         * tests/unistr/test-u8-check.c: New file.
17963
17964         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17965         (category_equals): New function.
17966         (main): Add more tests.
17967         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17968
17969         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17970
17971 2010-01-10  Bruno Haible  <bruno@clisp.org>
17972
17973         unistr/u*-strcoll: Try harder to distinguish different strings.
17974         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17975         compare s1 and s2 to see if they are different.
17976
17977 2010-01-10  Bruno Haible  <bruno@clisp.org>
17978
17979         unistr/u*-stpncpy: Fix the return value.
17980         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17981         description of the return value consistent with stpncpy in glibc.
17982         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17983         written non-NUL unit.
17984
17985 2010-01-10  Bruno Haible  <bruno@clisp.org>
17986
17987         unistr/u*-next: Add missing dependencies.
17988         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17989         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17990         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17991
17992 2010-01-10  Bruno Haible  <bruno@clisp.org>
17993
17994         unistr/u8-mbsnlen: Fix return value for incomplete character.
17995         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17996         u8_mblen.
17997         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17998         Remove unistr/u8-mblen.
17999         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18000         u16_mblen.
18001         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18002         Remove unistr/u16-mblen.
18003
18004 2010-01-10  Bruno Haible  <bruno@clisp.org>
18005
18006         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18007         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18008         Reported by Brian Gough <bjg@gnu.org> and
18009         Chris Clayton <chris2553@googlemail.com> via
18010         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18011
18012 2010-01-09  Bruno Haible  <bruno@clisp.org>
18013
18014         unistr/u16-to-u32: Reject invalid input.
18015         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18016         u16_mbtouc.
18017         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18018         Remove unistr/u16-mbtouc.
18019
18020         unistr/u16-to-u8: Reject invalid input.
18021         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18022         u16_mbtouc.
18023         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18024         Remove unistr/u16-mbtouc.
18025
18026         unistr/u8-to-u32: Reject invalid input.
18027         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18028         u8_mbtouc.
18029         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18030         Remove unistr/u8-mbtouc.
18031
18032         unistr/u8-to-u16: Reject invalid input.
18033         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18034         u8_mbtouc.
18035         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18036         Remove unistr/u8-mbtouc.
18037
18038 2010-01-09  Bruno Haible  <bruno@clisp.org>
18039
18040         Tests for module 'getlogin'.
18041         * modules/getlogin-tests: New file.
18042         * tests/test-getlogin.c: New file.
18043
18044         New module 'getlogin'.
18045         * lib/unistd.in.h (getlogin): New declaration.
18046         * lib/getlogin.c: New file.
18047         * m4/getlogin.m4: New file.
18048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18049         HAVE_GETLOGIN.
18050         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18051         HAVE_GETLOGIN.
18052         * modules/getlogin: New file.
18053         * doc/posix-functions/getlogin.texi: Mention the new module.
18054         Reported by John W. Eaton <jwe@gnu.org>.
18055
18056 2010-01-09  Bruno Haible  <bruno@clisp.org>
18057
18058         getlogin_r: Support for native Windows.
18059         * lib/getlogin_r.c: Include <windows.h>
18060         (getlogin_r): Implement for native Windows.
18061         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18062         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18063         via John W. Eaton <jwe@gnu.org>.
18064
18065 2010-01-09  Bruno Haible  <bruno@clisp.org>
18066
18067         getlogin_r: Small fixes.
18068         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18069         succeeds.
18070         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18071         before testing whether getlogin_r is declared. No need to set
18072         HAVE_DECL_GETLOGIN_R to 1.
18073         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18074
18075 2010-01-09  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/unistd.in.h (getlogin_r): Add comment.
18078
18079 2010-01-09  Bruno Haible  <bruno@clisp.org>
18080
18081         Tests for module 'getlogin_r'.
18082         * modules/getlogin_r-tests: New file.
18083         * tests/test-getlogin_r.c: New file.
18084
18085 2010-01-09  Jim Meyering  <meyering@redhat.com>
18086
18087         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18088         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18089         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18090
18091 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18092
18093         * lib/dup2.c (rpl_dup2): Improve comment.
18094
18095 2010-01-08  Eric Blake  <ebb9@byu.net>
18096
18097         maint.mk: allow packages to add makefile @@ exceptions
18098         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18099         (sc_makefile_check): Rename...
18100         (sc_makefile_at_at_check): ...to this, and use hook.
18101
18102         dup2: work around mingw bug
18103         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18104         Reported by Simon Josefsson.
18105
18106 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18107
18108         glob: Fix C++ compilation.
18109         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18110         C++.
18111
18112 2010-01-07  Bruno Haible  <bruno@clisp.org>
18113
18114         Fix indentation of wctype.in.h, broken since 2007-01-06.
18115         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18116
18117 2010-01-07  Bruno Haible  <bruno@clisp.org>
18118
18119         mbslen: Avoid collision with system function.
18120         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18121         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18122         * m4/mbslen.m4: New file.
18123         * modules/mbslen (Files): Add it.
18124         (configure.ac): Invoke gl_MBSLEN.
18125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18126         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18127         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18128         via Ian Beckwith <ianb@erislabs.net>.
18129
18130 2010-01-07  Bruno Haible  <bruno@clisp.org>
18131
18132         dirent: Document the last fix.
18133         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18134
18135 2010-01-07  Bruno Haible  <bruno@clisp.org>
18136
18137         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18138         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18139         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18140         va_list are defined.
18141         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18142         Reported by Eric Blake.
18143
18144 2010-01-07  Bruno Haible  <bruno@clisp.org>
18145
18146         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18147         * modules/xlist (Depends-on): Add 'list',
18148         * modules/xoset (Depends-on): Add 'oset'.
18149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18150
18151 2010-01-07  Bruno Haible  <bruno@clisp.org>
18152
18153         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18154         * doc/posix-functions/strncasecmp.texi: Likewise.
18155
18156 2010-01-07  Bruno Haible  <bruno@clisp.org>
18157
18158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18159
18160 2010-01-07  John W. Eaton  <jwe@octave.org>
18161
18162         wctype: allow C++ use
18163         * lib/wctype.in.h: Add extern "C" block for C++.
18164
18165 2010-01-06  Eric Blake  <ebb9@byu.net>
18166
18167         maint.mk: detect incorrect GFDL usage
18168         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18169
18170 2010-01-06  Jim Meyering  <meyering@redhat.com>
18171         and Eric Blake  <ebb9@byu.net>
18172
18173         maint.mk: ignore multi-line copyright in NEWS
18174         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18175
18176 2010-01-06  Eric Blake  <ebb9@byu.net>
18177
18178         select: add missing dependency
18179         * modules/select-tests (Depends-on): Move sockets dependency...
18180         * modules/select (Depends-on): ...here.
18181         Reported by Ian Beckwith.
18182
18183         doc: regenerate INSTALL
18184         * doc/INSTALL: Reflect recent autoconf update.
18185         * doc/INSTALL.ISO: Likewise.
18186         * doc/INSTALL.UTF-8: Likewise.
18187
18188         pread: fix compilation on glibc
18189         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18190         Reported by Ralf Wildenhues.
18191
18192         dirent: fix test failure
18193         * lib/dirent.in.h (includes): Guarantee ino_t.
18194         Reported by Ralf Wildenhues.
18195
18196 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18197
18198         linkat, renameat: avoid bad free
18199         * lib/at-func2.c (at_func2): Fix typo.
18200         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18201
18202 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18203
18204         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18205         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18206         to avoid failure of symlink test later.
18207
18208 2010-01-06  Eric Blake  <ebb9@byu.net>
18209
18210         stdio, unistd: guarantee ssize_t
18211         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18212         2008 are exposed when needed.
18213         * lib/stdio.in.h (includes): Likewise.
18214         Reported by Ralf Wildenhues.
18215
18216 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18217
18218         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18220         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18221
18222 2010-01-06  Jim Meyering  <meyering@redhat.com>
18223
18224         readtokens: this module *does* require xalloc.h
18225         It uses only functions that were omitted by the old syntax-check rule.
18226         * lib/readtokens.c: Include "xalloc.h" once again.
18227         * modules/readtokens (Depends-on): Add xalloc.
18228         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18229
18230 2010-01-05  Eric Blake  <ebb9@byu.net>
18231
18232         maint: support 'make announcement' from a VPATH build
18233         * top/maint.mk (announcement): Look for correct NEWS file.
18234
18235 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18236
18237         utimens (fdutimens): ignore a negative FD, per contract
18238         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18239         when we have a valid file descriptor.  Otherwise, using a brand
18240         new glibc (with just-patched futimens that now fails with EBADF)
18241         would cause this function to fail with ENOSYS.
18242         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18243         See also http://bugzilla.redhat.com/552320.
18244
18245 2010-01-05  Eric Blake  <ebb9@byu.net>
18246
18247         strcase: document what it provides
18248         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18249         gnulib module.
18250         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18251         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18252
18253 2010-01-05  Jim Meyering  <meyering@redhat.com>
18254
18255         maint: remove useless inclusions of "xalloc.h"
18256         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18257         * lib/readtokens.c: Likewise.
18258         * lib/same.c: Likewise.
18259         * modules/getloadavg (Depends-on): Remove xalloc.
18260         * modules/readtokens: Likewise.
18261         * modules/same: Likewise.
18262
18263         maint.mk: include 4 more function names in alloca.h-checking regexp
18264         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18265         regexp.  Before, we would give a false-positive (saying alloca.h
18266         is included unnecessarily) when the only uses involved omitted symbols.
18267
18268         xalloc.h: use consistent formatting
18269         * lib/xalloc.h: Move declarations to start in the first column.
18270
18271 2010-01-05  Eric Blake  <ebb9@byu.net>
18272
18273         mkdir: avoid xalloc
18274         * lib/mkdir.c (includes): Drop unused header.
18275         Reported by John W. Eaton.
18276
18277 2010-01-04  Jim Meyering  <meyering@redhat.com>
18278
18279         nl_langinfo: avoid configure-time syntax error
18280         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18281         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18282         the empty string.  Don't let that provoke a shell syntax error.
18283
18284         regcomp, regexec, fnmatch: avoid array bounds read error
18285         * lib/regcomp.c (build_equiv_class): From glibc:
18286         Use only the low 24 bits of a findidx return value as an index
18287         into the weights array.  Patch by Ulrich Drepper:
18288         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18289         * lib/regexec.c (check_node_accept_bytes): Likewise.
18290         * lib/fnmatch_loop.c (FCT): Likewise.
18291
18292         regcomp: skip collseq lookup when there are no rules
18293         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18294         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18295
18296         regcomp: recognize ill-formed { } expressions
18297         * lib/regcomp.c (parse_dup_op): From glibc:
18298         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18299
18300         regcomp: fix typo in comment
18301         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18302         s/satisfy/satisfies/.
18303
18304         regcomp: sync from glibc: remove dead store
18305         * lib/regcomp.c (duplicate_node_closure): Remove useless
18306         search_duplicated_node call and dead store.
18307
18308         regcomp: sync from glibc; always use nl_langinfo
18309         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18310         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18311         * modules/regex (Depends-on): Add nl_langinfo.
18312
18313 2010-01-04  Eric Blake  <ebb9@byu.net>
18314
18315         fdopendir: fix configure test
18316         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18317
18318 2010-01-01  Bruno Haible  <bruno@clisp.org>
18319
18320         wchar: Remove unused configure check.
18321         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18322
18323 2010-01-01  Eric Blake  <ebb9@byu.net>
18324
18325         headers: make check of system header explicit
18326         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18327         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18328         ourselves.
18329         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18331         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18332         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18333         internals.
18334         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18335         missing.
18336         Suggested by Bruno Haible.
18337
18338 2010-01-01  Jim Meyering  <meyering@redhat.com>
18339
18340         ChangeLog: tweak to eliminate unnecessary copyright line
18341         * ChangeLog: Remove a copyright line that was mistakenly updated
18342         by today's update-copyright run.  Reported by Eric Blake.
18343
18344         test-update-copyright: don't let envvar setting cause test failure
18345         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18346
18347 2010-01-01  Bruno Haible  <bruno@clisp.org>
18348
18349         localename: Avoid gcc warning.
18350         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18351         function if it is not used.
18352
18353 2010-01-01  Jim Meyering  <meyering@redhat.com>
18354
18355         update nearly all FSF copyright year lists to include 2010
18356         Use the same procedure as for 2009, outlined in
18357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18358
18359         version-etc: set COPYRIGHT_YEAR to 2010
18360         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18361
18362 2009-12-31  Eric Blake  <ebb9@byu.net>
18363
18364         doc: correct availability of cygwin 1.5.x getopt
18365         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18366         variables.
18367         * doc/posix-functions/opterr.texi (opterr): Likewise.
18368         * doc/posix-functions/optind.texi (optind): Likewise.
18369         * doc/posix-functions/optopt.texi (optopt): Likewise.
18370         * doc/posix-functions/tzname.texi (tzname): Likewise.
18371
18372         openat: update maintainer
18373         * modules/openat (Maintainer): Add myself.
18374
18375         utimens: avoid shadowing warning
18376         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18377         buffers into one, to avoid shadowing, as well as avoiding a
18378         redundant stat.
18379         Reported by Jim Meyering.
18380
18381         test-dup2: avoid compiler warning
18382         * tests/test-dup2.c (is_inheritable): Only define if used.
18383
18384 2010-01-01  Bruno Haible  <bruno@clisp.org>
18385
18386         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18387         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18388         defined, use wctomb instead of wcrtomb.
18389
18390 2010-01-01  Bruno Haible  <bruno@clisp.org>
18391
18392         iconv: Reject native Solaris iconv.
18393         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18394         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18395
18396 2009-12-31  Bruno Haible  <bruno@clisp.org>
18397
18398         * tests/test-signal.c (main): Remove test of 'SIG'.
18399
18400 2009-12-31  Bruno Haible  <bruno@clisp.org>
18401
18402         spawn: Fix incomplete fix.
18403         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18404         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18405         warnings for GNULIB_POSIXCHECK again.
18406         Reported by Eric Blake.
18407
18408 2009-12-31  Bruno Haible  <bruno@clisp.org>
18409
18410         Avoid namespace pollution on glibc systems.
18411         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18412         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18413         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18414         glibc systems.
18415
18416 2009-12-31  Bruno Haible  <bruno@clisp.org>
18417
18418         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18419         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18420         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18421         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18422         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18423         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18424         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18425
18426 2009-12-31  Bruno Haible  <bruno@clisp.org>
18427
18428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18429         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18430         afterwards.
18431
18432 2009-12-31  Bruno Haible  <bruno@clisp.org>
18433
18434         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18435         SYS_UTSNAME_H.
18436
18437 2009-12-31  Bruno Haible  <bruno@clisp.org>
18438
18439         spawn: Fix misapplied patch.
18440         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18441         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18442         warnings for GNULIB_POSIXCHECK.
18443
18444 2009-12-31  Bruno Haible  <bruno@clisp.org>
18445
18446         times: Update after sys_times changed.
18447         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18448         * modules/times (Files): Add it.
18449         (configure.ac): Invoke gl_FUNC_TIMES.
18450
18451 2009-12-31  Bruno Haible  <bruno@clisp.org>
18452
18453         Use AC_C_INLINE where necessary.
18454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18457         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18458         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18459         * m4/mbiter.m4 (gl_MBITER): Likewise.
18460         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18461         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18462         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18463         * modules/u64 (configure.ac): Likewise.
18464
18465 2009-12-31  Bruno Haible  <bruno@clisp.org>
18466
18467         Use AC_C_INLINE instead of module 'inline' where possible.
18468         * modules/inline (Description): Clarify purpose.
18469         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18470         * modules/count-one-bits (Depends-on): Remove inline.
18471         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18472         * modules/openat (Depends-on): Remove inline.
18473         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18474         instead of depending on module 'inline'.
18475         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18476         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18477         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18478         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18479         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18480         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18481         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18482         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18483         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18484         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18485         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18486         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18487         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18488         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18489         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18490         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18491         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18492         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18493         Likewise.
18494         * modules/unictype/property-ascii-hex-digit (Depends-on,
18495         configure.ac): Likewise.
18496         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18497         configure.ac): Likewise.
18498         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18499         configure.ac): Likewise.
18500         * modules/unictype/property-bidi-block-separator (Depends-on,
18501         configure.ac): Likewise.
18502         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18503         configure.ac): Likewise.
18504         * modules/unictype/property-bidi-common-separator (Depends-on,
18505         configure.ac): Likewise.
18506         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18507         Likewise.
18508         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18509         configure.ac): Likewise.
18510         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18511         configure.ac): Likewise.
18512         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18513         configure.ac): Likewise.
18514         * modules/unictype/property-bidi-european-digit (Depends-on,
18515         configure.ac): Likewise.
18516         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18517         configure.ac): Likewise.
18518         * modules/unictype/property-bidi-left-to-right (Depends-on,
18519         configure.ac): Likewise.
18520         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18521         configure.ac): Likewise.
18522         * modules/unictype/property-bidi-other-neutral (Depends-on,
18523         configure.ac): Likewise.
18524         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18525         Likewise.
18526         * modules/unictype/property-bidi-segment-separator (Depends-on,
18527         configure.ac): Likewise.
18528         * modules/unictype/property-bidi-whitespace (Depends-on,
18529         configure.ac): Likewise.
18530         * modules/unictype/property-combining (Depends-on, configure.ac):
18531         Likewise.
18532         * modules/unictype/property-composite (Depends-on, configure.ac):
18533         Likewise.
18534         * modules/unictype/property-currency-symbol (Depends-on,
18535         configure.ac): Likewise.
18536         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18537         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18538         Likewise.
18539         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18540         configure.ac): Likewise.
18541         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18542         Likewise.
18543         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18544         Likewise.
18545         * modules/unictype/property-extender (Depends-on, configure.ac):
18546         Likewise.
18547         * modules/unictype/property-format-control (Depends-on, configure.ac):
18548         Likewise.
18549         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18550         Likewise.
18551         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18552         Likewise.
18553         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18554         Likewise.
18555         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18556         Likewise.
18557         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18558         Likewise.
18559         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18560         Likewise.
18561         * modules/unictype/property-id-start (Depends-on, configure.ac):
18562         Likewise.
18563         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18564         Likewise.
18565         * modules/unictype/property-ids-binary-operator (Depends-on,
18566         configure.ac): Likewise.
18567         * modules/unictype/property-ids-trinary-operator (Depends-on,
18568         configure.ac): Likewise.
18569         * modules/unictype/property-ignorable-control (Depends-on,
18570         configure.ac): Likewise.
18571         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18572         Likewise.
18573         * modules/unictype/property-join-control (Depends-on, configure.ac):
18574         Likewise.
18575         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18576         Likewise.
18577         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18578         Likewise.
18579         * modules/unictype/property-logical-order-exception (Depends-on,
18580         configure.ac): Likewise.
18581         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18582         Likewise.
18583         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18584         * modules/unictype/property-non-break (Depends-on, configure.ac):
18585         Likewise.
18586         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18587         Likewise.
18588         * modules/unictype/property-numeric (Depends-on, configure.ac):
18589         Likewise.
18590         * modules/unictype/property-other-alphabetic (Depends-on,
18591         configure.ac): Likewise.
18592         * modules/unictype/property-other-default-ignorable-code-point
18593         (Depends-on, configure.ac): Likewise.
18594         * modules/unictype/property-other-grapheme-extend (Depends-on,
18595         configure.ac): Likewise.
18596         * modules/unictype/property-other-id-continue (Depends-on,
18597         configure.ac): Likewise.
18598         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18599         Likewise.
18600         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18601         Likewise.
18602         * modules/unictype/property-other-math (Depends-on, configure.ac):
18603         Likewise.
18604         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18605         Likewise.
18606         * modules/unictype/property-paired-punctuation (Depends-on,
18607         configure.ac): Likewise.
18608         * modules/unictype/property-paragraph-separator (Depends-on,
18609         configure.ac): Likewise.
18610         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18611         Likewise.
18612         * modules/unictype/property-pattern-white-space (Depends-on,
18613         configure.ac): Likewise.
18614         * modules/unictype/property-private-use (Depends-on, configure.ac):
18615         Likewise.
18616         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18617         Likewise.
18618         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18619         Likewise.
18620         * modules/unictype/property-radical (Depends-on, configure.ac):
18621         Likewise.
18622         * modules/unictype/property-sentence-terminal (Depends-on,
18623         configure.ac): Likewise.
18624         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18625         Likewise.
18626         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18627         * modules/unictype/property-terminal-punctuation (Depends-on,
18628         configure.ac): Likewise.
18629         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18630         Likewise.
18631         * modules/unictype/property-unassigned-code-value (Depends-on,
18632         configure.ac): Likewise.
18633         * modules/unictype/property-unified-ideograph (Depends-on,
18634         configure.ac): Likewise.
18635         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18636         Likewise.
18637         * modules/unictype/property-variation-selector (Depends-on,
18638         configure.ac): Likewise.
18639         * modules/unictype/property-white-space (Depends-on, configure.ac):
18640         Likewise.
18641         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18642         Likewise.
18643         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18644         Likewise.
18645         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18646         Likewise.
18647         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18648         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18649         Likewise.
18650
18651 2009-12-31  Bruno Haible  <bruno@clisp.org>
18652
18653         Remove unnecessary AC_C_INLINE invocation.
18654         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18655         since 2009-08-21.
18656
18657 2009-12-31  Jim Meyering  <meyering@redhat.com>
18658
18659         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18660         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18661         With this change, we can all remove the gpg_key_ID = ... definition
18662         from our respective cfg.mk files.
18663
18664         maint.mk: create announcement template in ~/, not in /tmp
18665         * top/maint.mk (emit_upload_commands): Adjust.
18666         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18667         Remove temporary file, .ci-msg.
18668
18669 2009-12-31  Eric Blake  <ebb9@byu.net>
18670
18671         link-warning: always build headers with link warnings
18672         * modules/arpa_inet (Makefile.am): Always build replacement
18673         header.
18674         * modules/ctype (Makefile.am): Likewise.
18675         * modules/dirent (Makefile.am): Likewise.
18676         * modules/inttypes (Makefile.am): Likewise.
18677         * modules/langinfo (Makefile.am): Likewise.
18678         * modules/locale (Makefile.am): Likewise.
18679         * modules/spawn (Makefile.am): Likewise.
18680         * modules/sys_file (Makefile.am): Likewise.
18681         * modules/sys_ioctl (Makefile.am): Likewise.
18682         * modules/sys_select (Makefile.am): Likewise.
18683         * modules/sys_socket (Makefile.am): Likewise.
18684         * modules/sys_times (Makefile.am): Likewise.
18685         * modules/sys_utsname (Makefile.am): Likewise.
18686         * modules/sys_wait (Makefile.am): Likewise.
18687         * modules/wchar (Makefile.am): Likewise.
18688         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18689         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18690         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18691         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18692         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18693         Likewise.
18694         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18695         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18696         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18697         Likewise.
18698         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18699         Likewise.
18700         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18701         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18702         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18704         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18705         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18706         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18707         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18708         (gl_WCHAR_H_DEFAULTS): Likewise.
18709
18710 2009-12-31  Eric Blake  <ebb9@byu.net>
18711
18712         signal, spawn: use link warnings
18713         * lib/signal.in.h (sigset_t): Make unconditional.
18714         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18715         (sigpending, sigprocmask, sigaction): Add link warnings.
18716         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18717         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18718         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18719         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18720         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18721         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18722         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18723         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18724         (posix_spawn_file_actions_destroy)
18725         (posix_spawn_file_actions_addopen)
18726         (posix_spawn_file_actions_addclose)
18727         (posix_spawn_file_actions_adddup2): Likewise.
18728         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18729         * tests/test-signal.c (main): Enhance test.
18730
18731         spawn: improve wrapper support
18732         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18733         (gl_SPAWN_H_DEFAULTS): New defaults.
18734         * modules/spawn (Makefile.am): Substitute them.
18735         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18736         Only declare if missing or broken.
18737
18738         sys_times, sys_utsname: use include_next
18739         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18740         header.
18741         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18742         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18743         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18744         * modules/sys_times (Depends-on): Add include_next.
18745         (Makefile.am): Substitute additional values.
18746         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18747         * lib/sys_times.in.h (includes): Include native header, if
18748         available.
18749         * lib/sys_utsname.in.h (includes): Likewise.
18750         * tests/test-sys_times.c (main): Enhance test.
18751
18752         fdutimensat: revert prior patch
18753         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18754         utimens.h.
18755         Reported by Bruno Haible.
18756
18757 2009-12-30  Eric Blake  <ebb9@byu.net>
18758
18759         sys_wait: drop link-warning dependency
18760         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18761         link-warning efforts.
18762         * lib/sys_wait.in.h: Likewise.
18763
18764         fdutimensat: remove bogus dependency
18765         * modules/fdutimensat (Depends-on): Drop inline.
18766
18767         unistd: fix typo
18768         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18769
18770 2009-12-30  Bruno Haible  <bruno@clisp.org>
18771
18772         Fix compilation error with Solaris cc.
18773         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18774         * lib/unicase/u16-is-invariant.c: Likewise.
18775         * lib/unicase/u32-is-invariant.c: Likewise.
18776         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18777
18778 2009-12-30  Bruno Haible  <bruno@clisp.org>
18779
18780         Fix test crash.
18781         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18782         locales.
18783         Reported by Simon Josefsson <simon@josefsson.org>.
18784
18785 2009-12-30  Bruno Haible  <bruno@clisp.org>
18786
18787         Fix compilation error on most platforms.
18788         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18789         Reported by Simon Josefsson <simon@josefsson.org>
18790         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18791
18792 2009-12-30  Eric Blake  <ebb9@byu.net>
18793
18794         futimens, utimensat: work around ntfs-3g bug
18795         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18796         a ctime bug is present, and expand workaround to cover ntfs-3g.
18797         * lib/utimens.c (fdutimens, lutimens): Likewise.
18798         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18799         (validate_timespec): Adjust return value.
18800         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18801         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18802         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18803
18804 2009-12-29  Eric Blake  <ebb9@byu.net>
18805
18806         link-warning: make usage consistent
18807         * modules/ctype (Depends-on): Add link-warning.
18808         (Makefile.am): Update rules accordingly.
18809         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18810         * modules/locale (Depends-on, Makefile.am): Likewise.
18811         * modules/sys_file (Makefile.am): Likewise.
18812         * modules/getopt-posix (Makefile.am): Delete unused link warning
18813         efforts.
18814         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18815         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18816         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18817         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18818
18819         stdio: remove unused variables
18820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18822         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18823
18824         tests: test more substitute headers
18825         * modules/ctype-tests: New file.
18826         * modules/dirent-tests: Likewise.
18827         * modules/spawn-tests: Likewise.
18828         * modules/sys_file-tests: Likewise.
18829         * modules/sys_ioctl-tests: Likewise.
18830         * modules/sys_wait-tests: Likewise.
18831         * tests/test-ctype.c: Likewise.
18832         * tests/test-dirent.c: Likewise.
18833         * tests/test-spawn.c: Likewise.
18834         * tests/test-sys_file.c: Likewise.
18835         * tests/test-sys_ioctl.c: Likewise.
18836         * tests/test-sys_wait.c: Likewise.
18837         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18838         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18839         whether or not flock is in use.
18840
18841         tests: remove License section from module
18842         * modules/arpa_inet-tests: Remove unneeded section.
18843         * modules/byteswap-tests: Likewise.
18844         * modules/ceilf-tests: Likewise.
18845         * modules/ceill-tests: Likewise.
18846         * modules/crypto/des-tests: Likewise.
18847         * modules/crypto/gc-arcfour-tests: Likewise.
18848         * modules/crypto/gc-arctwo-tests: Likewise.
18849         * modules/crypto/gc-des-tests: Likewise.
18850         * modules/crypto/gc-hmac-md5-tests: Likewise.
18851         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18852         * modules/crypto/gc-md2-tests: Likewise.
18853         * modules/crypto/gc-md4-tests: Likewise.
18854         * modules/crypto/gc-md5-tests: Likewise.
18855         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18856         * modules/crypto/gc-rijndael-tests: Likewise.
18857         * modules/crypto/gc-sha1-tests: Likewise.
18858         * modules/crypto/gc-tests: Likewise.
18859         * modules/crypto/md2-tests: Likewise.
18860         * modules/crypto/md4-tests: Likewise.
18861         * modules/fcntl-h-tests: Likewise.
18862         * modules/floorf-tests: Likewise.
18863         * modules/floorl-tests: Likewise.
18864         * modules/frexp-nolibm-tests: Likewise.
18865         * modules/frexp-tests: Likewise.
18866         * modules/frexpl-nolibm-tests: Likewise.
18867         * modules/frexpl-tests: Likewise.
18868         * modules/getaddrinfo-tests: Likewise.
18869         * modules/inttypes-tests: Likewise.
18870         * modules/isfinite-tests: Likewise.
18871         * modules/isinf-tests: Likewise.
18872         * modules/ldexpl-tests: Likewise.
18873         * modules/locale-tests: Likewise.
18874         * modules/math-tests: Likewise.
18875         * modules/netdb-tests: Likewise.
18876         * modules/netinet_in-tests: Likewise.
18877         * modules/printf-frexp-tests: Likewise.
18878         * modules/printf-frexpl-tests: Likewise.
18879         * modules/priv-set-tests: Likewise.
18880         * modules/random_r-tests: Likewise.
18881         * modules/round-tests: Likewise.
18882         * modules/roundf-tests: Likewise.
18883         * modules/roundl-tests: Likewise.
18884         * modules/search-tests: Likewise.
18885         * modules/select-tests: Likewise.
18886         * modules/signal-tests: Likewise.
18887         * modules/stdbool-tests: Likewise.
18888         * modules/stddef-tests: Likewise.
18889         * modules/stdint-tests: Likewise.
18890         * modules/stdio-tests: Likewise.
18891         * modules/stdlib-tests: Likewise.
18892         * modules/string-tests: Likewise.
18893         * modules/strings-tests: Likewise.
18894         * modules/sys_select-tests: Likewise.
18895         * modules/sys_socket-tests: Likewise.
18896         * modules/sys_stat-tests: Likewise.
18897         * modules/sys_time-tests: Likewise.
18898         * modules/sys_utsname-tests: Likewise.
18899         * modules/sysexits-tests: Likewise.
18900         * modules/time-tests: Likewise.
18901         * modules/trunc-tests: Likewise.
18902         * modules/truncf-tests: Likewise.
18903         * modules/truncl-tests: Likewise.
18904         * modules/tsearch-tests: Likewise.
18905         * modules/unistd-tests: Likewise.
18906         * modules/wchar-tests: Likewise.
18907         * modules/wctype-tests: Likewise.
18908
18909         tests: fix license on several tests
18910         * tests/test-des.c: Update to GPLv3+.
18911         * tests/test-flock.c: Likewise.
18912         * tests/test-fsync.c: Likewise.
18913         * tests/test-futimens.h: Likewise.
18914         * tests/test-gc-arcfour.c: Likewise.
18915         * tests/test-gc-arctwo.c: Likewise.
18916         * tests/test-gc-des.c: Likewise.
18917         * tests/test-gc-hmac-md5.c: Likewise.
18918         * tests/test-gc-hmac-sha1.c: Likewise.
18919         * tests/test-gc-md2.c: Likewise.
18920         * tests/test-gc-md4.c: Likewise.
18921         * tests/test-gc-md5.c: Likewise.
18922         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18923         * tests/test-gc-rijndael.c: Likewise.
18924         * tests/test-gc-sha1.c: Likewise.
18925         * tests/test-gc.c: Likewise.
18926         * tests/test-getcwd.c: Likewise.
18927         * tests/test-link.c: Likewise.
18928         * tests/test-link.h: Likewise.
18929         * tests/test-lutimens.h: Likewise.
18930         * tests/test-md2.c: Likewise.
18931         * tests/test-md4.c: Likewise.
18932         * tests/test-mkdir.h: Likewise.
18933         * tests/test-rename.c: Likewise.
18934         * tests/test-rename.h: Likewise.
18935         * tests/test-safe-alloc.c: Likewise.
18936         * tests/test-utimens-common.h: Likewise.
18937         * tests/test-utimens.h: Likewise.
18938
18939         maint: sync license texts
18940         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18941         * doc/gpl-3.0.texi: Revert copyright year update.
18942         * doc/lgpl-3.0.texi: Likewise.
18943
18944 2009-12-29  Jim Meyering  <meyering@redhat.com>
18945
18946         update nearly all FSF copyright year lists to include 2009
18947         The files named by the following are exempted:
18948             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18949               test -f "$dst" && { echo "$dst"; continue; }
18950               test -d "$dst" || continue
18951               echo "$dst"/$(basename "$src")
18952             done > exempt
18953             git ls-files tests/unictype >> exempt
18954         In the remaining files, convert to all-interval notation if
18955         - there is already at least one year interval like 2000-2003
18956         - the file is maintained by me
18957         - the file is in lib/uni*/, where that style already prevails
18958         Otherwise, use update-copyright's default.
18959
18960 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18961         and Eric Blake  <ebb9@byu.net>
18962
18963         tests: don't require debug system() to pass
18964         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18965         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18966         * tests/test-unlink.h (test_unlink_func): Likewise.
18967         * tests/test-fstatat.c (main): ...into callers.
18968         * tests/test-lstat.c (main): Likewise.
18969         * tests/test-rmdir.c (main): Likewise.
18970         * tests/test-unlink.c (main): Likewise.
18971         * tests/test-unlinkat.c (main): Likewise.
18972         * tests/test-areadlink-with-size.c (main): Don't require a
18973         debug-only system call to pass, aiding cross-testing to mingw.
18974         * tests/test-areadlink.c (main): Likewise.
18975         * tests/test-areadlinkat-with-size.c (main): Likewise.
18976         * tests/test-areadlinkat.c (main): Likewise.
18977         * tests/test-canonicalize-lgpl.c (main): Likewise.
18978         * tests/test-canonicalize.c (main): Likewise.
18979         * tests/test-chown.c (main): Likewise.
18980         * tests/test-fchownat.c (main): Likewise.
18981         * tests/test-lchown.c (main): Likewise.
18982         * tests/test-fdutimensat.c (main): Likewise.
18983         * tests/test-futimens.c (main): Likewise.
18984         * tests/test-link.c (main): Likewise.
18985         * tests/test-linkat.c (main): Likewise.
18986         * tests/test-mkdir.c (main): Likewise.
18987         * tests/test-mkdirat.c (main): Likewise.
18988         * tests/test-mkfifo.c (main): Likewise.
18989         * tests/test-mkfifoat.c (main): Likewise.
18990         * tests/test-mknod.c (main): Likewise.
18991         * tests/test-readlink.c (main): Likewise.
18992         * tests/test-remove.c (main): Likewise.
18993         * tests/test-rename.c (main): Likewise.
18994         * tests/test-renameat.c (main): Likewise.
18995         * tests/test-symlink.c (main): Likewise.
18996         * tests/test-symlinkat.c (main): Likewise.
18997         * tests/test-utimens.c (main): Likewise.
18998         * tests/test-utimensat.c (main): Likewise.
18999
19000 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19001
19002         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19003         on $(UNUSED_PARAMETER_H) to avoid build failure.
19004
19005 2009-12-28  Jim Meyering  <meyering@redhat.com>
19006
19007         update-copyright: you may specify a max. line length other than 72
19008         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19009
19010         maint: use consistent FSF copyright line syntax
19011         * lib/posixtm.c: Add missing comma in FSF copyright line.
19012         * lib/posixtm.h: Likewise.
19013         * lib/getugroups.c: Add missing ", Inc.".
19014
19015         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19016         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19017         FSF copyright line.  Remove trailing blanks.
19018
19019 2009-12-28  Eric Blake  <ebb9@byu.net>
19020
19021         test-dup2: reduce dependencies
19022         * modules/cloexec (Configure.ac): Set witness.
19023         * modules/dup2-tests (Depends-on): Drop cloexec.
19024         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19025         not present.
19026         Suggested by Bruno Haible.
19027
19028 2009-12-26  Bruno Haible  <bruno@clisp.org>
19029
19030         Remove an unneeded dependency.
19031         * modules/fseterr (Depends-on): Remove dup2.
19032
19033 2009-12-26  Eric Blake  <ebb9@byu.net>
19034
19035         tests: use macros.h in more places
19036         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19037         (ASSERT_STREAM): Provide default of stderr.
19038         * tests/test-dirent-safer.c: Include macros.h, using alternate
19039         stream for assertions.
19040         * tests/test-dup-safer.c: Likewise.
19041         * tests/test-freopen-safer.c: Likewise.
19042         * tests/test-getopt.c: Likewise.
19043         * tests/test-openat-safer.c: Likewise.
19044         * tests/test-pipe.c: Likewise.
19045         * tests/test-popen-safer.c: Likewise.
19046         * modules/dirent-safer-tests (Files): Include macros.h.
19047         * modules/unistd-safer-tests (Files): Likewise.
19048         * modules/freopen-safer-tests (Files): Likewise.
19049         * modules/getopt-posix-tests (Files): Likewise.
19050         * modules/openat-safer-tests (Files): Likewise.
19051         * modules/pipe-tests (Files): Likewise.
19052
19053 2009-12-26  Bruno Haible  <bruno@clisp.org>
19054
19055         javacomp: Portability fix.
19056         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19057         that it also works on Solaris.
19058
19059 2009-12-26  Bruno Haible  <bruno@clisp.org>
19060
19061         localename: Fix storage allocation of gl_locale_name_thread's result.
19062         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19063         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19064         all platforms that have 'uselocale'.
19065         (gl_locale_name_thread_unsafe): New function, extracted from
19066         gl_locale_name_thread.
19067         (gl_locale_name_thread): Call struniq on all platforms that have
19068         'uselocale'.
19069         * tests/test-localename.c (test_locale_name_thread): Check that the
19070         resulting strings are permanently allocated.
19071         * modules/localename-tests (Depends-on): Add strdup.
19072
19073 2009-12-26  Bruno Haible  <bruno@clisp.org>
19074
19075         * tests/test-localename.c (categories): Fill in the strings.
19076
19077 2009-12-26  Jim Meyering  <meyering@redhat.com>
19078
19079         isdir: complete the removal of m4/isdir.m4
19080         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19081
19082         isdir: clean up, since at least grep still uses it
19083         * lib/isdir.c: Include "isdir.h".
19084         (S_ISDIR): Remove now-unneeded definition.
19085         * modules/isdir (Files): Add lib/isdir.h.
19086         * lib/isdir.h: New file, with declaration.
19087         * m4/isdir.m4: Remove file -- unneeded.
19088
19089 2009-12-25  Bruno Haible  <bruno@clisp.org>
19090
19091         selinux-h: Make generated .h files standalone.
19092         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19093         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19094         * lib/se-selinux.in.h: Likewise.
19095         * modules/selinux-h (Depends-on): Add unused-parameter.
19096         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19097         selinux/selinux.h and selinux/context.h.
19098         Suggested by Eric Blake.
19099
19100 2009-12-25  Bruno Haible  <bruno@clisp.org>
19101
19102         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19103         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19104         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19105         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19106         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19107
19108 2009-12-24  Bruno Haible  <bruno@clisp.org>
19109
19110         openat: Fix warning.
19111         * lib/openat-proc.c: Include <unistd.h>.
19112
19113 2009-12-24  Bruno Haible  <bruno@clisp.org>
19114
19115         New module 'unused-parameter'.
19116         * build-aux/unused-parameter.h: New file, extracted from earlier
19117         gnulib-common.m4.
19118         * modules/unused-parameter: New file.
19119         * lib/unistr.h: Include unused-parameter.h.
19120         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19121         _GL_UNUSED.
19122         * modules/unistr/base (Depends-on): Add unused-parameter.
19123
19124 2009-12-24  Bruno Haible  <bruno@clisp.org>
19125
19126         Add missing dependencies to 'extensions' module.
19127         * m4/extensions.m4: Add comment.
19128         * modules/accept4 (Depends-on): Add extensions.
19129         * modules/dup3 (Depends-on): Likewise.
19130         * modules/fcntl (Depends-on): Likewise.
19131         * modules/futimens (Depends-on): Likewise.
19132         * modules/mknod (Depends-on): Likewise.
19133         * modules/pipe2 (Depends-on): Likewise.
19134         * modules/stat-time (Depends-on): Likewise.
19135         * modules/strcasestr-simple (Depends-on): Likewise.
19136         * modules/strsignal (Depends-on): Likewise.
19137         * modules/utimensat (Depends-on): Likewise.
19138         * modules/localcharset (Depends-on): Likewise. Needed because of
19139         gl_FCNTL_O_FLAGS.
19140         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19141         AC_TYPE_MBSTATE_T.
19142         * modules/wcsnrtombs (Depends-on): Likewise.
19143         * modules/wcsrtombs (Depends-on): Likewise.
19144
19145 2009-12-24  Bruno Haible  <bruno@clisp.org>
19146
19147         binary-io: Avoid gcc warning due to SET_BINARY.
19148         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19149         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19150
19151 2009-12-24  Bruno Haible  <bruno@clisp.org>
19152
19153         Avoid future namespace pollution on glibc systems.
19154         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19155         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19156         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19157         glibc systems.
19158
19159 2009-12-24  Bruno Haible  <bruno@clisp.org>
19160
19161         Refactor common macros used in tests.
19162         * tests/macros.h: New file.
19163         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19164         and/or <stdlib.h>, if appropriate.
19165         (ASSERT, SIZEOF): Remove macros.
19166         * tests/test-areadlink-with-size.c: Likewise.
19167         * tests/test-areadlinkat.c: Likewise.
19168         * tests/test-areadlinkat-with-size.c: Likewise.
19169         * tests/test-argmatch.c: Likewise.
19170         * tests/test-argv-iter.c: Likewise.
19171         * tests/test-array-mergesort.c: Likewise.
19172         * tests/test-array_list.c: Likewise.
19173         * tests/test-array_oset.c: Likewise.
19174         * tests/test-avltree_list.c: Likewise.
19175         * tests/test-avltree_oset.c: Likewise.
19176         * tests/test-avltreehash_list.c: Likewise.
19177         * tests/test-base64.c: Likewise.
19178         * tests/test-binary-io.c: Likewise.
19179         * tests/test-bitrotate.c: Likewise.
19180         * tests/test-btowc.c: Likewise.
19181         * tests/test-byteswap.c: Likewise.
19182         * tests/test-c-ctype.c: Likewise.
19183         * tests/test-c-stack.c: Likewise.
19184         * tests/test-c-strcasecmp.c: Likewise.
19185         * tests/test-c-strcasestr.c: Likewise.
19186         * tests/test-c-strncasecmp.c: Likewise.
19187         * tests/test-c-strstr.c: Likewise.
19188         * tests/test-canonicalize-lgpl.c: Likewise.
19189         * tests/test-canonicalize.c: Likewise.
19190         * tests/test-carray_list.c: Likewise.
19191         * tests/test-ceilf1.c: Likewise.
19192         * tests/test-ceilf2.c: Likewise.
19193         * tests/test-ceill.c: Likewise.
19194         * tests/test-chown.c: Likewise.
19195         * tests/test-cloexec.c: Likewise.
19196         * tests/test-copy-acl.c: Likewise.
19197         * tests/test-copy-file.c: Likewise.
19198         * tests/test-count-one-bits.c: Likewise.
19199         * tests/test-dprintf-posix.c: Likewise.
19200         * tests/test-dup2.c: Likewise.
19201         * tests/test-dup3.c: Likewise.
19202         * tests/test-duplocale.c: Likewise.
19203         * tests/test-fbufmode.c: Likewise.
19204         * tests/test-fchdir.c: Likewise.
19205         * tests/test-fchownat.c: Likewise.
19206         * tests/test-fcntl-safer.c: Likewise.
19207         * tests/test-fcntl.c: Likewise.
19208         * tests/test-fdopendir.c: Likewise.
19209         * tests/test-fdutimensat.c: Likewise.
19210         * tests/test-fflush2.c: Likewise.
19211         * tests/test-file-has-acl.c: Likewise.
19212         * tests/test-filevercmp.c: Likewise.
19213         * tests/test-flock.c: Likewise.
19214         * tests/test-floorf1.c: Likewise.
19215         * tests/test-floorf2.c: Likewise.
19216         * tests/test-floorl.c: Likewise.
19217         * tests/test-fnmatch.c: Likewise.
19218         * tests/test-fopen.h: Likewise.
19219         * tests/test-fpending.c: Likewise.
19220         * tests/test-fprintf-posix.c: Likewise.
19221         * tests/test-fpurge.c: Likewise.
19222         * tests/test-freadable.c: Likewise.
19223         * tests/test-freadahead.c: Likewise.
19224         * tests/test-freading.c: Likewise.
19225         * tests/test-freadptr.c: Likewise.
19226         * tests/test-freadptr2.c: Likewise.
19227         * tests/test-freadseek.c: Likewise.
19228         * tests/test-freopen.c: Likewise.
19229         * tests/test-frexp.c: Likewise.
19230         * tests/test-frexpl.c: Likewise.
19231         * tests/test-fseek.c: Likewise.
19232         * tests/test-fseeko.c: Likewise.
19233         * tests/test-fstatat.c: Likewise.
19234         * tests/test-fstrcmp.c: Likewise.
19235         * tests/test-fsync.c: Likewise.
19236         * tests/test-ftell.c: Likewise.
19237         * tests/test-ftello.c: Likewise.
19238         * tests/test-func.c: Likewise.
19239         * tests/test-futimens.c: Likewise.
19240         * tests/test-fwritable.c: Likewise.
19241         * tests/test-fwriting.c: Likewise.
19242         * tests/test-getcwd.c: Likewise.
19243         * tests/test-getdate.c: Likewise.
19244         * tests/test-getdelim.c: Likewise.
19245         * tests/test-getdtablesize.c: Likewise.
19246         * tests/test-getgroups.c: Likewise.
19247         * tests/test-getline.c: Likewise.
19248         * tests/test-getndelim2.c: Likewise.
19249         * tests/test-glob.c: Likewise.
19250         * tests/test-hash.c: Likewise.
19251         * tests/test-i-ring.c: Likewise.
19252         * tests/test-iconv-utf.c: Likewise.
19253         * tests/test-iconv.c: Likewise.
19254         * tests/test-idpriv-drop.c: Likewise.
19255         * tests/test-idpriv-droptemp.c: Likewise.
19256         * tests/test-inet_ntop.c: Likewise.
19257         * tests/test-inet_pton.c: Likewise.
19258         * tests/test-isblank.c: Likewise.
19259         * tests/test-isfinite.c: Likewise.
19260         * tests/test-isinf.c: Likewise.
19261         * tests/test-isnan.c: Likewise.
19262         * tests/test-isnand.h: Likewise.
19263         * tests/test-isnanf.h: Likewise.
19264         * tests/test-isnanl.h: Likewise.
19265         * tests/test-lchown.c: Likewise.
19266         * tests/test-ldexpl.c: Likewise.
19267         * tests/test-link.c: Likewise.
19268         * tests/test-linkat.c: Likewise.
19269         * tests/test-linked_list.c: Likewise.
19270         * tests/test-linkedhash_list.c: Likewise.
19271         * tests/test-localename.c: Likewise.
19272         * tests/test-lseek.c: Likewise.
19273         * tests/test-lstat.c: Likewise.
19274         * tests/test-mbmemcasecmp.c: Likewise.
19275         * tests/test-mbmemcasecoll.c: Likewise.
19276         * tests/test-mbrtowc.c: Likewise.
19277         * tests/test-mbscasecmp.c: Likewise.
19278         * tests/test-mbscasestr1.c: Likewise.
19279         * tests/test-mbscasestr2.c: Likewise.
19280         * tests/test-mbscasestr3.c: Likewise.
19281         * tests/test-mbscasestr4.c: Likewise.
19282         * tests/test-mbschr.c: Likewise.
19283         * tests/test-mbscspn.c: Likewise.
19284         * tests/test-mbsinit.c: Likewise.
19285         * tests/test-mbsncasecmp.c: Likewise.
19286         * tests/test-mbsnrtowcs.c: Likewise.
19287         * tests/test-mbspbrk.c: Likewise.
19288         * tests/test-mbspcasecmp.c: Likewise.
19289         * tests/test-mbsrchr.c: Likewise.
19290         * tests/test-mbsrtowcs.c: Likewise.
19291         * tests/test-mbsspn.c: Likewise.
19292         * tests/test-mbsstr1.c: Likewise.
19293         * tests/test-mbsstr2.c: Likewise.
19294         * tests/test-mbsstr3.c: Likewise.
19295         * tests/test-memchr.c: Likewise.
19296         * tests/test-memchr2.c: Likewise.
19297         * tests/test-memcmp.c: Likewise.
19298         * tests/test-memmem.c: Likewise.
19299         * tests/test-memrchr.c: Likewise.
19300         * tests/test-mkdir.c: Likewise.
19301         * tests/test-mkdirat.c: Likewise.
19302         * tests/test-mkfifo.c: Likewise.
19303         * tests/test-mkfifoat.c: Likewise.
19304         * tests/test-mknod.c: Likewise.
19305         * tests/test-nanosleep.c: Likewise.
19306         * tests/test-nl_langinfo.c: Likewise.
19307         * tests/test-obstack-printf.c: Likewise.
19308         * tests/test-open.c: Likewise.
19309         * tests/test-openat.c: Likewise.
19310         * tests/test-pipe-filter-gi1.c: Likewise.
19311         * tests/test-pipe-filter-gi2-main.c: Likewise.
19312         * tests/test-pipe-filter-ii1.c: Likewise.
19313         * tests/test-pipe-filter-ii2-main.c: Likewise.
19314         * tests/test-pipe2.c: Likewise.
19315         * tests/test-popen.h: Likewise.
19316         * tests/test-posixtm.c: Likewise.
19317         * tests/test-pread.c: Likewise.
19318         * tests/test-printf-frexp.c: Likewise.
19319         * tests/test-printf-frexpl.c: Likewise.
19320         * tests/test-printf-posix.c: Likewise.
19321         * tests/test-priv-set.c: Likewise.
19322         * tests/test-quotearg.c: Likewise.
19323         * tests/test-random_r.c: Likewise.
19324         * tests/test-rawmemchr.c: Likewise.
19325         * tests/test-rbtree_list.c: Likewise.
19326         * tests/test-rbtree_oset.c: Likewise.
19327         * tests/test-rbtreehash_list.c: Likewise.
19328         * tests/test-readlink.c: Likewise.
19329         * tests/test-remove.c: Likewise.
19330         * tests/test-rename.c: Likewise.
19331         * tests/test-renameat.c: Likewise.
19332         * tests/test-rmdir.c: Likewise.
19333         * tests/test-round1.c: Likewise.
19334         * tests/test-roundf1.c: Likewise.
19335         * tests/test-roundl.c: Likewise.
19336         * tests/test-safe-alloc.c: Likewise.
19337         * tests/test-sameacls.c: Likewise.
19338         * tests/test-set-mode-acl.c: Likewise.
19339         * tests/test-setenv.c: Likewise.
19340         * tests/test-sigaction.c: Likewise.
19341         * tests/test-signbit.c: Likewise.
19342         * tests/test-sleep.c: Likewise.
19343         * tests/test-snprintf-posix.c: Likewise.
19344         * tests/test-snprintf.c: Likewise.
19345         * tests/test-sprintf-posix.c: Likewise.
19346         * tests/test-stat-time.c: Likewise.
19347         * tests/test-stat.c: Likewise.
19348         * tests/test-strcasestr.c: Likewise.
19349         * tests/test-strchrnul.c: Likewise.
19350         * tests/test-strerror.c: Likewise.
19351         * tests/test-striconv.c: Likewise.
19352         * tests/test-striconveh.c: Likewise.
19353         * tests/test-striconveha.c: Likewise.
19354         * tests/test-strsignal.c: Likewise.
19355         * tests/test-strstr.c: Likewise.
19356         * tests/test-strtod.c: Likewise.
19357         * tests/test-strverscmp.c: Likewise.
19358         * tests/test-symlink.c: Likewise.
19359         * tests/test-symlinkat.c: Likewise.
19360         * tests/test-trunc1.c: Likewise.
19361         * tests/test-trunc2.c: Likewise.
19362         * tests/test-truncf1.c: Likewise.
19363         * tests/test-truncf2.c: Likewise.
19364         * tests/test-truncl.c: Likewise.
19365         * tests/test-uname.c: Likewise.
19366         * tests/test-unlink.c: Likewise.
19367         * tests/test-unlinkat.c: Likewise.
19368         * tests/test-unsetenv.c: Likewise.
19369         * tests/test-usleep.c: Likewise.
19370         * tests/test-utimens.c: Likewise.
19371         * tests/test-utimensat.c: Likewise.
19372         * tests/test-vasnprintf-posix.c: Likewise.
19373         * tests/test-vasnprintf-posix2.c: Likewise.
19374         * tests/test-vasnprintf.c: Likewise.
19375         * tests/test-vasprintf-posix.c: Likewise.
19376         * tests/test-vasprintf.c: Likewise.
19377         * tests/test-vdprintf-posix.c: Likewise.
19378         * tests/test-vfprintf-posix.c: Likewise.
19379         * tests/test-vprintf-posix.c: Likewise.
19380         * tests/test-vsnprintf-posix.c: Likewise.
19381         * tests/test-vsnprintf.c: Likewise.
19382         * tests/test-vsprintf-posix.c: Likewise.
19383         * tests/test-wcrtomb.c: Likewise.
19384         * tests/test-wcsnrtombs.c: Likewise.
19385         * tests/test-wcsrtombs.c: Likewise.
19386         * tests/test-wctype.c: Likewise.
19387         * tests/test-wcwidth.c: Likewise.
19388         * tests/test-xfprintf-posix.c: Likewise.
19389         * tests/test-xmemdup0.c: Likewise.
19390         * tests/test-xprintf-posix.c: Likewise.
19391         * tests/test-xvasprintf.c: Likewise.
19392         * tests/unicase/test-locale-language.c: Likewise.
19393         * tests/unicase/test-mapping-part1.h: Likewise.
19394         * tests/unicase/test-predicate-part1.h: Likewise.
19395         * tests/unicase/test-u8-casecmp.c: Likewise.
19396         * tests/unicase/test-u8-casecoll.c: Likewise.
19397         * tests/unicase/test-u8-casefold.c: Likewise.
19398         * tests/unicase/test-u8-is-cased.c: Likewise.
19399         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19400         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19401         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19402         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19403         * tests/unicase/test-u8-tolower.c: Likewise.
19404         * tests/unicase/test-u8-totitle.c: Likewise.
19405         * tests/unicase/test-u8-toupper.c: Likewise.
19406         * tests/unicase/test-u16-casecmp.c: Likewise.
19407         * tests/unicase/test-u16-casecoll.c: Likewise.
19408         * tests/unicase/test-u16-casefold.c: Likewise.
19409         * tests/unicase/test-u16-is-cased.c: Likewise.
19410         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19411         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19412         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19413         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19414         * tests/unicase/test-u16-tolower.c: Likewise.
19415         * tests/unicase/test-u16-totitle.c: Likewise.
19416         * tests/unicase/test-u16-toupper.c: Likewise.
19417         * tests/unicase/test-u32-casecmp.c: Likewise.
19418         * tests/unicase/test-u32-casecoll.c: Likewise.
19419         * tests/unicase/test-u32-casefold.c: Likewise.
19420         * tests/unicase/test-u32-is-cased.c: Likewise.
19421         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19422         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19423         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19424         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19425         * tests/unicase/test-u32-tolower.c: Likewise.
19426         * tests/unicase/test-u32-totitle.c: Likewise.
19427         * tests/unicase/test-u32-toupper.c: Likewise.
19428         * tests/unicase/test-ulc-casecmp.c: Likewise.
19429         * tests/unicase/test-ulc-casecoll.c: Likewise.
19430         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19431         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19432         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19433         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19434         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19435         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19436         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19437         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19438         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19439         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19440         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19441         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19442         * tests/unictype/test-bidi_byname.c: Likewise.
19443         * tests/unictype/test-bidi_name.c: Likewise.
19444         * tests/unictype/test-bidi_of.c: Likewise.
19445         * tests/unictype/test-bidi_test.c: Likewise.
19446         * tests/unictype/test-block_list.c: Likewise.
19447         * tests/unictype/test-block_of.c: Likewise.
19448         * tests/unictype/test-block_test.c: Likewise.
19449         * tests/unictype/test-categ_and.c: Likewise.
19450         * tests/unictype/test-categ_and_not.c: Likewise.
19451         * tests/unictype/test-categ_byname.c: Likewise.
19452         * tests/unictype/test-categ_name.c: Likewise.
19453         * tests/unictype/test-categ_none.c: Likewise.
19454         * tests/unictype/test-categ_of.c: Likewise.
19455         * tests/unictype/test-categ_or.c: Likewise.
19456         * tests/unictype/test-categ_test_withtable.c: Likewise.
19457         * tests/unictype/test-combining.c: Likewise.
19458         * tests/unictype/test-decdigit.c: Likewise.
19459         * tests/unictype/test-digit.c: Likewise.
19460         * tests/unictype/test-mirror.c: Likewise.
19461         * tests/unictype/test-numeric.c: Likewise.
19462         * tests/unictype/test-pr_byname.c: Likewise.
19463         * tests/unictype/test-pr_test.c: Likewise.
19464         * tests/unictype/test-predicate-part1.h: Likewise.
19465         * tests/unictype/test-scripts.c: Likewise.
19466         * tests/unictype/test-sy_c_ident.c: Likewise.
19467         * tests/unictype/test-sy_java_ident.c: Likewise.
19468         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19469         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19470         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19471         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19472         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19473         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19474         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19475         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19476         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19477         * tests/uninorm/test-compat-decomposition.c: Likewise.
19478         * tests/uninorm/test-composition.c: Likewise.
19479         * tests/uninorm/test-decomposing-form.c: Likewise.
19480         * tests/uninorm/test-decomposition.c: Likewise.
19481         * tests/uninorm/test-u8-nfc.c: Likewise.
19482         * tests/uninorm/test-u8-nfd.c: Likewise.
19483         * tests/uninorm/test-u8-nfkc.c: Likewise.
19484         * tests/uninorm/test-u8-nfkd.c: Likewise.
19485         * tests/uninorm/test-u8-normcmp.c: Likewise.
19486         * tests/uninorm/test-u8-normcoll.c: Likewise.
19487         * tests/uninorm/test-u16-nfc.c: Likewise.
19488         * tests/uninorm/test-u16-nfd.c: Likewise.
19489         * tests/uninorm/test-u16-nfkc.c: Likewise.
19490         * tests/uninorm/test-u16-nfkd.c: Likewise.
19491         * tests/uninorm/test-u16-normcmp.c: Likewise.
19492         * tests/uninorm/test-u16-normcoll.c: Likewise.
19493         * tests/uninorm/test-u32-nfc.c: Likewise.
19494         * tests/uninorm/test-u32-nfd.c: Likewise.
19495         * tests/uninorm/test-u32-nfkc.c: Likewise.
19496         * tests/uninorm/test-u32-nfkd.c: Likewise.
19497         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19498         * tests/uninorm/test-u32-normcmp.c: Likewise.
19499         * tests/uninorm/test-u32-normcoll.c: Likewise.
19500         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19501         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19502         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19503         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19504         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19505         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19506         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19507         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19508         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19509         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19510         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19511         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19512         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19513         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19514         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19515         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19516         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19517         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19518         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19519         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19520         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19521         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19522         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19523         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19524         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19525         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19526         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19527         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19528         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19529         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19530         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19531         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19532         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19533         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19534         * tests/uniwidth/test-u8-width.c: Likewise.
19535         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19536         * tests/uniwidth/test-u16-width.c: Likewise.
19537         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19538         * tests/uniwidth/test-u32-width.c: Likewise.
19539         * tests/uniwidth/test-uc_width.c: Likewise.
19540         * tests/uniwidth/test-uc_width2.c: Likewise.
19541         * modules/acl-tests (Files): Add tests/macros.h.
19542         * modules/areadlink-tests (Files): Likewise.
19543         * modules/areadlink-with-size-tests (Files): Likewise.
19544         * modules/areadlinkat-tests (Files): Likewise.
19545         * modules/areadlinkat-with-size-tests (Files): Likewise.
19546         * modules/argmatch-tests (Files): Likewise.
19547         * modules/argv-iter-tests (Files): Likewise.
19548         * modules/array-list-tests (Files): Likewise.
19549         * modules/array-mergesort-tests (Files): Likewise.
19550         * modules/array-oset-tests (Files): Likewise.
19551         * modules/avltree-list-tests (Files): Likewise.
19552         * modules/avltree-oset-tests (Files): Likewise.
19553         * modules/avltreehash-list-tests (Files): Likewise.
19554         * modules/base64-tests (Files): Likewise.
19555         * modules/binary-io-tests (Files): Likewise.
19556         * modules/bitrotate-tests (Files): Likewise.
19557         * modules/btowc-tests (Files): Likewise.
19558         * modules/byteswap-tests (Files): Likewise.
19559         * modules/c-ctype-tests (Files): Likewise.
19560         * modules/c-stack-tests (Files): Likewise.
19561         * modules/c-strcase-tests (Files): Likewise.
19562         * modules/c-strcasestr-tests (Files): Likewise.
19563         * modules/c-strstr-tests (Files): Likewise.
19564         * modules/canonicalize-lgpl-tests (Files): Likewise.
19565         * modules/canonicalize-tests (Files): Likewise.
19566         * modules/carray-list-tests (Files): Likewise.
19567         * modules/ceilf-tests (Files): Likewise.
19568         * modules/ceill-tests (Files): Likewise.
19569         * modules/chown-tests (Files): Likewise.
19570         * modules/cloexec-tests (Files): Likewise.
19571         * modules/copy-file-tests (Files): Likewise.
19572         * modules/count-one-bits-tests (Files): Likewise.
19573         * modules/dprintf-posix-tests (Files): Likewise.
19574         * modules/dup2-tests (Files): Likewise.
19575         * modules/dup3-tests (Files): Likewise.
19576         * modules/duplocale-tests (Files): Likewise.
19577         * modules/fbufmode-tests (Files): Likewise.
19578         * modules/fchdir-tests (Files): Likewise.
19579         * modules/fcntl-safer-tests (Files): Likewise.
19580         * modules/fcntl-tests (Files): Likewise.
19581         * modules/fdopendir-tests (Files): Likewise.
19582         * modules/fdutimensat-tests (Files): Likewise.
19583         * modules/fflush-tests (Files): Likewise.
19584         * modules/filevercmp-tests (Files): Likewise.
19585         * modules/flock-tests (Files): Likewise.
19586         * modules/floorf-tests (Files): Likewise.
19587         * modules/floorl-tests (Files): Likewise.
19588         * modules/fnmatch-tests (Files): Likewise.
19589         * modules/fopen-safer-tests (Files): Likewise.
19590         * modules/fopen-tests (Files): Likewise.
19591         * modules/fpending-tests (Files): Likewise.
19592         * modules/fprintf-posix-tests (Files): Likewise.
19593         * modules/fpurge-tests (Files): Likewise.
19594         * modules/freadable-tests (Files): Likewise.
19595         * modules/freadahead-tests (Files): Likewise.
19596         * modules/freading-tests (Files): Likewise.
19597         * modules/freadptr-tests (Files): Likewise.
19598         * modules/freadseek-tests (Files): Likewise.
19599         * modules/freopen-tests (Files): Likewise.
19600         * modules/frexp-nolibm-tests (Files): Likewise.
19601         * modules/frexp-tests (Files): Likewise.
19602         * modules/frexpl-nolibm-tests (Files): Likewise.
19603         * modules/frexpl-tests (Files): Likewise.
19604         * modules/fseek-tests (Files): Likewise.
19605         * modules/fseeko-tests (Files): Likewise.
19606         * modules/fstrcmp-tests (Files): Likewise.
19607         * modules/fsync-tests (Files): Likewise.
19608         * modules/ftell-tests (Files): Likewise.
19609         * modules/ftello-tests (Files): Likewise.
19610         * modules/func-tests (Files): Likewise.
19611         * modules/futimens-tests (Files): Likewise.
19612         * modules/fwritable-tests (Files): Likewise.
19613         * modules/fwriting-tests (Files): Likewise.
19614         * modules/getcwd-tests (Files): Likewise.
19615         * modules/getdate-tests (Files): Likewise.
19616         * modules/getdelim-tests (Files): Likewise.
19617         * modules/getdtablesize-tests (Files): Likewise.
19618         * modules/getgroups-tests (Files): Likewise.
19619         * modules/getline-tests (Files): Likewise.
19620         * modules/getndelim2-tests (Files): Likewise.
19621         * modules/glob-tests (Files): Likewise.
19622         * modules/hash-tests (Files): Likewise.
19623         * modules/i-ring-tests (Files): Likewise.
19624         * modules/iconv-tests (Files): Likewise.
19625         * modules/iconv_open-utf-tests (Files): Likewise.
19626         * modules/idpriv-drop-tests (Files): Likewise.
19627         * modules/idpriv-droptemp-tests (Files): Likewise.
19628         * modules/inet_ntop-tests (Files): Likewise.
19629         * modules/inet_pton-tests (Files): Likewise.
19630         * modules/isblank-tests (Files): Likewise.
19631         * modules/isfinite-tests (Files): Likewise.
19632         * modules/isinf-tests (Files): Likewise.
19633         * modules/isnan-tests (Files): Likewise.
19634         * modules/isnand-nolibm-tests (Files): Likewise.
19635         * modules/isnand-tests (Files): Likewise.
19636         * modules/isnanf-nolibm-tests (Files): Likewise.
19637         * modules/isnanf-tests (Files): Likewise.
19638         * modules/isnanl-nolibm-tests (Files): Likewise.
19639         * modules/isnanl-tests (Files): Likewise.
19640         * modules/lchown-tests (Files): Likewise.
19641         * modules/ldexpl-tests (Files): Likewise.
19642         * modules/link-tests (Files): Likewise.
19643         * modules/linkat-tests (Files): Likewise.
19644         * modules/linked-list-tests (Files): Likewise.
19645         * modules/linkedhash-list-tests (Files): Likewise.
19646         * modules/localename-tests (Files): Likewise.
19647         * modules/lseek-tests (Files): Likewise.
19648         * modules/lstat-tests (Files): Likewise.
19649         * modules/mbmemcasecmp-tests (Files): Likewise.
19650         * modules/mbmemcasecoll-tests (Files): Likewise.
19651         * modules/mbrtowc-tests (Files): Likewise.
19652         * modules/mbscasecmp-tests (Files): Likewise.
19653         * modules/mbscasestr-tests (Files): Likewise.
19654         * modules/mbschr-tests (Files): Likewise.
19655         * modules/mbscspn-tests (Files): Likewise.
19656         * modules/mbsinit-tests (Files): Likewise.
19657         * modules/mbsncasecmp-tests (Files): Likewise.
19658         * modules/mbsnrtowcs-tests (Files): Likewise.
19659         * modules/mbspbrk-tests (Files): Likewise.
19660         * modules/mbspcasecmp-tests (Files): Likewise.
19661         * modules/mbsrchr-tests (Files): Likewise.
19662         * modules/mbsrtowcs-tests (Files): Likewise.
19663         * modules/mbsspn-tests (Files): Likewise.
19664         * modules/mbsstr-tests (Files): Likewise.
19665         * modules/memchr-tests (Files): Likewise.
19666         * modules/memchr2-tests (Files): Likewise.
19667         * modules/memcmp-tests (Files): Likewise.
19668         * modules/memmem-tests (Files): Likewise.
19669         * modules/memrchr-tests (Files): Likewise.
19670         * modules/mkdir-tests (Files): Likewise.
19671         * modules/mkfifo-tests (Files): Likewise.
19672         * modules/mkfifoat-tests (Files): Likewise.
19673         * modules/mknod-tests (Files): Likewise.
19674         * modules/nanosleep-tests (Files): Likewise.
19675         * modules/nl_langinfo-tests (Files): Likewise.
19676         * modules/obstack-printf-tests (Files): Likewise.
19677         * modules/open-tests (Files): Likewise.
19678         * modules/openat-tests (Files): Likewise.
19679         * modules/pipe-filter-gi-tests (Files): Likewise.
19680         * modules/pipe-filter-ii-tests (Files): Likewise.
19681         * modules/pipe2-tests (Files): Likewise.
19682         * modules/popen-safer-tests (Files): Likewise.
19683         * modules/popen-tests (Files): Likewise.
19684         * modules/posixtm-tests (Files): Likewise.
19685         * modules/pread-tests (Files): Likewise.
19686         * modules/printf-frexp-tests (Files): Likewise.
19687         * modules/printf-frexpl-tests (Files): Likewise.
19688         * modules/printf-posix-tests (Files): Likewise.
19689         * modules/priv-set-tests (Files): Likewise.
19690         * modules/quotearg-tests (Files): Likewise.
19691         * modules/random_r-tests (Files): Likewise.
19692         * modules/rawmemchr-tests (Files): Likewise.
19693         * modules/rbtree-list-tests (Files): Likewise.
19694         * modules/rbtree-oset-tests (Files): Likewise.
19695         * modules/rbtreehash-list-tests (Files): Likewise.
19696         * modules/readlink-tests (Files): Likewise.
19697         * modules/remove-tests (Files): Likewise.
19698         * modules/rename-tests (Files): Likewise.
19699         * modules/renameat-tests (Files): Likewise.
19700         * modules/rmdir-tests (Files): Likewise.
19701         * modules/round-tests (Files): Likewise.
19702         * modules/roundf-tests (Files): Likewise.
19703         * modules/roundl-tests (Files): Likewise.
19704         * modules/safe-alloc-tests (Files): Likewise.
19705         * modules/setenv-tests (Files): Likewise.
19706         * modules/sigaction-tests (Files): Likewise.
19707         * modules/signbit-tests (Files): Likewise.
19708         * modules/sleep-tests (Files): Likewise.
19709         * modules/snprintf-posix-tests (Files): Likewise.
19710         * modules/snprintf-tests (Files): Likewise.
19711         * modules/sprintf-posix-tests (Files): Likewise.
19712         * modules/stat-tests (Files): Likewise.
19713         * modules/stat-time-tests (Files): Likewise.
19714         * modules/strcasestr-tests (Files): Likewise.
19715         * modules/strchrnul-tests (Files): Likewise.
19716         * modules/strerror-tests (Files): Likewise.
19717         * modules/striconv-tests (Files): Likewise.
19718         * modules/striconveh-tests (Files): Likewise.
19719         * modules/striconveha-tests (Files): Likewise.
19720         * modules/strsignal-tests (Files): Likewise.
19721         * modules/strstr-tests (Files): Likewise.
19722         * modules/strtod-tests (Files): Likewise.
19723         * modules/strverscmp-tests (Files): Likewise.
19724         * modules/symlink-tests (Files): Likewise.
19725         * modules/symlinkat-tests (Files): Likewise.
19726         * modules/trunc-tests (Files): Likewise.
19727         * modules/truncf-tests (Files): Likewise.
19728         * modules/truncl-tests (Files): Likewise.
19729         * modules/uname-tests (Files): Likewise.
19730         * modules/unicase/cased-tests (Files): Likewise.
19731         * modules/unicase/ignorable-tests (Files): Likewise.
19732         * modules/unicase/locale-language-tests (Files): Likewise.
19733         * modules/unicase/tolower-tests (Files): Likewise.
19734         * modules/unicase/totitle-tests (Files): Likewise.
19735         * modules/unicase/toupper-tests (Files): Likewise.
19736         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19737         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19738         * modules/unicase/u8-casefold-tests (Files): Likewise.
19739         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19740         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19741         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19742         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19743         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19744         * modules/unicase/u8-tolower-tests (Files): Likewise.
19745         * modules/unicase/u8-totitle-tests (Files): Likewise.
19746         * modules/unicase/u8-toupper-tests (Files): Likewise.
19747         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19748         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19749         * modules/unicase/u16-casefold-tests (Files): Likewise.
19750         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19751         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19752         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19753         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19754         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19755         * modules/unicase/u16-tolower-tests (Files): Likewise.
19756         * modules/unicase/u16-totitle-tests (Files): Likewise.
19757         * modules/unicase/u16-toupper-tests (Files): Likewise.
19758         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19759         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19760         * modules/unicase/u32-casefold-tests (Files): Likewise.
19761         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19762         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19763         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19764         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19765         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19766         * modules/unicase/u32-tolower-tests (Files): Likewise.
19767         * modules/unicase/u32-totitle-tests (Files): Likewise.
19768         * modules/unicase/u32-toupper-tests (Files): Likewise.
19769         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19770         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19771         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19772         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19773         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19774         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19775         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19776         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19777         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19778         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19779         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19780         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19781         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19782         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19783         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19784         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19785         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19786         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19787         * modules/unictype/block-list-tests (Files): Likewise.
19788         * modules/unictype/block-of-tests (Files): Likewise.
19789         * modules/unictype/block-test-tests (Files): Likewise.
19790         * modules/unictype/category-C-tests (Files): Likewise.
19791         * modules/unictype/category-Cc-tests (Files): Likewise.
19792         * modules/unictype/category-Cf-tests (Files): Likewise.
19793         * modules/unictype/category-Cn-tests (Files): Likewise.
19794         * modules/unictype/category-Co-tests (Files): Likewise.
19795         * modules/unictype/category-Cs-tests (Files): Likewise.
19796         * modules/unictype/category-L-tests (Files): Likewise.
19797         * modules/unictype/category-Ll-tests (Files): Likewise.
19798         * modules/unictype/category-Lm-tests (Files): Likewise.
19799         * modules/unictype/category-Lo-tests (Files): Likewise.
19800         * modules/unictype/category-Lt-tests (Files): Likewise.
19801         * modules/unictype/category-Lu-tests (Files): Likewise.
19802         * modules/unictype/category-M-tests (Files): Likewise.
19803         * modules/unictype/category-Mc-tests (Files): Likewise.
19804         * modules/unictype/category-Me-tests (Files): Likewise.
19805         * modules/unictype/category-Mn-tests (Files): Likewise.
19806         * modules/unictype/category-N-tests (Files): Likewise.
19807         * modules/unictype/category-Nd-tests (Files): Likewise.
19808         * modules/unictype/category-Nl-tests (Files): Likewise.
19809         * modules/unictype/category-No-tests (Files): Likewise.
19810         * modules/unictype/category-P-tests (Files): Likewise.
19811         * modules/unictype/category-Pc-tests (Files): Likewise.
19812         * modules/unictype/category-Pd-tests (Files): Likewise.
19813         * modules/unictype/category-Pe-tests (Files): Likewise.
19814         * modules/unictype/category-Pf-tests (Files): Likewise.
19815         * modules/unictype/category-Pi-tests (Files): Likewise.
19816         * modules/unictype/category-Po-tests (Files): Likewise.
19817         * modules/unictype/category-Ps-tests (Files): Likewise.
19818         * modules/unictype/category-S-tests (Files): Likewise.
19819         * modules/unictype/category-Sc-tests (Files): Likewise.
19820         * modules/unictype/category-Sk-tests (Files): Likewise.
19821         * modules/unictype/category-Sm-tests (Files): Likewise.
19822         * modules/unictype/category-So-tests (Files): Likewise.
19823         * modules/unictype/category-Z-tests (Files): Likewise.
19824         * modules/unictype/category-Zl-tests (Files): Likewise.
19825         * modules/unictype/category-Zp-tests (Files): Likewise.
19826         * modules/unictype/category-Zs-tests (Files): Likewise.
19827         * modules/unictype/category-and-not-tests (Files): Likewise.
19828         * modules/unictype/category-and-tests (Files): Likewise.
19829         * modules/unictype/category-byname-tests (Files): Likewise.
19830         * modules/unictype/category-name-tests (Files): Likewise.
19831         * modules/unictype/category-none-tests (Files): Likewise.
19832         * modules/unictype/category-of-tests (Files): Likewise.
19833         * modules/unictype/category-or-tests (Files): Likewise.
19834         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19835         * modules/unictype/combining-class-tests (Files): Likewise.
19836         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19837         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19838         * modules/unictype/ctype-blank-tests (Files): Likewise.
19839         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19840         * modules/unictype/ctype-digit-tests (Files): Likewise.
19841         * modules/unictype/ctype-graph-tests (Files): Likewise.
19842         * modules/unictype/ctype-lower-tests (Files): Likewise.
19843         * modules/unictype/ctype-print-tests (Files): Likewise.
19844         * modules/unictype/ctype-punct-tests (Files): Likewise.
19845         * modules/unictype/ctype-space-tests (Files): Likewise.
19846         * modules/unictype/ctype-upper-tests (Files): Likewise.
19847         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19848         * modules/unictype/decimal-digit-tests (Files): Likewise.
19849         * modules/unictype/digit-tests (Files): Likewise.
19850         * modules/unictype/mirror-tests (Files): Likewise.
19851         * modules/unictype/numeric-tests (Files): Likewise.
19852         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19853         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19854         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19855         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19856         Likewise.
19857         * modules/unictype/property-bidi-block-separator-tests (Files):
19858         Likewise.
19859         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19860         Likewise.
19861         * modules/unictype/property-bidi-common-separator-tests (Files):
19862         Likewise.
19863         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19864         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19865         Likewise.
19866         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19867         Likewise.
19868         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19869         Likewise.
19870         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19871         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19872         Likewise.
19873         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19874         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19875         Likewise.
19876         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19877         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19878         * modules/unictype/property-bidi-segment-separator-tests (Files):
19879         Likewise.
19880         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19881         * modules/unictype/property-byname-tests (Files): Likewise.
19882         * modules/unictype/property-combining-tests (Files): Likewise.
19883         * modules/unictype/property-composite-tests (Files): Likewise.
19884         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19885         * modules/unictype/property-dash-tests (Files): Likewise.
19886         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19887         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19888         Likewise.
19889         * modules/unictype/property-deprecated-tests (Files): Likewise.
19890         * modules/unictype/property-diacritic-tests (Files): Likewise.
19891         * modules/unictype/property-extender-tests (Files): Likewise.
19892         * modules/unictype/property-format-control-tests (Files): Likewise.
19893         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19894         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19895         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19896         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19897         * modules/unictype/property-hyphen-tests (Files): Likewise.
19898         * modules/unictype/property-id-continue-tests (Files): Likewise.
19899         * modules/unictype/property-id-start-tests (Files): Likewise.
19900         * modules/unictype/property-ideographic-tests (Files): Likewise.
19901         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19902         * modules/unictype/property-ids-trinary-operator-tests (Files):
19903         Likewise.
19904         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19905         * modules/unictype/property-iso-control-tests (Files): Likewise.
19906         * modules/unictype/property-join-control-tests (Files): Likewise.
19907         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19908         * modules/unictype/property-line-separator-tests (Files): Likewise.
19909         * modules/unictype/property-logical-order-exception-tests (Files):
19910         Likewise.
19911         * modules/unictype/property-lowercase-tests (Files): Likewise.
19912         * modules/unictype/property-math-tests (Files): Likewise.
19913         * modules/unictype/property-non-break-tests (Files): Likewise.
19914         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19915         * modules/unictype/property-numeric-tests (Files): Likewise.
19916         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19917         * modules/unictype/property-other-default-ignorable-code-point-tests
19918         (Files): Likewise.
19919         * modules/unictype/property-other-grapheme-extend-tests (Files):
19920         Likewise.
19921         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19922         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19923         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19924         * modules/unictype/property-other-math-tests (Files): Likewise.
19925         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19926         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19927         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19928         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19929         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19930         * modules/unictype/property-private-use-tests (Files): Likewise.
19931         * modules/unictype/property-punctuation-tests (Files): Likewise.
19932         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19933         * modules/unictype/property-radical-tests (Files): Likewise.
19934         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19935         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19936         * modules/unictype/property-space-tests (Files): Likewise.
19937         * modules/unictype/property-terminal-punctuation-tests (Files):
19938         Likewise.
19939         * modules/unictype/property-test-tests (Files): Likewise.
19940         * modules/unictype/property-titlecase-tests (Files): Likewise.
19941         * modules/unictype/property-unassigned-code-value-tests (Files):
19942         Likewise.
19943         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19944         * modules/unictype/property-uppercase-tests (Files): Likewise.
19945         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19946         * modules/unictype/property-white-space-tests (Files): Likewise.
19947         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19948         * modules/unictype/property-xid-start-tests (Files): Likewise.
19949         * modules/unictype/property-zero-width-tests (Files): Likewise.
19950         * modules/unictype/scripts-tests (Files): Likewise.
19951         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19952         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19953         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19954         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19955         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19956         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19957         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19958         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19959         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19960         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19961         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19962         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19963         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19964         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19965         * modules/uninorm/composition-tests (Files): Likewise.
19966         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19967         * modules/uninorm/decomposition-tests (Files): Likewise.
19968         * modules/uninorm/filter-tests (Files): Likewise.
19969         * modules/uninorm/nfc-tests (Files): Likewise.
19970         * modules/uninorm/nfd-tests (Files): Likewise.
19971         * modules/uninorm/nfkc-tests (Files): Likewise.
19972         * modules/uninorm/nfkd-tests (Files): Likewise.
19973         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19974         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19975         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19976         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19977         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19978         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19979         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19980         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19981         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19982         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19983         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19984         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19985         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19986         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19987         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19988         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19989         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19990         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19991         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19992         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19993         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19994         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19995         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19996         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19997         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19998         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19999         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20000         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20001         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20002         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20003         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20004         * modules/uniwidth/u8-width-tests (Files): Likewise.
20005         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20006         * modules/uniwidth/u16-width-tests (Files): Likewise.
20007         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20008         * modules/uniwidth/u32-width-tests (Files): Likewise.
20009         * modules/uniwidth/width-tests (Files): Likewise.
20010         * modules/unlink-tests (Files): Likewise.
20011         * modules/unsetenv-tests (Files): Likewise.
20012         * modules/usleep-tests (Files): Likewise.
20013         * modules/utimens-tests (Files): Likewise.
20014         * modules/utimensat-tests (Files): Likewise.
20015         * modules/vasnprintf-posix-tests (Files): Likewise.
20016         * modules/vasnprintf-tests (Files): Likewise.
20017         * modules/vasprintf-posix-tests (Files): Likewise.
20018         * modules/vasprintf-tests (Files): Likewise.
20019         * modules/vdprintf-posix-tests (Files): Likewise.
20020         * modules/vfprintf-posix-tests (Files): Likewise.
20021         * modules/vprintf-posix-tests (Files): Likewise.
20022         * modules/vsnprintf-posix-tests (Files): Likewise.
20023         * modules/vsnprintf-tests (Files): Likewise.
20024         * modules/vsprintf-posix-tests (Files): Likewise.
20025         * modules/wcrtomb-tests (Files): Likewise.
20026         * modules/wcsnrtombs-tests (Files): Likewise.
20027         * modules/wcsrtombs-tests (Files): Likewise.
20028         * modules/wctype-tests (Files): Likewise.
20029         * modules/wcwidth-tests (Files): Likewise.
20030         * modules/xmemdup0-tests (Files): Likewise.
20031         * modules/xprintf-posix-tests (Files): Likewise.
20032         * modules/xvasprintf-tests (Files): Likewise.
20033
20034 2009-12-24  Eric Blake  <ebb9@byu.net>
20035
20036         test-nanosleep: fix typo
20037         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20038         patch.
20039         Reported by Bruno Haible.
20040
20041 2009-12-24  Bruno Haible  <bruno@clisp.org>
20042
20043         Reduce namespace pollution on glibc systems.
20044         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20045         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20046         systems.
20047         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20048         <getopt.h> on glibc systems.
20049         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20050         systems.
20051         * lib/fcntl.c: Include <unistd.h> here instead.
20052
20053 2009-12-24  Bruno Haible  <bruno@clisp.org>
20054
20055         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20056
20057 2009-12-24  Eric Blake  <ebb9@byu.net>
20058
20059         tests: add signature checks
20060         * tests/signature.h (SIGNATURE_CHECK): New file.
20061         * modules/atexit-tests (Files): Use it.
20062         * modules/btowc-tests (Files): Likewise.
20063         * modules/canonicalize-lgpl-tests (Files): Likewise.
20064         * modules/ceilf-tests (Files): Likewise.
20065         * modules/ceill-tests (Files): Likewise.
20066         * modules/chown-tests (Files): Likewise.
20067         * modules/dprintf-posix-tests (Files): Likewise.
20068         * modules/dup2-tests (Files): Likewise.
20069         * modules/dup3-tests (Files): Likewise.
20070         * modules/duplocale-tests (Files): Likewise.
20071         * modules/fchdir-tests (Files): Likewise.
20072         * modules/fcntl-tests (Files): Likewise.
20073         * modules/fdopendir-tests (Files): Likewise.
20074         * modules/fflush-tests (Files): Likewise.
20075         * modules/flock-tests (Files): Likewise.
20076         * modules/floorf-tests (Files): Likewise.
20077         * modules/floorl-tests (Files): Likewise.
20078         * modules/fnmatch-tests (Files): Likewise.
20079         * modules/fopen-tests (Files): Likewise.
20080         * modules/fprintf-posix-tests (Files): Likewise.
20081         * modules/freopen-tests (Files): Likewise.
20082         * modules/frexp-nolibm-tests (Files): Likewise.
20083         * modules/frexp-tests (Files): Likewise.
20084         * modules/frexpl-nolibm-tests (Files): Likewise.
20085         * modules/frexpl-tests (Files): Likewise.
20086         * modules/fseek-tests (Files): Likewise.
20087         * modules/fseeko-tests (Files): Likewise.
20088         * modules/fsync-tests (Files): Likewise.
20089         * modules/ftell-tests (Files): Likewise.
20090         * modules/ftello-tests (Files): Likewise.
20091         * modules/futimens-tests (Files): Likewise.
20092         * modules/getaddrinfo-tests (Files): Likewise.
20093         * modules/getcwd-tests (Files): Likewise.
20094         * modules/getdelim-tests (Files): Likewise.
20095         * modules/getdtablesize-tests (Files): Likewise.
20096         * modules/getgroups-tests (Files): Likewise.
20097         * modules/gethostname-tests (Files): Likewise.
20098         * modules/getline-tests (Files): Likewise.
20099         * modules/getopt-posix-tests (Files): Likewise.
20100         * modules/gettimeofday-tests (Files): Likewise.
20101         * modules/glob-tests (Files): Likewise.
20102         * modules/iconv-tests (Files): Likewise.
20103         * modules/inet_ntop-tests (Files): Likewise.
20104         * modules/inet_pton-tests (Files): Likewise.
20105         * modules/isblank-tests (Files): Likewise.
20106         * modules/lchown-tests (Files): Likewise.
20107         * modules/ldexpl-tests (Files): Likewise.
20108         * modules/link-tests (Files): Likewise.
20109         * modules/linkat-tests (Files): Likewise.
20110         * modules/lseek-tests (Files): Likewise.
20111         * modules/lstat-tests (Files): Likewise.
20112         * modules/mbrtowc-tests (Files): Likewise.
20113         * modules/mbsinit-tests (Files): Likewise.
20114         * modules/mbsnrtowcs-tests (Files): Likewise.
20115         * modules/mbsrtowcs-tests (Files): Likewise.
20116         * modules/memchr-tests (Files): Likewise.
20117         * modules/memcmp-tests (Files): Likewise.
20118         * modules/memmem-tests (Files): Likewise.
20119         * modules/memrchr-tests (Files): Likewise.
20120         * modules/mkdir-tests (Files): Likewise.
20121         * modules/mkfifo-tests (Files): Likewise.
20122         * modules/mkfifoat-tests (Files): Likewise.
20123         * modules/mknod-tests (Files): Likewise.
20124         * modules/nanosleep-tests (Files): Likewise.
20125         * modules/nl_langinfo-tests (Files): Likewise.
20126         * modules/obstack-printf-tests (Files): Likewise.
20127         * modules/open-tests (Files): Likewise.
20128         * modules/openat-tests (Files): Likewise.
20129         * modules/perror-tests (Files): Likewise.
20130         * modules/pipe2-tests (Files): Likewise.
20131         * modules/poll-tests (Files): Likewise.
20132         * modules/popen-tests (Files): Likewise.
20133         * modules/posix_spawn-tests (Files): Likewise.
20134         * modules/posix_spawnp-tests (Files): Likewise.
20135         * modules/pread-tests (Files): Likewise.
20136         * modules/printf-posix-tests (Files): Likewise.
20137         * modules/pty-tests (Files): Likewise.
20138         * modules/random_r-tests (Files): Likewise.
20139         * modules/rawmemchr-tests (Files): Likewise.
20140         * modules/readlink-tests (Files): Likewise.
20141         * modules/remove-tests (Files): Likewise.
20142         * modules/rename-tests (Files): Likewise.
20143         * modules/renameat-tests (Files): Likewise.
20144         * modules/rmdir-tests (Files): Likewise.
20145         * modules/round-tests (Files): Likewise.
20146         * modules/roundf-tests (Files): Likewise.
20147         * modules/roundl-tests (Files): Likewise.
20148         * modules/select-tests (Files): Likewise.
20149         * modules/setenv-tests (Files): Likewise.
20150         * modules/sigaction-tests (Files): Likewise.
20151         * modules/sleep-tests (Files): Likewise.
20152         * modules/snprintf-posix-tests (Files): Likewise.
20153         * modules/snprintf-tests (Files): Likewise.
20154         * modules/sprintf-posix-tests (Files): Likewise.
20155         * modules/stat-tests (Files): Likewise.
20156         * modules/strcasestr-tests (Files): Likewise.
20157         * modules/strchrnul-tests (Files): Likewise.
20158         * modules/strerror-tests (Files): Likewise.
20159         * modules/strsignal-tests (Files): Likewise.
20160         * modules/strstr-tests (Files): Likewise.
20161         * modules/strtod-tests (Files): Likewise.
20162         * modules/strverscmp-tests (Files): Likewise.
20163         * modules/symlink-tests (Files): Likewise.
20164         * modules/symlinkat-tests (Files): Likewise.
20165         * modules/times-tests (Files): Likewise.
20166         * modules/trunc-tests (Files): Likewise.
20167         * modules/truncf-tests (Files): Likewise.
20168         * modules/truncl-tests (Files): Likewise.
20169         * modules/tsearch-tests (Files): Likewise.
20170         * modules/uname-tests (Files): Likewise.
20171         * modules/unlink-tests (Files): Likewise.
20172         * modules/unsetenv-tests (Files): Likewise.
20173         * modules/usleep-tests (Files): Likewise.
20174         * modules/utimensat-tests (Files): Likewise.
20175         * modules/vasprintf-tests (Files): Likewise.
20176         * modules/vdprintf-posix-tests (Files): Likewise.
20177         * modules/vfprintf-posix-tests (Files): Likewise.
20178         * modules/vprintf-posix-tests (Files): Likewise.
20179         * modules/vsnprintf-posix-tests (Files): Likewise.
20180         * modules/vsnprintf-tests (Files): Likewise.
20181         * modules/vsprintf-posix-tests (Files): Likewise.
20182         * modules/wcrtomb-tests (Files): Likewise.
20183         * modules/wcsnrtombs-tests (Files): Likewise.
20184         * modules/wcsrtombs-tests (Files): Likewise.
20185         * modules/wcwidth-tests (Files): Likewise.
20186         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20187         * tests/test-isinf.c (isinf): Likewise.
20188         * tests/test-isnan.c (isnan): Likewise.
20189         * tests/test-signbit.c (signbit): Likewise.
20190         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20191         declaration, either as macro or with correct signature.
20192         (select): Ensure function under test is declared with correct
20193         signature in correct header.
20194         * tests/test-atexit.c (atexit): Likewise.
20195         * tests/test-btowc.c (btowc): Likewise.
20196         * tests/test-canonicalize-lgpl.c (realpath)
20197         (canonicalize_file_name): Likewise.
20198         * tests/test-ceilf1.c (ceilf): Likewise.
20199         * tests/test-ceill.c (ceill): Likewise.
20200         * tests/test-chown.c (chown): Likewise.
20201         * tests/test-dprintf-posix.c (dprintf): Likewise.
20202         * tests/test-dup2.c (dup2): Likewise.
20203         * tests/test-dup3.c (dup3): Likewise.
20204         * tests/test-duplocale.c (duplocale): Likewise.
20205         * tests/test-fchdir.c (fchdir): Likewise.
20206         * tests/test-fchownat.c (fchownat): Likewise.
20207         * tests/test-fcntl.c (fcntl): Likewise.
20208         * tests/test-fdopendir.c (fdopendir): Likewise.
20209         * tests/test-fflush.c (fflush): Likewise.
20210         * tests/test-flock.c (flock): Likewise.
20211         * tests/test-floorf1.c (floorf): Likewise.
20212         * tests/test-floorl.c (floorl): Likewise.
20213         * tests/test-fnmatch.c (fnmatch): Likewise.
20214         * tests/test-fopen.c (fopen): Likewise.
20215         * tests/test-fprintf-posix.c (fprintf): Likewise.
20216         * tests/test-freopen.c (freopen): Likewise.
20217         * tests/test-frexp.c (frexp): Likewise.
20218         * tests/test-frexpl.c (frexpl): Likewise.
20219         * tests/test-fseek.c (fseek): Likewise.
20220         * tests/test-fseeko.c (fseeko): Likewise.
20221         * tests/test-fstatat.c (fstatat): Likewise.
20222         * tests/test-fsync.c (fsync): Likewise.
20223         * tests/test-ftell.c (ftell): Likewise.
20224         * tests/test-ftello.c (ftello): Likewise.
20225         * tests/test-futimens.c (futimens): Likewise.
20226         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20227         (gai_strerror): Likewise.
20228         * tests/test-getcwd.c (getcwd): Likewise.
20229         * tests/test-getdelim.c (getdelim): Likewise.
20230         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20231         * tests/test-getgroups.c (getgroups): Likewise.
20232         * tests/test-gethostname.c (gethostname): Likewise.
20233         * tests/test-getline.c (getline): Likewise.
20234         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20235         Likewise.
20236         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20237         * tests/test-glob.c (glob, globfree): Likewise.
20238         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20239         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20240         * tests/test-inet_pton.c (inet_pton): Likewise.
20241         * tests/test-isblank.c (isblank): Likewise.
20242         * tests/test-lchown.c (lchown): Likewise.
20243         * tests/test-ldexpl.c (ldexpl): Likewise.
20244         * tests/test-link.c (link): Likewise.
20245         * tests/test-linkat.c (linkat): Likewise.
20246         * tests/test-lseek.c (lseek): Likewise.
20247         * tests/test-lstat.c (lstat): Likewise.
20248         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20249         * tests/test-mbsinit.c (mbsinit): Likewise.
20250         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20251         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20252         * tests/test-memchr.c (memchr): Likewise.
20253         * tests/test-memcmp.c (memcmp): Likewise.
20254         * tests/test-memmem.c (memmem): Likewise.
20255         * tests/test-memrchr.c (memrchr): Likewise.
20256         * tests/test-mkdir.c (mkdir): Likewise.
20257         * tests/test-mkdirat.c (mkdirat): Likewise.
20258         * tests/test-mkfifo.c (mkfifo): Likewise.
20259         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20260         * tests/test-mknod.c (mknod): Likewise.
20261         * tests/test-nanosleep.c (nanosleep): Likewise.
20262         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20263         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20264         Likewise.
20265         * tests/test-open.c (open): Likewise.
20266         * tests/test-openat.c (openat): Likewise.
20267         * tests/test-perror.c (perror): Likewise.
20268         * tests/test-pipe2.c (pipe2): Likewise.
20269         * tests/test-poll.c (poll): Likewise.
20270         * tests/test-popen.c (popen, pclose): Likewise.
20271         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20272         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20273         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20274         (posix_spawn_file_actions_destroy)
20275         (posix_spawn_file_actions_addclose)
20276         (posix_spawn_file_actions_addopen)
20277         (posix_spawn_file_actions_adddup2): Likewise.
20278         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20279         * tests/test-pread.c (pread): Likewise.
20280         * tests/test-printf-posix.c (printf): Likewise.
20281         * tests/test-pty.c (openpty, forkpty): Likewise.
20282         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20283         (random_r): Likewise.
20284         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20285         * tests/test-readlink.c (readlink): Likewise.
20286         * tests/test-remove.c (remove): Likewise.
20287         * tests/test-rename.c (rename): Likewise.
20288         * tests/test-renameat.c (renameat): Likewise.
20289         * tests/test-rmdir.c (rmdir): Likewise.
20290         * tests/test-round1.c (round): Likewise.
20291         * tests/test-roundf1.c (roundf): Likewise.
20292         * tests/test-roundl.c (roundl): Likewise.
20293         * tests/test-setenv.c (setenv): Likewise.
20294         * tests/test-sigaction.c (sigaction): Likewise.
20295         * tests/test-sleep.c (sleep): Likewise.
20296         * tests/test-snprintf.c (snprintf): Likewise.
20297         * tests/test-sprintf-posix.c (sprintf): Likewise.
20298         * tests/test-stat.c (stat): Likewise.
20299         * tests/test-stpncpy.c (stpncpy): Likewise.
20300         * tests/test-strcasestr.c (strcasestr): Likewise.
20301         * tests/test-strchrnul.c (strchrnul): Likewise.
20302         * tests/test-strerror.c (strerror): Likewise.
20303         * tests/test-strsignal.c (strsignal): Likewise.
20304         * tests/test-strstr.c (strstr): Likewise.
20305         * tests/test-strtod.c (strtod): Likewise.
20306         * tests/test-strverscmp.c (strverscmp): Likewise.
20307         * tests/test-symlink.c (symlink): Likewise.
20308         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20309         * tests/test-times.c (times): Likewise.
20310         * tests/test-trunc1.c (trunc): Likewise.
20311         * tests/test-truncf1.c (truncf): Likewise.
20312         * tests/test-truncl.c (truncl): Likewise.
20313         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20314         Likewise.
20315         * tests/test-uname.c (uname): Likewise.
20316         * tests/test-unlink.c (unlink): Likewise.
20317         * tests/test-unlinkat.c (unlinkat): Likewise.
20318         * tests/test-unsetenv.c (unsetenv): Likewise.
20319         * tests/test-usleep.c (usleep): Likewise.
20320         * tests/test-utimensat.c (utimensat): Likewise.
20321         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20322         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20323         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20324         * tests/test-vprintf-posix.c (vprintf): Likewise.
20325         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20326         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20327         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20328         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20329         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20330         * tests/test-wcwidth.c (wcwidth): Likewise.
20331
20332         build: pull in conditional headers during GNULIB_POSIXCHECK
20333         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20334         definitions from any conditionally-included headers.
20335         * lib/stdlib.in.h (includes): Likewise.
20336         * lib/unistd.in.h (includes): Likewise.
20337
20338 2009-12-24  Bruno Haible  <bruno@clisp.org>
20339
20340         * tests/test-argv-iter.c: Include header file being tested immediately
20341         after config.h.
20342         * tests/test-base64.c: Likewise.
20343         * tests/test-flock.c: Likewise.
20344         * tests/test-fsync.c: Likewise.
20345         * tests/test-getdate.c: Likewise.
20346         * tests/test-getndelim2.c: Likewise.
20347         * tests/test-isfinite.c: Likewise.
20348         * tests/test-isinf.c: Likewise.
20349         * tests/test-strerror.c: Likewise.
20350         * tests/test-strsignal.c: Likewise.
20351
20352 2009-12-23  Eric Blake  <ebb9@byu.net>
20353
20354         unistd: work around cygwin bug
20355         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20356         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20357         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20358
20359 2009-12-23  Bruno Haible  <bruno@clisp.org>
20360
20361         localename: More tests.
20362         * tests/test-localename.c (SIZEOF): New macro.
20363         (categories): New variable.
20364         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20365         test_locale_name_default): Add test w.r.t. thread locale.
20366         (test_locale_name_thread): New function.
20367         (main): Invoke it.
20368
20369         localename: Make aware of thread locale.
20370         * lib/localename.h (gl_locale_name_thread): New declaration.
20371         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20372         behaviour with respect to thread locale.
20373         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20374         <langinfo.h>, glthread/lock.h.
20375         (SIZE_BITS): New macro.
20376         (string_hash): New function.
20377         (struct hash_node): New type.
20378         (HASH_TABLE_SIZE): New macro.
20379         (struniq_hash_table, struniq_lock): New variables.
20380         (struniq): New function.
20381         (gl_locale_name_thread): New function.
20382         (gl_locale_name): Invoke it.
20383         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20384         * modules/localename (Depends-on): Add lock.
20385         Reported by Mike Gran <spk121@yahoo.com>.
20386
20387 2009-12-23  Eric Blake  <ebb9@byu.net>
20388
20389         va-args: new module
20390         * modules/va-args: New file.
20391         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20392         * MODULES.html.sh (Core language properties): Mention it.
20393
20394         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20395         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20396         named alias for __attribute__((__unused__)).
20397         * lib/chown.c: Update client.
20398         * lib/fchmodat.c: Likewise.
20399         * lib/fts.c: Likewise.
20400         * lib/getdate.y: Likewise.
20401         * lib/getgroups.c: Likewise.
20402         * lib/getopt.c: Likewise.
20403         * lib/getugroups.c: Likewise.
20404         * lib/mkdir.c: Likewise.
20405         * lib/mkfifo.c: Likewise.
20406         * lib/mkfifoat.c: Likewise.
20407         * lib/mknod.c: Likewise.
20408         * lib/mknodat.c: Likewise.
20409         * lib/readlink.c: Likewise.
20410         * lib/se-context.in.h: Likewise.
20411         * lib/se-selinux.in.h: Likewise.
20412         * lib/sockets.c: Likewise.
20413         * lib/symlink.c: Likewise.
20414         * lib/symlinkat.c: Likewise.
20415         * lib/unicodeio.c: Likewise.
20416         * lib/unistr.h: Likewise.
20417         * tests/test-areadlink.c: Likewise.
20418         * tests/test-areadlinkat.c: Likewise.
20419         * tests/test-filenamecat.c: Likewise.
20420         * tests/test-fseeko.c: Likewise.
20421         * tests/test-ftello.c: Likewise.
20422         * tests/test-getdate.c: Likewise.
20423         * tests/test-getgroups.c: Likewise.
20424         * tests/test-gethostname.c: Likewise.
20425         * tests/test-quotearg.c: Likewise.
20426         * tests/test-version-etc.c: Likewise.
20427         * tests/test-xalloc-die.c: Likewise.
20428         * tests/test-xfprintf-posix.c: Likewise.
20429         * tests/test-xprintf-posix.c: Likewise.
20430         * tests/test-xvasprintf.c: Likewise.
20431
20432         tests: avoid compiler warnings
20433         * tests/test-fcntl.c (main): Delete unused parameters.
20434         * tests/test-freopen-safer.c (main): Likewise.
20435         * tests/test-xalloc-die.c (main): Mark unused parameters.
20436         * tests/test-fseeko.c (main): Likewise.
20437         * tests/test-ftello.c (main): Likewise.
20438         * tests/test-nanosleep.c (main): Avoid declaration warning.
20439         * tests/test-sleep.c (main): Likewise.
20440         * tests/test-unsetenv.c (main): Silence warning about string
20441         literal.
20442         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20443
20444 2009-12-23  Bruno Haible  <bruno@clisp.org>
20445
20446         * tests/test-localename.c (test_locale_name): New function, extracted
20447         from main. Also test mixed situations.
20448         (test_locale_name_posix, test_locale_name_environ,
20449         test_locale_name_default): New functions.
20450         (main): Invoke them all.
20451         * modules/localename-tests (configure.ac): Test for newlocale.
20452
20453 2009-12-23  Bruno Haible  <bruno@clisp.org>
20454
20455         unistd: Ensure getcwd gets declared before being overridden.
20456         * lib/unistd.in.h: Conditionally include <io.h>.
20457
20458 2009-12-22  Bruno Haible  <bruno@clisp.org>
20459
20460         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20461         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20462         (gl_WCHAR_H): Invoke it.
20463         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20464         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20465         Reported by Karl Berry <karl@freefriends.org>.
20466
20467 2009-12-22  Eric Blake  <ebb9@byu.net>
20468
20469         math, unistd: avoid redundant includes
20470         * lib/math.in.h (isnan): No need to re-include <math.h>.
20471         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20472
20473         getsubopt: work around cygwin bug
20474         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20475         avoid conflicting with system getsubopt.
20476         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20477         bug.
20478
20479         getopt: synchronize from glibc
20480         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20481         parameter order.  Adjust all callers.
20482         (_getopt_internal_r, main): Adjust quoting in error messages.
20483         Drop considerations for outdated POSIX 1003.2 error message.
20484         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20485         callers.
20486         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20487
20488         test-getopt: test stderr behavior
20489         * modules/getopt-posix-tests (Depends-on): Add dup2.
20490         * tests/test-getopt.c (ASSERT): Avoid stderr.
20491         (main): Move stderr to a temporary file.
20492         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20493         Instead, add parameter to inform caller if output occurred.
20494         (test_getopt): Adjust all existing tests to expect silence, and
20495         add new tests of leading ":".
20496         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20497         glibc shortcomings with leading "-:" or "+:" in optstring.
20498         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20499         Likewise.
20500         * doc/posix-functions/getopt.texi (getopt): Likewise.
20501
20502         test-getopt: enhance test
20503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20504         supports optind=0.
20505         * tests/test-getopt.c (OPTIND_MIN): Move...
20506         * tests/test-getopt.h (OPTIND_MIN): ...here.
20507         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20508         Require that optind=0 works, since modern BSD supports it in
20509         addition to optreset, and since coreutils expects it.
20510         (test_getopt_long_only): New test.
20511         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20512         glibc shortcomings with 'W;', and enforcement of optind=0.
20513         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20514         Likewise.
20515
20516 2009-12-21  Bruno Haible  <bruno@clisp.org>
20517
20518         localename: Improvements for MacOS X and Cygwin.
20519         * lib/localename.h (gl_locale_name_environ): New declaration.
20520         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20521         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20522         (gl_locale_name_posix): Invoke it.
20523         (gl_locale_name_default): Add comments. Use Windows native API also on
20524         Cygwin.
20525
20526 2009-12-21  Bruno Haible  <bruno@clisp.org>
20527
20528         Update list of Win32 locale ids.
20529         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20530         (LANG_SAMI): Renamed from LANG_SAAMI.
20531         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20532         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20533         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20534         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20535         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20536         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20537         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20538         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20539         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20540         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20541         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20542         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20543         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20544         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20545         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20546         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20547         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20548         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20549         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20550         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20551         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20552         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20553         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20554         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20555         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20556         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20557         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20558         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20559         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20560         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20561         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20562         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20563         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20564         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20565         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20566         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20567         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20568         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20569         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20570         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20571         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20572         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20573         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20574         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20575         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20576         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20577         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20578         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20579         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20580         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20581         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20582         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20583         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20584         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20585         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20586         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20587         Add more languages and countries for Sami, Sorbian. Add more countries
20588         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20589         for Pashto. Change country for Syriac, Tswana.
20590
20591 2009-12-21  Eric Blake  <ebb9@byu.net>
20592
20593         test-utimens: avoid spurious failure
20594         * tests/test-chown.h (nap): Factor...
20595         * tests/nap.h: ...into new file.
20596         * tests/test-lchown.h (nap): Avoid duplication.
20597         * tests/test-utimens-common.h (nap): Use shared implementation,
20598         necessary on file systems with 1-second resolution.
20599         * modules/chown-tests (Files): Include new file.
20600         * modules/fdutimensat-tests (Files): Likewise.
20601         * modules/futimens-tests (Files): Likewise.
20602         * modules/lchown-tests (Files): Likewise.
20603         * modules/openat-tests (Files): Likewise.
20604         * modules/utimens-tests (Files): Likewise.
20605         * modules/utimensat-tests (Files): Likewise.
20606
20607 2009-12-19  Eric Blake  <ebb9@byu.net>
20608
20609         futimens, utimensat: work around Linux bug
20610         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20611         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20612         * lib/utimensat.c (rpl_utimensat): Work around it.
20613         * lib/futimens.c (rpl_futimens): Adjust comment.
20614
20615         utimens: work around Linux ctime bug
20616         * lib/utimens.c (detect_ctime_bug): New helper function.
20617         (update_timespec): Differentiate between workaround needed for
20618         this bug vs. what is needed for systems that lack utimensat.
20619         (fdutimens, lutimens): Work around bug.
20620
20621         utimens: check for ctime update
20622         * tests/test-utimens-common.h (check_ctime): Define.
20623         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20624         * tests/test-futimens.h (test_futimens): Likewise.
20625         * tests/test-lutimens.h (test_lutimens): Likewise.
20626         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20627         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20628
20629 2009-12-19  Bruno Haible  <bruno@clisp.org>
20630
20631         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20632         * tests/test-dprintf-posix2.sh: New file.
20633         * tests/test-dprintf-posix2.c: New file.
20634         * modules/dprintf-posix-tests (Files): Add them.
20635         (configure.ac): Check for getrlimit and setrlimit.
20636         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20637
20638 2009-12-19  Bruno Haible  <bruno@clisp.org>
20639
20640         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20641         * tests/test-fprintf-posix3.sh: New file.
20642         * tests/test-fprintf-posix3.c: New file.
20643         * modules/fprintf-posix-tests (Files): Add them.
20644         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20645
20646 2009-12-19  Eric Blake  <ebb9@byu.net>
20647
20648         dirfd: fix prototype
20649         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20650         * lib/dirfd.c (dirfd): Likewise.
20651
20652         canonicalize: reduce memory usage
20653         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20654         allocation to size.
20655         Reported by Solar Designer <solar@openwall.com>.
20656
20657 2009-12-19  Bruno Haible  <bruno@clisp.org>
20658
20659         New module attribute 'Applicability'.
20660         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20661         * gnulib-tool: New option --extract-applicability.
20662         (func_usage): Document it.
20663         (sed_extract_prog): Recognize it.
20664         (func_get_applicability): New function.
20665         (func_import): Generalize handling of 'link-warning' module.
20666         * modules/link-warning (Applicability): New section.
20667         * modules/arg-nonnull (Applicability): New section.
20668         Repoted by Simon Josefsson <simon@josefsson.org>.
20669
20670 2009-12-19  Bruno Haible  <bruno@clisp.org>
20671
20672         fflush: tweak
20673         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20674         * lib/fseeko.c (rpl_fseeko): Likewise.
20675
20676 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20677
20678         * lib/gl_list.h: Fix typo in comment.
20679
20680 2009-12-16  Eric Blake  <ebb9@byu.net>
20681
20682         fcntl: use to simplify other modules
20683         * modules/cloexec (Depends-on): Add fcntl.
20684         * modules/fchdir (Depends-on): Likewise.
20685         * modules/fd-safer-flag (Depends-on): Likewise.
20686         * modules/unistd-safer (Depends-on): Likewise.
20687         * modules/dup3 (configure.ac): Set module indicator.
20688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20689         missing.
20690         * lib/fchdir.c (_gl_register_dup): Fix comment.
20691         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20692         * lib/dup-safer.c (dup_safer): Likewise.
20693         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20694         * lib/dup3.c (dup3): Likewise.
20695         * tests/test-fchdir.c (main): Enhance test.
20696         Fixes a dup_cloexec bug reported by Ondřej Vašík.
20697
20698         fcntl: port portions of fcntl to mingw
20699         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20700         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20701         replacement for mingw.
20702         * modules/fcntl (Description): Update.
20703         (Depends-on): Add dup2.
20704         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20705         * modules/fcntl-h (Makefile.am): Substitute it.
20706         * lib/fcntl.in.h (fcntl): Update declaration.
20707         (F_DUPFD, F_GETFD): New macros, when needed.
20708         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20709         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20710         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20711         we now guarantee.
20712
20713         fcntl: work around cygwin bug in F_DUPFD
20714         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20715         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20716         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20717         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20718         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20719
20720         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20721         * modules/fcntl (Files): List new files.
20722         (configure.ac): Run a test.
20723         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20724         * lib/fcntl.c (rpl_fcntl): Likewise.
20725         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20726         (gl_FCNTL_H): Always replace fcntl.h.
20727         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20728         * lib/fcntl.in.h (fcntl): Declare replacement.
20729         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20730         needed, plus a witness.
20731         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20732         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20733         * tests/test-fcntl.c: New file.
20734         * modules/fcntl-tests: Likewise.
20735
20736         binary-io: avoid potential compilation warning
20737         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20738         directives.
20739
20740         fflush: avoid compilation error on NetBSD
20741         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20742         between off_t and fpos_t, since the latter is sometimes a struct.
20743         * lib/fseeko.c (rpl_fseeko): Likewise.
20744         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20745
20746 2009-12-15  Eric Blake  <ebb9@byu.net>
20747
20748         fcntl-h, stdio, sys_ioctl: fix declarations
20749         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20750         function must not take arguments.
20751         * lib/sys_ioctl.in.h (ioctl): Likewise.
20752         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20753         (open): Add a link warning.
20754
20755 2009-12-15  Jim Meyering  <meyering@redhat.com>
20756
20757         areadlink, areadlink-with-size: relax license to LGPLv2+
20758         * modules/areadlink (License): Relax to LGPLv2+.
20759         * modules/areadlink-with-size (License): Likewise.
20760
20761 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20762             Bruno Haible  <bruno@clisp.org>
20763
20764         *printf: Fix memory leak.
20765         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20766         * lib/vfprintf.c (vfprintf): Likewise.
20767         * lib/dprintf.c (dprintf): Likewise.
20768         * lib/vdprintf.c (vdprintf): Likewise.
20769
20770 2009-12-14  Eric Blake  <ebb9@byu.net>
20771
20772         accept4: adjust module dependencies
20773         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20774
20775         utimens: one more try at avoiding compiler warning
20776         * lib/utimens.c (lutimens): Lower scope of result.
20777
20778 2009-12-13  Bruno Haible  <bruno@clisp.org>
20779
20780         Move the malloc checking from module 'list' to new module 'xlist'.
20781         * modules/xlist: New file.
20782         * lib/gl_xlist.h: New file.
20783         * lib/gl_xlist.c: New file.
20784         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20785         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20786         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20787         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20788         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20789         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20790         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20791         gl_sortedlist_nx_add): New declarations.
20792         (struct gl_list_implementation): Rename and change methods accordingly.
20793         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20794         (gl_list_nx_create): Renamed from gl_list_create.
20795         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20796         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20797         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20798         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20799         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20800         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20801         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20802         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20803         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20804         gl_list_create_empty.
20805         (gl_list_nx_create): Renamed from gl_list_create.
20806         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20807         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20808         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20809         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20810         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20811         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20812         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20813         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20814         * lib/gl_array_list.c: Don't include xalloc.h.
20815         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20816         NULL upon out-of-memory.
20817         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20818         out-of-memory.
20819         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20820         Change return type to 'int'.
20821         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20822         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20823         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20824         upon out-of-memory.
20825         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20826         upon out-of-memory.
20827         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20828         upon out-of-memory.
20829         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20830         upon out-of-memory.
20831         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20832         out-of-memory.
20833         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20834         Update.
20835         (gl_array_list_implementation): Update.
20836         * lib/gl_carray_list.c: Don't include xalloc.h.
20837         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20838         Return NULL upon out-of-memory.
20839         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20840         out-of-memory.
20841         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20842         Change return type to 'int'.
20843         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20844         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20845         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20846         upon out-of-memory.
20847         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20848         upon out-of-memory.
20849         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20850         out-of-memory.
20851         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20852         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20853         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20854         Update.
20855         (gl_carray_list_implementation): Update.
20856         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20857         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20858         gl_linked_create_empty. Return NULL upon out-of-memory.
20859         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20860         out-of-memory.
20861         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20862         Change return type to 'int'. Return -1 upon out-of-memory.
20863         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20864         out-of-memory.
20865         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20866         upon out-of-memory.
20867         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20868         upon out-of-memory.
20869         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20870         NULL upon out-of-memory.
20871         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20872         upon out-of-memory.
20873         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20874         out-of-memory.
20875         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20876         Update.
20877         * lib/gl_linked_list.c: Don't include xalloc.h.
20878         (gl_linked_list_implementation): Update.
20879         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20880         (add_to_bucket): Change return type to 'int'.
20881         (gl_linkedhash_list_implementation): Update.
20882         * lib/gl_anytree_list1.h (free_subtree): New function.
20883         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20884         gl_tree_create_empty. Return NULL upon out-of-memory.
20885         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20886         Change return type to 'int'. Return -1 upon out-of-memory.
20887         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20888         out-of-memory.
20889         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20890         (gl_tree_remove_node): New function, moved here from
20891         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20892         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20893         Update.
20894         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20895         malloc, not xmalloc. Return NULL upon out-of-memory.
20896         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20897         out-of-memory.
20898         (gl_tree_remove_node_from_tree): New function, extracted from
20899         gl_tree_remove_node.
20900         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20901         upon out-of-memory.
20902         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20903         out-of-memory.
20904         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20905         upon out-of-memory.
20906         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20907         upon out-of-memory.
20908         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20909         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20910         not xmalloc. Return NULL upon out-of-memory.
20911         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20912         out-of-memory.
20913         (gl_tree_remove_node_from_tree): New function, extracted from
20914         gl_tree_remove_node.
20915         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20916         upon out-of-memory.
20917         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20918         out-of-memory.
20919         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20920         upon out-of-memory.
20921         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20922         upon out-of-memory.
20923         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20924         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20925         gl_anytree_list1.h before gl_anyavltree_list2.h.
20926         (gl_avltree_list_implementation): Update.
20927         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20928         gl_anytree_list1.h before gl_anyavltree_list2.h.
20929         (gl_rbtree_list_implementation): Update.
20930         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20931         Change return type to 'int'. Return -1 upon out-of-memory. Use
20932         __builtin_expect.
20933         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20934         (gl_avltreehash_list_implementation): Update.
20935         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20936         (gl_rbtreehash_list_implementation): Update.
20937         * modules/array-list (Depends-on): Remove xalloc.
20938         * modules/carray-list (Depends-on): Likewise.
20939         * modules/linked-list (Depends-on): Likewise.
20940         * modules/linkedhash-list (Depends-on): Likewise.
20941         * modules/avltree-list (Depends-on): Likewise.
20942         * modules/rbtree-list (Depends-on): Likewise.
20943         * modules/avltreehash-list (Depends-on): Likewise.
20944         * modules/rbtreehash-list (Depends-on): Likewise.
20945
20946         * modules/xsublist: New file.
20947         * lib/gl_xsublist.h: New file.
20948         * lib/gl_xsublist.c: New file.
20949         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20950         (gl_sublist_nx_create): New declaration.
20951         * lib/gl_sublist.c: Don't include xalloc.h.
20952         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20953         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20954         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20955         Change return type to 'int'. Return -1 upon out-of-memory.
20956         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20957         upon out-of-memory.
20958         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20959         NULL upon out-of-memory.
20960         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20961         upon out-of-memory.
20962         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20963         NULL upon out-of-memory.
20964         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20965         NULL upon out-of-memory.
20966         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20967         upon out-of-memory.
20968         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20969         (gl_sublist_list_implementation): Update.
20970         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20971         upon out-of-memory.
20972         * modules/sublist (Depends-on): Remove xalloc.
20973
20974         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20975         * tests/test-carray_list.c: Likewise.
20976         * tests/test-linked_list.c: Likewise.
20977         * tests/test-linkedhash_list.c: Likewise.
20978         * tests/test-avltree_list.c: Likewise.
20979         * tests/test-rbtree_list.c: Likewise.
20980         * tests/test-avltreehash_list.c: Likewise.
20981         * tests/test-rbtreehash_list.c: Likewise.
20982         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20983         * modules/carray-list-tests (Makefile.am): Likewise.
20984         * modules/linked-list-tests (Makefile.am): Likewise.
20985         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20986         * modules/avltree-list-tests (Makefile.am): Likewise.
20987         * modules/rbtree-list-tests (Makefile.am): Likewise.
20988         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20989         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20990
20991         * NEWS: Mention the changes.
20992
20993         * lib/clean-temp.c: Include gl_xlist.h.
20994         * modules/clean-temp (Depends-on): Add xlist.
20995
20996         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20997         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20998
20999         * tests/test-array_oset.c: Include gl_xlist.h.
21000         * modules/array-oset-tests (Depends-on): Add xlist.
21001
21002         Reported by José E. Marchesi <jemarch@gnu.org>.
21003
21004 2009-12-13  Bruno Haible  <bruno@clisp.org>
21005
21006         Move the malloc checking from module 'oset' to new module 'xoset'.
21007         * modules/xoset: New file.
21008         * lib/gl_xoset.h: New file.
21009         * lib/gl_xoset.c: New file.
21010         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21011         declarations.
21012         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21013         (struct gl_oset_implementation): Rename and change methods accordingly.
21014         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21015         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21016         'int'. Mark as __warn_unused_result__.
21017         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21018         gl_oset_create_empty.
21019         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21020         'int'.
21021         * lib/gl_array_oset.c: Don't include xalloc.h.
21022         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21023         malloc, not xmalloc.
21024         (grow): Change return type to 'int'. Don't call xalloc_die.
21025         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21026         to 'int'.
21027         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21028         'int'.
21029         (gl_array_oset_implementation): Update.
21030         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21031         gl_tree_create_empty.
21032         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21033         'int'.
21034         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21035         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21036         xmalloc.
21037         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21038         not xmalloc.
21039         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21040         xmalloc.
21041         (gl_avltree_oset_implementation): Update.
21042         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21043         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21044         xmalloc.
21045         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21046         not xmalloc.
21047         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21048         xmalloc.
21049         (gl_rbtree_oset_implementation): Update.
21050         * modules/array-oset (Depends-on): Remove xalloc.
21051         * modules/avltree-oset (Depends-on): Likewise.
21052         * modules/rbtree-oset (Depends-on): Likewise.
21053         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21054         * tests/test-avltree_oset.c: Likewise.
21055         * tests/test-rbtree_oset.c: Likewise.
21056         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21057         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21058         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21059         * NEWS: Mention the change.
21060
21061 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21062
21063         maint.mk: allow a project to override release-prep commands
21064         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21065         commands into a new rule.
21066         (release-prep): New rule.
21067         (release-prep-hook): New overridable variable.
21068
21069 2009-12-13  Bruno Haible  <bruno@clisp.org>
21070
21071         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21072
21073 2009-12-13  Jim Meyering  <meyering@redhat.com>
21074
21075         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21076         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21077
21078 2009-12-12  Bruno Haible  <bruno@clisp.org>
21079
21080         duplocale: Tweak.
21081         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21082
21083 2009-12-12  Karl Berry  <karl@gnu.org>
21084
21085         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21086
21087 2009-12-12  Bruno Haible  <bruno@clisp.org>
21088
21089         * m4/po.m4: Undo incorrect untabification.
21090
21091 2009-12-12  Bruno Haible  <bruno@clisp.org>
21092
21093         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21094         * modules/c-strtod (Depends-on): Add locale.
21095         * modules/c-strtold (Depends-on): Likewise.
21096
21097 2009-12-12  Bruno Haible  <bruno@clisp.org>
21098
21099         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21100
21101 2009-12-11  Eric Blake  <ebb9@byu.net>
21102
21103         setenv: relax requirement in light of POSIX ruling
21104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21105         not NULL.
21106         * tests/test-setenv.c (main): Relax test.
21107         * tests/test-unsetenv.c (main): Likewise.
21108         * doc/posix-functions/setenv.texi (setenv): Document this.
21109         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21110
21111 2009-12-11  Bruno Haible  <bruno@clisp.org>
21112
21113         New module 'fd-safer-flag'.
21114         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21115         * lib/dup-safer.c (dup_safer_flag): Remove function.
21116         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21117         * lib/fd-safer.c (fd_safer_flag): Remove function.
21118         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21119         * modules/cloexec (configure.ac): Drop indicator macro.
21120         * modules/fd-safer-flag: New file.
21121         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21122         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21123         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21124
21125 2009-12-11  Bruno Haible  <bruno@clisp.org>
21126
21127         Tests for module 'nl_langinfo'.
21128         * modules/nl_langinfo-tests: New file.
21129         * tests/test-nl_langinfo.sh: New file.
21130         * tests/test-nl_langinfo.c: New file.
21131
21132         New module 'nl_langinfo'.
21133         * lib/nl_langinfo.c: New file.
21134         * m4/nl_langinfo.m4: New file.
21135         * modules/nl_langinfo: New file.
21136         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21137
21138 2009-12-11  Bruno Haible  <bruno@clisp.org>
21139
21140         Tests for module 'langinfo'.
21141         * modules/langinfo-tests: New file.
21142         * tests/test-langinfo.c: New file.
21143
21144         New module 'langinfo'.
21145         * lib/langinfo.in.h: New file.
21146         * m4/langinfo_h.m4: New file.
21147         * modules/langinfo: New file.
21148         * doc/posix-headers/langinfo.texi: Mention the new module.
21149
21150 2009-12-11  Bruno Haible  <bruno@clisp.org>
21151
21152         * lib/config.charset: Untabify.
21153
21154 2009-12-11  Bruno Haible  <bruno@clisp.org>
21155
21156         * modules/unistd-safer (configure.ac): Drop indicator macro.
21157
21158 2009-12-11  Bruno Haible  <bruno@clisp.org>
21159
21160         Move pipe2-safer code to its own file.
21161         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21162         * lib/pipe-safer.c (pipe2_safer): Remove function.
21163         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21164         (Makefile.am): Add it to lib_SOURCES.
21165
21166 2009-12-10  Bruno Haible  <bruno@clisp.org>
21167
21168         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21169
21170 2009-12-10  Bruno Haible  <bruno@clisp.org>
21171
21172         Declare which arguments expect non-NULL values, for GCC and clang.
21173         * build-aux/arg-nonnull.h: New file.
21174         * modules/arg-nonnull: New file.
21175         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21176         (inet_ntop, inet_pton): Use it.
21177         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21178         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21179         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21180         (open, openat): Use it.
21181         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21182         (fnmatch): Use it.
21183         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21184         (getopt, getopt_long, getopt_long_only): Use it.
21185         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21186         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21187         Use it.
21188         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21189         (iconv_open): Use it.
21190         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21191         (strtoimax, strtoumax): Use it.
21192         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21193         (duplocale): Use it.
21194         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21195         (frexp, frexpl): Use it.
21196         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21197         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21198         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21199         (tsearch, tfind, tdelete, twalk): Use it.
21200         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21201         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21202         sigpending): Use it.
21203         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21204         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21205         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21206         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21207         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21208         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21209         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21210         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21211         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21212         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21213         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21214         Use it.
21215         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21216         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21217         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21218         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21219         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21220         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21221         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21222         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21223         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21224         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21225         strtoull, unsetenv): Use it.
21226         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21227         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21228         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21229         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21230         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21231         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21232         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21233         (strcasecmp, strncasecmp): Use it.
21234         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21235         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21236         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21237         rpl_setsockopt): Use it.
21238         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21239         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21240         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21241         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21242         (gettimeofday): Use it.
21243         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21244         (times): Use it.
21245         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21246         (uname): Use it.
21247         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21248         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21249         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21250         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21251         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21252         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21253         unlinkat, write): Use it.
21254         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21255         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21256         * lib/argv-iter.h: Include arg-nonnull.h.
21257         (_ATTRIBUTE_NONNULL_): Remove macro.
21258         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21259         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21260         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21261         optimization.
21262         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21263         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21264         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21265         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21266         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21267         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21268         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21269         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21270         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21271         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21272         * modules/dirent (Depends-on): Add arg-nonnull.
21273         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21274         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21275         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21276         * modules/fnmatch (Depends-on): Add arg-nonnull.
21277         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21278         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21279         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21280         * modules/glob (Depends-on): Add arg-nonnull.
21281         (Makefile.am): Insert arg-nonnull.h into glob.h.
21282         * modules/iconv_open (Depends-on): Add arg-nonnull.
21283         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21284         * modules/inttypes (Depends-on): Add arg-nonnull.
21285         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21286         * modules/locale (Depends-on): Add arg-nonnull.
21287         (Makefile.am): Insert arg-nonnull.h into locale.h.
21288         * modules/math (Depends-on): Add arg-nonnull.
21289         (Makefile.am): Insert arg-nonnull.h into math.h.
21290         * modules/netdb (Depends-on): Add arg-nonnull.
21291         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21292         * modules/search (Depends-on): Add arg-nonnull.
21293         (Makefile.am): Insert arg-nonnull.h into search.h.
21294         * modules/signal (Depends-on): Add arg-nonnull.
21295         (Makefile.am): Insert arg-nonnull.h into signal.h.
21296         * modules/spawn (Depends-on): Add arg-nonnull.
21297         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21298         * modules/stdio (Depends-on): Add arg-nonnull.
21299         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21300         * modules/stdlib (Depends-on): Add arg-nonnull.
21301         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21302         * modules/string (Depends-on): Add arg-nonnull.
21303         (Makefile.am): Insert arg-nonnull.h into string.h.
21304         * modules/strings (Depends-on): Add arg-nonnull.
21305         (Makefile.am): Insert arg-nonnull.h into strings.h.
21306         * modules/sys_socket (Depends-on): Add arg-nonnull.
21307         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21308         * modules/sys_stat (Depends-on): Add arg-nonnull.
21309         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21310         * modules/sys_time (Depends-on): Add arg-nonnull.
21311         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21312         * modules/sys_times (Depends-on): Add arg-nonnull.
21313         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21314         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21315         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21316         * modules/time (Depends-on): Add arg-nonnull.
21317         (Makefile.am): Insert arg-nonnull.h into time.h.
21318         * modules/unistd (Depends-on): Add arg-nonnull.
21319         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21320         * modules/wchar (Depends-on): Add arg-nonnull.
21321         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21322         * modules/argv-iter (Depends-on): Add arg-nonnull.
21323         * tests/test-canonicalize.c (null_ptr): New function.
21324         (main): Use it.
21325         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21326         (main): Use it.
21327         * tests/test-memmem.c (null_ptr): New function.
21328         (main): Use it.
21329         Reported by Jim Meyering.
21330
21331 2009-12-10  Bruno Haible  <bruno@clisp.org>
21332
21333         Use spaces for indentation, not tabs.
21334         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21335         * m4/*.m4: Untabify.
21336         * build-aux/*.h: Untabify.
21337         * tests/**/*.[hc]: Untabify.
21338         * README: New section "Indent with spaces, not TABs", based on
21339         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21340         * NEWS: Mention the change.
21341
21342 2009-12-10  Bruno Haible  <bruno@clisp.org>
21343
21344         pty test: Fix link error.
21345         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21346         test_pty_LDADD.
21347
21348 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21349
21350         * modules/pty: New file.
21351         * modules/pty-tests: New file.
21352         * m4/pty.m4: New file.
21353         * tests/test-pty.c: New file.
21354         * doc/glibc-headers/pty.texi: Modified.
21355         * doc/glibc-functions/forkpty.texi: Modified.
21356         * doc/glibc-functions/openpty.texi: Modified.
21357
21358 2009-12-10  Bruno Haible  <bruno@clisp.org>
21359
21360         Avoid syntax error in C++ mode.
21361         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21362
21363 2009-12-10  Bruno Haible  <bruno@clisp.org>
21364
21365         Use sed with option -e.
21366         * gnulib-tool (func_version, func_emit_copyright_notice,
21367         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21368         option -e to sed.
21369         * modules/link-warning (Makefile.am): Likewise.
21370
21371 2009-12-10  Jim Meyering  <meyering@redhat.com>
21372
21373         mgetgroups: do not write bytes beyond end of malloc'd buffer
21374         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21375         username, we call getgroups with a one-element-shorter buffer,
21376         but still told it the length was original, max_n_groups.
21377
21378 2009-12-09  Eric Blake  <ebb9@byu.net>
21379
21380         cloexec: relax license
21381         * modules/cloexec (Maintainer): Add myself.
21382         (License): Use LGPL, not GPL.
21383
21384         link-warning: optimize generation
21385         * modules/link-warning (Makefile.am): Reduce process usage.
21386
21387 2009-12-09  Bruno Haible  <bruno@clisp.org>
21388
21389         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21390         workaround was added on 2009-11-17.
21391
21392 2009-12-09  Jim Meyering  <meyering@redhat.com>
21393             Bruno Haible  <bruno@clisp.org>
21394
21395         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21396         * modules/link-warning (Makefile.am): Make the comment-removing sed
21397         command more robust in the face of bootstrap-prepended comment lines.
21398
21399 2009-12-09  Bruno Haible  <bruno@clisp.org>
21400
21401         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21402         most one group.
21403
21404 2009-12-09  Simon Josefsson <simon@josefsson.org>
21405             Bruno Haible  <bruno@clisp.org>
21406
21407         * build-aux/link-warning.h: Add copyright notice.
21408         * modules/link-warning (Makefile.am): Generate link-warning.h from
21409         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21410         * NEWS: Mention change in link-warning module.
21411         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21412         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21413         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21414         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21415         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21416         * modules/math (Makefile.am): Add dependency to math.h.
21417         * modules/search (Makefile.am): Add dependency to search.h.
21418         * modules/signal (Makefile.am): Add dependency to signal.h.
21419         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21420         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21421         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21422         * modules/string (Makefile.am): Add dependency to string.h.
21423         * modules/strings (Makefile.am): Add dependency to strings.h.
21424         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21425         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21426         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21427         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21428         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21429         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21430         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21431         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21432         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21433
21434 2009-12-09  Bruno Haible  <bruno@clisp.org>
21435
21436         fchdir: Optimize away rpl_fstat when possible.
21437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21438         REPLACE_OPEN_DIRECTORY.
21439         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21440
21441 2009-12-09  Bruno Haible  <bruno@clisp.org>
21442
21443         * lib/fchdir.c: Update comment.
21444
21445 2009-12-09  Bruno Haible  <bruno@clisp.org>
21446
21447         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21448
21449 2009-12-08  Eric Blake  <ebb9@byu.net>
21450
21451         fchdir: avoid memory leak on re-registration.
21452         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21453
21454 2009-12-08  Jim Meyering  <meyering@redhat.com>
21455
21456         init.sh: avoid Solaris 10 /bin/sh portability problem
21457         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21458         sourced script:
21459           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21460           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21461           bar
21462         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21463         and two tests used that idiom.
21464         * tests/init.sh: Update suggested usage comments.
21465         (path_prepend_): New function, to be used in place
21466         of the --src-path=DIR option.
21467         (setup_): Move PATH-prepending code into path_prepend_.
21468         * tests/test-pread.sh: Adapt to new usage.
21469         * tests/test-xalloc-die.sh: Likewise.
21470
21471 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21472
21473         * doc/gnulib.texi (Glibc pty.h): Add.
21474         * doc/glibc-functions/forkpty.texi: Add.
21475         * doc/glibc-functions/openpty.texi: Add.
21476         Suggested by Bruno Haible.
21477
21478 2009-12-08  Eric Blake  <ebb9@byu.net>
21479
21480         fchdir: fix logic bugs
21481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21482         * tests/test-fchdir.c (main): Enhance test.
21483         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21484         is in use.
21485
21486         dup2: fix logic bugs
21487         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21488         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21489         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21490         exists.
21491         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21492
21493 2009-12-07  Eric Blake  <ebb9@byu.net>
21494
21495         unlink: fix m4 detection
21496         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21497
21498         unistd-safer: add unit test
21499         * modules/unistd-safer-tests: New file.
21500         * tests/test-dup-safer.c: Likewise.
21501         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21502         * tests/test-dup2.c (setmode): Likewise.
21503         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21504
21505         cloexec: preserve text vs. binary across dup_cloexec
21506         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21507         mode.
21508         * modules/dup2-tests (Depends-on): Add binary-io.
21509         * modules/cloexec-tests (Depends-on): Likewise.
21510         * tests/test-dup2.c (setmode, is_mode): New helpers.
21511         (main): Add tests that translation mode is preserved.
21512         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21513         Reported by Bruno Haible.
21514
21515         mgetgroups: reduce duplicate listings
21516         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21517         resulting array.
21518         * tests/test-chown.h (test_chown): Simplify client.
21519         * tests/test-lchown.h (test_lchown): Likewise.
21520
21521 2009-12-06  Bruno Haible  <bruno@clisp.org>
21522
21523         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21524         value.
21525
21526 2009-12-06  Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/progname.c: Include stdio.h, stdlib.h.
21529         (set_program_name): Reject a NULL argument.
21530
21531 2009-12-05  Eric Blake  <ebb9@byu.net>
21532
21533         pipe2-safer: new module
21534         * modules/pipe2-safer: New file.
21535         * lib/unistd-safer.h (pipe2_safer): New prototype.
21536         * lib/unistd--.h (pipe2): New wrapper.
21537         * lib/pipe-safer.c (pipe2_safer): New function.
21538         * modules/pipe (Depends-on): Add pipe2-safer.
21539         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21540
21541         stdlib-safer: preserve cloexec flag for mkostemp[s]
21542         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21543         fd_safer_flag.
21544
21545         unistd-safer: allow preservation of cloexec status via flag
21546         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21547         prototypes.
21548         * lib/dup-safer.c (dup_safer_flag): New function.
21549         * lib/fd-safer.c (fd_safer_flag): Likewise.
21550         * modules/cloexec (configure.ac): Set witness.
21551
21552         test-dup2: enhance test
21553         * modules/dup2-tests (Depends-on): Add cloexec.
21554         * tests/test-dup2.c (main): Enhance test.
21555
21556         cloexec: add dup_cloexec
21557         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21558         header and comments.
21559         * lib/cloexec.c (set_cloexec_flag): Add comments.
21560         (dup_cloexec): New function, with mingw implementation borrowed
21561         from...
21562         * lib/w32spawn.h (dup_noinherit): ...here.
21563         * modules/execute (Depends-on): Add cloexec.
21564         * modules/pipe (Depends-on): Likewise.
21565         * modules/cloexec (Depends-on): Add dup2.
21566         * modules/cloexec-tests (Files): New file.
21567         * tests/test-cloexec.c: Likewise.
21568
21569         test-xalloc-die: fix test for mingw
21570         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21571         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21572         directory and .exe suffix off argv[0] output.
21573
21574         test-fseeko: fix test for mingw
21575         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21576         than undefining fseek, so test will pass on mingw.
21577
21578 2009-12-05  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/progname.h (set_program_name): Clarify specification.
21581         * lib/progname.c (set_program_name): Likewise.
21582         Reported by Jim Meyering.
21583
21584 2009-12-05  Jim Meyering  <meyering@redhat.com>
21585
21586         maint.mk: backslash-escape parens in default regexp
21587         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21588         backslash-escape the literal parentheses.
21589
21590         maint.mk: news-date-check: use grep -E
21591         * top/maint.mk (today): Define a Make variable, not a...
21592         (news-date-check): ...shell variable.
21593         (news-date-regexp): Use the Make variable.
21594         Use grep's -E option.  Change the failing diagnostic to mention
21595         the variable, $(news-date-regexp).
21596
21597 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21598
21599         maintainer-makefile: allow customization of NEWS entry format
21600         * top/maint.mk (news-date-regexp): New overridable variable.
21601         (news-date-check): Use it.
21602
21603 2009-12-04  Eric Blake  <ebb9@byu.net>
21604
21605         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21606         * lib/mgetgroups.h (xgetgroups): New prototype.
21607         * lib/mgetgroups.c (xgetgroups): New wrapper.
21608         (mgetgroups): Handle ENOSYS.
21609         * modules/mgetgroups (Depends-on): Add realloc.
21610         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21611
21612         mgetgroups: avoid argument promotion issues with -1
21613         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21614         for invalid gid_t.
21615         * tests/test-chown.h (getegid, test_chown): Likewise.
21616         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21617
21618 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21619
21620         exclude: Fix header file problems.
21621         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21622
21623 2009-12-01  Jim Meyering  <meyering@redhat.com>
21624
21625         fts: fts_open: do not let an empty string cause immediate failure
21626         This is required in support of GNU rm, for which the command
21627         "rm A '' B" must process and remove both A and B, in spite of
21628         the empty string argument.
21629         * lib/fts.c (fts_open): Do not let the presence of an empty string
21630         cause fts_open to fail immediately.  Most fts-using tools must be
21631         able to process all arguments, in order, and can be expected to
21632         diagnose such arguments themselves.
21633
21634 2009-11-30  Eric Blake  <ebb9@byu.net>
21635
21636         utimens: fix compilation error
21637         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21638         Declare variable at right scope.
21639
21640 2009-11-29  Jim Meyering  <meyering@redhat.com>
21641
21642         bootstrap: handle perl-5.11's changed --version output
21643         * build-aux/bootstrap (get_version): Handle perl separately,
21644         since perl-5.11's --version output is different.
21645
21646 2009-11-28  Jim Meyering  <meyering@redhat.com>
21647
21648         userspec: depend on the inttostr module, too
21649         * modules/userspec (Depends-on): Add inttostr.
21650
21651         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21652         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21653         number of MAXUID when it evaluates to (uid_t) -1.
21654         Likewise for group ID.  Reported by Matt McCutchen in
21655         <http://savannah.gnu.org/bugs/?28113>
21656
21657         userspec: reformat to use spaces, not TABs
21658         * lib/userspec.c: Expand TABs to spaces.
21659         Add Emacs' "indent-tabs-mode: nil" hint.
21660
21661 2009-11-27  Eric Blake  <ebb9@byu.net>
21662
21663         getopt-gnu: flush out another BSD bug
21664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21665         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21666         flush out BSD bug.
21667         * tests/test-getopt.h (test_getopt): End lists with NULL.
21668         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21669         (test_getopt_long_posix): Enhance test.
21670         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21671         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21672         getopt-gnu.
21673         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21674         Likewise.
21675
21676 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21677
21678         * modules/idpriv-droptemp-tests (Notice): Fix text.
21679
21680 2009-11-27  Jim Meyering  <meyering@redhat.com>
21681
21682         test-xalloc-die: avoid spurious failure due to libtool argv difference
21683         In a libtool-enabled project, this test would fail due to a difference
21684         in the emitted program name, e.g.,
21685         -test-xalloc-die: memory exhausted
21686         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21687         Use program to avoid that.
21688         * modules/xalloc-die-tests (Depends-on): Add progname.
21689         * tests/test-xalloc-die.c: Include progname.h".
21690         (program_name): Remove decl.
21691         (main): Call set_program_name.
21692         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21693
21694 2009-11-26  Richard Jones  <rjones@redhat.com>
21695
21696         w32sock: leave win32 error in place.
21697         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21698
21699 2009-11-26  Eric Blake  <ebb9@byu.net>
21700
21701         init.sh: suggest to use skip_ and fail_ functions in comments
21702         * tests/init.sh: Add a sentence.
21703
21704 2009-11-25  Bruno Haible  <bruno@clisp.org>
21705
21706         init.sh: add documentation in comments
21707         * tests/init.sh: Add some developer and user documentation.
21708
21709 2009-11-26  Jim Meyering  <meyering@redhat.com>
21710
21711         init.sh: accommodate even those who specify bogus srcdir manually
21712         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21713         configure-time tests to be sanitized, so that there is no need to
21714         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21715         (with no double quotes) suffices.  However, since tests may be
21716         invoked manually, and since you may explicitly set srcdir to the
21717         name of a directory containing spaces, do quote its uses here.
21718         * tests/test-pread.sh: Likewise.
21719         Suggested by Bruno Haible.
21720
21721         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21722         * tests/test-pread.sh: Write no data into the pipe, because
21723         test-pread actually reads none.  This avoids a diagnostic,
21724         "bash: echo: write error: Broken pipe", that arises in the unusual
21725         event something is ignoring SIGPIPE, and might be interpreted
21726         as some sort of failure.  Reported by Bruno Haible.
21727
21728 2009-11-25  Jim Meyering  <meyering@redhat.com>
21729
21730         test-pread: cover failure with ESPIPE and EINVAL
21731         * tests/test-pread.c (main): Test for failure, too.
21732         * tests/test-pread.sh: Invoke with stdin on a pipe.
21733         Suggested by Eric Blake.
21734
21735         pread: improvement and fix
21736         * modules/pread (Depends-on): Depend on lseek, for portability to
21737         e.g., mingw.  Suggested by Eric Blake.
21738         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21739
21740         unistd.in.h: correct declaration of pread
21741         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21742         Reported by Richard W.M. Jones.
21743
21744         test-pread.sh: distribute the test script
21745         * modules/pread-tests (Files): Include test-pread.sh.
21746
21747         test-pread.sh: clean up
21748         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21749         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21750         That is unnecessary, since it's always ".".
21751         Suggestion from Eric Blake.
21752
21753         test-pread.sh: make executable
21754         * tests/test-pread.sh: Set executable bit.
21755         Reported by Eric Blake.
21756
21757         correct typo in test-pread.sh
21758         * tests/test-pread.sh: Add #! line.
21759
21760         test pread
21761         * tests/test-pread.c: New file.
21762         * tests/test-pread.sh: Likewise.
21763         * modules/pread-tests: Likewise.
21764
21765         pread: new module
21766         * modules/pread: New file.
21767         * lib/unistd.in.h (pread): Define/declare.
21768         * lib/pread.c (pread): New file.
21769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21770         * modules/unistd (Makefile.am): Substitute witnesses.
21771         * doc/posix-functions/pread.texi (pread): Update.
21772         * MODULES.html.sh: Add pread.
21773
21774 2009-11-25  Jim Meyering  <meyering@redhat.com>
21775
21776         tests/init.sh: new file to be used via most *.sh tests
21777         * tests/init.sh: New file.
21778
21779 2009-11-25  Eric Blake  <ebb9@byu.net>
21780
21781         utimens: work around older Linux failure with symlinks
21782         * lib/utimens.c (lutimensat_works_really): New variable.
21783         (fdutimens, lutimens): Use it to manage kernels that support
21784         nanosecond times on files, but not on symlinks.
21785         Reported by Ondřej Vašík.
21786
21787         utimes: fix configure grammar
21788         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21789
21790 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21791
21792         regex: Fix fastmap for multibyte character ranges.
21793         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21794         characters when a multibyte character range is included.
21795
21796 2009-11-22  Andy Wingo  <wingo@pobox.com>
21797
21798         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21799         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21800
21801 2009-11-24  Bruno Haible  <bruno@clisp.org>
21802
21803         doc: Most *_l functions exist in MacOS X 10.5.
21804         * doc/posix-functions/duplocale.texi: Update platforms list.
21805         * doc/posix-functions/freelocale.texi: Likewise.
21806         * doc/posix-functions/newlocale.texi: Likewise.
21807         * doc/posix-functions/uselocale.texi: Likewise.
21808         * doc/posix-functions/isalnum_l.texi: Likewise.
21809         * doc/posix-functions/isalpha_l.texi: Likewise.
21810         * doc/posix-functions/isblank_l.texi: Likewise.
21811         * doc/posix-functions/iscntrl_l.texi: Likewise.
21812         * doc/posix-functions/isdigit_l.texi: Likewise.
21813         * doc/posix-functions/isgraph_l.texi: Likewise.
21814         * doc/posix-functions/islower_l.texi: Likewise.
21815         * doc/posix-functions/isprint_l.texi: Likewise.
21816         * doc/posix-functions/ispunct_l.texi: Likewise.
21817         * doc/posix-functions/isspace_l.texi: Likewise.
21818         * doc/posix-functions/isupper_l.texi: Likewise.
21819         * doc/posix-functions/iswalnum_l.texi: Likewise.
21820         * doc/posix-functions/iswalpha_l.texi: Likewise.
21821         * doc/posix-functions/iswblank_l.texi: Likewise.
21822         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21823         * doc/posix-functions/iswctype_l.texi: Likewise.
21824         * doc/posix-functions/iswdigit_l.texi: Likewise.
21825         * doc/posix-functions/iswgraph_l.texi: Likewise.
21826         * doc/posix-functions/iswlower_l.texi: Likewise.
21827         * doc/posix-functions/iswprint_l.texi: Likewise.
21828         * doc/posix-functions/iswpunct_l.texi: Likewise.
21829         * doc/posix-functions/iswspace_l.texi: Likewise.
21830         * doc/posix-functions/iswupper_l.texi: Likewise.
21831         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21832         * doc/posix-functions/isxdigit_l.texi: Likewise.
21833         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21834         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21835         * doc/posix-functions/strcoll_l.texi: Likewise.
21836         * doc/posix-functions/strfmon_l.texi: Likewise.
21837         * doc/posix-functions/strftime_l.texi: Likewise.
21838         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21839         * doc/posix-functions/strxfrm_l.texi: Likewise.
21840         * doc/posix-functions/tolower_l.texi: Likewise.
21841         * doc/posix-functions/toupper_l.texi: Likewise.
21842         * doc/posix-functions/towctrans_l.texi: Likewise.
21843         * doc/posix-functions/towlower_l.texi: Likewise.
21844         * doc/posix-functions/towupper_l.texi: Likewise.
21845         * doc/posix-functions/wcscoll_l.texi: Likewise.
21846         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21847         * doc/posix-functions/wctrans_l.texi: Likewise.
21848         * doc/posix-functions/wctype_l.texi: Likewise.
21849         * doc/glibc-functions/strptime_l.texi: Likewise.
21850         * doc/glibc-functions/strtod_l.texi: Likewise.
21851         * doc/glibc-functions/strtof_l.texi: Likewise.
21852         * doc/glibc-functions/strtol_l.texi: Likewise.
21853         * doc/glibc-functions/strtold_l.texi: Likewise.
21854         * doc/glibc-functions/strtoll_l.texi: Likewise.
21855         * doc/glibc-functions/strtoul_l.texi: Likewise.
21856         * doc/glibc-functions/strtoull_l.texi: Likewise.
21857         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21858         * doc/glibc-functions/wcstod_l.texi: Likewise.
21859         * doc/glibc-functions/wcstof_l.texi: Likewise.
21860         * doc/glibc-functions/wcstol_l.texi: Likewise.
21861         * doc/glibc-functions/wcstold_l.texi: Likewise.
21862         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21863         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21864         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21865
21866 2009-11-24  Bruno Haible  <bruno@clisp.org>
21867
21868         duplocale: Fix logic bug.
21869         * lib/duplocale.c: Don't include <langinfo.h>.
21870         (_NL_LOCALE_NAME): Remove macro.
21871         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21872         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21873
21874 2009-11-23  Jim Meyering  <meyering@redhat.com>
21875
21876         test-update-copyright: don't hard-code /usr/bin/perl
21877         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21878         perl to print the current year.  Gilles Espinasse reported that
21879         the replaced use of perl was hard-coded as /usr/bin/perl.
21880
21881 2009-11-23  Bruno Haible  <bruno@clisp.org>
21882
21883         duplocale: Add support for glibc 2.3.x.
21884         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21885
21886 2009-11-22  Bruno Haible  <bruno@clisp.org>
21887
21888         vasnprintf: Tiny optimization.
21889         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21890         MacOS X.
21891
21892 2009-11-22  Bruno Haible  <bruno@clisp.org>
21893
21894         Tests for module 'duplocale'.
21895         * modules/duplocale-tests: New file.
21896         * tests/test-duplocale.c: New file.
21897
21898         New module 'duplocale'.
21899         * m4/duplocale.m4: New file.
21900         * lib/locale.in.h (duplocale): New declaration.
21901         * lib/duplocale.c: New file.
21902         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21903         gl_LOCALE_H_DEFAULTS): New macros.
21904         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21905         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21906         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21907         REPLACE_DUPLOCALE.
21908         * modules/duplocale: New file.
21909         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21910
21911 2009-11-22  Bruno Haible  <bruno@clisp.org>
21912
21913         * modules/locale-tests (configure.ac): Test for newlocale function.
21914         * tests/test-locale.c: When the system has extended locale functions,
21915         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21916
21917         locale: Make locale_t available when possible.
21918         * lib/locale.in.h: Include <xlocale.h> when it exists.
21919         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21920         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21921         * modules/locale (Depends-on): Add extensions.
21922         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21923         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21924
21925 2009-11-22  Bruno Haible  <bruno@clisp.org>
21926
21927         Add comments.
21928         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21929         invocation.
21930         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21931         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21932         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21933
21934 2009-11-22  Bruno Haible  <bruno@clisp.org>
21935
21936         error: account for the possibility of freopen (stdout).
21937         * lib/error.c: Include <unistd.h>.
21938         (flush_stdout): New function, extracted from error and error_at_line.
21939         Determine stdout's fd dynamically.
21940         (error, error_at_line): Invoke flush_stdout.
21941         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21942         * modules/error (Depends-on): Add unistd.
21943
21944 2009-11-22  Bruno Haible  <bruno@clisp.org>
21945
21946         diffseq: Add comment.
21947         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21948
21949 2009-11-22  Jim Meyering  <meyering@redhat.com>
21950
21951         c-stack: avoid defining an unused static function
21952         * lib/c-stack.c (find_stack_direction): Do not define this function
21953         when it will not be used.
21954
21955         diffseq: avoid spurious gcc warnings
21956         * lib/diffseq.h (IF_LINT2): Define.
21957         (compareseq): Use it to initialize two members of "part".
21958         This avoids two used-uninitialized warnings.
21959
21960 2009-11-21  Jim Meyering  <meyering@redhat.com>
21961
21962         c-stack: avoid "ignoring return value of `write'" warning
21963         * lib/c-stack.c: Include "ignore-value.h".
21964         (die): Explicitly ignore each write return value.
21965         * modules/c-stack (Depends-on): Add ignore-value.
21966
21967 2009-11-21  Bruno Haible  <bruno@clisp.org>
21968
21969         diffseq: reduce scope of variable 'best'.
21970         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21971         variable, earlier used for two different purposes.
21972
21973 2009-11-21  Jim Meyering  <meyering@redhat.com>
21974
21975         diffseq: remove useless assignment to "best"
21976         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21977         assignment.  At that point "best" is already guaranteed to be zero.
21978
21979 2009-11-20  Eric Blake  <ebb9@byu.net>
21980
21981         build: mention ftp redirector in release announcements
21982         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21983         values that used to come from cfg.mk; mention FTP redirect URL.
21984         * build-aux/announce-gen: Mention the mirror list.
21985         Suggested by Karl Berry.
21986
21987         nanosleep: improve port to mingw
21988         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21990         LIB_NANOSLEEP, but only when needed.
21991         * modules/select (Link): Document LIBSOCKET.
21992         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21993         enough.
21994
21995         nanosleep: work around cygwin bug
21996         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21997         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21998         bug.
21999         (getnow): Delete, not needed.
22000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22001         LIB_CLOCK_GETTIME.
22002         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22003         clock-time, gettime.
22004         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22005         bug.
22006         * modules/nanosleep-tests: New test.
22007         * tests/test-nanosleep.c: New file.
22008
22009         sleep: work around cygwin bug
22010         * lib/sleep.c (rpl_sleep): Work around the bug.
22011         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22012         (gl_PREREQ_SLEEP): Delete unused macro.
22013         * modules/sleep (Depends-on): Add verify.
22014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22015         * modules/unistd (Makefile.am): Substitute witness.
22016         * lib/unistd.in.h (sleep): Update prototype.
22017         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22018         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22019         * modules/sleep-tests (Depends-on): Check for alarm.
22020
22021 2009-11-20  Jim Meyering  <meyering@redhat.com>
22022
22023         maint.mk: improve sc_prohibit_magic_number_exit
22024         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22025         so it does not match uses like System.exit(1).
22026         Add comments showing how to correct all offenders.
22027
22028 2009-11-19  Eric Blake  <ebb9@byu.net>
22029
22030         xalloc-die-tests: add missing library
22031         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22032
22033         test-xvasprintf: silence compiler warnings
22034         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22035         empty string from gcc.
22036
22037 2009-11-19  Jim Meyering  <meyering@redhat.com>
22038
22039         xfreopen: new module, from coreutils
22040         * modules/xfreopen: New module.
22041         * lib/xfreopen.c: New file.
22042         * lib/xfreopen.h: New file.
22043         * MODULES.html.sh (File stream based Input/Output"): Add it.
22044
22045 2009-11-19  Eric Blake  <ebb9@byu.net>
22046
22047         manywarnings: depend on warnings
22048         * modules/manywarnings (Depends-on): Add warnings.
22049
22050         build: avoid compiler warnings
22051         * lib/select.c (rpl_select): Delete unused variable.
22052         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22053
22054 2009-11-18  Eric Blake  <ebb9@byu.net>
22055
22056         tests: avoid false negative with --with-packager
22057         * tests/test-version-etc.sh: Discard packager information.
22058         * tests/test-argp-version-etc-1.sh: Likewise.
22059         Reported by Mike Frysinger.
22060
22061         utimens: fix regression on Solaris
22062         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22063         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22064         can only change fd timestamps via futimesat.  Instead, use an
22065         additional witness macro to avoid BSD bug.
22066         Reported by Jim Meyering.
22067
22068 2009-11-17  Eric Blake  <ebb9@byu.net>
22069
22070         usleep: use it to simplify tests
22071         * modules/stat-time-tests (Depends-on): Add usleep.
22072         (configure.ac): Drop usleep check.
22073         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22074         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22075         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22076         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22077         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22078         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22079         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22080         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22081         Likewise.
22082         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22083         * tests/test-lchown.h (nap): Likewise.
22084         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22085         * tests/test-stat-time.c (nap): Likewise.
22086         * tests/test-utimens-common.h (nap): Update comments.
22087
22088         usleep: new module
22089         * modules/usleep: New file.
22090         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22091         * lib/usleep.c (usleep): Likewise.
22092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22093         * modules/unistd (Makefile.am): Substitute witnesses.
22094         * lib/unistd.in.h (usleep): Add declaration.
22095         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22096         * MODULES.html.sh (Date and time): Likewise.
22097         * modules/usleep-tests (Depends-on): New test.
22098         * tests/test-usleep.c: New file.
22099
22100         chown: work around OpenBSD bug
22101         * lib/chown.c (rpl_chown): Work around the bug.
22102         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22103         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22104         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22105         * modules/chown (Depends-on): Add stdbool.
22106         * modules/lchown (Depends-on): Likewise.
22107         * doc/posix-functions/chown.texi (chown): Document the bug.
22108         * doc/posix-functions/lchown.texi (lchown): Likewise.
22109         * tests/test-lchown.h (test_chown): Relax test.
22110
22111         mkstemp: avoid conflict with C++ keyword template
22112         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22113         * lib/mkostemp.c (mkostemp): Likewise.
22114         * lib/mkostemps.c (mkostemps): Likewise.
22115         * lib/mkstemp.c (mkstemp): Likewise.
22116         * lib/mkstemps.c (mkstemps): Likewise.
22117
22118         xalloc-die-tests: optimize
22119         * tests/test-xalloc-die.sh: Reduce number of processes.
22120
22121 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22122
22123         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22124         patch from ludo@gnu.org (Ludovic Courtès).
22125
22126 2009-11-17  Jim Meyering  <meyering@redhat.com>
22127
22128         version-etc: use proper license string
22129         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22130         * modules/version-etc-fsf: Likewise.
22131
22132 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22133
22134         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22135         printed to stdout.  Deal with EOL differences.
22136
22137 2009-11-17  Eric Blake  <ebb9@byu.net>
22138
22139         unsetenv: work around Solaris bug
22140         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22141         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22142         Reported by Jim Meyering.
22143
22144         vasnprintf: avoid compiler warnings
22145         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22146         variables.
22147         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22148
22149 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22150
22151         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22152         settings since xalloc-die is no longer the self test,
22153         xalloc-die.sh is.
22154
22155 2009-11-17  Jim Meyering  <meyering@redhat.com>
22156
22157         test-xalloc-die.sh: make the code agree with the commit log
22158         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22159         at the end, just in case you happen to have a test-xalloc-die
22160         program in some other PATH directory.
22161
22162         test-xalloc-die.sh: fix a portability bug
22163         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22164         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22165         Otherwise, argv[0] (as often seen in diagnostics) would be too
22166         system-dependent, sometimes with, and sometimes without the leading "./".
22167
22168         version-etc-fsf: relax license to LGPLv3+
22169         * modules/version-etc-fsf (License): Relax license.
22170
22171 2009-11-16  Eric Blake  <ebb9@byu.net>
22172
22173         xalloc-die-tests: avoid printing null pointer
22174         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22175         shell script.
22176         * tests/test-xalloc-die.c (program_name): Declare.
22177         * tests/test-xalloc-die.sh (tmpfiles): New file.
22178
22179         setenv, unsetenv: work around various bugs
22180         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22181         (setenv) [HAVE_SETENV]: Work around bugs.
22182         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22184         for bugs.
22185         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22186         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22188         * modules/stdlib (Makefile.am): Update substitutions.
22189         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22190         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22191         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22192         * modules/setenv-tests: New test.
22193         * modules/unsetenv-tests: Likewise.
22194         * tests/test-setenv.c: New file.
22195         * tests/test-unsetenv.c: Likewise.
22196
22197 2009-11-16  Jim Meyering  <meyering@redhat.com>
22198
22199         version-etc: relax license to LGPLv3+
22200         * modules/version-etc (License): Relax license.
22201
22202         better AC_REQUIRE expanded-before-required-warning avoidance
22203         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22204         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22205         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22206         which is no longer needed.
22207
22208 2009-11-16  Eric Blake  <ebb9@byu.net>
22209
22210         test-freading: clean up temporary file
22211         * tests/test-freading.c (main): Remove file on success, and use
22212         ASSERT more liberally.
22213         Reported by Jim Meyering.
22214
22215 2009-11-16  Jim Meyering  <meyering@redhat.com>
22216
22217         avoid new AC_REQUIRE expanded-before-required warnings
22218         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22219         merely using it.
22220         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22221         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22222
22223 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22224
22225         * tests/test-xalloc-die.c: New file.
22226         * modules/xalloc-die-tests: New file.
22227         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22228         XFAIL_TESTS so it can be appended by modules.
22229
22230 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22231
22232         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22233         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22234
22235 2009-11-14  Eric Blake  <ebb9@byu.net>
22236
22237         fnmatch: avoid compiler warning
22238         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22239         to silence compiler warning about mismatch signedness in ?:.
22240         Reported by Robert Millan.
22241
22242         intprops: add double-inclusion guard
22243         * lib/intprops.h: Allow idempotent includes.
22244         Suggested by Bruce Korb.
22245
22246         openat: detect Solaris fchownat bug
22247         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22248         penalizing glibc chownat when only lchownat is broken.
22249         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22250         trailing slash bugs.
22251         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22252         * modules/openat-tests (Files): Include more files.
22253         (Depends-on): Add mgetgroups, sleep, stat-time.
22254         (configure.ac): Add additional checks.
22255         (Makefile.am): Build new test.
22256         * tests/test-fchownat.c: New file.
22257
22258         lchown: detect Solaris and FreeBSD bug
22259         * lib/lchown.c (rpl_lchown): Work around bug.
22260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22262         * modules/unistd (Makefile.am): Populate it.
22263         * lib/unistd.in.h (lchown): Update declaration.
22264         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22265         * modules/lchown-tests: New file.
22266         * tests/test-lchown.h (test_lchown): Likewise.
22267         * tests/test-lchown.c (main): Likewise.
22268
22269         chown: detect Solaris and FreeBSD bug
22270         * lib/chown.c (rpl_chown): Work around bug.
22271         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22272         (gl_PREREQ_CHOWN): Delete.
22273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22274         * modules/unistd (Makefile.am): Populate it.
22275         * lib/unistd.in.h (chown): Update declaration.
22276         * lib/lchown.c (chown): Update client.
22277         * modules/lchown (Depends-on): Add lstat.
22278         * doc/posix-functions/chown.texi (chown): Document the bug.
22279         * doc/posix-functions/getgroups.texi (getgroups): Document
22280         getgroups pitfall.
22281         * modules/chown-tests: New file.
22282         * tests/test-chown.h (test_chown): Likewise.
22283         * tests/test-chown.c (main): Likewise.
22284
22285 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22286
22287         gnulib-tool: correctly detect absence of m4 directories
22288         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22289
22290 2009-11-14  Jim Meyering  <meyering@redhat.com>
22291
22292         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22293         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22294
22295 2009-11-14  John W. Eaton  <jwe@gnu.org>
22296
22297         strftime.h: wrap funtion declaration in extern "C" block
22298         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22299
22300 2009-11-13  Eric Blake  <ebb9@byu.net>
22301
22302         getgroups: avoid compiler warning
22303         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22304
22305         getgroups: work around FreeBSD bug
22306         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22307         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22308         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22309         * tests/test-getgroups.c (main): Fix buffer overrun.
22310
22311         getgroups: avoid compilation failure
22312         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22313         * modules/getgroups (Depends-on): Add stdint.
22314
22315 2009-11-13  Jim Meyering  <meyering@redhat.com>
22316
22317         test-getgroups: avoid compilation failure
22318         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22319
22320 2009-11-13  Eric Blake  <ebb9@byu.net>
22321
22322         mgetgroups: new module, taken from coreutils
22323         * modules/mgetgroups: New file.
22324         * lib/mgetgroups.h: Likewise.
22325         * lib/mgetgroups.c (mgetgroups): Likewise.
22326         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22327         * MODULES.html.sh (Users and groups): Mention it.
22328
22329         getgroups: don't expose GETGROUPS_T to user
22330         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22331         an element at a time if GETGROUPS_T is wrong size.
22332         * lib/getugroups.h (getugroups): Change signature.
22333         * lib/unistd.in.h (getgroups): Likewise.
22334         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22335         signature needs fixing.
22336         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22337         AC_TYPE_GETGROUPS.
22338         * modules/group-member (Depends-on): Add getgroups.
22339         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22340         (group_member): Rely on getgroups replacement.
22341         * lib/getugroups.c (getugroups): Use gid_t.
22342         * tests/test-getgroups.c (main): Likewise.
22343         * NEWS: Mention the signature change.
22344         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22345         problem with signature.
22346         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22347         GETGROUPS_T is still useful for setgroups.
22348
22349         getgroups, getugroups: provide stubs for mingw
22350         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22351         * lib/getugroups.c (getugroups): Likewise.
22352         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22353         function.  Modernize replacement scheme.
22354         (gl_PREREQ_GETGROUPS): Delete.
22355         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22356         * modules/getgroups (configure.ac): Declare witness.
22357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22358         * modules/unistd (Depends-on): Substitute witness.
22359         * lib/unistd.in.h (getgroups): Declare replacement.
22360
22361         getgroups: avoid calling exit
22362         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22363         drop xalloc.
22364         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22365         dependencies.
22366         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22367         exiting, in the rare case of malloc failure.
22368
22369         getgroups: fix logic error
22370         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22371         has more than 20 groups.
22372         * modules/getgroups-tests: New test.
22373         * tests/test-getgroups.c: New file.
22374
22375 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22376
22377         * tests/test-base64.c: Improve.
22378
22379 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22380
22381         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22382         Blake <ebb9@byu.net>.
22383
22384 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22385
22386         * tests/test-xvasprintf.c: Add %s%s related checks.
22387
22388 2009-11-12  Eric Blake  <ebb9@byu.net>
22389
22390         version-etc: match standards.texi style
22391         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22392         and use <> only for URLs.
22393
22394 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22395
22396         fts: do not fail on a submount during traversal
22397         * lib/fts.c (fts_build): Read the stat info again after opening
22398         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22399         Original report at http://bugzilla.redhat.com/501848.
22400
22401 2009-11-12  Jim Meyering  <meyering@redhat.com>
22402
22403         bootstrap: sync from coreutils
22404         * build-aux/bootstrap (bootstrap_epilogue): New function.
22405         Use git_modules_config in one more place.  This make bootstrap's
22406         --gnulib-srcdir option more useful for testing.
22407
22408         bootstrap: generalize autoheader check
22409         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22410         AC_CONFIG_HEADERS.
22411
22412 2009-11-11  Eric Blake  <ebb9@byu.net>
22413
22414         mkfifoat: use new modules for Solaris and BSD bugs
22415         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22416         * lib/mkfifoat.c (mknodat): Split...
22417         * lib/mknodat.c (mknodat): ...into new file.
22418         * modules/mkfifoat (Files): Ship new file.
22419         (Depends-on): Add mkfifo, mknod.
22420         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22421         (Depends-on): Add symlink.
22422         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22423         redundant with test_mkfifo.h.
22424         (do_mkfifoat, do_mknodat): New helpers.
22425
22426         mknod: new module
22427         * modules/mknod: New file.
22428         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22429         * lib/mknod.c (mknod): Likewise.
22430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22431         defaults.
22432         * modules/sys_stat (Makefile.am): Substitute them.
22433         * lib/sys_stat.in.h (mknod): Declare replacement.
22434         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22435         Document it.
22436         * doc/posix-functions/mknod.texi (mknod): Likewise.
22437         * modules/mknod-tests: New test.
22438         * tests/test-mknod.c: Likewise.
22439
22440         mkfifo: new module
22441         * modules/mkfifo: New file.
22442         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22443         * lib/mkfifo.c (mkfifo): Likewise.
22444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22445         defaults.
22446         * modules/sys_stat (Makefile.am): Substitute them.
22447         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22448         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22449         Document it.
22450         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22451         * modules/mkfifo-tests: New test.
22452         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22453         from test-mkfifoat.c.
22454         * tests/test-mkfifo.c: New file.
22455
22456         readlink: detect FreeBSD bug
22457         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22458         slash on symlink.
22459         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22460         * tests/test-readlink.h (test_readlink): Enhance test.
22461
22462         symlink: detect FreeBSD bug
22463         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22464         slash on symlink.
22465         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22466         * tests/test-symlink.h (test_symlink): Enhance test.
22467
22468 2009-11-10  Eric Blake  <ebb9@byu.net>
22469
22470         link: detect FreeBSD bug
22471         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22472         symlink.
22473         * doc/posix-functions/link.texi (link): Document the bug.
22474         * tests/test-link.h (test_link): Enhance test.
22475         * tests/test-linkat.c (main): Update caller.
22476
22477         unlink, remove: detect FreeBSD bug
22478         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22479         slash on symlink.
22480         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22481         * doc/posix-functions/remove.texi (remove): Likewise.
22482         * tests/test-unlink.h (test_unlink): Enhance test.
22483         * tests/test-remove.c (main): Likewise.
22484
22485 2009-11-09  Eric Blake  <ebb9@byu.net>
22486
22487         rename: detect FreeBSD bug
22488         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22489         slash on symlink.
22490         * modules/renameat-tests (Depends-on): Add filenamecat.
22491         * tests/test-rename.h (test_rename): Allow one more errno.
22492         * tests/test-renameat.c (main): Likewise.
22493         * doc/posix-functions/rename.texi (rename): Document the bug.
22494
22495         open: detect FreeBSD bug
22496         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22497         symlink.
22498         * doc/posix-functions/open.texi (open): Document the bug.
22499         * doc/posix-functions/utimes.texi (utimes): Likewise.
22500         * tests/test-open.h (test_open): Add parameters, and test symlink
22501         handling.
22502         * tests/test-open.c (main): Adjust caller.
22503         * tests/test-fcntl-safer.c (main): Likewise.
22504         * modules/open-tests (Depends-on): Add stdbool, symlink.
22505         * modules/fcntl-safer-tests (Depends-on): Likewise.
22506         * tests/test-openat.c (main): Add test-open tests.
22507
22508         stat: detect FreeBSD bug
22509         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22510         symlink.
22511         * doc/posix-functions/stat.texi (stat): Document the bug.
22512         * tests/test-stat.h (test_stat_func): Add argument.
22513         * tests/test-stat.c (main): Adjust caller.
22514         * tests/test-fstatat.c (main): Likewise.
22515         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22516         Reported by Jim Meyering.
22517
22518 2009-11-09  James Youngman  <jay@gnu.org>
22519
22520         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22521         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22522
22523 2009-11-08  Jim Meyering  <meyering@redhat.com>
22524
22525         utimens: remove invalid futimesat call
22526         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22527         It used the file descriptor of the target file as the DIR_FD
22528         parameter and NULL as the file name.  That caused failure with
22529         errno == EFAULT on FreeBSD-8.0-rc2
22530
22531 2009-11-07  Eric Blake  <ebb9@byu.net>
22532
22533         fflush, freadseek: use fseeko, not fseek
22534         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22535         (clear_ungetc_buffer): Avoid potential problems on large files.
22536         * lib/freadseek.c (freadseek): Likewise.
22537         * modules/freadseek (Depends-on): Add fseeko.
22538         * modules/fseek (configure.ac): Set a witness.
22539         * tests/test-fflush.c (main): Use fseeko.
22540         * tests/test-fpurge.c (fseek): Disable link warning.
22541         * tests/test-freadable.c (fseek): Likewise.
22542         * tests/test-freading.c (fseek): Likewise.
22543         * tests/test-fseeko.c (fseek): Likewise.
22544         * tests/test-ftell.c (fseek): Likewise.
22545         * tests/test-ftello.c (fseek): Likewise.
22546         * tests/test-fwritable.c (fseek): Likewise.
22547         * tests/test-fwriting.c (fseek): Likewise.
22548
22549 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22550
22551         * modules/memchr (Depends-on): Drop getpagesize dependency.
22552
22553 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22554
22555         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22556         Reported by Ludovic Courtès.
22557         * build-aux/pmccabe2html: Improve example usage.
22558         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22559
22560 2009-11-06  Jim Meyering  <meyering@redhat.com>
22561
22562         do-release-commit-and-tag: New module.
22563         Automate the release-commit and tag process.
22564         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22565         * modules/do-release-commit-and-tag: New file.
22566         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22567
22568 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22569
22570         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22571         because test-select.c uses inet_pton.
22572
22573 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22574
22575         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22576         GETADDRINFO_LIB.  Bump serial number.
22577         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22578         Suggested by Eric Blake <ebb9@byu.net>.
22579
22580 2009-11-05  Eric Blake  <ebb9@byu.net>
22581
22582         strtod: detect darwin bug
22583         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22584         Reported by Leo Davis.
22585
22586         freopen-safer: new module
22587         * modules/freopen-safer: New module.
22588         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22589         * lib/freopen-safer.c (freopen_safer): New file.
22590         * lib/stdio-safer.h (freopen_safer): New declaration.
22591         * lib/stdio--.h (freopen): New override.
22592         * MODULES.html.sh (File stream based Input/Output): Mention it.
22593         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22594         freopen-safer module.
22595         * doc/posix-functions/stderr.texi (stderr): Likewise.
22596         * doc/posix-functions/stdin.texi (stdin): Likewise.
22597         * doc/posix-functions/stdout.texi (stdout): Likewise.
22598         * modules/freopen-safer-tests: New test.
22599         * tests/test-reopen-safer.c: New file.
22600
22601 2009-11-05  Jim Meyering  <meyering@redhat.com>
22602
22603         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22604         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22605
22606 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22607
22608         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22609
22610 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22611
22612         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22613
22614 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22615
22616         Fix link error.
22617         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22618         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22619
22620 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22621
22622         * tests/test-func.c: Also test value of __func__.
22623
22624 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22625
22626         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22627         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22628
22629 2009-11-05  Bruno Haible  <bruno@clisp.org>
22630
22631         Fix link error.
22632         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22633         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22634         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22635
22636 2009-11-05  Bruno Haible  <bruno@clisp.org>
22637
22638         Tests for module 'inet_pton'.
22639         * modules/inet_pton-tests: New file.
22640         * tests/test-inet_pton.c: New file.
22641
22642 2009-11-05  Bruno Haible  <bruno@clisp.org>
22643
22644         Tests for module 'inet_ntop'.
22645         * modules/inet_ntop-tests: New file.
22646         * tests/test-inet_ntop.c: New file.
22647
22648 2009-11-04  Eric Blake  <ebb9@byu.net>
22649
22650         stdlib-safer: wrap all mkstemp variants
22651         * modules/mkostemp (configure.ac): Set witness.
22652         * modules/mkostemps (configure.ac): Likewise.
22653         * modules/mkstemps (configure.ac): Likewise.
22654         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22655         (mkstemps_safer): Wrap more functions.
22656         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22657         wrapping.
22658         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22659         (mkstemps_safer): Implement the wrappers.
22660
22661         mkstemps, mkostemps: new modules
22662         * modules/mkostemps: New module.
22663         * modules/mkstemps: Likewise.
22664         * lib/mkostemps.c (mkostemps): New file.
22665         * lib/mkstemps.c (mkstemps): Likewise.
22666         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22667         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22669         * modules/stdlib (Makefile.am): Substitute them.
22670         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22671         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22672         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22673         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22674         * MODULES.html.sh (File system functions): Mention them.
22675
22676         tempname: resync from glibc
22677         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22678         same values for __GT_FILE as glibc.  Abort even when assertions
22679         are disabled.
22680         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22681         match its value otherwise.  Allow idempotent inclusion.
22682         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22683         * lib/mkostemp.c (mkostemp): Likewise.
22684         * lib/mkstemp.c (mkstemp): Likewise.
22685         * lib/tmpfile.c (tmpfile): Likewise.
22686         * NEWS: Document this.
22687
22688         utimens: fix use of futimens on older Linux
22689         * lib/utimens.c (fdutimens): Use updated, rather than original,
22690         timespec to avoid bug in older Linux kernel.
22691         Reported by Simon Josefsson.
22692
22693 2009-11-04  Bruno Haible  <bruno@clisp.org>
22694
22695         Make num_processors more flexible and consistent.
22696         * lib/nproc.h (enum nproc_query): New type.
22697         (num_processors): Add a 'query' argument.
22698         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22699         (num_processors): Add a 'query' argument. Test the value of the
22700         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22701         mingw, count the number of CPUs available for the current process.
22702         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22703         Check for sched_getaffinity and sched_getaffinity_np.
22704         * modules/nproc (Depends-on): Add c-ctype, extensions.
22705         * NEWS: Mention the change.
22706
22707 2009-11-03  Bruno Haible  <bruno@clisp.org>
22708
22709         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22710
22711 2009-11-03  Jim Meyering  <meyering@redhat.com>
22712
22713         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22714         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22715         if it is defined.
22716
22717 2009-11-02  Eric Blake  <ebb9@byu.net>
22718
22719         mktime, timegm: share common declaration
22720         * lib/mktime-internal.h: New file.
22721         * lib/mktime.c: Use it rather than open-coding a declaration.
22722         * lib/timegm.c: Likewise.
22723         * modules/mktime (Files): Ship it.
22724         * modules/timegm (Files): Likewise.
22725         Suggested by Bruno Haible.
22726
22727         test-update-copyright: update test to match script changes
22728         * tests/test-update-copyright.sh: Avoid hard-coding perl
22729         location.  Don't update *.bak created by earlier runs.
22730
22731 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22732             Simon Josefsson  <simon@josefsson.org>
22733             Bruno Haible  <bruno@clisp.org>
22734
22735         Fix link error on Solaris 8.
22736         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22737         also in libnsl. Define also INET_PTON_LIB.
22738         * modules/inet_pton (Link): New section.
22739
22740 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22741             Bruno Haible  <bruno@clisp.org>
22742
22743         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22744         * modules/inet_ntop (Link): New section.
22745         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22746
22747 2009-11-02  Eric Blake  <ebb9@byu.net>
22748
22749         maint: avoid compiler warnings in m4 macros
22750         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22752
22753 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22754
22755         * m4/pmccabe2html.m4: Remove file.
22756         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22757         function.  Change maintainer.
22758         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22759         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22760         Courtès).
22761
22762 2009-10-31  Eric Blake  <ebb9@byu.net>
22763
22764         fseeko: fix m4 regression
22765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22766         regression from 2009-10-27.
22767         Reported by Ralf Wildenhues.
22768
22769 2009-10-31  Jim Meyering  <meyering@redhat.com>
22770
22771         inttostr: aesthetics and improved (compile-time) safety
22772         Define inttype_is_signed rather than inttype_is_unsigned,
22773         since the sole use is via "#if inttype_is_signed".
22774         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22775         inttype_is_unsigned.
22776         * lib/offtostr.c (inttype_is_signed): Likewise.
22777         * lib/uinttostr.c (inttype_is_signed): Likewise.
22778         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22779         * lib/inttostr.c (inttostr): Use verify to cross-check the
22780         inttype_is_signed value and the signedness of the actual type.
22781         * modules/inttostr (Depends-on): Add verify.
22782
22783 2009-10-30  Eric Blake  <ebb9@byu.net>
22784
22785         build: avoid compiler warnings
22786         * lib/fchmodat.c (lchmod): Mark unused variables.
22787         * lib/getopt.c (_getopt_initialize): Likewise.
22788         * lib/mktime.c (__mktime_internal): Provide prototype.
22789         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22790         older gcc that do not understand #pragma GCC diagnostic.
22791         * lib/uinttostr.c (inttype_is_unsigned): Define.
22792         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22793
22794 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22795
22796         stat: fix compilation on AIX
22797         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22798         only see struct stat64.
22799
22800 2009-10-30  Eric Blake  <ebb9@byu.net>
22801
22802         exclude: make more robust
22803         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22804         rather than masking a coding bug.
22805         Suggested by Bruno Haible.
22806
22807 2009-10-30  Jim Meyering  <meyering@redhat.com>
22808
22809         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22810         Rather than putting #!/usr/bin/perl on the first line,
22811         start with a variant of what's recommended by "man perlrun" that
22812         invokes the first "perl" program from your shell's search path.
22813         * build-aux/gitlog-to-changelog: Replace #!... as above.
22814         Add a "Local Variables" perl mode setting.
22815         Prompted by a patch from Ludovic Courtès.
22816         Improved by Eric Blake.
22817         * build-aux/useless-if-before-free: Likewise.
22818         * build-aux/announce-gen: Likewise.
22819         * build-aux/update-copyright: Likewise.
22820
22821 2009-10-29  Eric Blake  <ebb9@byu.net>
22822
22823         filenamecat-lgpl: adjust clients
22824         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22825         filenamecat.
22826         * modules/renameat (Depends-on): Likewise.
22827
22828         filenamecat: split into filenamecat-lgpl
22829         * modules/filenamecat-lgpl: New module.
22830         * modules/filenamecat (Files): Move library-safe files into
22831         filenamecat-lgpl.
22832         (Depends-on): Add filenamecat-lgpl.
22833         (configure.ac): Declare witness.
22834         * lib/filenamecat.h (file_name_concat): Only declare when using
22835         GPL module.
22836         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22837         Move...
22838         * lib/filenamecat-lgpl.c: ...into new file.
22839         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22840         (gl_FILE_NAME_CONCAT): Use it.
22841         * MODULES.html.sh (File system functions): Mention new module.
22842
22843         argp: avoid memory leak
22844         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22845         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22846         base_name, since the latter malloc()s and can call exit().
22847         Leak introduced 2006-07-03.
22848
22849         dirname-lgpl: adjust clients that don't need full dirname
22850         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22851         * modules/filenamecat (Depends-on): Likewise.
22852         * modules/linkat (Depends-on): Likewise.
22853         * modules/mkancesdirs (Depends-on): Likewise.
22854         * modules/mkdir (Depends-on): Likewise.
22855         * modules/openat (Depends-on): Likewise.
22856         * modules/savewd (Depends-on): Likewise.
22857         * modules/rename (Depends-on): Likewise.
22858         (License): Relax license.
22859         * modules/mkdir-tests (Depends-on): Drop progname.
22860         (Makefile.am): Delete unneeded LDADD.
22861         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22862
22863         dirname: split into dirname-lgpl
22864         * modules/dirname-lgpl: New module.
22865         * modules/dirname (Files): Move library-safe files into
22866         dirname-lgpl.
22867         (Depends-on): Add dirname-lgpl.
22868         (configure.ac): Declare witness.
22869         * modules/double-slash-root (License): Relax license.
22870         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22871         module.
22872         * lib/dirname.c (dir_len, mdir_name): Move...
22873         * lib/dirname-lgpl.c: ...into new file.
22874         * lib/basename.c (last_component, base_len): Move...
22875         * lib/basename-lgpl.c: ...into new file.
22876         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22877         (gl_DIRNAME): Use it.
22878         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22879         Mention new module.
22880         * modules/dirname-tests (Depends-on): Add progname.
22881         * tests/test-dirname.c (program_name): Delete.
22882
22883         mkdir: make safe for libraries
22884         * modules/mkdir (Depends-on): Drop xalloc.
22885         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22886         exit.
22887
22888         tests: avoid some compiler warnings
22889         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22890         literals.
22891         * tests/test-memchr.c (main): Avoid type mismatch.
22892         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22893         * tests/test-base64.c (main): Likewise.
22894         * tests/test-getdelim.c (main): Likewise.
22895         * tests/test-gethostname.c (main): Likewise.
22896         * tests/test-getline.c (main): Likewise.
22897         * tests/test-netinet_in.c (main): Likewise.
22898         * tests/test-select.c (open_server_socket, main): Likewise.
22899         * tests/test-select-stdin.c (main): Likewise.
22900         * tests/test-sockets.c (main): Likewise.
22901         * tests/test-strsignal.c (main): Likewise.
22902         * tests/test-sys_select.c (main): Likewise.
22903         * tests/test-sys_socket.c (main): Likewise.
22904         * tests/test-u64.c (main): Likewise.
22905         * tests/test-xfprintf-posix.c (main): Likewise.
22906         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22907
22908         sockets: avoid compiler warning
22909         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22910
22911         maint: detect usage(1) and other suspicious exits
22912         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22913
22914 2009-10-29  Jim Meyering  <meyering@redhat.com>
22915
22916         timespec: long-to-int truncation could make timespec_cmp malfunction
22917         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22918         a multiple of 2^32 nanoseconds as no difference.
22919
22920 2009-10-28  Jim Meyering  <meyering@redhat.com>
22921
22922         fprintftime: wrap macro code argument in "do {...} while(0)"
22923         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22924         cpy macro must be a statement that can be followed by a semicolon.
22925         Now that the else clause contains a comment and is hence longer
22926         than one line, I require curly braces.  That in turn requires
22927         that we wrap this code block in the standard do...while(0).
22928
22929         fprintftime: remove stray semicolon from previous change
22930         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22931
22932         fprintftime: avoid a warning about ignored fwrite return value
22933         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22934         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22935         that is unsafe.
22936         * modules/fprintftime (Depends-on): Add ignore-value.
22937
22938         exclude: avoid an unwarranted warning
22939         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22940
22941 2009-10-27  Eric Blake  <ebb9@byu.net>
22942
22943         fseek: avoid compilation failure when fflush is replaced
22944         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22945         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22946         module is in use.
22947         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22948         module is not in use; since REPLACE_FSEEK worked otherwise.
22949         (GNULIB_FTELLO): Likewise for ftell.
22950         Reported by Ian Beckwith and others.
22951
22952 2009-10-27  Bruno Haible  <bruno@clisp.org>
22953
22954         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22955         Reported by Jim Meyering.
22956
22957 2009-10-27  Jim Meyering  <jim@meyering.net>
22958             Bruno Haible  <bruno@clisp.org>
22959
22960         Avoid warning despite dropping the return value of fwrite.
22961         * lib/unicodeio.c: Include ignore-value.h.
22962         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22963         * modules/unicodeio (Depends-on): Add ignore-value.
22964
22965 2009-10-26  Eric Blake  <ebb9@byu.net>
22966
22967         areadlinkat: fix fallback path
22968         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22969         pointer and zero.
22970
22971 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22972
22973         Use a better IO block size for modern systems
22974         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22975         * lib/md2.c: Likewise.
22976         * lib/md4.c: Likewise.
22977         * lib/md5.c: Likewise.
22978         * lib/sha1.c: Likewise.
22979         * lib/sha256.c: Likewise.
22980         * lib/sha512.c: Likewise.
22981
22982 2009-10-22  Eric Blake  <ebb9@byu.net>
22983
22984         tests: avoid several compiler warnings
22985         * tests/test-getcwd.c (main): Avoid buffer underflow.
22986         * tests/test-getdate.c (main): String literals are not safe with
22987         putenv, so use setenv.  Declare unused argument.
22988         * modules/getdate-tests (Depends-on): Add setenv.
22989         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22990         problems with string literals in char *.
22991         * tests/test-hash.c (main): Avoid shadowing declaration.
22992         (insert_new): Treat string literals as char const *.
22993         * tests/test-getopt.h (test_getopt): Likewise.
22994         (getopt_loop): Alter types to minimize casting elsewhere.
22995         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22996         (test_getopt_long_posix): Likewise.
22997         (do_getopt_long): Add wrapper to minimize casting.
22998         * tests/test-atexit.c (clear_temp_file): Use void.
22999         * tests/test-areadlink-with-size.c (main): Declare unused
23000         arguments.
23001         * tests/test-areadlink.c (main): Likewise.
23002         * tests/test-areadlinkat-with-size.c (main): Likewise.
23003         * tests/test-areadlinkat.c (main): Likewise.
23004         * tests/test-canonicalize-lgpl.c (main): Likewise.
23005         * tests/test-canonicalize.c (main): Likewise.
23006         * tests/test-dirent-safer.c (main): Likewise.
23007         * tests/test-dirname.c (main): Likewise.
23008         * tests/test-dup2.c (main): Likewise.
23009         * tests/test-fchdir.c (main): Likewise.
23010         * tests/test-fcntl-h.c (main): Likewise.
23011         * tests/test-fcntl-safer.c (main): Likewise.
23012         * tests/test-fdopendir.c (main): Likewise.
23013         * tests/test-fdutimensat.c (main): Likewise.
23014         * tests/test-fflush.c (main): Likewise.
23015         * tests/test-filenamecat.c (main): Likewise.
23016         * tests/test-filevercmp.c (main): Likewise.
23017         * tests/test-fopen-safer.c (main): Likewise.
23018         * tests/test-fopen.c (main): Likewise.
23019         * tests/test-fpending.c (main): Likewise.
23020         * tests/test-fpurge.c (main): Likewise.
23021         * tests/test-freading.c (main): Likewise.
23022         * tests/test-fstatat.c (main): Likewise.
23023         * tests/test-fsync.c (main): Likewise.
23024         * tests/test-futimens.c (main): Likewise.
23025         * tests/test-getndelim2.c (main): Likewise.
23026         * tests/test-gettimeofday.c (main): Likewise.
23027         * tests/test-getopt.c (main): Likewise.
23028         * tests/test-i-ring.c (main): Likewise.
23029         * tests/test-inttypes.c (main): Likewise.
23030         * tests/test-link.c (main): Likewise.
23031         * tests/test-lstat.c (main): Likewise.
23032         * tests/test-math.c (main): Likewise.
23033         * tests/test-md5.c (main): Likewise.
23034         * tests/test-memchr2.c (main): Likewise.
23035         * tests/test-memrchr.c (main): Likewise.
23036         * tests/test-mkdir.c (main): Likewise.
23037         * tests/test-mkdirat.c (main): Likewise.
23038         * tests/test-mkfifoat.c (main): Likewise.
23039         * tests/test-open.c (main): Likewise.
23040         * tests/test-openat-safer.c (main): Likewise.
23041         * tests/test-openat.c (main): Likewise.
23042         * tests/test-quotearg.c (main): Likewise.
23043         * tests/test-rawmemchr.c (main): Likewise.
23044         * tests/test-readlink.c (main): Likewise.
23045         * tests/test-remove.c (main): Likewise.
23046         * tests/test-rename.c (main): Likewise.
23047         * tests/test-renameat.c (main): Likewise.
23048         * tests/test-rmdir.c (main): Likewise.
23049         * tests/test-sha1.c (main): Likewise.
23050         * tests/test-signal.c (main): Likewise.
23051         * tests/test-sigaction.c (main): Likewise.
23052         * tests/test-stat.c (main): Likewise.
23053         * tests/test-stat-time.c (main): Likewise.
23054         * tests/test-stddef.c (main): Likewise.
23055         * tests/test-stdint.c (main): Likewise.
23056         * tests/test-stdio.c (main): Likewise.
23057         * tests/test-stdlib.c (main): Likewise.
23058         * tests/test-strchrnul.c (main): Likewise.
23059         * tests/test-strerror.c (main): Likewise.
23060         * tests/test-string.c (main): Likewise.
23061         * tests/test-strtod.c (main): Likewise.
23062         * tests/test-strverscmp.c (main): Likewise.
23063         * tests/test-symlink.c (main): Likewise.
23064         * tests/test-symlinkat.c (main): Likewise.
23065         * tests/test-sys_stat.c (main): Likewise.
23066         * tests/test-sys_time.c (main): Likewise.
23067         * tests/test-time.c (main): Likewise.
23068         * tests/test-unistd.c (main): Likewise.
23069         * tests/test-unlink.c (main): Likewise.
23070         * tests/test-unlinkat.c (main): Likewise.
23071         * tests/test-utimens.c (main): Likewise.
23072         * tests/test-utimensat.c (main): Likewise.
23073         * tests/test-version-etc.c (main): Likewise.
23074         * tests/test-wchar.c (main): Likewise.
23075         * tests/test-wctype.c (main): Likewise.
23076         * tests/test-xprintf-posix.c (main): Likewise.
23077         * tests/test-posixtm.c (main): Likewise.
23078         (STREQ): Delete unused macro.
23079         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23080         shadowed variables.
23081         * tests/test-memchr.c (main): Likewise.
23082
23083 2009-10-21  Eric Blake  <ebb9@byu.net>
23084
23085         areadlinkat: avoid failure on older glibc
23086         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23087         rather than mis-comparing 0 against FUNC_RESULT of char*.
23088
23089 2009-10-21  Bruno Haible  <bruno@clisp.org>
23090
23091         * modules/stpncpy (License): Relicense under LGPLv2+.
23092         Reported by David Lutterkort <lutter@redhat.com>.
23093
23094 2009-10-20  Eric Blake  <ebb9@byu.net>
23095
23096         utimensat: work around Solaris 9 bug
23097         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23098         has trailing slash bugs.
23099         * tests/test-lutimens.h (test_lutimens): Enhance test.
23100         * tests/test-utimens.h (test_utimens): Likewise.
23101         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23102         * doc/posix-functions/utimes.texi (utimes): Likewise.
23103         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23104         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23105         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23106         * doc/posix-functions/futimens.texi (futimens): Likewise.
23107
23108         fdutimensat: new module
23109         * modules/fdutimensat: New file.
23110         * lib/fdutimensat.c (fdutimensat): Likewise.
23111         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23112         * MODULES.html.sh (File system functions): Mention module.
23113         * modules/fdutimensat-tests: New test.
23114         * tests/test-fdutimensat.c: Likewise.
23115
23116         doc: regenerate INSTALL
23117         * doc/INSTALL: Reflect recent autoconf update.
23118         * doc/INSTALL.ISO: Likewise.
23119         * doc/INSTALL.UTF-8: Likewise.
23120
23121 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23122
23123         acl: warn if ACL support is not detected
23124         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23125
23126 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23127
23128         * lib/nproc.h: Add extern "C" block for C++.
23129
23130 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23131             Bruno Haible  <bruno@clisp.org>
23132
23133         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23134         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23135         * doc/posix-functions/isalpha.texi: Likewise.
23136         * doc/posix-functions/isblank.texi: Likewise.
23137         * doc/posix-functions/iscntrl.texi: Likewise.
23138         * doc/posix-functions/isdigit.texi: Likewise.
23139         * doc/posix-functions/isgraph.texi: Likewise.
23140         * doc/posix-functions/islower.texi: Likewise.
23141         * doc/posix-functions/isprint.texi: Likewise.
23142         * doc/posix-functions/ispunct.texi: Likewise.
23143         * doc/posix-functions/isspace.texi: Likewise.
23144         * doc/posix-functions/isupper.texi: Likewise.
23145         * doc/posix-functions/isxdigit.texi: Likewise.
23146
23147 2009-10-18  Bruno Haible  <bruno@clisp.org>
23148
23149         Tests for module 'isblank'.
23150         * modules/isblank-tests: New file.
23151         * tests/test-isblank.c: New file.
23152
23153         New module 'isblank'.
23154         * lib/isblank.c: New file.
23155         * m4/isblank.m4: New file.
23156         * modules/isblank: New file.
23157         * doc/posix-functions/isblank.texi: Mention the new module.
23158
23159 2009-10-18  Bruno Haible  <bruno@clisp.org>
23160
23161         New module 'ctype'.
23162         * lib/ctype.in.h: New file.
23163         * m4/ctype.m4: New file.
23164         * modules/ctype: New file.
23165         * doc/posix-headers/ctype.texi: Mention the new module.
23166
23167 2009-10-18  Jim Meyering  <meyering@redhat.com>
23168
23169         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23170         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23171         right after its initialization, rather than farther down.
23172         Keeping these in close proximity makes it easier to ensure
23173         that each such variable is initialized.  E.g.,
23174
23175             LIB_CLOCK_GETTIME=
23176             AC_SUBST([LIB_CLOCK_GETTIME])
23177
23178         This change also increments these serial numbers.
23179         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23182
23183 2009-10-18  Bruno Haible  <bruno@clisp.org>
23184
23185         Don't let environment variables perturb build.
23186         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23187         (gl_PREREQ_GETHRXTIME): ... not here.
23188
23189 2009-10-18  Bruno Haible  <bruno@clisp.org>
23190
23191         Avoid symlink attack in localcharset module.
23192         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23193         (O_NOFOLLOW): Define fallback.
23194         (get_charset_aliases): Don't open the file if it is a symbolic link.
23195         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23196         gl_FCNTL_H.
23197         (gl_FCNTL_H): Require it.
23198         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23199         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23200         Reported by Fergal Glynn <fglynn@veracode.com>.
23201
23202 2009-10-18  Bruno Haible  <bruno@clisp.org>
23203
23204         Implement nproc for mingw.
23205         * lib/nproc.c: Include <windows.h>
23206         (num_processors): On native Windows platforms, try GetSystemInfo.
23207
23208 2009-10-18  Bruno Haible  <bruno@clisp.org>
23209
23210         Implement nproc for IRIX.
23211         * lib/nproc.c: Include <sys/sysmp.h>.
23212         (num_processors): On IRIX systems, try sysmp.
23213         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23214
23215 2009-10-18  Bruno Haible  <bruno@clisp.org>
23216
23217         Implement nproc for HP-UX.
23218         * lib/nproc.c: Include <sys/pstat.h>
23219         (num_processors): On HP-UX systems, try pstat_getdynamic.
23220         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23221         pstat_getdynamic.
23222
23223 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23224             Bruno Haible  <bruno@clisp.org>
23225
23226         Implement nproc for NetBSD, OpenBSD.
23227         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23228         (ARRAY_SIZE): New macro.
23229         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23230         * m4/nproc.m4: New file.
23231         * modules/nproc (Files): Add m4/nproc.m4.
23232         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23233         (Makefile.am): Instead, augment lib_SOURCES.
23234
23235 2009-10-18  Bruno Haible  <bruno@clisp.org>
23236
23237         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23238         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23239         sys/param.h.
23240
23241 2009-10-16  Eric Blake  <ebb9@byu.net>
23242
23243         utimensat: new module
23244         * modules/utimensat: New file.
23245         * lib/utimensat.c (utimensat): Likewise.
23246         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23247         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23248         so we can work around Linux bugs.
23249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23250         * modules/sys_stat (Makefile.am): Substitute them.
23251         * lib/sys_stat.in.h (utimensat): Declare it.
23252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23253         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23254         * modules/utimensat-tests: New test.
23255         * tests/test-utimensat.c: Likewise.
23256
23257         utimens: let lutimens work on non-symlinks
23258         * lib/utimens.c (lutimens): Fall back to utimens rather than
23259         failing with ENOSYS, when file is not a symlink.
23260         (utimens): Reduce redirection.
23261         * tests/test-lutimens.h (test_lutimens): Update test to cover
23262         non-symlinks.
23263         * tests/test-utimens.h (test_utimens): Update test to cover
23264         symlinks.
23265         * tests/test-utimens.c (main): Update caller.
23266
23267         utimens: cache whether utimensat syscall works
23268         * lib/utimens.c (utimensat_works_really): New cache variable.
23269         (fdutimens, lutimens): Use it to avoid failing syscall.
23270
23271         test-stat-time, test-utimens: improve portability
23272         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23273         ext4 on alpha, and for cygwin.
23274         * tests/test-utimens-common.h: New file.
23275         (nap): Factor delays into single function.
23276         * tests/test-lutimens.h (test_lutimens): Use new header.
23277         * tests/test-futimens.h (test_futimens): Likewise.
23278         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23279         timestamps to occur from same machine, as was done previously for
23280         test_utimens.
23281         * modules/utimens-tests (Files): Ship new file.
23282         * modules/futimens-tests (Files): Likewise.
23283         Reported in part by Jim Meyering.
23284
23285         sys_stat: sort replacement declarations
23286         * lib/sys_stat.in.h: Sort declarations.
23287         * lib/futimens.c (futimens): Fix typo.
23288
23289 2009-10-15  Jim Meyering  <meyering@redhat.com>
23290
23291         don't let environment settings perturb build
23292         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23293         could cause a configure-time and/or build-time malfunction.
23294         Typically, a configure-time function-in-library test is performed
23295         via code like this:
23296
23297           LIB_VAR=
23298           AC_SUBST([LIB_VAR])
23299           prefix_saved_LIBS=$LIBS
23300             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23301                        [test "$ac_cv_search_FUNC" = "none required" ||
23302                         LIB_VAR=$ac_cv_search_FUNC])
23303           LIBS=$prefix_saved_LIBS
23304
23305         However, in each of the files affected by this change, the LIB_VAR=
23306         initialization was omitted.  Thus, when set in the environment, its
23307         value would propagate into generated Makefiles when FUNC is not found
23308         in LIB_NAME.
23309         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23310         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23312
23313 2009-10-14  Eric Blake  <ebb9@byu.net>
23314
23315         fchdir: avoid infinite recursion in mingw
23316         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23317         recursing.
23318
23319         test-stat-time: port to mingw
23320         * tests/test-stat-time.c (force_unlink): Return a value.
23321         (test_ctime) [W32]: Fix compilation error.
23322         (nap): Don't call usleep with too large an argument.  Use
23323         force_unlink.
23324         * doc/pastposix-functions/usleep.texi (usleep): Document the
23325         portability issue.
23326
23327 2009-10-13  Jim Meyering  <meyering@redhat.com>
23328
23329         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23330         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23331         * modules/pipe-filter-ii: Likewise.
23332         * modules/sys_socket-tests: Likewise.
23333         * modules/tsearch-tests: Likewise.
23334         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23335         (check): Depend on it.
23336
23337 2009-10-12  Eric Blake  <ebb9@byu.net>
23338
23339         utimens-tests: port to NFS file systems
23340         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23341         comparisons to avoid spurious failures from timestamp drift
23342         between NFS machines.
23343
23344 2009-10-12  Eric Blake  <ebb9@byu.net>
23345
23346         stat-time-tests: minor cleanups
23347         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23348         * tests/test-stat-time.c (nap): Separate assignment from call.
23349         Suggested by Paolo Bonzini and Bruno Haible.
23350
23351         sys_stat: guarantee struct timespec
23352         * lib/sys_stat.in.h (includes): Always include <time.h>
23353         * modules/sys_stat (Depends-on): Add time.
23354         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23355         mode_t permission values.
23356         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23357         get at subsecond timestamps.
23358
23359 2009-10-10  Eric Blake  <ebb9@byu.net>
23360
23361         futimens: new module
23362         * modules/futimens: New file.
23363         * lib/futimens.c (futimens): Likewise.
23364         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23365         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23366         we can work around Linux bugs.
23367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23368         * modules/sys_stat (Makefile.am): Substitute them.
23369         * lib/sys_stat.in.h (futimens): Declare it.
23370         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23371         * doc/posix-functions/futimens.texi (futimens): Likewise.
23372         * modules/futimens-tests: New test.
23373         * tests/test-futimens.c: Likewise.
23374
23375         utimens: introduce fdutimens
23376         * lib/utimens.h (fdutimens): New prototype.
23377         * lib/utimens.c (gl_futimens): Move guts...
23378         (fdutimens): ...to new interface.
23379         * tests/test-utimens.c (do_fdutimens): Use it.
23380
23381         utimens: add UTIME_NOW and UTIME_OMIT support
23382         * lib/utimens.c (validate_timespec, update_timespec): New helper
23383         functions.
23384         (gl_futimens, lutimens): Use them.
23385         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23386         stdbool, sys_stat.
23387         (Link): Mention resulting library dependency.
23388         * modules/utimecmp (Link): Likewise.
23389         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23390         (Makefile.am): Pick up library dependency.
23391         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23392         definition.
23393         * tests/test-sys_stat.c: Test the definitions.
23394         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23395         * NEWS: Document library dependency.
23396
23397         utimecmp: support symlink timestamps
23398         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23399         hashing when possible.  Use pathconf when available.
23400         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23401         * modules/utimecmp (Depends-on): Add lstat.
23402
23403         utimens: add lutimens interface
23404         * lib/utimens.c (lutimens): New function.
23405         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23406         * lib/utimens.h (lutimens): Declare new interface.
23407         * tests/test-utimens.c (main): Enhance test.
23408         * tests/test-lutimens.h (test_lutimens): New file.
23409         * modules/utimens-tests (Files): Distribute it.
23410         (Depends-on): Add symlink.
23411         (configure.ac): Check for usleep.
23412
23413         utimens: validate futimens usage
23414         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23415         fewer syscalls on failure later on.  Avoid compiler warning on
23416         mingw.
23417         * modules/utimens (Depends-on): Add dup2.
23418
23419         utimens: add test
23420         * modules/utimens-tests: New test.
23421         * tests/test-utimens.h: New file.
23422         * tests/test-futimens.h: Likewise.
23423         * tests/test-utimens.c: Likewise.
23424
23425         doc: mention timestamp portability issues
23426         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23427         instead.
23428         * doc/posix-functions/utime.texi (utime): Likewise.
23429         * doc/posix-functions/utimes.texi (utimes): Likewise.
23430         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23431         instead.
23432         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23433         module.
23434         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23435         Mention weakness with symlink timestamps.
23436         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23437         to utimensat/futimens instead.
23438         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23439
23440         test-dup2: enhance test
23441         * tests/test-dup2.c (main): Also check AT_FDCWD.
23442
23443         test-stat-time: avoid more spurious failures
23444         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23445         xfs; and avoid race if the two timestamps cross quantization edge.
23446
23447         relocatable: prefer 'file system' over 'filesystem'
23448         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23449         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23450         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23451         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23452         * lib/relocatable.c (compute_curr_prefix): Likewise.
23453
23454 2009-10-10  Jim Meyering  <meyering@redhat.com>
23455
23456         stat-time-tests: check for the usleep function
23457         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23458
23459 2009-10-10  Bruno Haible  <bruno@clisp.org>
23460
23461         * modules/xnanosleep: Put the Link section after the Include section.
23462
23463 2009-10-09  Eric Blake  <ebb9@byu.net>
23464
23465         dup2: work around FreeBSD 6.1 bug
23466         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23467         * doc/posix-functions/dup2.texi (dup2): Document it.
23468         Reported by Nelson H. F. Beebe and Jim Meyering.
23469
23470         test-stat-time: port to buggy NFS clients
23471         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23472         (test_ctime): Also skip test if mtime and ctime are skewed.
23473
23474         maint: prefer 'file system' over 'filesystem'
23475         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23476         * doc/posix-functions/lstat.texi (lstat): Likewise.
23477         * lib/file-has-acl.c (file_has_acl): Likewise.
23478         * lib/fwriteerror.c [TEST]: Likewise.
23479         * tests/test-areadlink.h (test_areadlink): Likewise.
23480         * tests/test-areadlinkat-with-size.c (main): Likewise.
23481         * tests/test-areadlinkat.c (main): Likewise.
23482         * tests/test-canonicalize-lgpl.c (main): Likewise.
23483         * tests/test-canonicalize.c (main): Likewise.
23484         * tests/test-fstatat.c (main): Likewise.
23485         * tests/test-linkat.c (main): Likewise.
23486         * tests/test-lstat.h (test_lstat_func): Likewise.
23487         * tests/test-mkdir.h (test_mkdir): Likewise.
23488         * tests/test-readlink.h (test_readlink): Likewise.
23489         * tests/test-remove.c (main): Likewise.
23490         * tests/test-rename.h (test_rename): Likewise.
23491         * tests/test-renameat.c (main): Likewise.
23492         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23493         * tests/test-symlink.h (test_symlink): Likewise.
23494         * tests/test-symlinkat.c (main): Likewise.
23495         * tests/test-unlink.h (test_unlink_func): Likewise.
23496         * tests/test-unlinkat.c (main): Likewise.
23497
23498         maint: make realtime library usage explicit
23499         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23500         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23501         * modules/settime (Link): Likewise.
23502         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23503
23504         test-stat-time: speed up execution
23505         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23506         warning on mingw.
23507         (nap): New helper function.
23508         (prepare_test): Use it to reduce sleep time.
23509         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23510         execution.
23511         * modules/stat-time-tests (configure.ac): Check for usleep.
23512
23513 2009-10-09  Jim Meyering  <meyering@redhat.com>
23514
23515         selinux-h: always use getfilecon wrappers
23516         * lib/getfilecon.c: New file.
23517         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23518         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23519         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23520         (fgetfilecon): Provide a stub.
23521         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23522         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23523         file unconditionally.
23524         When <selinux/selinux.h> is found, arrange to use wrappers.
23525         * modules/selinux-h (Files): Add getfilecon.c.
23526         (Makefile.am): Substitute include-next-related bits
23527         into the now-always-generated selinux/selinux.h file.
23528         * doc/glibc-functions/lgetfilecon.texi: New file.
23529         * doc/glibc-functions/fgetfilecon.texi: New file.
23530         * doc/glibc-functions/getfilecon.texi: New file.
23531         * doc/glibc-functions/getfilecon-desc.texi: New file.
23532         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23533         which to pull in the new files.
23534         * MODULES.html.sh (Misc): Add selinux-h.
23535
23536 2009-10-08  Jim Meyering  <meyering@redhat.com>
23537
23538         unistd: fix comment typo
23539         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23540
23541 2009-10-08  Eric Blake  <ebb9@byu.net>
23542
23543         areadlink: use SIZE_MAX consistently
23544         * modules/areadlink (Depends-on): Add stdint.
23545         * modules/areadlink-with-size (Depends-on): Likewise.
23546         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23547         gives NULL; drop sys/types, since unistd gives size_t; and add
23548         stdint for SIZE_MAX.
23549         (SIZE_MAX): Rely on headers.
23550         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23551         and add stdint.
23552         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23553         (SIZE_MAX): Likewise.
23554         (INITIAL_BUF_SIZE): Turn into enum.
23555         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23556
23557 2009-10-08  Jim Meyering  <meyering@redhat.com>
23558
23559         areadlinkat: avoid compilation failure
23560         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23561         Fix typo in comment.
23562
23563 2009-10-07  Eric Blake  <ebb9@byu.net>
23564
23565         areadlinkat-with-size: new module
23566         * modules/areadlinkat-with-size: New module.
23567         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23568         * lib/areadlink.h (areadlinkat): Declare it.
23569         * MODULES.html.sh (File system functions): Mention it.
23570         * modules/areadlinkat-with-size-tests: New test.
23571         * tests/test-areadlinkat-with-size.c: New file.
23572
23573         xreadlinkat: new module
23574         * modules/xreadlinkat: New module.
23575         * lib/xreadlinkat.c (xreadlinkat): New file.
23576         * lib/xreadlink.h (xreadlinkat): Declare it.
23577         * MODULES.html.sh (File system functions): Mention it.
23578
23579         areadlinkat: new module
23580         * lib/at-func.c (FUNC_FAIL): New define.
23581         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23582         * modules/areadlinkat: New module.
23583         * lib/linkat.c (areadlinkat): Move...
23584         * lib/areadlinkat.c (areadlinkat): ...to new file.
23585         * lib/areadlink.h (areadlinkat): Declare it.
23586         * modules/linkat (Depends-on): Add areadlinkat.
23587         * MODULES.html.sh (File system functions): Mention it.
23588         * modules/areadlinkat-tests: New test.
23589         * tests/test-areadlinkat.c: New file.
23590
23591         areadlink, areadlink-with-size: add tests
23592         * modules/areadlink-tests: New test.
23593         * modules/areadlink-with-size-tests: Likewise.
23594         * tests/test-areadlink.h: New file.
23595         * tests/test-areadlink.c: Likewise.
23596         * tests/test-areadlink-with-size.c: Likewise.
23597
23598         maint: minor cleanups
23599         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23600         _UNUSED_PARAMETER_ instead.
23601         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23602         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23603         * modules/linkat-tests (Files): Distribute test-link.h.
23604
23605         openat, utimens: whitespace cleanup
23606         * lib/openat.c: Prefer space throughout, rather than mix of 8
23607         spaces vs. tabs.
23608         * lib/at-func.c: Likewise.
23609         * lib/utimens.c: Likewise.
23610
23611         openat: avoid using wrong fd
23612         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23613         working directory chooses same fd.
23614         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23615
23616         mkdir, mkdirat: fix cygwin 1.5.x bug
23617         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23619         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23620         bug.
23621         (gl_PREREQ_MKDIR): Delete unused macro.
23622         * modules/mkdir (Files): Track file rename.
23623         (configure.ac): Update macro name.
23624         * modules/openat (Depends-on): Add mkdir.
23625         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23626
23627         mkdir, mkdirat: add tests
23628         * modules/mkdir-tests: New test.
23629         * tests/test-mkdir.h: New file.
23630         * tests/test-mkdir.c: Likewise.
23631         * tests/test-mkdirat.c: Likewise.
23632         * modules/openat-tests (Files): Add new files.
23633         (Makefile.am): Run new test.
23634
23635 2009-10-06  Eric Blake  <ebb9@byu.net>
23636
23637         doc: tweak *at function documentation
23638         * doc/posix-functions/faccessat.texi (faccessat): Mention
23639         known issue with replacement.
23640         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23641         * doc/posix-functions/linkat.texi (linkat): Likewise.
23642         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23643         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23644         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23645         * doc/posix-functions/renameat.texi (renameat): Likewise.
23646         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23647
23648         openat: fix GNU/Hurd bug in unlinkat
23649         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23650         broken.
23651         * doc/posix-functions/unlink.texi (unlink): Document this.
23652         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23653
23654         fdopendir: fix GNU/Hurd bug
23655         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23656         allowing non-directory fds.
23657         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23659         * modules/dirent (Makefile.am): Substitute it.
23660         * lib/dirent.in.h (fdopendir): Declare replacement.
23661         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23662         * tests/test-fdopendir.c (main): Test something other than
23663         /dev/null, since on Hurd that behaves like a directory.
23664
23665         test-symlink: port to GNU/Hurd
23666         * tests/test-symlink.h (test_symlink): Relax expected errno.
23667
23668         doc: tweak more cygwin information
23669         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23670         now compatible with glibc.
23671         * doc/posix-functions/getopt.texi (getopt): Likewise.
23672
23673         getopt-gnu: add another test
23674         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23675         guarantee behavior relied on by m4.
23676         * tests/test-getopt.c (main): Use it.
23677         * modules/getopt-posix-tests (Depends-on): Add setenv.
23678         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23679
23680         getopt: fix compilation on darwin
23681         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23682         include.
23683         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23684         Reported by Ludovic Courtès.
23685
23686 2009-10-06  Bruno Haible  <bruno@clisp.org>
23687
23688         * modules/size_max (Description): Discourage its use.
23689         Reported by Simon Josefsson.
23690
23691 2009-10-06  Jim Meyering  <meyering@redhat.com>
23692
23693         linkat: avoid compilation failure
23694         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23695
23696 2009-10-05  Eric Blake  <ebb9@byu.net>
23697
23698         linkat: support Linux 2.6.17
23699         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23700         linkat on Linux, but allow cache variable override.
23701         * lib/linkat.c (rpl_linkat): Define override.
23702         * modules/linkat (Depends-on): Add symlinkat.
23703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23704         * modules/unistd (Makefile.am): Substitute it.
23705         * lib/unistd.in.h (linkat): Declare replacement.
23706         Reported by Pádraig Brady.
23707
23708         quotearg: port test to systems with C.UTF-8 locale
23709         * tests/test-quotearg.c (struct result_strings): Add another
23710         member, differentiating between C.ASCII and C.UTF-8 handling.
23711         (compare_strings): Add parameter.
23712         (main): Adjust all callers.
23713
23714         getopt: avoid clash with FreeBSD _getopt_internal
23715         * lib/getopt.in.h (_getopt_internal): Override the name.
23716         * lib/getopt_int.h (includes): Pick up any overrides.
23717         Reported by Reuben Thomas.
23718
23719         hash: allow C89 compilation
23720         * lib/hash.c (check_tuning): Move declaration before statement.
23721         Reported by Reuben Thomas.
23722
23723 2009-10-05  Karl Berry  <karl@gnu.org>
23724
23725         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23726
23727 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23728             Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/uname.c (uname): Use a table-driven algorithm to compute
23731         Windows NT versions.
23732
23733 2009-10-04  Bruno Haible  <bruno@clisp.org>
23734
23735         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23736         program_invocation_short_name.
23737         * modules/progname (configure.ac): Test for presence of
23738         program_invocation_short_name.
23739         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23740
23741 2009-10-04  Bruno Haible  <bruno@clisp.org>
23742
23743         * lib/progname.c (set_program_name): Fix comment.
23744         Reported by Jim Meyering.
23745
23746 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23747             Bruno Haible  <bruno@clisp.org>
23748
23749         * lib/uname.c: Include <string.h>.
23750         (uname): Do only one call to GetVersionEx in the common case.
23751
23752 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23753             Bruno Haible  <bruno@clisp.org>
23754
23755         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23756         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23757         (uname): Add support for Windows CE and various non-x86 CPU types.
23758
23759 2009-10-03  Bruno Haible  <bruno@clisp.org>
23760
23761         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23762         invocation to tests/configure.ac.
23763         Reported by Ian Beckwith <ianb@erislabs.net>.
23764
23765 2009-10-02  Eric Blake  <ebb9@byu.net>
23766
23767         fchdir: avoid compiler warning
23768         * lib/fchdir.c (canonicalize_file_name)
23769         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23770
23771         test-open: support mingw errno values
23772         * tests/test-open.h (test_open): Relax test.
23773         * tests/test-fopen.h (test_fopen): Likewise.
23774         * tests/test-openat-safer.c (main): Likewise.
23775
23776         open: fix opening directory on mingw
23777         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23778
23779         test-open: on GNU/Hurd, /dev/null is a directory
23780         * tests/test-fopen.h (main): Rename...
23781         (test_fopen): ...to this.  Use a guaranteed non-directory when
23782         confirming open behavior on trailing slash.
23783         * tests/test-openat-safer.c (main): Likewise.
23784         * tests/test-open.h (main): Likewise....
23785         (test_open): ...to this.
23786         * tests/test-fopen.c (main): Adjust caller.
23787         * tests/test-fopen-safer.c (main): Likewise.
23788         * tests/test-open.c (main): Likewise.
23789         * tests/test-fcntl-safer.c (main): Likewise.
23790         Reported by Samuel Thibault.
23791
23792         rename, fchdir: don't ignore chdir failure
23793         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23794         * lib/rename.c (rpl_rename) [W32]: Likewise.
23795         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23796         an empty destination directory if source cannot be renamed,
23797         although there is still possibility for failure.
23798         * doc/posix-functions/rename.texi (rename): Document the race.
23799         Reported by Jim Meyering.
23800
23801         maint: cleanup whitespace in recent commits
23802         * lib/rename.c (rpl_rename): Remove tabs.
23803         * tests/test-link.h (test_link): Likewise.
23804         * lib/fchdir.c (get_name): Likewise.
23805         Reported by Jim Meyering.
23806
23807 2009-10-02  Ben Pfaff  <blp@gnu.org>
23808
23809         relocatable-prog-wrapper: Add missing dependency on
23810         double-slash-root.
23811         * modules/relocatable-prog-wrapper: Add dependency.
23812         Reported by Ian Beckwith <ianb@erislabs.net>.
23813
23814 2009-10-02  Eric Blake  <ebb9@byu.net>
23815
23816         renameat: fix Solaris bugs
23817         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23818         needed fixing.
23819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23820         * modules/stdio (Makefile.am): Substitute it.
23821         * lib/stdio.in.h (renameat): Declare replacement.
23822         * lib/renameat.c (rpl_renameat): Implement fix.
23823
23824         renameat: new module
23825         * modules/renameat: New file.
23826         * lib/renameat.c (renameat): Likewise.
23827         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23829         * modules/stdio (Makefile.am): Substitute them.
23830         * lib/stdio.in.h (renameat): Declare it.
23831         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23832         * doc/posix-functions/renameat.texi (renameat): Likewise.
23833         * modules/renameat-tests: New test.
23834         * tests/test-renameat.c: Likewise.
23835
23836         rename: fix mingw bugs
23837         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23838         directory overwrite bugs.
23839
23840         rename: fix another cygwin 1.5 bug
23841         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23842         checks.
23843         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23844         unnecessary cygwin workarounds.  Also work around bug with moving
23845         full directory onto an empty one.
23846         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23847
23848         rename-dest-slash: merge into rename module
23849         * modules/rename-dest-slash (Status): Mark obsolete.
23850         (Depends-on): Add rename.
23851         (Files): Let rename do it all.
23852         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23853         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23854         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23855         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23856         * lib/rename.c (rpl_rename): Update comments.
23857
23858         rename: fix cygwin 1.5.x bugs
23859         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23860         * lib/rename.c (rpl_rename): Work around them.
23861         * modules/rename (Depends-on): Add same-inode.
23862
23863         rename: fix Solaris 10 bug
23864         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23865         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23866         was the only bug.
23867
23868         rename: fix Solaris 9 bug
23869         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23870         on non-directory.  Avoid calling exit.
23871         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23872         strdup.
23873         * modules/rename-tests (Depends-on): Drop lstat.
23874         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23875         (gl_PREREQ_RENAME): Delete unused macro.
23876
23877         rename-dest-slash: fix NetBSD bug
23878         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23879         links.
23880         * modules/rename-dest-slash (Depends-on): Add same-inode.
23881
23882         rename-tests: new test, exposes several platform bugs
23883         * modules/rename-tests: New file.
23884         * tests/test-rename.h: Likewise.
23885         * tests/test-rename.c: Likewise.
23886         * doc/posix-functions/rename.texi (rename): Improve documentation,
23887         including bugs that will eventually be fixed in gnulib.
23888
23889 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23890
23891         * lib/uname.c: Include <stdlib.h>
23892         (uname): Assume version info is available.
23893
23894 2009-10-02  Jim Meyering  <meyering@redhat.com>
23895
23896         gnu-web-doc-update: correct --help output
23897         * build-aux/gnu-web-doc-update: Make --help output relevant.
23898
23899         gnu-web-doc-update: add standard options
23900         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23901
23902         gnu-web-doc-update: New module.
23903         Use this script to automatically update the on-line web documentation
23904         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23905         * modules/gnu-web-doc-update: New file, from coreutils.
23906         * build-aux/gnu-web-doc-update: New script.
23907
23908 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23909
23910         link: LoadLibrary is not needed.
23911         * lib/link.c: Use GetModuleHandle.
23912
23913 2009-10-01  Eric Blake  <ebb9@byu.net>
23914
23915         getopt: bump serial number
23916         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23917         change.
23918
23919         tests: tighten link, rmdir, and remove tests
23920         * tests/test-link.h (includes): No need to use <config.h> here.
23921         Clean up if directory hard link was created, otherwise test for
23922         trailing '.'.
23923         * tests/test-linkat.c (main): Simplify.
23924         * tests/test-remove.c (main): Enhance test for trailing '.'.
23925         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23926
23927 2009-10-01  Jim Meyering  <meyering@redhat.com>
23928
23929         maint.mk: requiring "make major" was annoying, for a "minor" release.
23930         What is intended is "stable", to contrast with alpha and beta,
23931         so require "make stable", not "make major".
23932         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23933         (get_tool_versions): Likewise.
23934         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23935
23936 2009-09-30  Ben Pfaff  <blp@gnu.org>
23937
23938         Fix broken build of replacement for Windows tmpfile().
23939         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23940         flags argument added along with the 'mkostemp' module.
23941
23942 2009-09-28  Bruno Haible  <bruno@clisp.org>
23943
23944         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23945         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23946         to 'remove_elt'.
23947         (gl_list_remove): Update.
23948         * lib/gl_list.c (gl_list_remove): Update.
23949         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23950         to 'remove_elt'.
23951         (gl_oset_remove): Update.
23952         * lib/gl_list.c (gl_oset_remove): Update.
23953         Reported by Eric Blake.
23954
23955 2009-09-28  Eric Blake  <ebb9@byu.net>
23956
23957         doc: mention yet more cygwin 1.7 status
23958         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23959         cygwin.
23960         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23961         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23962
23963         argp: fix test failure
23964         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23965         that are not upper-case.  Pass correct range to tolower.
23966
23967 2009-09-27  Jim Meyering  <meyering@redhat.com>
23968
23969         test-yesno: work around sparc-dash here-document infelicity
23970         Without this change, the literal \177 byte in a here document
23971         would make dash 0.5.5.1-3 access uninitialized memory.
23972         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23973         Instead, use a marker, "@", and filter through tr to create the desired
23974         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23975
23976 2009-09-27  Bruno Haible  <bruno@clisp.org>
23977
23978         Disable untested support for new flavours of ACLs on AIX.
23979         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23980         progress.
23981         * lib/set-mode-acl.c (qset_acl): Likewise.
23982
23983 2008-12-07  Bruno Haible  <bruno@clisp.org>
23984
23985         Add support for new flavours of ACLs on AIX. (Untested.)
23986         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23987         (file_has_acl): Add support for newer AIX.
23988         * lib/set-mode-acl.c (qset_acl): Likewise.
23989         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23990         Rainer Tammer <tammer@tammer.net>.
23991
23992 2009-09-26  Eric Blake  <ebb9@byu.net>
23993
23994         argp: fix compilation of getopt
23995         * lib/getopt.in.h (includes): Use different guard than glibc.
23996         Reported by Sergey Poznyakoff.
23997
23998         doc: mention more cygwin 1.7 status
23999         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24000         bug.
24001         * doc/posix-functions/execl.texi (execl): Likewise.
24002         * doc/posix-functions/execle.texi (execle): Likewise.
24003         * doc/posix-functions/execlp.texi (execlp): Likewise.
24004         * doc/posix-functions/execv.texi (execv): Likewise.
24005         * doc/posix-functions/execve.texi (execve): Likewise.
24006         * doc/posix-functions/execvp.texi (execvp): Likewise.
24007         * doc/glibc-functions/canonicalize_file_name.texi
24008         (canonicalize_file_name): Cygwin 1.7 now provides this.
24009         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24010         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24011         on AT_SYMLINK_NOFOLLOW.
24012
24013 2009-09-24  Eric Blake  <ebb9@byu.net>
24014
24015         test-linkat: make test more robust
24016         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24017
24018         getopt: fix inclusion guards for cygwin
24019         * modules/getopt-posix (Depends-on): Add include-next.
24020         (Makefile.am): Substitute more items in replacement header.
24021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24022         <getopt.h>.
24023         * lib/getopt.in.h (includes): Use split inclusion guard, and
24024         prefer <getopt.h> over include <unistd.h> when one is present.
24025         (option): Also override name of 'struct option'.
24026
24027         same-inode: revert prior change; it is not yet ready
24028         * NEWS: Undo mention of this change.
24029         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24030         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24031         * lib/cycle-check.c (cycle_check): Likewise.
24032         * lib/same.c (same_name): Likewise.
24033         * lib/at-func2.c (at_func2): Likewise.
24034
24035 2009-09-23  Eric Blake  <ebb9@byu.net>
24036
24037         linkat: new module
24038         * modules/linkat: New file.
24039         * lib/at-func2.c (at_func2): Likewise.
24040         * lib/linkat.c (linkat): Likewise.
24041         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24042         * lib/openat-priv.h (at_func2): Add declaration.
24043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24044         * modules/unistd (Makefile.am): Substitute them.
24045         * lib/unistd.in.h (linkat): Declare it.
24046         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24047         * doc/posix-functions/linkat.texi (linkat): Likewise.
24048         * doc/posix-functions/link.texi (link): Tweak wording.
24049         * tests/test-link.c (main): Move guts...
24050         * tests/test-link.h (test_link): ...into new file.
24051         * modules/linkat-tests: New test.
24052         * tests/test-linkat.c: Likewise.
24053         * modules/link-tests (Files): Ship new file.
24054         (Depends-on): Add stdbool.
24055
24056         dirname: add library-safe mdir_name
24057         * lib/dirname.h (mdir_name): New prototype.
24058         * lib/dirname.c (dir_name): Move guts...
24059         (mdir_name): ...to new function that avoids xalloc_die.
24060
24061         fchdir: another mingw fix
24062         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24063         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24064         on mingw (where it has not yet been ported), and make it optional
24065         elsewhere.
24066         (_gl_register_fd): Use it.
24067
24068         same-inode: make SAME_INODE tri-state, to port to mingw
24069         * NEWS: Mention this change.
24070         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24071         st_ino always being 0.
24072         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24073         * lib/cycle-check.c (cycle_check): Likewise.
24074         * lib/same.c (same_name): Likewise.
24075
24076         lstat: avoid mingw compilation error
24077         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24078         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24079         lstat ourselves.
24080         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24081         was adequate.
24082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24083         the checks for lstat.
24084         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24085
24086         link: fix test failure on Solaris 9
24087         * lib/link.c (rpl_link): Don't assume link will catch bogus
24088         trailing slash on source.
24089
24090         test-symlinkat: enhance test
24091         * tests/test-readlink.c (main): Move guts...
24092         * tests/test-readlink.h (test_readlink): ...into new file.
24093         * tests/test-symlink.c (main): Move guts...
24094         * tests/test-symlink.h (test_symlink): ...into new file.
24095         * tests/test-symlinkat.c (main): Use new files for further
24096         coverage.
24097         (do_symlink, do_readlink): New helper functions.
24098         * modules/symlink-tests (Files): Ship new file.
24099         (Depends-on): Add stdbool.
24100         * modules/readlink-tests (Files): Ship new file.
24101         (Depends-on): Add stdbool.
24102         * modules/symlinkat-tests (Files): Use new files.
24103
24104 2009-09-23  Eric Blake  <ebb9@byu.net>
24105
24106         readlink: document portability issue with symlink length
24107         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24108         systems have bogus st_size on symlinks, and mention the
24109         areadlink-with-size module.
24110         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24111         * doc/posix-functions/readlink.texi (readlink): Mention the
24112         areadlink module, and ERANGE failure.
24113         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24114         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24115
24116         readlink: fix Solaris 9 bug with trailing slash
24117         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24118         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24119         * doc/posix-functions/readlink.texi (readlink): Document this.
24120         * modules/readlink-tests: New test.
24121         * tests/test-readlink.c: Likewise.
24122
24123         readlink: fix cygwin 1.5.x bug with return type
24124         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24125         * lib/unistd.in.h (readlink): Use ssize_t.
24126         * lib/readlink.c (readlink): Likewise.
24127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24128         * modules/unistd (Makefile.am): Substitute it.
24129         * lib/unistd.in.h (readlink): Declare replacement.
24130         * doc/posix-functions/readlink.texi (readlink): Document this.
24131
24132         symlink: use throughout gnulib
24133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24134         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24135         symlink is not used.
24136         * modules/symlinkat (Depends-on): Add symlink.
24137         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24138         * modules/canonicalize-tests (Depends-on): Likewise.
24139         * modules/lstat-tests (Depends-on): Likewise.
24140         * modules/openat-tests (Depends-on): Likewise.
24141         * modules/remove-tests (Depends-on): Likewise.
24142         * modules/rmdir-tests (Depends-on): Likewise.
24143         * modules/unlink-tests (Depends-on): Likewise.
24144         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24145         * tests/test-canonicalize.c (symlink): Likewise.
24146         * tests/test-fstatat.c (symlink): Likewise.
24147         * tests/test-lstat.c (symlink): Likewise.
24148         * tests/test-remove.c (symlink): Likewise.
24149         * tests/test-rmdir.c (symlink): Likewise.
24150         * tests/test-unlink.c (symlink): Likewise.
24151         * tests/test-unlinkat.c (symlink): Likewise.
24152
24153         symlink: new module, for Solaris 9 bug
24154         * modules/symlink: New file.
24155         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24156         * lib/symlink.c: Likewise.
24157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24158         * modules/unistd (Makefile.am): Substitute them.
24159         * lib/unistd.in.h (symlink): Declare replacement.
24160         * MODULES.html.sh (File system functions): Mention it.
24161         * doc/posix-functions/symlink.texi (symlink): Likewise.
24162         * modules/symlink-tests: New test.
24163         * tests/test-symlink.c: Likewise.
24164
24165 2009-09-23  Bruno Haible  <bruno@clisp.org>
24166
24167         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24168         when needed.
24169         Test case: gnulib-tool --import --with-tests atexit inttypes.
24170         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24171
24172 2009-09-23  Bruno Haible  <bruno@clisp.org>
24173
24174         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24175         subcommand, not in a subshell.
24176
24177 2009-09-22  Eric Blake  <ebb9@byu.net>
24178
24179         unistd: sort replacement declarations
24180         * lib/unistd.in.h: Sort declarations.
24181
24182         open, openat: minor optimization
24183         * lib/open.c (open): If open succeeded, len is non-zero.
24184         * lib/openat.c (rpl_openat): Likewise.
24185
24186         link-follow: ensure correct result
24187         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24188         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24189         distinguish between possible failures.
24190
24191 2009-09-21  Eric Blake  <ebb9@byu.net>
24192
24193         fts: avoid compiler warning
24194         * lib/fts.c (dirent_inode_sort_may_be_useful)
24195         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24196
24197 2009-09-19  Bruno Haible  <bruno@clisp.org>
24198
24199         * lib/progreloc.c (canonicalize_file_name): New declaration.
24200
24201 2009-09-19  Eric Blake  <ebb9@byu.net>
24202
24203         link: fix quoting
24204         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24205
24206         openat: fix openat bugs on Solaris 9
24207         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24208         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24209         * modules/openat (Depends-on): Add open.
24210         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24211         * modules/fcntl-h (Makefile.am): Substitute it.
24212         * lib/fcntl.in.h (openat): Declare replacement.
24213         * doc/posix-functions/openat.texi (openat): Document this.
24214
24215         openat: move fstatat and unlinkat into correct files
24216         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24217         compiled.
24218         * lib/openat.c (fstatat, unlinkat): Move...
24219         * lib/fstatat.c (fstatat): ...into correct files.
24220         * lib/unlinkat.c (unlinkat): Likewise.
24221
24222         openat: fix unlinkat bugs on Solaris 9
24223         * lib/unlinkat.c (unlinkat): New file.
24224         * modules/openat (Depends-on): Add unlink.
24225         (Files): Distribute it.
24226         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24227         trailing slash behavior is broken.
24228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24229         * modules/unistd (Makefile.am): Substitute it.
24230         * lib/unistd.in.h (unlinkat): Declare replacement.
24231         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24232
24233         openat: fix fstatat bugs on Solaris 9
24234         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24235         stat.
24236         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24237
24238         test-unlinkat: enhance test, to expose Solaris 9 bug
24239         * tests/test-unlink.c (main): Factor guts...
24240         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24241         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24242         * tests/test-rmdir.c (main): Adjust caller.
24243         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24244         (unlinker): New helper function.
24245         (rmdirat): Enhance check.
24246         * modules/rmdir-tests (Depends-on): Add stdbool.
24247         * modules/unlink-tests (Depends-on): Likewise.
24248         (Files): Add test-unlink.h.
24249         * modules/openat-tests (Files): Likewise.
24250         (Depends-on): Add unlinkdir.
24251
24252         test-fstatat: new test, to expose Solaris 9 bugs
24253         * tests/test-stat.c (main): Factor guts...
24254         * tests/test-stat.h (test_stat_func): ...into new file.
24255         * tests/test-lstat.c (main): Factor guts...
24256         * tests/test-lstat.h (test_lstat_func): ...into new file.
24257         * tests/test-fstatat.c: New file.
24258         * modules/stat-tests (Files): Add test-stat.h.
24259         * modules/lstat-tests (Files): Add test-lstat.h.
24260         (Depends-on): Add stdbool.
24261         * modules/openat-tests (Depends-on): Add pathmax.
24262         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24263         (Makefile.am): Run new test.
24264
24265         remove: new module, for mingw and Solaris 9 bugs
24266         * modules/remove: New file.
24267         * lib/remove.c: Likewise.
24268         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24270         * modules/stdio (Makefile.am): Use them.
24271         * lib/stdio.in.h (remove): Declare replacement.
24272         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24273         * doc/posix-functions/remove.texi (remove): Likewise.
24274         * modules/remove-tests: New test.
24275         * tests/test-remove.c: Likewise.
24276
24277         unlink: new module, for Solaris 9 bug
24278         * modules/unlink: New file.
24279         * lib/unlink.c: Likewise.
24280         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24282         * modules/unistd (Makefile.am): Use them.
24283         * lib/unistd.in.h (stat): Declare replacement.
24284         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24285         * doc/posix-functions/unlink.texi (unlink): Likewise.
24286         * modules/unlink-tests: New test.
24287         * tests/test-unlink.c: Likewise.
24288
24289         lstat: fix Solaris 9 bug
24290         * lib/lstat.c (lstat): Also check for trailing slash on
24291         non-symlink, non-directories.  Use stat module to simplify logic.
24292         * doc/posix-functions/lstat.texi (lstat): Document it.
24293         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24294         (configure.ac): Check for symlink.
24295         * tests/test-lstat.c (main): Add more tests.
24296
24297         stat: add as dependency to other modules
24298         * modules/chown (Depends-on): Add stat.
24299         * modules/euidaccess (Depends-on): Likewise.
24300         * modules/fchdir (Depends-on): Likewise.
24301         * modules/isdir (Depends-on): Likewise.
24302         * modules/link (Depends-on): Likewise.
24303         * modules/lstat (Depends-on): Likewise.
24304         * modules/mkdir-p (Depends-on): Likewise.
24305         * modules/modechange (Depends-on): Likewise.
24306         * modules/open (Depends-on): Likewise.
24307         * modules/readlink (Depends-on): Likewise.
24308         * modules/same (Depends-on): Likewise.
24309
24310         stat: fix Solaris 9 bug
24311         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24312         slash.
24313         * lib/stat.c (rpl_stat): Work around it.
24314         * doc/posix-functions/stat.texi (stat): Update documentation.
24315
24316         stat: new module, for mingw bug
24317         * modules/stat: New file.
24318         * lib/stat.c: Likewise.
24319         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24321         * modules/sys_stat (Makefile.am): Use them.
24322         * lib/sys_stat.in.h (stat): Declare replacement.
24323         * lib/openat.c (fstatat): Deal with lstat and stat being function
24324         macros.
24325         * modules/openat (Depends-on): Add inline.
24326         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24327         * doc/posix-functions/stat.texi (stat): Likewise.
24328         * modules/stat-tests: New test.
24329         * tests/test-stat.c: Likewise.
24330
24331 2009-09-19  Jim Meyering  <meyering@redhat.com>
24332
24333         syntax-check: detect unnecessary inclusion of canonicalize.h
24334         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24335
24336 2009-09-19  Eric Blake  <ebb9@byu.net>
24337
24338         canonicalize-lgpl: adjust clients to use correct header
24339         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24340         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24341         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24342         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24343         * lib/progreloc.c (includes): Likewise.
24344
24345 2009-09-19  Jim Meyering  <meyering@redhat.com>
24346
24347         test-posixtm.c: correct a comment
24348         * tests/test-posixtm.c: Correct first-line comment.
24349         Spotted by Eric Blake.
24350
24351 2009-09-16  Jim Meyering  <meyering@redhat.com>
24352
24353         posixtm-tests: make T const-correct; add a test case
24354         * tests/test-posixtm.c (T): Declare const.
24355         Add a test for -(2^31+1).
24356         Remove useless can-succeed-only-in-2002 test.
24357
24358         posixtm-tests: adjust the sole failing test
24359         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24360         expected output matches what mktime now produces.  Cross-checked via
24361         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24362
24363         posixtm: move #ifdef'd tests into a new module
24364         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24365         * tests/test-posixtm.c: ... this new file.
24366         * modules/posixtm-tests: New module.
24367
24368 2009-09-19  Eric Blake  <ebb9@byu.net>
24369
24370         openat: simplify use of at-func.c
24371         * lib/at-func.c (includes): Include prerequisites here, to
24372         simplify requirements on client files.
24373         * lib/openat-priv.h: Add double-inclusion guard.
24374         * lib/faccessat.c (includes): Simplify.
24375         * lib/fchmodat.c (includes): Likewise.
24376         * lib/fchownat.c (includes): Likewise.
24377         * lib/mkdirat.c (includes): Likewise.
24378         * lib/mkfifoat.c (includes): Likewise.
24379         * lib/symlinkat.c (includes): Likewise.
24380
24381         openat: allow return of fd 0
24382         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24383         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24384         unistd-safer.
24385         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24386         <fcntl.h>; this module does not leak fds.
24387         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24388         must be allowed to return 0, leaving openat_safer to add the
24389         safety.
24390         (openat_permissive): Avoid writing to just-opened fd 2 if
24391         restoring the current directory fails.
24392         * lib/openat-die.c (openat_restore_fail): Add comment.
24393         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24394         (save_cwd): Guarantee safe fd, but without use of open_safer.
24395         * tests/test-openat.c: New test.
24396         * modules/openat-tests (Files, Makefile.am): Distribute and build
24397         new file.
24398
24399         relocatable-prog-wrapper: fix build
24400         * modules/relocatable-prog-wrapper (Files): Update name of
24401         canonicalize m4 file, broken on 2009-09-17.
24402         Reported by emad hajjar <aleppos@hotmail.com>.
24403
24404 2009-09-19  Bruno Haible  <bruno@clisp.org>
24405
24406         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24407         * lib/safe-alloc.c: Likewise.
24408         Reported by Ian Beckwith <ianb@erislabs.net>.
24409
24410 2009-09-18  Bruno Haible  <bruno@clisp.org>
24411
24412         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24413         Reported by <erobles@sensacd.com.mx>.
24414
24415 2009-09-17  Eric Blake  <ebb9@byu.net>
24416
24417         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24418         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24419         slashes when checking if last component is missing.
24420         * tests/test-canonicalize.c (main): Test this.
24421
24422         canonicalize, canonicalize-lgpl: honor // if distinct from /
24423         * modules/canonicalize (Files): Add double-slash-root.m4.
24424         * modules/canonicalize-lgpl (Files): Likewise.
24425         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24426         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24427         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24428         fallback definition.
24429         (canonicalize_filename_mode): Use it to protect //.
24430         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24431         (__realpath): Likewise.
24432         * tests/test-canonicalize.c (main): Test this.
24433         * tests/test-canonicalize-lgpl.c (main): Likewise.
24434         * modules/canonicalize-tests (Depends-on): Add same-inode.
24435         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24436
24437         canonicalize-lgpl: fix glibc bug with trailing slash
24438         * m4/canonicalize-lgpl.m4: Move contents...
24439         * m4/canonicalize.m4: ...here.
24440         (gl_CANONICALIZE_LGPL): Factor realpath check...
24441         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24442         glibc 2.3.5 bug, fixed 2005-04-27.
24443         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24444         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24445         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24446         * modules/canonicalize-lgpl (Files): Manage file rename.
24447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24448         * modules/stdlib (Makefile.am): Substitute witness.
24449         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24450         is needed.
24451         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24452         replacement is required.
24453         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24454         * doc/glibc-functions/canonicalize_file_name.texi
24455         (canonicalize_file_name): Document this.
24456         * doc/posix-functions/realpath.texi (realpath): Likewise.
24457
24458         canonicalize-lgpl: reject non-directory with trailing slash
24459         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24460         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24461         catches failures in glibc 2.3.5.
24462         * tests/test-canonicalize.c (main): Likewise.
24463
24464         canonicalize-lgpl: use native realpath if it works
24465         * lib/canonicalize-lgpl.c (realpath): Guard with
24466         FUNC_REALPATH_WORKS.
24467         * lib/stdlib.in.h (realpath): Make declaration optional based on
24468         HAVE_REALPATH.
24469         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24470         native realpath works.
24471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24472         * modules/stdlib (Makefile.am): Substitute witness.
24473
24474         canonicalize, canonicalize-lgpl: use <stdlib.h>
24475         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24476         (Include): Mention <stdlib.h>.
24477         (configure.ac): Mention functions we provide.
24478         * modules/canonicalize (configure.ac): Likewise.
24479         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24480         realpath if canonicalize_file_name is missing.
24481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24482         * modules/stdlib (Makefile.am): Substitute witnesses.
24483         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24484         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24485         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24486         * NEWS: Document this.
24487         * doc/glibc-functions/canonicalize_file_name.texi
24488         (canonicalize_file_name): Likewise.
24489         * doc/posix-functions/realpath.texi (realpath): Likewise.
24490         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24491
24492         test-canonicalize: consolidate into single C program
24493         * tests/test-canonicalize.sh: Delete; move setup into...
24494         * tests/test-canonicalize.c (main): ...the program, making it
24495         easier to run in debugger.  Add some tests.
24496         * modules/canonicalize-tests (Files): Remove unused file.
24497         (Depends-on): Add progname.
24498         (configure.ac, Makefile.am): Simplify.
24499
24500         test-canonicalize-lgpl: consolidate into single C program
24501         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24502         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24503         easier to run in debugger.  Add some tests.
24504         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24505         (configure.ac, Makefile.am): Simplify.
24506
24507         canonicalize: avoid resolvepath
24508         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24509         unnecessary checks.
24510         * lib/canonicalize.c (includes): Simplify.
24511         (canonicalize_file_name): Drop resolvepath implementation.
24512         * modules/canonicalize (Depends-on): Drop filenamecat.
24513
24514         canonicalize: don't lose errno
24515         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24516         over calls to free.
24517
24518         canonicalize: simplify errno handling
24519         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24520         assignment.
24521
24522         canonicalize, canonicalize-lgpl: update module dependencies
24523         * modules/canonicalize (Depends-on): Add extensions, lstat,
24524         pathmax, stdlib.
24525         (Files): Drop pathmax.h.
24526         (configure.ac): Adjust macro name.
24527         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24528         lstat, stdlib, sys_stat.
24529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24530         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24531         extensions.
24532         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24533         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24534         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24535         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24536         declaration, if available.
24537         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24538         we can rely on the readlink module.
24539         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24540         (includes): Use <unistd.h> unconditionally.
24541
24542 2009-09-17  Eric Blake  <ebb9@byu.net>
24543
24544         maint: make Include sections of modules consistent
24545         * modules/alloca: Use only header name; no need to list #include.
24546         * modules/alloca-opt: Likewise.
24547         * modules/arpa_inet: Likewise.
24548         * modules/canon-host: Likewise.
24549         * modules/configmake: Likewise.
24550         * modules/dirent: Likewise.
24551         * modules/eealloc: Likewise.
24552         * modules/environ: Likewise.
24553         * modules/fchdir: Likewise.
24554         * modules/fcntl: Likewise.
24555         * modules/fcntl-h: Likewise.
24556         * modules/gethrxtime: Likewise.
24557         * modules/gettime: Likewise.
24558         * modules/ignore-value: Likewise.
24559         * modules/inet_ntop: Likewise.
24560         * modules/inet_pton: Likewise.
24561         * modules/inttypes: Likewise.
24562         * modules/isnand-nolibm: Likewise.
24563         * modules/isnanf-nolibm: Likewise.
24564         * modules/mbchar: Likewise.
24565         * modules/mbfile: Likewise.
24566         * modules/mbiter: Likewise.
24567         * modules/mbuiter: Likewise.
24568         * modules/netdb: Likewise.
24569         * modules/netinet_in: Likewise.
24570         * modules/nproc: Likewise.
24571         * modules/pagealign_alloc: Likewise.
24572         * modules/poll: Likewise.
24573         * modules/printf-frexp: Likewise.
24574         * modules/pthread: Likewise.
24575         * modules/putenv: Likewise.
24576         * modules/random_r: Likewise.
24577         * modules/relocatable-prog: Likewise.
24578         * modules/search: Likewise.
24579         * modules/select: Likewise.
24580         * modules/selinux-h: Likewise.
24581         * modules/settime: Likewise.
24582         * modules/signal: Likewise.
24583         * modules/size_max: Likewise.
24584         * modules/socklen: Likewise.
24585         * modules/ssize_t: Likewise.
24586         * modules/stdarg: Likewise.
24587         * modules/stdbool: Likewise.
24588         * modules/stddef: Likewise.
24589         * modules/stdint: Likewise.
24590         * modules/stdio: Likewise.
24591         * modules/stdlib: Likewise.
24592         * modules/string: Likewise.
24593         * modules/strings: Likewise.
24594         * modules/sys_file: Likewise.
24595         * modules/sys_ioctl: Likewise.
24596         * modules/sys_select: Likewise.
24597         * modules/sys_socket: Likewise.
24598         * modules/sys_stat: Likewise.
24599         * modules/sys_time: Likewise.
24600         * modules/sys_times: Likewise.
24601         * modules/sys_utsname: Likewise.
24602         * modules/sys_wait: Likewise.
24603         * modules/sysexits: Likewise.
24604         * modules/time: Likewise.
24605         * modules/times: Likewise.
24606         * modules/tmpfile: Likewise.
24607         * modules/trim: Likewise.
24608         * modules/unistd: Likewise.
24609         * modules/wchar: Likewise.
24610         * modules/wctype: Likewise.
24611
24612 2009-09-17  Bruno Haible  <bruno@clisp.org>
24613
24614         Make getdate.y compile on QNX and NetBSD 5 / i386.
24615         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24616         TIME_T_FITS_IN_LONG_INT.
24617         * lib/getdate.y (long_time_t): New type.
24618         (relative_time): Change type of 'seconds' field to long_time_t.
24619         (get_date): Update types of local variables. Check against overflow
24620         during conversion from long_time_t to time_t.
24621         Reported by Matt Kraai <kraai@ftbfs.org>
24622         and Hasso Tepper <hasso@netbsd.org>.
24623
24624 2009-09-17  Bruno Haible  <bruno@clisp.org>
24625
24626         * modules/COPYING: Update copyright years.
24627         * modules/README: Likeiwse.
24628         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24629         Reported by Ian Beckwith <ianb@erislabs.net>.
24630
24631 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24632
24633         * users.txt: Update references for gnuit package.
24634
24635 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24636
24637         * m4/getdelim.m4: Fix typo in copyright line.
24638
24639 2009-09-17  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/atoll.c: Use the standard header with GPL copyright.
24642         * lib/argz.in.h: Likewise.
24643         * lib/glob.c: Likewise.
24644         * lib/glob-libc.h: Likewise.
24645         * lib/random_r.c: Likewise.
24646         * lib/siglist.h: Likewise.
24647         * lib/strsignal.c: Likewise.
24648         Reported by Ian Beckwith <ianb@erislabs.net>.
24649
24650 2009-09-17  Eric Blake  <ebb9@byu.net>
24651
24652         rmdir: ensure correct dependency order
24653         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24654
24655 2009-09-17  Bruno Haible  <bruno@clisp.org>
24656
24657         Disable assertion that fails on NetBSD 5 / i386.
24658         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24659         Reported by Sam Steingold <sds@gnu.org>
24660         and Hasso Tepper <hasso@netbsd.org>.
24661
24662 2009-09-16  Eric Blake  <ebb9@byu.net>
24663
24664         unlinkdir: port to mingw
24665         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24666         on which no one can unlink a directory.
24667
24668         stdlib: sort witness names
24669         * modules/stdlib (Makefile.am): Sort replacements.
24670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24671         * lib/stdlib.in.h: Likewise.
24672
24673         parse-duration-tests: avoid link failure
24674         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24675         LIBINTL.
24676         Reported by Tom G. Christensen.
24677
24678         openat-tests: ensure unlinkat behaves like rmdir
24679         * tests/test-rmdir.c (main): Factor guts...
24680         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24681         * modules/rmdir-tests (Files): Ship new file.
24682         * modules/openat-tests: New test.
24683         * tests/test-unlinkat.c: Likewise.
24684
24685         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24686         * modules/rmdir-errno (Status, Notice): Now obsolete.
24687
24688         rmdir: work around cygwin 1.5.x and mingw bugs
24689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24690         * lib/rmdir.c (rmdir): Work around it.
24691         * modules/rmdir (Status, Notice): No longer obsolete.
24692         (Files): Add dos.m4.
24693         (Depends-on): Add unistd.
24694         (configure.ac): Set witnesses.
24695         (License): Relax to LGPLv2+.
24696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24697         * modules/unistd (Makefile.am): Substitute witnesses.
24698         * lib/unistd.in.h (rmdir): Declare replacement.
24699         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24700         * modules/rmdir-tests: New tests.
24701         * tests/test-rmdir.c: Likewise.
24702
24703 2009-09-15  Eric Blake  <ebb9@byu.net>
24704
24705         fchdir: improve use of replacement functions
24706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24707         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24708         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24709         REPLACE_CLOSEDIR.
24710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24711         * modules/sys_stat (Makefile.am): Substitute correct witness.
24712         * modules/dirent (Makefile.am): Likewise.
24713         * modules/unistd (Makefile.am): Likewise.
24714         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24715         * lib/unistd.in.h (dup): Likewise.
24716         * lib/sys_stat.in.h (fstat): Likewise.
24717
24718         maint: ignore gnulib-tool temp files
24719         * .gitignore: Ignore files created during gnulib-tool --test.
24720
24721 2009-09-13  Jim Meyering  <meyering@redhat.com>
24722
24723         posixtm: don't reject a time that specify "60" as the number of seconds
24724         * lib/posixtm.c (posixtime): The code to reject invalid dates
24725         would also reject a time specified with the .60 suffix.
24726         But POSIX allows that, in order to accommodate leap seconds.
24727         So don't reject it.
24728         (main): Adjust tests accordingly.
24729         * modules/posixtm (Depends-on): Add stpcpy.
24730
24731 2009-09-11  Jim Meyering  <meyering@redhat.com>
24732
24733         announce-gen: include [$release_type] in emitted Subject:
24734         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24735         e.g., [stable] in the emitted Subject: line.
24736
24737 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24738
24739         Remove obsolete macros from several modules.
24740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24741         obsolete Autoconf macros with their modern counterparts.
24742         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24743         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24745         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24746         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24748         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24750         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24751         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24752         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24754         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24755         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24756         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24758         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24759         * m4/time_r.m4 (gl_TIME_R): Likewise.
24760         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24761         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24762         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24763
24764         Fix copyright header in build-aux scripts.
24765         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24766         recommendation.
24767         * build-aux/ncftpput-ftp: Likewise.
24768         * build-aux/update-copyright: Likewise.
24769
24770 2009-09-09  Eric Blake  <ebb9@byu.net>
24771
24772         test-link: allow Linux choice of errno
24773         * tests/test-link.c (main): Relax test for alternate error.
24774
24775         strndup: fix improper m4 caching
24776         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24777         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24778         (gl_PREREQ_STRNDUP): Delete.
24779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24780         * modules/string (Makefile.am): Substitute it.
24781         * lib/string.in.h (strndup): Modernize prototype.
24782
24783         getcwd: port to mingw
24784         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24785         different from the POSIX assumptions made throughout the getcwd
24786         module; fortunately, the mingw getcwd does not need replacement.
24787         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24788         * modules/getcwd-tests: New test.
24789         * tests/test-getcwd.c: Likewise.
24790
24791         link: fix platform bugs
24792         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24793         * lib/link.c (link): Work around them.  Fix related mingw bug.
24794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24795         * modules/unistd (Makefile.am): Substitute it.
24796         * lib/unistd.in.h (link): Declare replacement.
24797         * doc/posix-functions/link.texi (link): Document this.
24798         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24799
24800         test-link: consolidate into single C program, test more cases
24801         * tests/test-link.sh: Delete.
24802         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24803         at least Cygwin and Solaris.
24804         * modules/link-tests (Files): Remove unused file.
24805         (Depends-on): Add errno, sys_stat.
24806         (Makefile.am): Simplify.
24807
24808 2009-09-08  Bruno Haible  <bruno@clisp.org>
24809
24810         Work around towlower, towupper bug on mingw.
24811         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24812         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24813         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24814         * doc/posix-functions/towupper.texi: Likewise.
24815         Reported by Eric Blake.
24816
24817 2009-09-08  Jim Meyering  <meyering@redhat.com>
24818
24819         build: don't try to run autoheader if we don't use it
24820         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24821         is not used in configure.ac.
24822
24823 2009-09-08  Eric Blake  <ebb9@byu.net>
24824
24825         euidaccess: fix compilation error
24826         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24827
24828         rawmemchr: relax license
24829         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24830         okay.
24831         Reported by Jim Meyering.
24832
24833         mkfifoat: new module
24834         * modules/mkfifoat: New file.
24835         * lib/mkfifoat.c: Likewise.
24836         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24838         * modules/sys_stat (Makefile.am): Use them.
24839         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24840         * MODULES.html.sh (File system functions): Mention module.
24841         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24842         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24843         * modules/mkfifoat-tests: New test.
24844         * tests/test-mkfifoat.c: Likewise.
24845
24846         strchrnul: relax license
24847         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24848         okay.
24849         Reported by Jim Meyering.
24850
24851 2009-09-08  Eric Blake  <ebb9@byu.net>
24852
24853         fstatat: fix compilation on Solaris
24854         * lib/fstatat.c (includes): Add fcntl.h.
24855         Reported by Pádraig Brady.
24856
24857 2009-09-07  Eric Blake  <ebb9@byu.net>
24858
24859         rename: modernize replacement
24860         * modules/rename (Depends-on): Add stdio.
24861         (configure.ac): Declare witness.
24862         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24863         stdio take care of replacement.
24864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24865         * modules/stdio (Makefile.am): Substitute them.
24866         * lib/stdio.in.h (rename): Declare replacement.
24867         * lib/rename.c (includes): Allow cross-compilation to non-windows
24868         machines.
24869         * doc/posix-functions/rename.texi (rename): Improve
24870         documentation.
24871
24872         stdio: sort witness names
24873         * modules/stdio (Makefile.am): Sort replacements.
24874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24875         * lib/stdio.in.h: Likewise.
24876
24877         getcwd: minor cleanups
24878         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24879         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24880
24881         openat: provide more convenience names
24882         * modules/faccessat (configure.ac): Add C witness.
24883         * lib/unistd.in.h (readlinkat): Fix typo.
24884         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24885         convenience wrappers.
24886         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24887         wrappers in syntax checks.
24888
24889 2009-09-06  Eric Blake  <ebb9@byu.net>
24890
24891         doc: fix comments in recent patches
24892         * lib/faccessat.c: Mention correct function.
24893         * lib/fchmodat.c: Likewise.
24894         * lib/fchownat.c: Likewise.
24895         * lib/symlinkat.c: Likewise.
24896         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24897         constants.
24898
24899         faccessat, symlinkat: continue cleanup of previous patch
24900         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24901         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24902         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24904         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24905         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24906         set.
24907
24908 2009-09-06  Bruno Haible  <bruno@clisp.org>
24909
24910         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24911         (fstatat): Declare if GNULIB_FSTATAT is set.
24912         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24913         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24914         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24915         * modules/fcntl-h (Files): Remove m4/openat.m4.
24916         * modules/sys_stat (Files): Remove m4/openat.m4.
24917         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24918         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24919         * modules/unistd (Files): Remove m4/openat.m4.
24920         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24921         GNULIB_OPENAT.
24922         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24923         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24925         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24926         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24927         gl_OPENAT_DEFAULTS.
24928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24929         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24930         Don't require gl_OPENAT_DEFAULTS.
24931         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24932         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24933         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24934         (gl_OPENAT_DEFAULTS): Remove macro.
24935
24936 2009-09-06  Bruno Haible  <bruno@clisp.org>
24937
24938         * modules/openat (configure.ac): Remove unneeded witness.
24939
24940 2009-09-06  Bruno Haible  <bruno@clisp.org>
24941
24942         Set errno to ENOSYS when a function is entirely unsupported.
24943         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24944         EOPNOTSUPP.
24945         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24946         * modules/chown (Depends-on): Remove errno.
24947
24948 2009-09-06  Bruno Haible  <bruno@clisp.org>
24949
24950         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24951
24952 2009-09-06  Bruno Haible  <bruno@clisp.org>
24953
24954         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24955
24956 2009-09-06  Ben Pfaff  <blp@gnu.org>
24957             Bruno Haible  <bruno@clisp.org>
24958
24959         Work around a glibc bug in strtok_r.
24960         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24961         Undefine if UNDEFINE_STRTOK_R is set.
24962         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24964         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24966         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24967         UNDEFINE_STRTOK_R.
24968         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24969
24970 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24971
24972         exclude: minor fix
24973         * lib/exclude.c: Include wctype.h
24974
24975 2009-09-06  Akim Demaille  <demaille@gostai.com>
24976
24977         bootstrap: improve error message
24978         * build-aux/bootstrap (find_tool): Upon failure, report the list
24979         of candidates.
24980         Honor the initial value of the envvar.
24981
24982 2009-09-05  Eric Blake  <ebb9@byu.net>
24983
24984         symlinkat: new module
24985         * modules/symlinkat: New file.
24986         * lib/symlinkat.c: Likewise.
24987         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24989         * modules/unistd (Makefile.am): Use them.
24990         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24991         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24992         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24993         * MODULES.html.sh (File system functions): Mention module.
24994         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24995         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24996         * modules/symlinkat-tests: New test.
24997         * tests/test-symlinkat.c: Likewise.
24998
24999         test-openat-safer: add more checks
25000         * tests/test-openat-safer.c (main): Check more code paths.
25001
25002 2009-09-05  Jim Meyering  <meyering@redhat.com>
25003
25004         syntax-check: detect unnecessary inclusion of openat.h
25005         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25006
25007 2009-09-05  Bruno Haible  <bruno@clisp.org>
25008
25009         Support towlower, towupper.
25010         * doc/posix-functions/towlower.texi: Mention module wctype.
25011         * doc/posix-functions/towupper.texi: Likewise.
25012         * lib/wctype.in.h (towlower, towupper): New functions.
25013         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25014         (ASSERT): New macro.
25015         (e): New variable.
25016         (main): Test also towlower, towupper. Test WEOF argument.
25017         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25018
25019 2009-09-05  Bruno Haible  <bruno@clisp.org>
25020
25021         Fix conversion behaviour when the input is invalid.
25022         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25023         mark occurring in first pass of indirect conversion.
25024         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25025         input.
25026         Found by clang's static analyzer.
25027
25028 2009-09-05  Bruno Haible  <bruno@clisp.org>
25029
25030         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25031         where direct conversion is possible.
25032
25033 2009-09-04  Eric Blake  <ebb9@byu.net>
25034
25035         openat: fail with ENOENT on empty name
25036         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25037         buffer.
25038
25039         link-follow: fix logic bug in prior patch
25040         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25041         reversed sense of yes and no in prior patch.  Avoid confusing
25042         compilation failure with desired semantics.
25043
25044         link-follow: accomodate mingw and cross-compilation
25045         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25046         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25047         cross-compilation results to -1, to make linkat easier to
25048         implement when cross-compiling.  Trivially support mingw.
25049         * modules/link-follow (configure.ac): Call new name.
25050         * NEWS: Mention this.
25051
25052 2009-09-03  Eric Blake  <ebb9@byu.net>
25053
25054         faccessat: compile replacement
25055         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25056         needed.
25057
25058         fts: fix compilation error
25059         * lib/fts.c (includes): Re-add "openat.h", for
25060         openat_needs_fchdir.
25061
25062         faccessat: new module
25063         * modules/faccessat: New file.
25064         * lib/faccessat.c: Likewise.
25065         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25067         * modules/unistd (Makefile.am): Use it.
25068         * lib/unistd.in.h (faccessat): Declare it.
25069         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25070         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25071         * MODULES.html.sh (File system functions): Mention it.
25072         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25073         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25074
25075         euidaccess: prefer POSIX over non-standard implementation
25076         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25077         * lib/euidaccess.c (euidaccess): Use it if available.
25078
25079         openat: make template easier to use
25080         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25081         AT_FUNC_F2 to be undefined.
25082         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25083         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25084         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25085         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25086         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25087         Likewise.
25088         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25089         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25090         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25091         Likewise.
25092
25093         openat: declare in POSIX headers
25094         * NEWS: Mention this.
25095         * modules/openat (configure.ac): Declare witnesses.
25096         (Depends-on): Add fcntl-h, sys_stat, unistd.
25097         (Include): Mention correct headers.
25098         * modules/fcntl-h (Depends-on): Add link-warning.
25099         (Files): Add openat.m4.
25100         (Makefile.am): Substitute witnesses.
25101         * modules/sys_stat (Files, Makefile.am): Likewise.
25102         * modules/unistd (Files, Makefile.am): Likewise.
25103         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25104         (gl_OPENAT_DEFAULTS): New macro.
25105         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25108         (SYS_STAT_H): Remove unused variable.
25109         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25110         * lib/fcntl--.h (includes): Remove unneeded header.
25111         * lib/openat-safer.c (includes): Likewise.
25112         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25113         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25114         appropriate headers.
25115         (__OPENAT_PREFIX): Delete.
25116         * lib/fcntl.in.h (openat): Provide declaration.
25117         (AT_FDCWD): Fix Solaris bug.
25118         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25119         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25120         * lib/fchmodat.c (includes):  Adjust to find declaration.
25121         * lib/fchownat.c (includes): Likewise.
25122         * lib/mkdirat.c (includes): Likewise.
25123         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25124         still visible.
25125
25126 2009-09-02  Eric Blake  <ebb9@byu.net>
25127
25128         errno: use consistently
25129         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25130         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25131         * lib/canonicalize.c (ELOOP): Likewise.
25132         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25133         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25134         * lib/lchown.c (EOPNOTSUPP): Likewise.
25135         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25136         * lib/savewd.c (ESTALE): Likewise.
25137         * lib/settime.c (ENOSYS): Likewise.
25138         * lib/utimens.c (ENOSYS): Likewise.
25139         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25140         * lib/chdir-safer.c (ELOOP): Likewise.
25141         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25142         * modules/c-stack (Depends-on): Add errno.
25143         * modules/canonicalize (Depends-on): Likewise.
25144         * modules/chdir-safer (Depends-on): Likewise.
25145         * modules/fdopendir (Depends-on): Likewise.
25146         * modules/inet_ntop (Depends-on): Likewise.
25147         * modules/inet_pton (Depends-on): Likewise.
25148         * modules/lchown (Depends-on): Likewise.
25149         * modules/openat (Depends-on): Likewise.
25150         * modules/savewd (Depends-on): Likewise.
25151         * modules/settime (Depends-on): Likewise.
25152         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25153
25154         fts: avoid leaking fds
25155         * modules/fts (Depends-on): Add cloexec.
25156         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25157         flag.
25158
25159         fts: make directory fds more robust
25160         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25161         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25162
25163         backupfile, chdir-long, fts, savedir: make safer
25164         * lib/backupfile.c (includes): Use "dirent--.h", since
25165         numbered_backup can write to stderr during readdir.
25166         * lib/savedir.c (includes): Likewise.
25167         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25168         emulation can write to stderr on failure.
25169         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25170         * lib/getcwd.c: Document why opendir_safer is unused.
25171         * lib/glob.c: Likewise.
25172         * lib/scandir.c: Likewise.
25173         * lib/openat-proc.c: Likewise, for open_safer.
25174         * modules/backupfile (Depends-on): Add dirent-safer.
25175         * modules/savedir (Depends-on): Likewise.
25176         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25177         * modules/chdir-long (Depends-on): Add openat-safer.
25178
25179         openat-safer: new module
25180         * modules/openat-safer: New file.
25181         * lib/openat-safer.c: Likewise.
25182         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25183         * lib/fcntl-safer.h (openat_safer): Declare.
25184         * lib/fcntl--.h (openat): Override.
25185         * MODULES.html.sh (File descriptor based I/O): Mention it.
25186         * lib/openat.h: Add double-inclusion guards.
25187         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25188         "fcntl--.h", so we can implement openat.
25189         * modules/openat-safer-tests: New test.
25190         * tests/test-openat-safer.c: New file.
25191
25192         dirent-safer: new module
25193         * modules/dirent-safer: New file.
25194         * lib/dirent--.h: Likewise.
25195         * lib/dirent-safer.h: Likewise.
25196         * lib/opendir-safer.c: Likewise.
25197         * m4/dirent-safer.m4: Likewise.
25198         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25199         * modules/dirent-safer-tests: New test.
25200         * tests/test-dirent-safer.c: New file.
25201         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25202
25203         fdopendir: optimize on mingw
25204         * lib/unistd.in.h (_gl_directory_name): New prototype.
25205         * lib/fchdir.c (_gl_directory_name): Implement it.
25206         (fchdir): Use it to simplify implementation.
25207         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25208         fchdir, when available, to avoid calling [f]chdir().
25209
25210         fdopendir: split into its own module
25211         * lib/openat.c (fdopendir): Move...
25212         * lib/fdopendir.c: ...into new file.
25213         * modules/fdopendir: New module.
25214         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25215         * modules/openat (Depends-on): Add fdopendir.
25216         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25217         fdopendir here.
25218         * modules/savedir (Depends-on): Only need fdopendir, not full
25219         openat.
25220         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25221         * lib/openat.h (fdopendir): Drop prototype.
25222         * lib/dirent.in.h (fdopendir): Provide prototype.
25223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25224         * modules/dirent (Makefile.am): Substitute them.
25225         * MODULES.html.sh (File system functions): Mention it.
25226         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25227         * modules/fdopendir-tests: New file.
25228         * tests/test-fdopendir.c: Likewise.
25229
25230         fchdir: use more consistent macro convention
25231         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25232         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25233         REPLACE_FCHDIR, rather than relying on config.h macros.
25234         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25235         inside a single make-time REPLACE_FCHDIR block, rather than using
25236         the config.h FCHDIR_REPLACEMENT.
25237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25238         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25239         Manage fstat replacement.
25240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25241         REPLACE_FCHDIR.
25242         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25243         (Makefile.am): Substitute REPLACE_FCHDIR.
25244         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25245         FCHDIR_REPLACEMENT.
25246         * lib/dup-safer.c (dup_safer): Likewise.
25247         * lib/dup2.c (rpl_dup2): Likewise.
25248         * lib/dup3.c (rpl_dup3): Likewise.
25249         * lib/open.c (rpl_open): Likewise.
25250
25251         fchdir: simplify error handling, and support dup3
25252         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25253         stdbool, malloc-posix, realloc-posix.
25254         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25255         (ensure_dirs_slot): Return false on allocation failure.
25256         (rpl_dup2): Delete.
25257         (_gl_register_dup): New function.
25258         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25259         (_gl_register_fd): Close fd on allocation failure.
25260         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25261         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25262         prototype.
25263         (rpl_dup2_fchdir): Delete prototype.
25264         * lib/open.c (open): Update caller.
25265         * lib/dup2.c (dup2): Track fchdir metadata.
25266         * lib/dup3.c (dup3): Likewise.
25267         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25269
25270 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25271
25272         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25273         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25274         don't pass arguments to AC_OUTPUT.
25275
25276 2009-09-02  Bruno Haible  <bruno@clisp.org>
25277
25278         * modules/mkdtemp (License): Relicense under LGPLv2+.
25279         Reported by Paolo Bonzini.
25280
25281 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25282
25283         Replace uses of obsolete autoconf macros in Jim's modules.
25284         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25285         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25286         can evoke a warning from autoconf when run with -Wobsolete
25287         enabled.  They were declared obsolete for good reasons (see
25288         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25289         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25290         should not continue using the deprecated macros.
25291         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25292         obsolete Autoconf macros with modern counterparts.
25293         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25294         * m4/dos.m4 (gl_AC_DOS): Likewise.
25295         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25297         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25298         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25299         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25300         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25302         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25303         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25304         Likewise.
25305         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25306         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25307         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25308         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25309         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25310         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25311
25312 2009-09-01  Eric Blake  <ebb9@byu.net>
25313
25314         fchdir: fix off-by-one bug in previous patch
25315         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25316         (_gl_unregister_fd): Delete useless if.
25317
25318 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25319
25320         maint.mk: sort the list of syntax-check rules
25321         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25322         easier to get a sense of progress when the rules are run sequentially
25323         and take a long time.
25324
25325 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25326
25327         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25328         * modules/netinet_in: Likewise.
25329         * modules/sys_file: Likewise.
25330         * modules/sys_ioctl: Likewise.
25331         * modules/sys_select: Likewise.
25332         * modules/sys_socket: Likewise.
25333         * modules/sys_stat: Likewise.
25334         * modules/sys_time: Likewise.
25335         * modules/sys_times: Likewise.
25336         * modules/sys_utsname: Likewise.
25337         * modules/sys_wait: Likewise.
25338
25339 2009-09-01  Jim Meyering  <meyering@redhat.com>
25340
25341         fts: help ensure that return values are not ignored
25342         * lib/fts_.h (__GNUC_PREREQ): Define.
25343         (__attribute_warn_unused_result__): Define.
25344         (fts_children, fts_close, fts_open, fts_read): Declare with
25345         __attribute_warn_unused_result__.
25346
25347         fts: fts_close now fails also when closing a dir file descriptor fails
25348         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25349         and propagate to caller, along with errno.
25350
25351         announce-gen: correct formatting in --help output
25352         * build-aux/announce-gen (usage): Move the one-line description in
25353         --help output "up", to where it belongs, just after Usage:.
25354
25355 2009-08-31  Eric Blake  <ebb9@byu.net>
25356
25357         fchdir: port to mingw
25358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25359         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25360         opened, then use a substitute.
25361         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25362         replacement.
25363         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25364         (_gl_register_fd): No need to check stat if open already filters
25365         all directories.
25366         (fchdir): Fix error condition to match POSIX.
25367         * modules/fchdir (Depends-on): Add sys_stat.
25368         * doc/posix-functions/open.texi (open): Document the limitation.
25369         * modules/fchdir-tests: New file.
25370         * tests/test-fchdir.c: Likewise.
25371
25372         canonicalize: allow cross-testing from cygwin to mingw
25373         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25374         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25375         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25376         Likewise.
25377         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25378         target does not support symlinks.
25379         * tests/test-canonicalize-lgpl.sh: Likewise.
25380
25381         chown: avoid compilation warning on mingw
25382         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25383         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25384         mingw.
25385         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25386         * modules/chown (Depends-on): Add errno.
25387
25388 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25389
25390         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25391         command.
25392
25393 2009-08-31  Jim Meyering  <meyering@redhat.com>
25394
25395         canonicalize: remove useless initialization
25396         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25397         initialization of local, "end".
25398
25399 2009-08-30  Bruno Haible  <bruno@clisp.org>
25400
25401         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25402         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25403         ENOSYS.
25404
25405 2009-08-30  Bruno Haible  <bruno@clisp.org>
25406
25407         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25408         /usr/xpg4/bin/tr when it exists.
25409         * tests/test-pipe-filter-gi1.sh: Likewise.
25410
25411 2009-08-30  Bruno Haible  <bruno@clisp.org>
25412
25413         Work around deficient /usr/bin/id program on Solaris.
25414         * tests/test-file-has-acl.sh (ID): New variable.
25415         * tests/test-set-mode-acl.sh (ID): Likewise.
25416         * tests/test-copy-acl.sh (ID): Likewise.
25417         * tests/test-copy-file.sh (ID): Likewise.
25418
25419 2009-08-30  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'xstriconveh'.
25422         * lib/xstriconveh.h: New file.
25423         * lib/xstriconveh.c: New file.
25424         * modules/xstriconveh: New file.
25425
25426 2009-08-30  Bruno Haible  <bruno@clisp.org>
25427
25428         Make it easier to use mem_cd_iconveh.
25429         * lib/striconveh.h (iconveh_t): New type.
25430         (iconveh_open, iconveh_close): New declarations.
25431         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25432         with a single 'const iconveh_t *' argument.
25433         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25434         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25435         with a single 'const iconveh_t *' argument.
25436         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25437         * tests/test-striconveh.c (main): Update.
25438         * NEWS: Mention the change.
25439
25440 2009-08-30  Bruno Haible  <bruno@clisp.org>
25441
25442         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25443         problem.
25444
25445 2009-08-30  Bruno Haible  <bruno@clisp.org>
25446
25447         Work around iconv_open problem on Solaris.
25448         * lib/iconv_open-solaris.gperf: New file.
25449         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25451         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25452         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25453         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25454         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25455
25456 2009-08-29  Jim Meyering  <meyering@redhat.com>
25457
25458         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25459         * top/maint.mk (cvs-check): Remove target; it was just an alias
25460         to the better-named vc-diff-check.
25461         (maintainer-distcheck): Remove rule.  It was used only from
25462         the (alpha/beta/major) target, and all of its commands but one
25463         were coreutils-specific.
25464         (vc-dist): Remove rule.
25465         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25466         Run vc-diff-check, not vc-dist.
25467         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25468
25469 2009-08-27  Bruno Haible  <bruno@clisp.org>
25470
25471         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25472         of 0.
25473
25474 2009-08-27  Bruno Haible  <bruno@clisp.org>
25475
25476         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25477         compilers.
25478         * doc/func.texi: Document the SunPRO C bug.
25479
25480 2009-08-27  Bruno Haible  <bruno@clisp.org>
25481
25482         Fix link error on Solaris.
25483         * tests/test-parse-duration.c (xstrdup): Remove function.
25484
25485 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25486
25487         ignore-value: handle pointer types, too
25488         * lib/ignore-value.h (__attribute__): Remove definition.
25489         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25490         of a more concise and more-often effective "(void) i" statement.
25491         (ignore_ptr): New function to suppress warnings from functions that
25492         return pointers, and to make it explicit that one function doesn't
25493         handle all cases.
25494
25495 2009-08-25  Bruno Haible  <bruno@clisp.org>
25496
25497         dup2: work around a Linux bug.
25498         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25499         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25500         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25501         Reported by Simon Josefsson.
25502
25503 2009-08-25  Jim Meyering  <meyering@redhat.com>
25504
25505         libguestfs uses gnulib
25506         * users.txt: Add libguestfs.
25507
25508 2009-08-24  Eric Blake  <ebb9@byu.net>
25509
25510         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25511         * lib/pipe2.c (includes): Add binary-io.h.
25512         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25513
25514 2009-08-24  Bruno Haible  <bruno@clisp.org>
25515
25516         Tolerate declared but missing accept4 syscall.
25517         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25518         available.
25519         * lib/sys_socket.in.h (accept4): If the function is already present,
25520         override it.
25521         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25522         * modules/accept4 (Makefile.am): Compile accept4.c always.
25523         Reported by Paolo Bonzini and Eric Blake.
25524
25525 2009-08-23  Bruno Haible  <bruno@clisp.org>
25526
25527         New module 'accept4'.
25528         * lib/sys_socket.in.h (accept4): New declaration.
25529         * lib/accept4.c: New file.
25530         * m4/accept4.m4: New file.
25531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25532         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25533         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25534         HAVE_ACCEPT4.
25535         * modules/accept4: New file.
25536         * doc/glibc-functions/accept4.texi: Mention the new module.
25537
25538 2009-08-24  Jim Meyering  <meyering@redhat.com>
25539
25540         progname: also set global program_invocation_name, when possible
25541         Before this change, a libtool-enabled program that calls glibc's
25542         error function would report the program name as
25543         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25544         * modules/progname (configure.ac): Check for a declaration of
25545         program_invocation_name.
25546         * lib/progname.c:  Include <errno.h>.
25547         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25548         Set program_invocation_name.
25549
25550 2009-08-23  Bruno Haible  <bruno@clisp.org>
25551
25552         * lib/dup3.c: Include <string.h>.
25553
25554 2009-08-23  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25557         * lib/pipe2.c (pipe2): Likewise.
25558         Suggested by Eric Blake.
25559
25560 2009-08-23  Bruno Haible  <bruno@clisp.org>
25561
25562         Tolerate declared but missing dup3 syscall.
25563         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25564         * lib/unistd.in.h (dup3): If the function is already present,
25565         override it.
25566         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25567         * modules/dup3 (Makefile.am): Compile dup3.c always.
25568         Reported by Paolo Bonzini.
25569
25570 2009-08-23  Bruno Haible  <bruno@clisp.org>
25571
25572         Tolerate declared but missing pipe2 syscall.
25573         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25574         available.
25575         * lib/unistd.in.h (pipe2): If the function is already present,
25576         override it.
25577         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25578         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25579         Reported by Paolo Bonzini.
25580
25581 2009-08-23  Bruno Haible  <bruno@clisp.org>
25582
25583         * lib/pipe2.c (pipe2): Move #ifs inside function.
25584
25585 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25586
25587         quotearg: document limitations of quote_these_too
25588         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25589         those limitations are created.
25590         * lib/quotearg.h (set_char_quoting): Document that digits and
25591         letters that are special after backslash are not permitted.
25592         (quotearg_char): Cross-reference set_char_quoting documentation.
25593
25594 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25595
25596         quotearg: implement custom_quoting_style
25597         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25598         right_quote fields.
25599         (set_custom_quoting): New public function.
25600         (quotearg_buffer_restyled): Add left_quote and right_quote
25601         arguments, handle them very much like locale quoting, and update
25602         all uses.
25603         (quotearg_n_custom): New public function.
25604         (quotearg_n_custom_mem): New public function.
25605         (quotearg_custom): New public function.
25606         (quotearg_custom_mem): New public function.
25607         * lib/quotearg.h: Prototype and document new public functions.
25608         (enum quoting_style): For escape_quoting_style and
25609         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25610         ignored even though they're otherwise like c_quoting_style.
25611         Add custom_quoting_style member and document with comparison to
25612         clocale_quoting_style.
25613         * tests/test-quotearg.c (custom_quotes): New array.
25614         (custom_results): New array.
25615         (main): Extend to test custom quoting.
25616
25617 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25618
25619         quotearg: fix right quote escaping when it's in quote_these_too
25620         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25621         quote, be sure to prepend only one backslash.
25622         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25623         (main): Test it.
25624
25625 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25626
25627         quotearg-tests: test escaping of embedded locale quotes
25628         * tests/test-quotearg.c (struct result_strings): Add member for
25629         new input.
25630         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25631         (inputs): Add new input.
25632         (results_g): Add expected results.
25633         (flag_results): Likewise.
25634         (locale_results): Likewise.
25635         (compare_strings): Check those.
25636
25637 2009-08-23  Bruno Haible  <bruno@clisp.org>
25638
25639         Tests for module 'dup3'.
25640         * modules/dup3-tests: New file.
25641         * tests/test-dup3.c: New file.
25642
25643         New module 'dup3'.
25644         * lib/unistd.in.h (dup3): New declaration.
25645         * lib/dup3.c: New file.
25646         * m4/dup3.m4: New file.
25647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25648         HAVE_DUP3.
25649         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25650         * modules/dup3: New file.
25651         * doc/glibc-functions/dup3.texi: Mention the new module.
25652
25653 2009-08-23  Bruno Haible  <bruno@clisp.org>
25654
25655         Tweak the dup2 test.
25656         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25657         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25658         the test file is still empty. Fix argument order of lseek.
25659
25660 2009-08-23  Bruno Haible  <bruno@clisp.org>
25661
25662         Avoid test link errors when the modules getopt-gnu, gettext are used.
25663         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25665
25666 2009-08-23  Bruno Haible  <bruno@clisp.org>
25667
25668         Fix getdtablesize() on mingw.
25669         * lib/getdtablesize.c (getdtablesize): Implement differently.
25670         * lib/unistd.in.h (getdtablesize): Improve comment.
25671
25672 2009-08-23  Bruno Haible  <bruno@clisp.org>
25673
25674         New module 'mkostemp'.
25675         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25676         * lib/stdlib.in.h (mksotemp): New declaration.
25677         * lib/mkostemp.c: New file, from glibc with modifications.
25678         * lib/tempname.h (GT_FILE): Remove outdated comment.
25679         (gen_tempname): Add flags argument.
25680         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25681         (__GT_FILE): Map to 1.
25682         (small_open, large_open): Remove macros.
25683         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25684         * lib/mkstemp.c (mkstemp): Update.
25685         * lib/mkdtemp.c (mkdtemp): Likewise.
25686         * m4/mkostemp.m4: New file.
25687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25688         HAVE_MKOSTEMP.
25689         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25690         HAVE_MKOSTEMP.
25691         * modules/mkostemp: New file, based on modules/mkstemp.
25692         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25693         * NEWS: Mention the change.
25694
25695 2009-08-23  Bruno Haible  <bruno@clisp.org>
25696
25697         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25698         Reported by Eric Blake.
25699
25700 2009-08-23  Bruno Haible  <bruno@clisp.org>
25701
25702         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25703         Reported by Eric Blake.
25704
25705 2009-08-23  Bruno Haible  <bruno@clisp.org>
25706
25707         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25708         * modules/pipe2 (Depends-on): Likewise.
25709
25710 2009-08-23  Eric Blake  <ebb9@byu.net>
25711
25712         fcntl-h: add O_TTY_INIT support
25713         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25714         * tests/test-fcntl-h.c (o): Test it.
25715         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25716
25717         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25718         * modules/fcntl: Move <fcntl.h> header replacement...
25719         * modules/fcntl-h: ...to new name, so as not to collide with
25720         like-named function.
25721         * tests/test-fcntl.c: Rename...
25722         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25723         * modules/fcntl-tests: Rename...
25724         * modules/fcntl-h-tests: ...to this.  Update test file name.
25725         * modules/chdir-long (Depends-on): Update clients.
25726         * modules/chdir-safer (Depends-on): Likewise.
25727         * modules/fcntl-safer (Depends-on): Likewise.
25728         * modules/fts (Depends-on): Likewise.
25729         * modules/mkancesdirs (Depends-on): Likewise.
25730         * modules/mkdir-p (Depends-on): Likewise.
25731         * modules/open (Depends-on): Likewise.
25732         * modules/savewd (Depends-on): Likewise.
25733         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25734         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25735
25736 2009-08-22  Bruno Haible  <bruno@clisp.org>
25737
25738         * modules/binary-io (License): Relicense under LGPL.
25739         * modules/pipe2 (License): Likewise.
25740
25741 2009-08-22  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25744         return value.
25745         * lib/pipe-filter-gi.c (filter_init): Likewise.
25746         Reported by Eric Blake.
25747
25748 2009-08-22  Bruno Haible  <bruno@clisp.org>
25749
25750         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25751         * modules/pipe (Depends-on): Add pipe2.
25752
25753 2009-08-22  Bruno Haible  <bruno@clisp.org>
25754
25755         Tests for module 'pipe2'.
25756         * modules/pipe2-tests: New file.
25757         * tests/test-pipe2.c: New file.
25758
25759         New module 'pipe2'.
25760         * lib/unistd.in.h (pipe2): New declaration.
25761         * lib/pipe2.c: New file.
25762         * m4/pipe2.m4: New file.
25763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25764         HAVE_PIPE2.
25765         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25766         * modules/pipe2: New file.
25767         * doc/glibc-functions/pipe2.texi: Mention the new module.
25768
25769 2009-08-22  Bruno Haible  <bruno@clisp.org>
25770
25771         Reference some new glibc functions.
25772         * doc/glibc-functions/accept4.texi: New file.
25773         * doc/glibc-functions/dup3.texi: New file.
25774         * doc/glibc-functions/mkostemp.texi: New file.
25775         * doc/glibc-functions/pipe2.texi: New file.
25776         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25777         (Glibc sys/socket.h): Refer to accept4.
25778         (Glibc unistd.h): Refer to dup3, pipe2.
25779         Reported by Eric Blake.
25780
25781 2009-08-22  Jim Meyering  <meyering@redhat.com>
25782             Bruno Haible  <bruno@clisp.org>
25783
25784         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25785         This makes it so packages using automake-1.11's silent-rules option
25786         can print e.g., a single "GEN    configmake.h" line, rather than
25787         the 30+ statements that perform the job.  If you want to see the
25788         actual commands, you can still run "make V=1".
25789         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25790         so that make output is abbreviated when those variables are defined
25791         appropriately.
25792         * modules/argz: Likewise.
25793         * modules/arpa_inet: Likewise.
25794         * modules/byteswap: Likewise.
25795         * modules/configmake: Likewise.
25796         * modules/dirent: Likewise.
25797         * modules/errno: Likewise.
25798         * modules/fcntl: Likewise.
25799         * modules/float: Likewise.
25800         * modules/fnmatch: Likewise.
25801         * modules/getopt-posix: Likewise.
25802         * modules/glob: Likewise.
25803         * modules/iconv_open: Likewise.
25804         * modules/inttypes: Likewise.
25805         * modules/localcharset: Likewise.
25806         * modules/locale: Likewise.
25807         * modules/math: Likewise.
25808         * modules/netdb: Likewise.
25809         * modules/netinet_in: Likewise.
25810         * modules/poll: Likewise.
25811         * modules/posix_spawnp-tests: Likewise.
25812         * modules/sched: Likewise.
25813         * modules/search: Likewise.
25814         * modules/selinux-h: Likewise.
25815         * modules/signal: Likewise.
25816         * modules/spawn: Likewise.
25817         * modules/stdarg: Likewise.
25818         * modules/stdbool: Likewise.
25819         * modules/stddef: Likewise.
25820         * modules/stdint: Likewise.
25821         * modules/stdio: Likewise.
25822         * modules/stdlib: Likewise.
25823         * modules/string: Likewise.
25824         * modules/strings: Likewise.
25825         * modules/sys_file: Likewise.
25826         * modules/sys_ioctl: Likewise.
25827         * modules/sys_select: Likewise.
25828         * modules/sys_socket: Likewise.
25829         * modules/sys_stat: Likewise.
25830         * modules/sys_time: Likewise.
25831         * modules/sys_times: Likewise.
25832         * modules/sys_utsname: Likewise.
25833         * modules/sys_wait: Likewise.
25834         * modules/sysexits: Likewise.
25835         * modules/time: Likewise.
25836         * modules/unistd: Likewise.
25837         * modules/wchar: Likewise.
25838         * modules/wctype: Likewise.
25839
25840 2009-08-22  Jim Meyering  <meyering@redhat.com>
25841
25842         announce-gen: detect write failure
25843         * build-aux/announce-gen: Add Coda at end.
25844         Remove equivalent-but-more-verbose block at top.
25845
25846 2009-08-19  Akim Demaille  <demaille@gostai.com>
25847
25848         bootstrap: --help to stdout.
25849         * bootstrap (usage): Don't send --help to stderr.
25850         Use a here doc instead of a long string.
25851
25852 2009-08-21  Eric Blake  <ebb9@byu.net>
25853
25854         test-popen-safer: split from test-popen
25855         * tests/test-popen.c (main): Move...
25856         * tests/test-popen.h: ...into new file.
25857         * tests/test-popen-safer2.c: New file.
25858         * modules/popen-tests (Files): Add test-popen.h.
25859         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25860         Suggested by Bruno Haible.
25861
25862         test-fcntl-safer: split from test-open
25863         * tests/test-open.c (main): Move...
25864         * tests/test-open.h: ...into new file.
25865         * tests/test-fcntl-safer.c: New file.
25866         * modules/open-tests (Files): Add test-open.h.
25867         * modules/fcntl-safer-tests: New file.
25868         Suggested by Bruno Haible.
25869
25870         test-fopen-safer: split from test-fopen
25871         * tests/test-fopen.c (main): Move...
25872         * tests/test-fopen.h: ...into new file.
25873         * tests/test-fopen-safer.c: New file.
25874         * modules/fopen-tests (Files): Add test-fopen.h.
25875         * modules/fopen-safer-tests: New file.
25876         Suggested by Bruno Haible.
25877
25878 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25879
25880         popen-safer: test O_CLOEXEC at run-time.
25881         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25882
25883 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25884
25885         fcntl: move more flags to the header
25886         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25887         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25888         * lib/fcntl.in.h: Do both things here.
25889
25890 2009-08-21  Jim Meyering  <meyering@redhat.com>
25891
25892         consistently remove $@-t before redirecting to it
25893         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25894         * modules/alloca-opt: Likewise.
25895         * modules/byteswap: Likewise.
25896         * modules/fnmatch: Likewise.
25897         * modules/getopt-posix: Likewise.
25898         * modules/glob: Likewise.
25899         * modules/poll: Likewise.
25900         * modules/posix_spawnp-tests: Likewise.
25901         * modules/sys_socket: Likewise.
25902         * modules/sysexits: Likewise.
25903
25904 2009-08-21  Eric Blake  <ebb9@byu.net>
25905
25906         popen: simplify access to original popen
25907         * lib/popen.c (rpl_popen): No need to worry about popen being a
25908         macro.
25909         Reported by Bruno Haible.
25910
25911 2009-08-20  Eric Blake  <ebb9@byu.net>
25912
25913         build: avoid some compiler warnings
25914         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25915         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25916         type.
25917         (new_exclude_segment, excluded_file_pattern_p)
25918         (excluded_file_name_p): Reduce scope.
25919         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25920         old-style declaration.
25921
25922 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25923
25924         * tests/test-exclude1.sh: Handle Windows EOL.
25925         * tests/test-exclude2.sh: Likewise.
25926         * tests/test-exclude3.sh: Likewise.
25927         * tests/test-exclude4.sh: Likewise.
25928         * tests/test-exclude5.sh: Likewise.
25929         * tests/test-exclude6.sh: Likewise.
25930         * tests/test-exclude7.sh: Likewise.
25931
25932 2009-08-19  Akim Demaille  <demaille@gostai.com>
25933
25934         bootstrap: find sha1sum when named gsha1sum.
25935         * bootstrap (find_tool): New.
25936         ($SHA1SUM): New.
25937         Use it.
25938
25939 2009-08-20  Jim Meyering  <meyering@redhat.com>
25940
25941         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25942         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25943         expression that converts "." in a file name to "\." in the resulting
25944         regexp.  Start with a dummy statement, so that prior shell variable
25945         definitions are expanded portably.  Reported by Simon Josefsson.
25946
25947 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25948
25949         Fix polling for writeability of a screen buffer.
25950         * lib/poll.c: Distinguish input and screen buffers for the
25951         Win32 implementation.
25952         * lib/select.c: Likewise.
25953
25954 2009-08-19  Eric Blake  <ebb9@byu.net>
25955
25956         popen-safer: prevent popen from clobbering std descriptors
25957         * modules/popen-safer: New file.
25958         * lib/popen-safer.c: Likewise.
25959         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25960         * lib/stdio--.h (popen): Provide override.
25961         * lib/stdio-safer.h (popen_safer): Provide declaration.
25962         * tests/test-popen.c (includes): Partially test this.
25963         * modules/popen-safer-tests: New file, for more tests.
25964         * tests/test-popen-safer.c: Likewise.
25965         * MODULES.html.sh (file stream based Input/Output): Mention it.
25966
25967         tests: test some of the *-safer modules
25968         * modules/fopen-safer (Depends-on): Add fopen.
25969         * modules/fcntl-safer (Depends-on): Add fcntl.
25970         * modules/stdlib-safer (Depends-on): Add stdlib.
25971         (configure.ac): Set indicator.
25972         * modules/unistd-safer (configure.ac): Likewise.
25973         * modules/tmpfile-safer (configure.ac): Likewise.
25974         (Depends-on): Add tmpfile.
25975         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25976         active.
25977         * tests/test-fopen.c (includes): Test safer versions when they are
25978         in use.
25979         * tests/test-open.c (includes): Likewise.
25980
25981         popen: fix cygwin 1.5 bug when stdin closed
25982         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25983         * modules/popen: New file.
25984         * modules/popen-tests: Likewise.
25985         * tests/test-popen.c: Likewise.
25986         * m4/popen.m4: Likewise.
25987         * lib/popen.c: Likewise.
25988         * lib/stdio.in.h (popen): New declaration.
25989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25990         * modules/stdio (Makefile.am): Likewise.
25991         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25992
25993 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25994
25995         maint.mk: give full control over update-copyright exclusions
25996         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25997         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25998         (update-copyright): Don't force inclusion of top-level
25999         ChangeLog.  Don't force exclusion of all COPYING files, but make
26000         them the default exclusion instead.
26001
26002 2009-08-16  Bruno Haible  <bruno@clisp.org>
26003
26004         Fix test failures on Solaris 10.
26005         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26006         tests when Solaris iconv() is used.
26007         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26008         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26009         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26010         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26011         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26012
26013 2009-08-16  Bruno Haible  <bruno@clisp.org>
26014
26015         Fix test failures on Solaris 10.
26016         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26017         'tr' program and pass it as first argument.
26018         * tests/test-pipe-filter-gi1.sh: Likewise.
26019         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26020         program as first argument.
26021         * tests/test-pipe-filter-gi1.c (main): Likewise.
26022
26023 2009-08-16  Eric Blake  <ebb9@byu.net>
26024
26025         fpurge: fix previous commits
26026         * modules/fpurge (Makefile.am): Make replacement conditional,
26027         partially reverting 2007-04-29 change; missed in previous
26028         attempt.
26029         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26030         is missing.
26031
26032 2009-08-16  Bruno Haible  <bruno@clisp.org>
26033
26034         Clarify fpurge's effect on the file position.
26035         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26036         * tests/test-fpurge.c (main): Make a second pass for checking the file
26037         position.
26038
26039 2009-08-16  Bruno Haible  <bruno@clisp.org>
26040
26041         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26042         declaration of fpurge is missing.
26043         * tests/test-fpurge.c (main): Check that the file has not more contents
26044         than expected. Close the file before removing it.
26045
26046 2009-08-15  Eric Blake  <ebb9@byu.net>
26047
26048         fpurge: don't wrap working cygwin implementation
26049         * lib/fpurge.c (fpurge): Fix comment typo.
26050         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26051         1.7 to avoid replacement.
26052         * tests/test-fpurge.c (main): Enhance test.
26053
26054 2009-08-15  Eric Blake  <ebb9@byu.net>
26055         and Jim Meyering  <meyering@redhat.com>
26056
26057         test-update-copyright: skip if perl is insufficient
26058         * tests/test-update-copyright.sh: Failure to run maintainer tool
26059         should not cause testsuite failure on cygwin 1.5.
26060
26061 2009-08-14  Eric Blake  <ebb9@byu.net>
26062
26063         doc: mention more functions added in cygwin 1.7.0
26064         * doc/posix-headers/limits.texi (limits.h): Update for recent
26065         cygwin additions.
26066         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26067         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26068         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26069         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26070         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26071
26072 2009-08-14  Eric Blake  <ebb9@byu.net>
26073
26074         maint.mk: simplify update-copyright rule
26075         * top/maint.mk (update-copyright-local): Delete, and document how
26076         to do it in cfg.mk instead.
26077         (update-copyright-exclude-regexp): Delete, and document how to do
26078         it in .x-update-copyright instead.
26079         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26080         exclude ChangeLog.
26081
26082 2009-08-14  Bruno Haible  <bruno@clisp.org>
26083
26084         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26085
26086 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26087
26088         maint.mk: support update-copyright-env
26089         * top/maint.mk (update-copyright-env): Define place-holder.
26090         (update-copyright): Expand $(update-copyright-env) before
26091         invoking update-copyright.
26092
26093 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26094
26095         update-copyright: implement forced reformatting
26096         * build-aux/update-copyright: Implement and document
26097         UPDATE_COPYRIGHT_FORCE.
26098         * tests/test-update-copyright.sh: Test it.
26099
26100 2009-08-14  Eric Blake  <ebb9@byu.net>
26101         and Bruno Haible  <bruno@clisp.org>
26102
26103         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26104         * tests/test-locale.c: Revert previous patch related to NULL.
26105         * tests/test-stdio.c: Likewise.
26106         * tests/test-stdlib.c: Likewise.
26107         * tests/test-string.c: Likewise.
26108         * tests/test-unistd.c: Likewise.
26109         * modules/time-tests (Depends-on): Add verify.
26110         * modules/wchar-tests (Depends-on): Likewise.
26111         * tests/test-time.c: Test for NULL compliance.
26112         * tests/test-wchar.c: Likewise.
26113         * modules/locale (Depends-on): Add stddef.
26114         * modules/stdio (Depends-on): Likewise.
26115         * modules/stdlib (Depends-on): Likewise.
26116         * modules/string (Depends-on): Likewise.
26117         * modules/time (Depends-on): Likewise.
26118         * modules/unistd (Depends-on): Likewise.
26119         * modules/wchar (Depends-on): Likewise.
26120         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26121         * lib/stdlib.in.h (includes): Likewise.
26122         * lib/string.in.h (includes): Likewise.
26123         * lib/time.in.h (includes): Likewise.
26124         * lib/unistd.in.h (includes): Likewise.
26125         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26126         replaced.
26127         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26128         * m4/stddef_h.m4: New file.
26129         * modules/stddef: Likewise.
26130         * lib/stddef.in.h: Likewise.
26131         * modules/stddef-tests: Likewise.
26132         * tests/test-stddef.c: Likewise.
26133         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26134         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26135         * doc/posix-headers/locale.texi (locale.h): Likewise.
26136         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26137         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26138         * doc/posix-headers/string.texi (string.h): Likewise.
26139         * doc/posix-headers/time.texi (time.h): Likewise.
26140         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26141         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26142
26143 2009-08-14  Eric Blake  <ebb9@byu.net>
26144
26145         doc: improve git diff of texinfo files
26146         * .gitattributes: Add rule for *.texi files, with hint on how to
26147         use it.
26148         Copied from m4, and based on a report by Bruno Haible.
26149
26150 2009-08-14  Bruno Haible  <bruno@clisp.org>
26151
26152         Disable multithread support by default on Cygwin 1.5.x for real.
26153         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26154
26155 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26156
26157         update-copyright: much ado about intervals
26158         * build-aux/update-copyright: Implement and document
26159         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26160         of copyright year intervals.
26161         Also, document UPDATE_COPYRIGHT_YEAR.
26162         * tests/test-update-copyright.sh: Test it.
26163
26164         update-copyright: convert 2-digit to 4-digit years
26165         * build-aux/update-copyright: Implement and document.
26166         * tests/test-update-copyright.sh: Update.
26167
26168 2009-08-14  Jim Meyering  <meyering@redhat.com>
26169
26170         test-exclude: avoid coreutils "make check" failure
26171         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26172         just as in test-argmatch.c.
26173
26174 2009-08-13  Eric Blake  <ebb9@byu.net>
26175
26176         test-dup2: fix bad assumption
26177         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26178         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26179
26180         test-version-etc: fix CRLF portability issue
26181         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26182         recognize \r.
26183         * tests/test-argp-version-etc-1.sh: Likewise.
26184
26185         getopt: update client modules
26186         * modules/argp (Depends-on): Use getopt-gnu.
26187         * modules/git-merge-changelog (Depends-on): Likewise.
26188         * modules/long-options (Depends-on): Likewise.
26189         * modules/xstrtol (Depends-on): Likewise.
26190
26191 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26192
26193         * tests/test-version-etc.sh: Don't fail on different
26194         project/version.  Don't fail on CRLF differences.  Rewrite to use
26195         multiple -e instead of multiple sed forks, suggested by Eric Blake
26196         <ebb9@byu.net>.
26197         * tests/test-argp-version-etc-1.sh: Likewise.
26198
26199 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26200
26201         * tests/test-version-etc.sh: Don't fail on different
26202         project/version.
26203
26204 2009-08-12  Bruno Haible  <bruno@clisp.org>
26205
26206         Tests for modules 'getopt-posix', 'getopt-gnu'.
26207         * modules/getopt-posix-tests: New file.
26208         * tests/test-getopt.c: New file.
26209         * tests/test-getopt.h: New file.
26210         * tests/test-getopt_long.h: New file.
26211
26212         New modules 'getopt-posix', 'getopt-gnu'.
26213         * modules/getopt-gnu: New file, renamed from modules/getopt.
26214         * modules/getopt-posix: New file.
26215         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26216         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26217         (gl_GETOPT): Remove macro.
26218         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26219         Disable the test against BSD systems that declare optreset. Test
26220         against mingw bug. Test against lack of support of optional arguments
26221         on many platforms.
26222         * doc/glibc-headers/getopt.texi: Update module name and list of
26223         relevant platforms.
26224         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26225         'getopt-gnu' and more portability problems.
26226         * NEWS: Mention the changes.
26227
26228 2009-08-12  Bruno Haible  <bruno@clisp.org>
26229
26230         Ensure that optarg etc. get declared by <unistd.h>.
26231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26232         AC_USE_SYSTEM_EXTENSIONS.
26233         * modules/getopt (Depends-on): Add 'extensions'.
26234
26235 2009-08-12  Bruno Haible  <bruno@clisp.org>
26236
26237         Avoid test link errors.
26238         * modules/pipe-filter-ii-tests (Makefile.am): Define
26239         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26240         * modules/pipe-filter-gi-tests (Makefile.am): Define
26241         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26243
26244 2009-08-12  Bruno Haible  <bruno@clisp.org>
26245
26246         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26247         gl_GETOPT_SUBSTITUTE before.
26248         (gl_GETOPT): Use it.
26249         * m4/argp.m4 (gl_ARGP): Update.
26250         Reported by Sergey Poznyakoff.
26251
26252         * m4/getopt.m4: Reorder macros.
26253         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26254         (gl_GETOPT_SUBSTITUTE): Remove macro.
26255
26256 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26257
26258         Minor improvement in gitlog-to-changelog
26259
26260         * build-aux/gitlog-to-changelog: New option `--format' makes
26261         output format string configurable.
26262
26263 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26264
26265         Optimize exclude: use hash tables for non-wildcard patterns.
26266
26267         * lib/exclude.c: Include hash.h and mbuiter.h
26268         (struct exclude_pattern, exclude_segment): New data types.
26269         (struct exclude): Rewrite.
26270         (fnmatch_pattern_has_wildcards): New function.
26271         (new_exclude_segment, free_exclude_segment): New functions.
26272         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26273         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26274         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26275         * modules/exclude: Depend on hash and mbuiter.
26276
26277         * modules/exclude-tests: New file.
26278         * tests/test-exclude.c: New file.
26279         * tests/test-exclude1.sh: New file.
26280         * tests/test-exclude2.sh: New file.
26281         * tests/test-exclude3.sh: New file.
26282         * tests/test-exclude4.sh: New file.
26283         * tests/test-exclude5.sh: New file.
26284         * tests/test-exclude6.sh: New file.
26285         * tests/test-exclude7.sh: New file.
26286
26287 2009-08-12  Bruno Haible  <bruno@clisp.org>
26288
26289         Ensure that getopt() gets declared by <unistd.h>.
26290         * lib/unistd.in.h: Conditionally include getopt.h.
26291         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26292         Set GNULIB_UNISTD_H_GETOPT.
26293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26294         GNULIB_UNISTD_H_GETOPT.
26295         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26296
26297 2009-08-12  Bruno Haible  <bruno@clisp.org>
26298
26299         Clarify logic.
26300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26301         gl_replace_getopt instead of GETOPT_H.
26302
26303 2009-08-12  Bruno Haible  <bruno@clisp.org>
26304
26305         * m4/getopt.m4: Add comments.
26306
26307 2009-08-12  Bruno Haible  <bruno@clisp.org>
26308
26309         Disable multithread support by default on Cygwin 1.5.x.
26310         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26311         set gl_use_threads=no if not specified otherwise.
26312
26313 2009-08-11  Bruno Haible  <bruno@clisp.org>
26314
26315         Avoid compilation error on NetBSD 5.0.
26316         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26317         * tests/test-stdio.c: Likewise.
26318         * tests/test-stdlib.c: Likewise.
26319         * tests/test-string.c: Likewise.
26320         * tests/test-unistd.c: Likewise.
26321         Reported by Greg Troxel <gdt@ir.bbn.com>
26322         at <https://savannah.gnu.org/support/?106973>.
26323
26324 2009-08-11  Bruno Haible  <bruno@clisp.org>
26325
26326         * modules/dup2-tests (Depends-on): Remove close.
26327
26328         Undo 2009-07-19 commit.
26329         * modules/acl-tests (Depends-on): Remove close.
26330         * modules/binary-io-tests (Depends-on): Likewise.
26331         * modules/closein-tests (Depends-on): Likewise.
26332         * modules/flock-tests (Depends-on): Likewise.
26333         * modules/fsync-tests (Depends-on): Likewise.
26334         * modules/lseek-tests (Depends-on): Likewise.
26335         * modules/pipe-tests (Depends-on): Likewise.
26336         * modules/posix_spawn-tests (Depends-on): Likewise.
26337         * modules/posix_spawnp-tests (Depends-on): Likewise.
26338         * modules/stat-time-tests (Depends-on): Likewise.
26339         * modules/yesno-tests (Depends-on): Likewise.
26340
26341 2009-08-10  Bruno Haible  <bruno@clisp.org>
26342
26343         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26344
26345 2009-08-10  Bruno Haible  <bruno@clisp.org>
26346
26347         Fix a gcc warning.
26348         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26349
26350 2009-08-10  Bruno Haible  <bruno@clisp.org>
26351
26352         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26353         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26354         not only the first time.
26355         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26356         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26357         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26358         is 1, not only the the first time.
26359
26360 2009-08-10  Bruno Haible  <bruno@clisp.org>
26361
26362         Make it possible to use module 'gethostname' without module 'close'.
26363         * lib/unistd.in.h (close): Evoke a link error only if
26364         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26366         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26367         * modules/unistd (Makefile.am): Substitute
26368         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26369         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26370         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26371         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26372         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26373         * modules/sys_ioctl (Makefile.am): Substitute
26374         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26375         * modules/socket (configure.ac): On native Windows, set
26376         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26377         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26378         Reported by Sam Steingold <sds@gnu.org>.
26379
26380 2009-08-10  Bruno Haible  <bruno@clisp.org>
26381
26382         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26383         * modules/ioctl (configure.ac): Likewise.
26384
26385 2009-08-10  Bruno Haible  <bruno@clisp.org>
26386
26387         Avoid collision between gnulib wrapper and libintl wrapper.
26388         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26389         already defined in intl/printf.c.
26390         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26391         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26392
26393 2009-08-09  Bruno Haible  <bruno@clisp.org>
26394
26395         Make <sys/select.h> really self-contained, also on Solaris 10.
26396         * lib/sys_select.in.h: Include <string.h>.
26397         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26398         Solaris 10 problem.
26399         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26400         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26401         Reported by Jim Meyering.
26402
26403 2009-08-09  Bruno Haible  <bruno@clisp.org>
26404
26405         Avoid warnings from 'aclocal' that are due to a use of macro name
26406         AM_XGETTEXT_OPTION that is not defined in automake.
26407         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26408         automake.
26409         * modules/error (configure.ac): Likewise.
26410         * modules/propername (configure.ac): Likewise.
26411         * modules/vasprintf (configure.ac): Likewise.
26412         * modules/verror (configure.ac): Likewise.
26413         * modules/xprintf (configure.ac): Likewise.
26414         * modules/xvasprintf (configure.ac): Likewise.
26415
26416 2009-08-08  Bruno Haible  <bruno@clisp.org>
26417
26418         Avoid compilation error in C++ mode.
26419         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26420         Reported by Sam Steingold <sds@gnu.org>.
26421
26422 2009-08-08  Bruno Haible  <bruno@clisp.org>
26423
26424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26425         for the various Unix platforms.
26426         * doc/posix-headers/limits.texi: Update platforms list regarding
26427         HOST_NAME_MAX.
26428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26429
26430 2009-08-07  Jim Meyering  <meyering@redhat.com>
26431
26432         selinux-at: fix typo in a comment
26433         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26434         Spotted by Paolo Bonzini.
26435
26436         selinux-at: remove redundant m4 code, add documentation
26437         * modules/selinux-at (configure.ac): Remove redundant code.
26438         LIB_SELINUX is already set via the dependent module, selinux-h.
26439         (Include): Add quotes around selinux-at.h.
26440         * lib/selinux-at.h: Add documentation.
26441         Reported by Bruno Haible in
26442         http://marc.info/?l=gnulib-bug&m=124958988300749
26443
26444 2009-08-07  Bruno Haible  <bruno@clisp.org>
26445
26446         Avoid link error on MacOS X 10.3 and 10.4.
26447         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26448         on non-ELF systems.
26449         * lib/argp-pv.c (argp_program_version): Likewise.
26450         Reported by Simon Josefsson.
26451
26452 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26453
26454         * tests/test-version-etc.sh: Use $EXEEXT.
26455
26456 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26457
26458         update-copyright: update documentation to point to maint.mk
26459         * build-aux/update-copyright: Here.
26460
26461 2009-08-06  Jim Meyering  <meyering@redhat.com>
26462
26463         maint.mk: support update-copyright-local
26464         * top/maint.mk (update-copyright-local): Define place-holder.
26465         (update-copyright): Depend on $(update-copyright-local).
26466
26467 2009-08-06  Jim Meyering  <meyering@redhat.com>
26468
26469         selinux-at: new module
26470         Initially written for coreutils, this module will soon be
26471         used by findutils, too.
26472         * MODULES.html.sh [Misc]: Add selinux-at.
26473         * lib/selinux-at.h: New file, from coreutils.
26474         * lib/selinux-at.c: Likewise.
26475         * modules/selinux-at: Likewise.
26476         (License): Change from LGPL to GPL, since it depends
26477         on the GPL'd openat module.
26478
26479         doc: update README
26480         * README: Remove references to cogito.
26481         Remove cvs-repo-updating instructions from 2007.
26482         Don't imply that CVS is better if you have limited disk space.
26483
26484 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26485
26486         update-copyright: support C-style comments
26487         * build-aux/update-copyright: Implement and document.
26488         * tests/test-update-copyright.sh: Test.
26489
26490 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26491
26492         update-copyright: support omitted "(C)"
26493         * build-aux/update-copyright: Implement and document.  Also,
26494         allow variable whitespace before "(C)".
26495         * tests/test-update-copyright.sh: Test.
26496
26497 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26498
26499         update-copyright: don't trip on non-FSF copyright statements
26500         * build-aux/update-copyright: Fix so that the first correctly
26501         formatted FSF copyright statement is recognized no matter what
26502         appears before it.  Update documentation.
26503         * tests/test-update-copyright.sh: Test that.
26504
26505 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26506
26507         update-copyright: clean up code a little
26508         * build-aux/update-copyright: Append "_re" to the name of any
26509         variable holding a regular expression.
26510         Replace "old" and "new" with "stmt" in variable names.
26511         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26512         handled correctly.
26513         Format code more consistently.
26514
26515 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26516
26517         update-copyright-tests: improve portability
26518         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26519         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26520
26521 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26522
26523         update-copyright: support @copyright{} and &copy;
26524         * build-aux/update-copyright: Implement and document.
26525         * tests/test-update-copyright.sh: Test.
26526
26527 2009-08-04  Jim Meyering  <meyering@redhat.com>
26528
26529         update-copyright-tests: correctly test EOL=\r\n handling
26530         * tests/test-update-copyright.sh: Put \r at the end of some lines
26531         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26532
26533         maint.mk: make update-copyright exclusion list more configurable
26534         * top/maint.mk (update-copyright): Default to excluding COPYING,
26535         but allow an override, in case someone does want to update that file.
26536
26537         maint.mk: don't update copyright date in COPYING
26538         * top/maint.mk (update-copyright): Exclude COPYING.
26539
26540         maint.mk: add a copyright-updating rule
26541         * top/maint.mk (update-copyright): New rule.
26542         Derived from coreutils/Makefile.am.
26543
26544         update-copyright: rename some variables
26545         * build-aux/update-copyright: Rename a few variables for clarity.
26546         Tweak syntax.  List Joel E. Denny as coauthor.
26547
26548 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26549
26550         update-copyright: fix bug for 2-digit last year and add tests
26551         * build-aux/update-copyright: Fix bug.
26552         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26553         specified.
26554         * modules/update-copyright-tests: New
26555         * tests/test-update-copyright.sh: New.
26556
26557 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26558
26559         update-copyright: handle leading tabs in line prefix
26560         * build-aux/update-copyright: Count leading tabs as 8 spaces
26561         when computing margin.  This helps with the formatting of
26562         ChangeLogs, for example.
26563         Fix documentation a little.
26564
26565 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26566
26567         update-copyright: support EOL=\r\n
26568         * build-aux/update-copyright: Implement that.
26569
26570 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26571
26572         update-copyright: automatically format copyright statements
26573         * build-aux/update-copyright: Implement that.
26574         Also, be a little more predictable and safer by always failing
26575         when the full copyright format is not perfectly recognized as an
26576         unbroken whole.  Discussed at
26577         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26578         Rewrite documentation.
26579
26580 2009-08-03  Bruno Haible  <bruno@clisp.org>
26581
26582         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26583
26584 2009-08-02  Bruno Haible  <bruno@clisp.org>
26585
26586         Tests for module 'uname'.
26587         * modules/uname-tests: New file.
26588         * tests/test-uname.c: New file.
26589
26590         New module 'uname'.
26591         * lib/uname.c: New file.
26592         * m4/uname.m4: New file.
26593         * modules/uname: New file.
26594         * doc/posix-functions/uname.texi: Mention the new module.
26595
26596 2009-08-02  Bruno Haible  <bruno@clisp.org>
26597
26598         Tests for module 'sys_utsname'.
26599         * modules/sys_utsname-tests: New file.
26600         * tests/test-sys_utsname.c: New file.
26601
26602         New module 'sys_utsname'.
26603         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26604         * m4/sys_utsname_h.m4: New file.
26605         * modules/sys_utsname: New file.
26606         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26607
26608 2009-08-02  Bruno Haible  <bruno@clisp.org>
26609
26610         Implicitly initialize the sockets library.
26611         * lib/gethostname.c: Include sockets.h.
26612         (rpl_gethostname): Invoke gl_sockets_startup.
26613         * lib/socket.c: Include sockets.h.
26614         (rpl_socket): Invoke gl_sockets_startup.
26615         * modules/gethostname (Depends-on): Add sockets.
26616         * modules/socket (Depends-on): Likewise.
26617         * tests/test-poll.c: Don't include sockets.h.
26618         (main): Don't invoke gl_sockets_startup.
26619         * tests/test-select.c: Don't include sockets.h.
26620         (main): Don't invoke gl_sockets_startup.
26621
26622 2009-08-02  Bruno Haible  <bruno@clisp.org>
26623
26624         Allow multiple calls to gl_sockets_startup.
26625         * lib/sockets.c (initialized_sockets_version): New variable.
26626         (gl_sockets_startup): Do nothing if already called for this or a higher
26627         version.
26628         (gl_sockets_cleanup): Reset initialized_sockets_version.
26629
26630 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26631
26632         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26633         different project/version.
26634
26635 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26636             Bruno Haible  <bruno@clisp.org>
26637
26638         Tests for module 'pipe-filter-gi'.
26639         * modules/pipe-filter-gi-tests: New file.
26640         * tests/test-pipe-filter-gi1.sh: New file.
26641         * tests/test-pipe-filter-gi1.c: New file.
26642         * tests/test-pipe-filter-gi2.sh: New file.
26643         * tests/test-pipe-filter-gi2-main.c: New file.
26644         * tests/test-pipe-filter-gi2-child.c: New file.
26645
26646         New module 'pipe-filter-gi'.
26647         * lib/pipe-filter-gi.c: New file.
26648         * modules/pipe-filter-gi: New file.
26649
26650 2009-08-02  Bruno Haible  <bruno@clisp.org>
26651             Paolo Bonzini  <bonzini@gnu.org>
26652
26653         Tests for module 'pipe-filter-ii'.
26654         * modules/pipe-filter-ii-tests: New file.
26655         * tests/test-pipe-filter-ii1.sh: New file.
26656         * tests/test-pipe-filter-ii1.c: New file.
26657         * tests/test-pipe-filter-ii2.sh: New file.
26658         * tests/test-pipe-filter-ii2-main.c: New file.
26659         * tests/test-pipe-filter-ii2-child.c: New file.
26660
26661         New module 'pipe-filter-ii'.
26662         * lib/pipe-filter.h: New file.
26663         * lib/pipe-filter-ii.c: New file.
26664         * lib/pipe-filter-aux.h: New file.
26665         * modules/pipe-filter-ii: New file.
26666
26667 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26668
26669         * lib/gc-libgcrypt.c: Change copyright to FSF.
26670         * lib/gc-gnulib.c: Likewise.
26671
26672 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26673
26674         * lib/gethostname.c: Include limits.h.
26675
26676 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26677             Bruno Haible  <bruno@clisp.org>
26678
26679         Ensure HOST_NAME_MAX as part of the gethostname module.
26680         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26681         define also HOST_NAME_MAX.
26682         * tests/test-gethostname.c: Include <limits.h>.
26683         (main): Check also HOST_NAME_MAX.
26684         * doc/posix-headers/limits.texi: Document the mingw problem.
26685
26686 2009-08-02  Bruno Haible  <bruno@clisp.org>
26687
26688         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26689         Add comments.
26690
26691 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26692
26693         * lib/gethostname.c: Add Windows wrapper.
26694         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26695         * modules/gethostname: Depend on sys_socket & errno, for also
26696         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26697         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26698
26699 2009-07-31  Jim Meyering  <meyering@redhat.com>
26700
26701         getloadavg: fix symbol name in comment
26702         * lib/getloadavg.c: Correct a typo I introduced when adding
26703         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26704         Matt Kraai spotted the problem.
26705
26706 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26707
26708         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26709         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26710         code also if ! defined N_NAME_POINTER.
26711         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26712         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26713         but the n_name member is a 12-byte array.
26714
26715 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26716
26717         update-copyright: generalize comment handling
26718         * build-aux/update-copyright: Handle copyright statements
26719         within more comment styles.
26720         Document usage.
26721         Report any file with an external copyright holder or parse failure.
26722
26723 2009-07-29  Jim Meyering  <meyering@redhat.com>
26724
26725         mktime: correct setting of REPLACE_MKTIME
26726         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26727
26728         update-copyright: new module
26729         * modules/update-copyright: New file.
26730         * build-aux/update-copyright: New file.
26731         * MODULES.html.sh (maint+release support): Add update-copyright.
26732
26733 2009-07-27  Bruno Haible  <bruno@clisp.org>
26734
26735         Fix compilation error when <ctime> is used and mktime is replaced.
26736         * lib/time.in.h (mktime): New declaration.
26737         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26738         REPLACE_MKTIME instead of defining mktime in config.h.
26739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26740         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26741         Reported by Ross McFarland <rwmcfa1@neces.com>.
26742
26743 2009-07-27  Bruno Haible  <bruno@clisp.org>
26744
26745         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26746         Reported by Matt Kraai <mkraai@beckman.com>.
26747
26748 2009-07-25  Jim Meyering  <meyering@redhat.com>
26749
26750         maint.mk: avoid warnings about missing files
26751         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26752         diagnostic when .prev-version does not exist.
26753         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26754         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26755         nonexistent cfg.mk.
26756         Suggestions from Simon Josefsson.
26757
26758 2009-07-25  Bruno Haible  <bruno@clisp.org>
26759
26760         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26761         defined as macros. Needed on QNX 6.4.1.
26762         Reported by Matt Kraai <mkraai@beckman.com>.
26763
26764 2009-07-23  Jim Meyering  <meyering@redhat.com>
26765
26766         maint.mk: invoke "make dist" with a working value of XZ_OPT
26767         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26768
26769 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26770
26771         Make fseeko.c compile on QNX.
26772         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26773
26774 2009-07-22  Peter Simons  <simons@cryp.to>
26775
26776         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26777         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26778         * lib/md4.h: Likewise.
26779         * lib/md5.h: Likewise.
26780         * lib/sha1.h: Likewise.
26781         * lib/sha256.h: Likewise.
26782         * lib/sha512.h: Likewise.
26783
26784         tests-sha1: don't assign literal string to 'char *' variable
26785         * tests/test-sha1.c (main): Declare locals with "const" to match
26786         attributes of the right hand side.
26787
26788 2009-07-21  Eric Blake  <ebb9@byu.net>
26789
26790         dup2: fix more mingw problems
26791         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26792         fd to itself.
26793         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26794         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26795         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26796         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26797         care of mingw bugs.
26798
26799 2009-07-21  Jim Meyering  <meyering@redhat.com>
26800
26801         vc-list-files: avoid failure when /bin/sh is dash
26802         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26803         On some Debian based systems, /bin/sh is a symlink to dash, and running
26804         this command would omit the "/" following each 'tests' prefix:
26805           dash -x build-aux/vc-list-files -C . tests
26806         That is because bash and dash work differently:
26807           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26808           bash ok
26809           dash odd
26810
26811 2009-07-21  Eric Blake  <ebb9@byu.net>
26812
26813         dup2-tests: test previous patch
26814         * modules/dup2-tests: New file.
26815         * tests/test-dup2.c: Likewise.
26816         * tests/test-open.c (main): Avoid unspecified behavior.
26817         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26818         test.
26819
26820         dup2: work around mingw and cygwin 1.5 bug
26821         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26823         * modules/unistd (Makefile.am): Substitute it.
26824         * lib/unistd.in.h (dup2): Declare the replacement.
26825         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26826         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26827         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26828         * modules/execute (Depends-on): Add dup2.
26829         * modules/fseterr (Depends-on): Likewise.
26830         * modules/pipe (Depends-on): Likewise.
26831         * modules/posix_spawn-internal (Depends-on): Likewise.
26832
26833 2009-07-21  Bruno Haible  <bruno@clisp.org>
26834
26835         * modules/.gitattributes: New file.
26836
26837 2009-07-20  Bruno Haible  <bruno@clisp.org>
26838
26839         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26840         (main): Use it.
26841
26842 2009-07-20  Eric Blake  <ebb9@byu.net>
26843
26844         test-pipe: make a bit more robust.
26845         * tests/test-pipe.c (myerr): Allow error messages regardless of
26846         what we do to stderr.
26847         (test_pipe): Rearrange to avoid deadlock.
26848         (child_main): Try a larger read, to ensure we avoided deadlock.
26849         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26850         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26851         if misused.
26852
26853 2009-07-19  Jim Meyering  <meyering@redhat.com>
26854
26855         fts: avoid false-positive cycle-detection
26856         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26857         for each new command line argument.
26858
26859 2009-07-19  Bruno Haible  <bruno@clisp.org>
26860
26861         Fix build error on mingw with the modules sys_select and unistd.
26862         * modules/acl-tests (Depends-on): Add close.
26863         * modules/binary-io-tests (Depends-on): Likewise.
26864         * modules/closein-tests (Depends-on): Likewise.
26865         * modules/flock-tests (Depends-on): Likewise.
26866         * modules/fsync-tests (Depends-on): Likewise.
26867         * modules/lseek-tests (Depends-on): Likewise.
26868         * modules/pipe-tests (Depends-on): Likewise.
26869         * modules/posix_spawn-tests (Depends-on): Likewise.
26870         * modules/posix_spawnp-tests (Depends-on): Likewise.
26871         * modules/stat-time-tests (Depends-on): Likewise.
26872         * modules/yesno-tests (Depends-on): Likewise.
26873
26874 2009-07-19  Bruno Haible  <bruno@clisp.org>
26875
26876         Unify conditionals.
26877         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26878         macros, not at the compiler macros.
26879         * lib/pipe.c: Likewise.
26880         * lib/execute.c: Likewise.
26881         * lib/spawni.c: Likewise.
26882
26883 2009-07-19  Bruno Haible  <bruno@clisp.org>
26884
26885         Fix handling of closed stdin/stdout/stderr on mingw.
26886         * lib/w32spawn.h: Include unistd.h.
26887         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26888         file descriptor with O_NOINHERIT flag.
26889         (fd_safer_noinherit): New function, based on fd-safer.c.
26890         (dup_safer_noinherit): New function, based on dup-safer.c.
26891         (undup_safer_noinherit): New function.
26892         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26893         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26894         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26895         instead of fd_safer.
26896         * tests/test-pipe.c: Include <windows.h>.
26897         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26898
26899         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26900         from main.
26901         (test_pipe): Pass an extra argument for disambiguation.
26902         (main): Invoke parent_main or child_main.
26903
26904         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26905         consistently.
26906
26907 2009-07-18  Eric Blake  <ebb9@byu.net>
26908
26909         test-pipe: fix mingw build
26910         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26911
26912 2009-07-18  Bruno Haible  <bruno@clisp.org>
26913
26914         * modules/pipe-tests (Makefile.am): Fix typo.
26915
26916 2009-07-18  Eric Blake  <ebb9@byu.net>
26917
26918         error: fix mingw build
26919         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26920         Reported by Bruno Haible.
26921
26922         error: avoid undefined use of stdout
26923         * lib/error.c (error, error_at_line): Check that fd 1 is open
26924         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26925         is handling faults and the close_stdout module wants to report the
26926         detection of closed stdout as an error.
26927
26928 2009-07-17  Eric Blake  <ebb9@byu.net>
26929
26930         pipe: be robust in face of closed fds
26931         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26932         should cause child to misbehave.
26933         * modules/pipe-tests: New module.
26934         * tests/test-pipe.c: New file.
26935         * tests/test-pipe.sh: New file.
26936         Reported by Akim Demaille.
26937
26938 2009-07-14  Bruno Haible  <bruno@clisp.org>
26939
26940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26941         Reported by anonymous kc.
26942
26943 2009-07-07  Jim Meyering  <meyering@redhat.com>
26944
26945         maint.mk: don't look for translatable strings in *.m4 or *.mk
26946         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26947         when searching for translatable strings.
26948
26949 2009-07-05  Jim Meyering  <meyering@redhat.com>
26950
26951         remove superfluous parentheses in STREQ definition
26952         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26953         * lib/getugroups.c (STREQ): Likewise.
26954         * lib/fnmatch.c (STREQ): Likewise.
26955         Spotted by Bruno Haible.
26956
26957 2009-07-04  Jim Meyering  <meyering@redhat.com>
26958
26959         argv-iter: new module
26960         * MODULES.html.sh: Add argv-iter.
26961         * lib/argv-iter.c, lib/argv-iter.h: New files.
26962         * modules/argv-iter: New file.
26963         * modules/argv-iter-tests: New file.
26964         * tests/test-argv-iter.c: Test it.
26965
26966 2009-07-04  Bruno Haible  <bruno@clisp.org>
26967
26968         Fix assertion.
26969         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26970         contains more exact copies of a given entry than file2, leave the extra
26971         copies unpaired rather than aborting.
26972         Reported by Eric Blake.
26973
26974 2009-07-02  Bruno Haible  <bruno@clisp.org>
26975
26976         Speedup git-merge-changelog for git cherry-pick.
26977         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26978         (entries_mapping_get): New function, extracted from compute_mapping.
26979         (entries_mapping_reverse_get): New function.
26980         (compute_mapping): Add a 'full' argument. Return the result in a
26981         'struct entries_mapping'.
26982         (main): Update. Access the mappings through entries_mapping_get.
26983         Reported by Eric Blake.
26984
26985 2009-07-02  Bruno Haible  <bruno@clisp.org>
26986
26987         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26988         best_i.
26989
26990 2009-07-02  Bruno Haible  <bruno@clisp.org>
26991
26992         Speed up approximate search for matching ChangeLog entries.
26993         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26994         argument. Call fstrcmp_bounded instead of fstrcmp.
26995         (compute_mapping, try_split_merged_entry, main): Update callers.
26996
26997 2009-07-02  Bruno Haible  <bruno@clisp.org>
26998
26999         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27000
27001 2009-06-30  Bruno Haible  <bruno@clisp.org>
27002
27003         Reduce the number of uc_is_cased calls.
27004         * lib/unicase.h (casing_suffix_context_t): Add
27005         'first_char_except_ignorable' field.
27006         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27007         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27008         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27009         Update initializer.
27010         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27011         case-ignorable characters.
27012         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27013         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27014         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27015         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27016         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27017
27018 2009-06-30  Bruno Haible  <bruno@clisp.org>
27019
27020         Tests for module 'unicase/ignorable'.
27021         * modules/unicase/ignorable-tests: New file.
27022         * tests/unicase/test-ignorable.c: New file, generated by
27023         gen-uni-tables.
27024
27025         Tests for module 'unicase/cased'.
27026         * modules/unicase/cased-tests: New file.
27027         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27028         * tests/unicase/test-predicate-part1.h: New file, derived from
27029         tests/unictype/test-predicate-part1.h.
27030         * tests/unicase/test-predicate-part2.h: New file, same as
27031         tests/unictype/test-predicate-part2.h.
27032
27033         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27034         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27035         (output_casing_properties): New function.
27036         (main): Call it.
27037         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27038         * lib/unicase/cased.c: Include unictype/bitmap.h.
27039         (uc_is_cased): Define through a bitmap lookup.
27040         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27041         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27042         (uc_is_case_ignorable): Define through a bitmap lookup.
27043         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27044         lib/unictype/bitmap.h.
27045         (Depends-on): Add inline. Clean up.
27046         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27047         lib/unictype/bitmap.h.
27048         (Depends-on): Add inline. Clean up.
27049         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27050         recognition.
27051         * tests/unicase/test-u16-tolower.c (main): Likewise.
27052         * tests/unicase/test-u32-tolower.c (main): Likewise.
27053
27054 2009-06-30  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27057         * lib/unicase/u16-casemap.c: Likewise.
27058         * lib/unicase/u32-casemap.c: Likewise.
27059
27060 2009-06-29  Bruno Haible  <bruno@clisp.org>
27061
27062         Define u32_casefold as a wrapper around u32_ct_casefold.
27063         * lib/unicase/u32-casefold.c: Update.
27064         * modules/unicase/u32-casefold (Depends-on): Add
27065         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27066         unicase/empty-suffix-context. Clean up.
27067
27068         Define u16_casefold as a wrapper around u16_ct_casefold.
27069         * lib/unicase/u16-casefold.c: Update.
27070         * modules/unicase/u16-casefold (Depends-on): Add
27071         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27072         unicase/empty-suffix-context. Clean up.
27073
27074         Define u8_casefold as a wrapper around u8_ct_casefold.
27075         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27076         * lib/unicase/u8-casefold.c: Update.
27077         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27078         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27079
27080         Define u32_totitle as a wrapper around u32_ct_totitle.
27081         * lib/unicase/u32-totitle.c: Update.
27082         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27083         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27084
27085         Define u16_totitle as a wrapper around u16_ct_totitle.
27086         * lib/unicase/u16-totitle.c: Update.
27087         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27088         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27089
27090         Define u8_totitle as a wrapper around u8_ct_totitle.
27091         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27092         functions.
27093         (FUNC): Delegate to U_CT_TOTITLE.
27094         * lib/unicase/u8-totitle.c: Update.
27095         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27096         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27097
27098         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27099         invocation.
27100         * modules/unicase/u32-tolower (Depends-on): Add
27101         unicase/empty-prefix-context, unicase/empty-suffix-context.
27102
27103         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27104         invocation.
27105         * modules/unicase/u16-tolower (Depends-on): Add
27106         unicase/empty-prefix-context, unicase/empty-suffix-context.
27107
27108         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27109         * modules/unicase/u8-tolower (Depends-on): Add
27110         unicase/empty-prefix-context, unicase/empty-suffix-context.
27111
27112         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27113         invocation.
27114         * modules/unicase/u32-toupper (Depends-on): Add
27115         unicase/empty-prefix-context, unicase/empty-suffix-context.
27116
27117         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27118         invocation.
27119         * modules/unicase/u16-toupper (Depends-on): Add
27120         unicase/empty-prefix-context, unicase/empty-suffix-context.
27121
27122         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27123         * modules/unicase/u8-toupper (Depends-on): Add
27124         unicase/empty-prefix-context, unicase/empty-suffix-context.
27125
27126         New module 'unicase/u32-ct-casefold'.
27127         * lib/unicase/u32-ct-casefold.c: New file.
27128         * modules/unicase/u32-ct-casefold: New file.
27129
27130         New module 'unicase/u16-ct-casefold'.
27131         * lib/unicase/u16-ct-casefold.c: New file.
27132         * modules/unicase/u16-ct-casefold: New file.
27133
27134         New module 'unicase/u8-ct-casefold'.
27135         * lib/unicase/u8-ct-casefold.c: New file.
27136         * lib/unicase/u-ct-casefold.h: New file, derived from
27137         lib/unicase/u-casefold.h.
27138         * modules/unicase/u8-ct-casefold: New file.
27139
27140         New module 'unicase/u32-ct-totitle'.
27141         * lib/unicase/u32-ct-totitle.c: New file.
27142         * modules/unicase/u32-ct-totitle: New file.
27143
27144         New module 'unicase/u16-ct-totitle'.
27145         * lib/unicase/u16-ct-totitle.c: New file.
27146         * modules/unicase/u16-ct-totitle: New file.
27147
27148         New module 'unicase/u8-ct-totitle'.
27149         * lib/unicase/u8-ct-totitle.c: New file.
27150         * lib/unicase/u-ct-totitle.h: New file, derived from
27151         lib/unicase/u-totitle.h.
27152         * modules/unicase/u8-ct-totitle: New file.
27153
27154         New module 'unicase/u32-ct-tolower'.
27155         * lib/unicase/u32-ct-tolower.c: New file.
27156         * modules/unicase/u32-ct-tolower: New file.
27157
27158         New module 'unicase/u16-ct-tolower'.
27159         * lib/unicase/u16-ct-tolower.c: New file.
27160         * modules/unicase/u16-ct-tolower: New file.
27161
27162         New module 'unicase/u8-ct-tolower'.
27163         * lib/unicase/u8-ct-tolower.c: New file.
27164         * modules/unicase/u8-ct-tolower: New file.
27165
27166         New module 'unicase/u32-ct-toupper'.
27167         * lib/unicase/u32-ct-toupper.c: New file.
27168         * modules/unicase/u32-ct-toupper: New file.
27169
27170         New module 'unicase/u16-ct-toupper'.
27171         * lib/unicase/u16-ct-toupper.c: New file.
27172         * modules/unicase/u16-ct-toupper: New file.
27173
27174         New module 'unicase/u8-ct-toupper'.
27175         * lib/unicase/u8-ct-toupper.c: New file.
27176         * modules/unicase/u8-ct-toupper: New file.
27177
27178         Add context arguments to u*_casemap functions.
27179         * lib/unicase/unicasemap.h: Include unicase.h.
27180         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27181         suffix_context arguments.
27182         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27183         functions.
27184         (FUNC): Add prefix_context and suffix_context arguments. Use
27185         uc_is_cased and uc_is_case_ignorable.
27186         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27187         * lib/unicase/u16-casemap.c: Likewise.
27188         * lib/unicase/u32-casemap.c: Likewise.
27189         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27190         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27191         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27192         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27193         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27194         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27195
27196         New module 'unicase/u32-suffix-context'.
27197         * lib/unicase/u32-suffix-context.c: New file.
27198         * modules/unicase/u32-suffix-context: New file.
27199
27200         New module 'unicase/u16-suffix-context'.
27201         * lib/unicase/u16-suffix-context.c: New file.
27202         * modules/unicase/u16-suffix-context: New file.
27203
27204         New module 'unicase/u8-suffix-context'.
27205         * lib/unicase/u8-suffix-context.c: New file.
27206         * lib/unicase/u-suffix-context.h: New file.
27207         * modules/unicase/u8-suffix-context: New file.
27208
27209         New module 'unicase/empty-suffix-context'.
27210         * lib/unicase/empty-suffix-context.c: New file.
27211         * modules/unicase/empty-suffix-context: New file.
27212
27213         New module 'unicase/u32-prefix-context'.
27214         * lib/unicase/u32-prefix-context.c: New file.
27215         * modules/unicase/u32-prefix-context: New file.
27216
27217         New module 'unicase/u16-prefix-context'.
27218         * lib/unicase/u16-prefix-context.c: New file.
27219         * modules/unicase/u16-prefix-context: New file.
27220
27221         New module 'unicase/u8-prefix-context'.
27222         * lib/unicase/u8-prefix-context.c: New file.
27223         * lib/unicase/u-prefix-context.h: New file.
27224         * lib/unicase/context.h: New file.
27225         * modules/unicase/u8-prefix-context: New file.
27226
27227         New module 'unicase/empty-prefix-context'.
27228         * lib/unicase/empty-prefix-context.c: New file.
27229         * modules/unicase/empty-prefix-context: New file.
27230
27231         New module 'unicase/ignorable'.
27232         * lib/unicase/ignorable.c: New file.
27233         * modules/unicase/ignorable: New file.
27234
27235         New module 'unicase/cased'.
27236         * lib/unicase/caseprop.h: New file.
27237         * lib/unicase/cased.c: New file.
27238         * modules/unicase/cased: New file.
27239
27240         New functions for case mapping of substrings.
27241         * lib/unicase.h (casing_prefix_context_t): New type.
27242         (unicase_empty_prefix_context): New variable.
27243         (u8_casing_prefix_context, u16_casing_prefix_context,
27244         u32_casing_prefix_context, u8_casing_prefixes_context,
27245         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27246         declarations.
27247         (casing_suffix_context_t): New type.
27248         (unicase_empty_suffix_context): New variable.
27249         (u8_casing_suffix_context, u16_casing_suffix_context,
27250         u32_casing_suffix_context, u8_casing_suffixes_context,
27251         u16_casing_suffixes_context, u32_casing_suffixes_context,
27252         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27253         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27254         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27255         declarations.
27256
27257 2009-06-28  Jim Meyering  <meyering@redhat.com>
27258
27259         boostrap: indent only with spaces
27260         * build-aux/bootstrap: Indent only with spaces, never TABs.
27261
27262         bootstrap: split long lines
27263         * build-aux/bootstrap: Keep line length < 80.
27264
27265         bootstrap: sync from coreutils
27266         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27267         just as autoreconf does.  Verify a list of prerequisite
27268         package-name,version-number pairs if defined in bootstrap.conf.
27269         Refer to README-prereq, if prerequisites are not satisfied.
27270
27271 2009-06-27  Eric Blake  <ebb9@byu.net>
27272
27273         tests: add test for bogus NULL definition
27274         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27275         * tests/test-stdlib.c: Likewise.
27276         * tests/test-string.c: Likewise.
27277         * tests/test-locale.c: Likewise.
27278         * tests/test-unistd.c: Likewise.
27279         * modules/stdio-tests (Depends-on): Add verify.
27280         * modules/stdlib-tests (Depends-on): Likewise.
27281         * modules/string-tests (Depends-on): Likewise.
27282         * modules/locale-tests (Depends-on): Likewise.
27283         * modules/unistd-tests (Depends-on): Likewise.
27284
27285 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27286
27287         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27288         self-explaining comment.
27289         * m4/selinux-selinux-h: Update serial.
27290         (gl_LIBSELINUX): New macro, adding a warning for missing development
27291         packages to code extracted from...
27292         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27293         Add warning for missing development packages here, too.
27294
27295 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27296
27297         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27298
27299 2009-06-25  Eric Blake  <ebb9@byu.net>
27300
27301         version-etc: fix regression
27302         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27303         gcc.
27304         (version_etc): Use it, to catch bugs with trailing NULL.
27305         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27306         (version_etc_va): Fix logic bug.
27307         * modules/version-etc-tests: Add test.
27308         * tests/test-version-etc.c: New file.
27309         * tests/test-version-etc.sh: Likewise.
27310
27311 2009-06-25  Sam Steingold  <sds@gnu.org>
27312
27313         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27314         mbtowc declaration.
27315
27316 2009-06-25  Eric Blake  <ebb9@byu.net>
27317
27318         fpurge: migrate into <stdio.h>
27319         * lib/fpurge.h: Delete...
27320         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27321         * lib/fpurge.c (fpurge): Change declaring header.
27322         * modules/fpurge (Files): Drop deleted file.
27323         (Depends-on): Add stdio.
27324         (configure.ac): Set witness.
27325         * modules/stdio (Makefile.am): Support fpurge macros.
27326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27327         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27328         * lib/fflush.c: Update client.
27329         * tests/test-fpurge.c: Likewise.
27330         * NEWS: Mention the change.
27331
27332 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27333
27334         * lib/argp-version-etc.c (program_authors): Add const
27335         qualifier.
27336         * lib/version-etc.c: Fix typos in the comments.
27337         * modules/argp-version-etc: Depends on version-etc.
27338
27339 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27340
27341         argp-version-etc: new module.
27342
27343         * lib/argp-version-etc.c: New file.
27344         * lib/argp-version-etc.h: New file.
27345         * modules/argp-version-etc: New file.
27346         * modules/argp-version-etc-tests: New file.
27347         * tests/test-argp-version-etc.c: New test.
27348         * tests/test-argp-version-etc-1.sh: New test.
27349
27350 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27351
27352         Provide additional interfaces and documentation for version-etc
27353         module.
27354
27355         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27356         interfaces.
27357         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27358         prototypes.
27359
27360 2009-06-24  Bruno Haible  <bruno@clisp.org>
27361
27362         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27363         HAVE_LIB${NAME} macro.
27364         Reported by Sam Steingold <sds@gnu.org>.
27365
27366 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27367
27368         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27369         needed.
27370
27371 2009-06-21  Bruno Haible  <bruno@clisp.org>
27372
27373         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27374         work.
27375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27376         together with LIB${NAME}, LTLIB${NAME}.
27377         Reported by Sam Steingold <sds@gnu.org>.
27378
27379 2009-06-20  Jim Meyering  <meyering@redhat.com>
27380
27381         tests: make sc_require_test_exit_idiom more generic
27382         * top/maint.mk (Exit_witness_file): New overridable variable.
27383         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27384         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27385
27386 2009-06-19  Jim Meyering  <meyering@redhat.com>
27387
27388         hash: reverse order of src/dst parameters in an internal interface
27389         * lib/hash.c (transfer_entries): Reverse order of parameters to
27390         put DST before SRC.  Adjust callers.
27391
27392         tests: test-hash: avoid wholesale duplication
27393         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27394         Instead, use a loop and add a single conditional.
27395
27396         tests: test-hash: allow seed selection via a command line argument
27397         * tests/test-hash.c (get_seed): New function.
27398         (main): Use it.
27399
27400 2009-06-19  Eric Blake  <ebb9@byu.net>
27401
27402         hash: avoid memory leak on allocation failure
27403         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27404         failure.  Factor repeated algorithm...
27405         (transfer_entries): ...into new helper routine.
27406         (hash_delete): React to hash_rehash return value.
27407
27408         hash: reduce memory pressure in hash_rehash no-op case
27409         * lib/hash.c (next_prime): Avoid overflow.
27410         (hash_initialize): Factor bucket size computation...
27411         (compute_bucket_size): ...into new helper function.
27412         (hash_rehash): Use new function and open coding to reduce memory
27413         pressure, and avoid a memory leak in USE_OBSTACK code.
27414         Reported by Jim Meyering.
27415
27416 2009-06-18  Eric Blake  <ebb9@byu.net>
27417
27418         hash: make rotation more obvious
27419         * modules/hash (Depends-on): Add bitrotate and stdint.
27420         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27421         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27422         (SIZE_MAX): Rely on headers for definition.
27423         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27424         (raw_hasher): Use rotr_sz.
27425         Suggested by Jim Meyering.
27426
27427         hash: fix memory leak in last patch
27428         * lib/hash.c (hash_rehash): Avoid memory leak.
27429
27430         hash: avoid no-op rehashing
27431         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27432
27433         hash: provide default callback functions
27434         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27435         (hash_initialize): Use them as defaults.
27436         * tests/test-hash.c (main): Test this.
27437
27438         hash: minor optimization
27439         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27440         when possible.
27441         (hash_initialize): Document this promise.
27442         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27443         * tests/test-hash.c (hash_compare_strings): Test this.
27444
27445 2009-06-18  Bruno Haible  <bruno@clisp.org>
27446
27447         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27448         going to be replaced anyway.
27449
27450 2009-06-18  Bruno Haible  <bruno@clisp.org>
27451
27452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27453         in one place.
27454         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27455         be replaced anyway.
27456
27457 2009-06-18  Eric Blake  <ebb9@byu.net>
27458
27459         hash: check for resize before insertion
27460         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27461         threshold before insertion, so that a pathological hash_rehash
27462         that fills every bucket can still trigger another rehash.
27463
27464 2009-06-18  Jim Meyering  <meyering@redhat.com>
27465
27466         hash-tests: add a loop around the small tests
27467         * tests/test-hash.c (main): Repeat small tests with selected
27468         small initial table sizes.
27469
27470 2009-06-17  Eric Blake  <ebb9@byu.net>
27471
27472         hash: minor cleanups
27473         * lib/hash.h (hash_entry): Make opaque, by moving...
27474         * lib/hash.c (hash_entry): ...here.
27475         (hash_insert): Clarify restrictions on what can be inserted.
27476         (hash_get_next): Clarify when it is safe to remove an element
27477         during traversal.
27478         (check_tuning): Skip verification when tuning is known safe.
27479         (hash_initialize): Clarify restrictions on tuning.
27480
27481 2009-06-17  Jim Meyering  <jim@meyering.net>
27482         and Eric Blake  <ebb9@byu.net>
27483
27484         hash-tests: new module
27485         * modules/hash-tests: New file.
27486         * tests/test-hash.c: New file.
27487
27488 2009-06-17  Eric Blake  <ebb9@byu.net>
27489
27490         strstr-simple: document new module
27491         * MODULES.html.sh: Document new module.
27492
27493         strstr, strcasestr: replace on platforms with broken memchr
27494         * modules/strstr: Split into...
27495         * modules/strstr-simple: ...new module that does not care about
27496         performance, but does care about glibc bug.
27497         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27498         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27499         if platform memchr is broken, per Debian bug 521737.
27500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27501         memchr.
27502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27503         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27504         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27505         * modules/mountlist (Depends-on): Add strstr-simple.
27506         * modules/gen-uni-tables (Depends-on): Likewise.
27507         * modules/argz (Depends-on): Add strstr.
27508
27509 2009-06-17  Bruno Haible  <bruno@clisp.org>
27510
27511         * modules/posix_spawn-internal (Depends-on): Add errno.
27512
27513 2009-06-17  Bruno Haible  <bruno@clisp.org>
27514
27515         Define missing ESTALE on Interix 3.5.
27516         * lib/errno.in.h (ESTALE): Assign a value if missing.
27517         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27518         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27519         missing.
27520         * doc/posix-headers/errno.texi: Mention the Interix bug.
27521         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27522
27523 2009-06-15  Eric Blake  <ebb9@byu.net>
27524
27525         memchr, memchr2: add valgrind exception
27526         * lib/memchr.valgrind: New file.
27527         * lib/memchr2.valgrind: New file.
27528         * modules/memchr (Files): Distribute valgrind file.
27529         * modules/memchr2 (Files): Likewise.
27530
27531         docs: memchr is no longer obsolete
27532         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27533         * lib/string.in.h (memchr): Simplify logic.
27534
27535 2009-06-14  Jim Meyering  <meyering@redhat.com>
27536
27537         link-follow: fix the "checking..." message to not mention trailing slash
27538         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27539         never considered trailing slashes.
27540
27541 2009-06-14  Bruno Haible  <bruno@clisp.org>
27542
27543         * m4/memchr.m4: Mention also the bug on IA-64.
27544         * doc/posix-functions/memchr.texi: Likewise.
27545
27546 2009-06-12  Eric Blake  <ebb9@byu.net>
27547
27548         memchr: detect broken x86_64 and alpha implementations
27549         * modules/memchr-tests (Depends-on): Move mmap detection...
27550         * modules/memchr (Depends-on): ...here.
27551         (configure.ac): Set indicator.
27552         * lib/string.in.h (memchr): Declare replacement.
27553         * modules/string (Makefile.am): Trigger replacement.
27554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27555         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27556         bugs.
27557         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27558         * modules/getpagesize (License): Relax license.
27559
27560 2009-06-11  Bruno Haible  <bruno@clisp.org>
27561
27562         * lib/idpriv.h: Add more references.
27563
27564 2009-06-08  Bruno Haible  <bruno@clisp.org>
27565
27566         Tests for module 'idpriv-droptemp'.
27567         * modules/idpriv-droptemp-tests: New file.
27568         * tests/test-idpriv-droptemp.sh: New file.
27569         * tests/test-idpriv-droptemp.su.sh: New file.
27570         * tests/test-idpriv-droptemp.c: New file.
27571
27572         New module 'idpriv-droptemp'.
27573         * lib/idpriv-droptemp.c: New file.
27574         * modules/idpriv-droptemp: New file.
27575
27576 2009-06-08  Bruno Haible  <bruno@clisp.org>
27577
27578         Tests for module 'idpriv-drop'.
27579         * modules/idpriv-drop-tests: New file.
27580         * tests/test-idpriv-drop.sh: New file.
27581         * tests/test-idpriv-drop.su.sh: New file.
27582         * tests/test-idpriv-drop.c: New file.
27583
27584         New module 'idpriv-drop'.
27585         * lib/idpriv.h: New file.
27586         * lib-idpriv-drop.c: New file.
27587         * m4/idpriv.m4: New file.
27588         * modules/idpriv-drop: New file.
27589
27590 2009-06-08  Bruno Haible  <bruno@clisp.org>
27591
27592         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27593         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27594         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27595         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27596         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27597         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27599
27600 2009-06-08  Eric Blake  <ebb9@byu.net>
27601
27602         test-strstr: use memory fence, when possible
27603         * tests/test-strstr.c (main): Use memory fence, in order to be
27604         more likely to trigger Debian bug 521737.
27605         * modules/strstr-tests (Files): Pull in additional files.
27606
27607         memchr: no longer obsolete, for wider field testing
27608         * modules/memchr (Status, Notice): Delete, this module is no
27609         longer obsolete.
27610         * modules/vasnprintf (Depends-on): Add memchr.
27611
27612 2009-06-07  Jim Meyering  <meyering@redhat.com>
27613
27614         hash: declare some functions with the warn_unused_result attribute
27615         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27616
27617 2009-06-07  Bruno Haible  <bruno@clisp.org>
27618
27619         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27620         Reported by Eric Blake.
27621
27622 2009-06-06  Eric Blake  <ebb9@byu.net>
27623
27624         test-alignof: fix typo with long double
27625         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27626         compiler error.
27627
27628 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27629
27630         Escape non-texinfo { and }s.
27631         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27632         markup error.
27633
27634 2009-06-04  Jim Meyering  <meyering@redhat.com>
27635
27636         gitlog-to-changelog: don't infloop on an empty commit log
27637         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27638         Reported by Boris Petersen <transacid@centerim.org>.
27639
27640 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27641
27642         version-etc: extend for packagers
27643         Add three new configure options, intended for packagers:
27644           --with-packager="packager name"
27645           --with-packager-version="packager-specific version"
27646           --with-packager-bug-reports="packager bug reporting"
27647         An example with coreutils:
27648           $ ./configure \
27649             --with-packager=Gentoo \
27650             --with-packager-bug-report=http://bugs.gentoo.org/ \
27651             --with-packager-version="patchset 1.6"
27652           $ ./src/ls --version | head -n2
27653           ls (GNU coreutils) 7.1-dirty
27654           Packaged by Gentoo (patchset 1.6)
27655         Note that the bug reporting info via --help doesn't show up because
27656         coreutils uses its own custom emit_bug_reporting_address() implementation
27657         in src/system.h.  If it didn't, it'd look like:
27658           $ ./src/ls --help | tail -n4
27659           Report bugs to <bug-coreutils@gnu.org>.
27660           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27661           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27662           General help using GNU software: <http://www.gnu.org/gethelp/>.
27663         * lib/version-etc.c: Print new information, if provided.
27664         * m4/version-etc.m4: New file.
27665         * modules/version-etc (Files): Add m4/version-etc.m4.
27666         (configure.ac): Add gl_VERSION_ETC.
27667
27668 2009-05-31  Bruno Haible  <bruno@clisp.org>
27669
27670         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27671         and 'int64_t'.
27672         * modules/alignof-tests (Dependencies): Add stdint.
27673         Reported by Eric Blake.
27674
27675 2009-05-31  Bruno Haible  <bruno@clisp.org>
27676
27677         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27678         restriction due to compiler bugs.
27679         Reported by Eric Blake.
27680
27681 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27682             Bruno Haible  <bruno@clisp.org>
27683
27684         Fix test-alignof failure.
27685         * lib/alignof.h (alignof_slot): New macro.
27686         (alignof_type): New macro, with the same semantics as the previous
27687         'alignof'.
27688         (alignof): Alias to alignof_slot.
27689         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27690         check that the results are usable as constant expressions.
27691
27692 2009-05-31  Bruno Haible  <bruno@clisp.org>
27693
27694         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27695         * tests/test-memchr.c (main): Check that memchr does not read past the
27696         first occurrence of the byte.
27697         * tests/test-strstr.c (main): Update comment.
27698         Suggested by Eric Blake.
27699
27700 2009-05-30  Bruno Haible  <bruno@clisp.org>
27701
27702         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27703         detail how to use dumpbin.
27704         Reported by David Byron <dbyron@dbyron.com>.
27705
27706 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27707
27708         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27709
27710 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27711
27712         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27713
27714 2009-05-28  Bruno Haible  <bruno@clisp.org>
27715
27716         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27717         build-aux/ files.
27718
27719 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27720
27721         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27722
27723 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27724
27725         * gnulib-tool (sed_transform_main_lib_file)
27726         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27727         regexps.
27728
27729 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27730
27731         * tests/test-strstr.c: Add another self-test.
27732         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27733         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27734
27735 2009-05-23  Bruno Haible  <bruno@clisp.org>
27736
27737         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27738         change.
27739
27740 2009-05-21  Bruno Haible  <bruno@clisp.org>
27741
27742         Simplify use of mode_t varargs.
27743         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27744         uses 'mode_t' or 'int'.
27745         * lib/openat.c (openat): Likewise.
27746         * lib/open-safer.c (open_safer): Likewise.
27747         * m4/mode_t.m4: New file.
27748         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27749         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27751         * modules/open (Files): Add m4/mode_t.m4.
27752         * modules/openat (Files): Likewise.
27753         * modules/fcntl-safer (Files): Likewise.
27754         Suggested by Eric Blake.
27755
27756 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27757
27758         * doc/glibc-functions/fallocate.texi: New file.
27759         * doc/gnulib.texi: Include it.
27760
27761 2009-05-21  Eric Blake  <ebb9@byu.net>
27762             Bruno Haible  <bruno@clisp.org>
27763
27764         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27765         invocations.
27766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27767
27768 2009-05-21  Eric Blake  <ebb9@byu.net>
27769             Bruno Haible  <bruno@clisp.org>
27770
27771         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27772         include_next. Fix of 2008-11-20 commit.
27773         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27774         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27775         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27776         NEXT_MATH_H.
27777         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27778         instead of NEXT_MATH_H.
27779
27780 2009-05-21  Bruno Haible  <bruno@clisp.org>
27781
27782         Avoid redefinition warnings for SIZE_MAX.
27783         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27784         Reported by Simon Josefsson.
27785
27786 2009-05-21  Bruno Haible  <bruno@clisp.org>
27787
27788         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27789         AC_CACHE_VAL.
27790
27791 2009-05-20  Bruno Haible  <bruno@clisp.org>
27792
27793         Make zeroptr.h work on mingw.
27794         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27795         mprotect.
27796         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27797         * modules/memchr2-tests (configure.ac): Likewise.
27798         * modules/memcmp-tests (configure.ac): Likewise.
27799         * modules/memmem-tests (configure.ac): Likewise.
27800         * modules/memrchr-tests (configure.ac): Likewise.
27801         Reported by Simon Josefsson.
27802
27803 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27804
27805         * tests/test-glob.c: Include string.h for strcmp prototype.
27806
27807 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27808
27809         * modules/getdelim (Depends-on): Add explicit stdint, although it
27810         was implicitly already pulled in via realloc-posix.
27811         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27812
27813 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27814
27815         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27816         G. Christensen" <tgc@jupiterrise.com>.
27817         * m4/sys_socket_h.m4: Check for sa_family_t.
27818         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27819         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27820         * tests/test-sys_socket.c: Check that sa_family_t works.
27821
27822 2009-05-18  Eric Blake  <ebb9@byu.net>
27823
27824         maint.mk: allow gnulib_dir in VPATH build
27825         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27826
27827 2009-05-15  Jim Meyering  <meyering@redhat.com>
27828
27829         maint.mk: Give gnulib_dir a default definition.
27830         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27831         Thus, most packages no longer need to specify this variable in cfg.mk
27832
27833 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27834
27835         rename.m4: fix typos that would make non-mingw cross-configure fail
27836         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27837
27838 2009-05-13  Eric Blake  <ebb9@byu.net>
27839
27840         mmap-anon: avoid out-of-order autoconf expansion
27841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27842         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27843         * modules/memchr-tests (Depends-on): Add extensions.
27844         * modules/memchr2-tests (Depends-on): Add extensions.
27845         * modules/memcmp-tests (Depends-on): Add extensions.
27846         * modules/memmem-tests (Depends-on): Add extensions.
27847         * modules/memrchr-tests (Depends-on): Add extensions.
27848
27849 2009-05-13  Bruno Haible  <bruno@clisp.org>
27850
27851         Make some tests ISO C 99 compliant.
27852         * tests/zerosize-ptr.h: New file.
27853         * tests/test-memchr.c: Include zerosize-ptr.h.
27854         (main): Use a zero-size object pointer instead of NULL.
27855         * tests/test-memchr2.c: Include zerosize-ptr.h.
27856         (main): Use a zero-size object pointer instead of NULL.
27857         * tests/test-memcmp.c: Include zerosize-ptr.h.
27858         (main): Use a zero-size object pointer instead of NULL.
27859         * tests/test-memmem.c: Include zerosize-ptr.h.
27860         (main): Use a zero-size object pointer instead of NULL.
27861         * tests/test-memrchr.c: Include zerosize-ptr.h.
27862         (main): Use a zero-size object pointer instead of NULL.
27863         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27864         m4/mmap-anon.m4.
27865         (Depends-on): Add getpagesize.
27866         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27867         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27868         m4/mmap-anon.m4.
27869         (Depends-on): Add getpagesize.
27870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27871         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27872         m4/mmap-anon.m4.
27873         (Depends-on): Add getpagesize.
27874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27875         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27876         m4/mmap-anon.m4.
27877         (Depends-on): Add getpagesize.
27878         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27879         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27880         m4/mmap-anon.m4.
27881         (Depends-on): Add getpagesize.
27882         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27883
27884 2009-05-12  Bruno Haible  <bruno@clisp.org>
27885
27886         Tests for module 'alignof'.
27887         * modules/alignof-tests: New file.
27888         * tests/test-alignof.c: New file.
27889
27890 2009-05-12  Bruno Haible  <bruno@clisp.org>
27891
27892         Fix alignof macro.
27893         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27894         vendor compilers that are always correct.
27895
27896 2009-05-12  Bruno Haible  <bruno@clisp.org>
27897
27898         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27899         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27900         not whether its fully works.
27901
27902 2009-05-12  Bruno Haible  <bruno@clisp.org>
27903
27904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27905
27906 2009-05-12  Jim Meyering  <meyering@redhat.com>
27907
27908         * top/maint.mk: Adjust backslash alignment.
27909
27910 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27911
27912         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27913
27914 2009-05-11  Eric Blake  <ebb9@byu.net>
27915
27916         argp: avoid undefined behavior
27917         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27918         macros.
27919
27920 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27921
27922         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27923         user.name to prevent git commit from complaining.
27924
27925 2009-05-10  Bruno Haible  <bruno@clisp.org>
27926
27927         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27928         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27929         it rewrites every file name only once.
27930         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27931
27932 2009-05-08  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27935         instead of 'max'.
27936
27937 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27938
27939         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27940         sockaddr_storage test.
27941
27942 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27943
27944         * modules/sys_socket (Makefile.am): Substitute
27945         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27946         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27947         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27948         * tests/test-sys_socket.c: Check sockaddr_storage.
27949
27950 2009-05-08  Bruno Haible  <bruno@clisp.org>
27951
27952         New module 'alignof'.
27953         * lib/alignof.h: New file.
27954         * modules/alignof: New file.
27955
27956 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27957             Bruno Haible  <bruno@clisp.org>
27958
27959         Fix test-file-has-acl on FreeBSD.
27960         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27961         mask is implicitly added.
27962         * tests/test-file-has-acl.c: Include <signal.h>.
27963         (main): Terminate the test after 5 seconds.
27964         * modules/acl-tests (configure.ac): Check for alarm function.
27965
27966 2009-05-04  Bruno Haible  <bruno@clisp.org>
27967
27968         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27970         * modules/errno (configure.ac): Drop AC_REQUIRE.
27971         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27972         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27973
27974 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27975
27976         * modules/glob-tests: New module.
27977         * tests/test-glob.c: Add.
27978
27979 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27980
27981         * modules/fnmatch-tests: New module.
27982         * tests/test-fnmatch.c: Add.
27983
27984 2009-05-04  Eric Blake  <ebb9@byu.net>
27985
27986         maint: make the new no-submodule-changes rule VPATH-safe
27987         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27988
27989 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27990             Bruno Haible  <bruno@clisp.org>
27991
27992         acl: Fix infinite loop on FreeBSD.
27993         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27994         of return value from acl_get_entry.
27995         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27996         Likewise.
27997
27998 2009-05-03  Bruno Haible  <bruno@clisp.org>
27999
28000         * lib/acl-internal.h (acl_entries): Clarify return value.
28001         * lib/acl_entries.c (acl_entries): Likewise.
28002
28003 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28004
28005         Bug fix in acl module.
28006         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28007
28008 2009-05-03  Bruno Haible  <bruno@clisp.org>
28009
28010         Create gperf-generated file in the source dir, not in the build dir.
28011         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28012         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28013         * modules/unicase/locale-language (unicase/locale-languages.h):
28014         Likewise.
28015         * modules/unicase/special-casing (unicase/special-casing-table.h):
28016         Likewise.
28017         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28018         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28019         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28020         Reported by Ralf Wildenhues.
28021
28022 2009-05-03  Bruno Haible  <bruno@clisp.org>
28023
28024         * modules/fnmatch (Description, configure.ac): Taken from
28025         fnmatch-posix.
28026         * modules/fnmatch-posix: Turn into a symbolic reference to the
28027         'fnmatch' module, and deprecate.
28028         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28029
28030 2009-05-03  Bruno Haible  <bruno@clisp.org>
28031
28032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28033         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28034         Reported by Ralf Wildenhues.
28035
28036 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28037
28038         * m4/fnmatch.m4: Fix fnmatch re-define.
28039
28040 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28041
28042         priv-set: new module and tests; adapt write-any-file
28043         * lib/priv-set.c: New file.
28044         * lib/priv-set.h: New file.
28045         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28046         * lib/write-any-file.c: Simplify by using priv-set module.
28047         * m4/priv-set.m4: New file.
28048         * modules/priv-set: New file.
28049         * modules/unlinkdir: Add dependency on priv-set module.
28050         * modules/write-any-file: Likewise.
28051
28052         Tests for module 'priv-set'.
28053         * modules/priv-set-tests: New file.
28054         * tests/test-priv-set.c: New file.
28055
28056 2009-05-03  Jim Meyering  <meyering@redhat.com>
28057             Bruno Haible  <bruno@clisp.org>
28058
28059         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28060         use the converted UTF-8 variant of the name instead.
28061
28062 2009-05-03  Jim Meyering  <meyering@redhat.com>
28063
28064         tests: tighten some getdate tests
28065         * tests/test-getdate.c (main): Tighten tests: require equality,
28066         not just greater than.  Set TZ envvar to UTC0.
28067
28068 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28069
28070         getdate: correctly interpret "next monday" when run on a Monday
28071         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28072         that e.g., "next tues" (when run on a tuesday) results in a date
28073         that is one week in the future, and not today's date.
28074         I.e., add a week when the wday is the same as the current one.
28075         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28076         and earlier by Martin Bernreuther and Jan Minář.
28077         * tests/test-getdate.c (main): Check that "next DAY" is always in
28078         the future and that "last DAY" is always in the past.
28079
28080 2009-05-02  Jim Meyering  <meyering@redhat.com>
28081
28082         build: ensure that a release build fails when a submodule is unclean
28083         * top/maint.mk (no-submodule-changes): New rule.
28084         (alpha beta major): Depend on it.
28085
28086 2009-05-02  Bruno Haible  <bruno@clisp.org>
28087
28088         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28089         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28090         shell variable gl_fnmatch_required to detect which variant is
28091         requested.
28092         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28093         gl_FUNC_FNMATCH_POSIX.
28094         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28095         exclude fnmatch-posix.
28096
28097 2009-05-02  Bruno Haible  <bruno@clisp.org>
28098
28099         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28100         * modules/mbsrtowcs (License): Change to LGPLv2+.
28101         * modules/strnlen1 (License): Likewise.
28102         Reported by Simon Josefsson.
28103
28104 2009-05-02  Bruno Haible  <bruno@clisp.org>
28105
28106         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28107         "cross".
28108         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28109         gnulib-tool was called with option --source-base=lib.
28110
28111 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28112
28113         Use automake *-local hooks without commands, for extensibility.
28114         * modules/localcharset (Makefile.am): Rename install-exec-local
28115         rule to install-exec-localcharset, and make it a prerequisite of
28116         install-exec-local.  Likewise, rename the uninstall-local rule to
28117         uninstall-localcharset, and make it a prerequisite of the former.
28118
28119 2009-05-01  Bruno Haible  <bruno@clisp.org>
28120
28121         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28122         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28123         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28125         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28126         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28127         m4/locale-zh.m4, m4/codeset.m4.
28128
28129         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28130         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28131         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28132         m4/locale-zh.m4.
28133
28134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28135         REPLACE_WCRTOMB if mbstate_t must be replaced.
28136         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28137         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28138
28139 2009-05-01  Bruno Haible  <bruno@clisp.org>
28140
28141         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28142         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28143         dngettext, dcngettext, textdomain, bindtextdomain,
28144         bind_textdomain_codeset): Undefine before redefining.
28145
28146 2009-04-30  Bruno Haible  <bruno@clisp.org>
28147
28148         Fix bug introduced on 2009-04-25.
28149         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28150         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28151         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28152         is defined.
28153         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28154         is defined.
28155         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28156         is defined.
28157         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28158
28159 2009-04-28  Bruno Haible  <bruno@clisp.org>
28160
28161         Comment tweaks.
28162         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28163         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28164         * lib/unicase.h (u*_casexfrm): Likewise.
28165         Reported by Paolo Bonzini.
28166
28167 2009-04-28  Bruno Haible  <bruno@clisp.org>
28168
28169         Fix a compilation error.
28170         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28171         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28172         Reported by Jim Meyering.
28173
28174 2009-04-27  Bruno Haible  <bruno@clisp.org>
28175
28176         New module 'libunistring'.
28177         * modules/libunistring: New file.
28178         * m4/libunistring.m4: New file.
28179         * MODULES.html.sh (Unicode string functions): Add it.
28180
28181 2009-04-27  Eric Blake  <ebb9@byu.net>
28182
28183         maint.mk: allow package-specific header to provide <config.h>
28184         * top/maint.mk (sc_require_config_h): New variable.
28185         (sc_require_config_h, sc_require_config_h_first): Use it.
28186
28187 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28188
28189         * top/maint.mk (sc_avoid_if_before_free): Except
28190         useless-if-before-free script.
28191
28192 2009-04-27  Eric Blake  <ebb9@byu.net>
28193
28194         maintainer-makefile: depend on all required helper scripts
28195         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28196         useless-if-before-free.
28197         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28198         version, rather than assuming gnulib checkout is available.
28199         Reported by Simen Josefsson.
28200
28201 2009-04-26  Bruno Haible  <bruno@clisp.org>
28202
28203         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28204         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28205         "../" or "..".
28206
28207 2009-04-26  Bruno Haible  <bruno@clisp.org>
28208
28209         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28210         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28211         AC_LIB_HAVE_LINKFLAGS.
28212
28213 2009-04-26  Bruno Haible  <bruno@clisp.org>
28214
28215         Simplify calling convention of u*_conv_from_encoding.
28216         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28217         u32_conv_from_encoding): Expect a resultbuf argument and return the
28218         result directly as a pointer.
28219         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28220         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28221         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28222         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28223         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28224         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28225         Update.
28226         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28227         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28228         * lib/vasnprintf.c (VASNPRINTF): Update.
28229         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28230         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28231         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28232         * NEWS: Mention the change.
28233
28234 2009-04-26  Bruno Haible  <bruno@clisp.org>
28235
28236         Simplify calling convention of u*_conv_to_encoding.
28237         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28238         u32_conv_to_encoding): Expect a resultbuf argument and return the
28239         result directly as a pointer.
28240         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28241         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28242         freeing scaled_offsets if mem_iconveha failed.
28243         * lib/unicase/u-casexfrm.h (FUNC): Update.
28244         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28245         * lib/vasnprintf.c (VASNPRINTF): Update.
28246         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28247         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28248         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28249         * NEWS: Mention the change.
28250
28251 2009-04-26  Bruno Haible  <bruno@clisp.org>
28252
28253         Avoid test failures on AIX and OSF/1.
28254         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28255         malloc(0).
28256         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28257         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28258         Likewise.
28259         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28260         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28261         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28262         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28263         * doc/posix-functions/malloc.texi: Document the portability problem
28264         related to malloc(0).
28265
28266 2009-04-26  Bruno Haible  <bruno@clisp.org>
28267
28268         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28269         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28270         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28271
28272 2009-04-25  Bruno Haible  <bruno@clisp.org>
28273
28274         Avoid link error when creating a namespace clean library.
28275         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28276         as macro with arguments if already defined as an alias.
28277         * lib/signbitf.c (gl_signbitf): Don't undefine.
28278         * lib/signbitd.c (gl_signbitd): Don't undefine.
28279         * lib/signbitl.c (gl_signbitl): Don't undefine.
28280
28281 2009-04-25  Jim Meyering  <meyering@redhat.com>
28282
28283         vc-list-files: fix another quoting bug
28284         * build-aux/vc-list-files: Avoid sed backslash expansion
28285         of pathological directory names.
28286
28287 2009-04-25  Eric Blake  <ebb9@byu.net>
28288
28289         vc-list-files: fix shell quoting error
28290         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28291         timestamp.
28292
28293 2009-04-25  Jim Meyering  <meyering@redhat.com>
28294
28295         vc-list-files: restore lost functionality with subdir argument
28296         * build-aux/vc-list-files: When given a non-"." sub-directory
28297         argument, substitute the $dir/ prefix back onto each resulting name.
28298         Otherwise, coreutils' root_tests check would fail.
28299
28300 2009-04-24  Eric Blake  <ebb9@byu.net>
28301
28302         vc-list-files: ignore git symlinks
28303         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28304         than ls-files, to ignore git symlinks.
28305
28306         maint.mk: import improvements from m4
28307         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28308         (move_if_change): Delete unused macro.
28309         (news-date-check, vc-diff-check): Support VPATH builds.
28310         (announcement): Likewise.  Split --bootstrap-tools list...
28311         (boostrap-tools): ...into separate list, which can be overridden
28312         in cfg.mk.
28313         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28314         requiring dependency on useless-if-before-free module.
28315         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28316         Support VPATH builds.
28317
28318 2009-04-24  Jim Meyering  <meyering@redhat.com>
28319
28320         maint.mk: remove coreutils-specific rules and variables
28321         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28322         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28323         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28324
28325         maint.mk: remove obsolete rule
28326         * top/maint.mk (rel-check): Remove rule.
28327         (WGET, WGETFLAGS): Remove now-unused variables.
28328
28329 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28330
28331         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28332         consistency.
28333
28334         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28335         '$(PATH_SEPARATOR)' instead of ':'.
28336
28337 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28338
28339         * lib/getopt1.c (main): Use 'const' for static array.
28340
28341 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28342
28343         * top/maint.mk: Sync with coreutils.
28344         * NEWS: Explain incompatibilities.
28345
28346 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28347             Bruno Haible  <bruno@clisp.org>
28348
28349         Fix cross-compilation results.
28350         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28351         statement, as third argument of AC_TRY_RUN.
28352         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28353         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28354         Likewise.
28355         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28356         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28357         Likewise.
28358         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28360         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28361
28362 2009-04-20  Bruno Haible  <bruno@clisp.org>
28363
28364         Avoid test failure on mingw.
28365         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28366
28367 2009-04-20  Bruno Haible  <bruno@clisp.org>
28368
28369         Avoid compilation error on mingw.
28370         * modules/localename-tests (Depends-on): Add locale.
28371
28372 2009-04-19  Bruno Haible  <bruno@clisp.org>
28373
28374         Support for building a shared library on Windows platforms.
28375         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28376         (main): Test the presence of UNINORM_NFC here.
28377         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28378         (main): Test the presence of UNINORM_NFD here.
28379         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28380         (main): Test the presence of UNINORM_NFKC here.
28381         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28382         (main): Test the presence of UNINORM_NFKD here.
28383
28384 2009-04-19  Bruno Haible  <bruno@clisp.org>
28385
28386         Avoid a compiler warning.
28387         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28388         Change type of variable 'sequence'.
28389
28390 2009-04-19  Bruno Haible  <bruno@clisp.org>
28391
28392         * modules/configmake (Makefile.am): When the contents of configmake.h
28393         does not change, arrange to preserve its modification time.
28394
28395 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28396
28397         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28398         gettext domain.
28399
28400 2009-04-16  Jim Meyering  <meyering@redhat.com>
28401
28402         useless-if-before-free: improve conversion code
28403         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28404         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28405
28406 2009-04-14  Bruno Haible  <bruno@clisp.org>
28407
28408         * modules/fcntl (Depends-on): Add extensions.
28409         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28410
28411 2009-04-12  Ben Pfaff  <blp@gnu.org>
28412
28413         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28414         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28415
28416 2009-03-20  Ben Pfaff  <blp@gnu.org>
28417
28418         Make rename replace existing destinations on Windows.
28419         * m4/rename.m4: Add test for Mingw.
28420         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28421         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28422         * doc/posix-functions/rename.texi: Document.
28423
28424 2009-04-10  Bruno Haible  <bruno@clisp.org>
28425
28426         New include file "iconveh.h".
28427         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28428         * lib/striconveh.h: Include it.
28429         (enum iconv_ilseq_handler): Remove definition.
28430         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28431         striconveh.h.
28432         * lib/striconveha.c: Include striconveh.h.
28433         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28434         * modules/striconveh (Files): Add lib/iconveh.h.
28435         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28436         lib/striconveh.h.
28437
28438 2009-04-10  Bruno Haible  <bruno@clisp.org>
28439
28440         * lib/uniconv.h: Update comment.
28441
28442 2009-04-10  Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28445         always.
28446         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28447         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28448         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28449         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28450         "unistring-notinline.h", so that the function gets defined always.
28451         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28452         * lib/unistr/u8-uctomb.c: Likewise.
28453         * lib/unistr/u16-mbtouc.c: Likewise.
28454         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28455         * lib/unistr/u16-uctomb.c: Likewise.
28456         * lib/unistr/u32-mbtouc.c: Likewise.
28457         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28458         * lib/unistr/u32-uctomb.c: Likewise.
28459
28460 2009-04-10  Bruno Haible  <bruno@clisp.org>
28461
28462         Mark 'utime' obsolete.
28463         * modules/utime (Status, Notice): New sections.
28464         Suggested by Jim Meyering.
28465
28466         Fix cross-compile guess for utime test.
28467         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28468         autoconf.
28469         * doc/posix-functions/utime.texi: Give more precisions.
28470         Reported by Jan <ipif@ymail.com>.
28471
28472 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28473
28474         filevercmp: correct today's change
28475         * lib/filevercmp.c: Also handle coreutils' test inputs.
28476         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28477
28478         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28479         for reporting it.
28480         * lib/filevercmp.c: Special handle for "", "." and "..".
28481         * tests/test-filevercmp.c: Enlarge the set suite.
28482
28483 2009-04-07  Jim Meyering  <meyering@redhat.com>
28484
28485         useless-if-before-free: show how to remove braced useless free, too
28486         * build-aux/useless-if-before-free: still only in a comment, though.
28487
28488 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28489
28490         maint.mk: import changes to syntax-check macros from coreutils
28491         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28492         Use them in the relevant macros.
28493
28494 2009-04-06  Bruno Haible  <bruno@clisp.org>
28495
28496         Fix unportable use of bit-fields.
28497         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28498         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28499         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28500
28501 2009-04-06  Bruno Haible  <bruno@clisp.org>
28502
28503         Avoid test failures on AIX and OSF/1.
28504         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28505         that malloc(0) = NULL.
28506         * tests/unicase/test-u8-tolower.c (check): Likewise.
28507         * tests/unicase/test-u8-totitle.c (check): Likewise.
28508         * tests/unicase/test-u8-toupper.c (check): Likewise.
28509         * tests/unicase/test-u16-casefold.c (check): Likewise.
28510         * tests/unicase/test-u16-tolower.c (check): Likewise.
28511         * tests/unicase/test-u16-totitle.c (check): Likewise.
28512         * tests/unicase/test-u16-toupper.c (check): Likewise.
28513         * tests/unicase/test-u32-casefold.c (check): Likewise.
28514         * tests/unicase/test-u32-tolower.c (check): Likewise.
28515         * tests/unicase/test-u32-totitle.c (check): Likewise.
28516         * tests/unicase/test-u32-toupper.c (check): Likewise.
28517         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28518         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28519         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28520         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28521         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28522         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28523         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28524         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28525         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28526         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28527         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28528         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28529
28530 2009-04-05  Bruno Haible  <bruno@clisp.org>
28531
28532         Work around an autoconf limitation.
28533         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28534         comment line if it would be longer than 3 KB.
28535
28536 2009-04-05  Bruno Haible  <bruno@clisp.org>
28537
28538         Avoid test failure with libiconv-1.13.
28539         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28540         of the expected test results.
28541
28542 2009-04-05  Bruno Haible  <bruno@clisp.org>
28543
28544         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28545         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28546         that it should be installed.
28547
28548 2009-04-05  Bruno Haible  <bruno@clisp.org>
28549
28550         * gnulib-tool: New option --copy-file.
28551         (func_usage): Document it.
28552         (func_dest_tmpfilename): Moved out of func_import.
28553         (func_add_file, func_update_file): New functions, extracted from
28554         func_import.
28555         (func_import): Update.
28556
28557 2009-04-05  Karl Berry  <karl@gnu.org>
28558
28559         * README: prominently mention gnulib-tool.
28560         Rearrange sections so getting the code is near the top.
28561
28562 2009-04-05  Bruno Haible  <bruno@clisp.org>
28563
28564         * lib/unicase.h: Mention u*_cmp2.
28565         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28566         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28567         * lib/unicase/ulc-casecmp.c: Likewise.
28568         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28569         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28570         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28571         unistr/u8-cmp.
28572         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28573         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28574         unistr/u16-cmp.
28575         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28576         unistr/u32-cmp.
28577
28578         * lib/uninorm.h: Mention u*_cmp2.
28579         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28580         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28581         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28582         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28583         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28584         unistr/u8-cmp.
28585         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28586         unistr/u16-cmp.
28587         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28588         unistr/u32-cmp.
28589
28590         New module 'unistr/u32-cmp2'.
28591         * lib/unistr/u32-cmp2.c: New file.
28592         * modules/unistr/u32-cmp2: New file.
28593
28594         New module 'unistr/u16-cmp2'.
28595         * lib/unistr/u16-cmp2.c: New file.
28596         * modules/unistr/u16-cmp2: New file.
28597
28598         New module 'unistr/u8-cmp2'.
28599         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28600         * lib/unistr/u8-cmp2.c: New file.
28601         * lib/unistr/u-cmp2.h: New file.
28602         * modules/unistr/u8-cmp2: New file.
28603
28604 2009-04-05  Bruno Haible  <bruno@clisp.org>
28605
28606         * lib/unictype.h (uc_property_is_valid): New macro.
28607         * tests/unictype/test-pr_byname.c (main): Use it.
28608
28609         * lib/unistr.h: Doc fixes.
28610         * lib/uniconv.h: Doc fixes.
28611         * lib/unictype.h: Doc fixes.
28612
28613 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28614
28615         Port coreutils 7.2 to Solaris 8.
28616
28617         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28618         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28619         for Solaris 8.  This is a bit of a hack, as it means it's the
28620         caller's responsibility to add -lnsl if needed, but most likely it
28621         won't be needed since only getaddrinfo uses this and getaddrinfo
28622         isn't needed on Solaris 8.
28623
28624         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28625         problem to Solaris 8 encountered with coreutils 7.2, which
28626         resulted in a message "fnmatch.c:292: warning: passing argument 4
28627         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28628         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28629
28630 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28631
28632         * m4/ld-version-script.m4: Add FIXME comment.
28633
28634 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28635
28636         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28637         SOVERSION variable.
28638
28639 2009-04-02  Bruno Haible  <bruno@clisp.org>
28640
28641         * Makefile (info, html, dvi, pdf): Combine the rules.
28642         Suggested by Jim Meyering.
28643
28644 2009-04-01  Bruno Haible  <bruno@clisp.org>
28645
28646         * Makefile (info, html, dvi, pdf): New targets.
28647         Reported by Reuben Thomas <rrt@sc3d.org>.
28648
28649 2009-04-01  Bruno Haible  <bruno@clisp.org>
28650
28651         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28652         can be put into PATH.
28653         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28654
28655 2009-04-01  Bruno Haible  <bruno@clisp.org>
28656
28657         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28658
28659 2009-04-01  Bruno Haible  <bruno@clisp.org>
28660
28661         Rename module 'visibility'.
28662         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28663         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28664         * doc/gnulib.texi: Update.
28665         * MODULES.html.sh (Misc): Update.
28666         * NEWS: Mention the change.
28667
28668 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28669
28670         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28671         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28672         Eric Blake <ebb9@byu.net> for review.
28673         * MODULES.html.sh: Add lib-msvc-compat.
28674         * doc/gnulib.texi: Link to new section.
28675         * m4/ld-output-def.m4: New file.
28676         * doc/ld-output-def.texi: New file.
28677
28678 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28679
28680         Rename ld-version-script to lib-symbol-versions.  Suggested by
28681         Bruno Haible <bruno@clisp.org>.
28682         * modules/ld-version-script: Renamed to lib-symbol-versions.
28683         * doc/ld-version-script.texi: Fix module name.
28684         * MODULES.html.sh: Add lib-symbol-versions.
28685
28686 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28687
28688         * modules/u64-tests: New file.
28689         * tests/test-u64.c: New file.
28690
28691 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28692
28693         * MODULES.html.sh: Mention u64.
28694         * modules/u64: New module.
28695         * modules/crypto/sha512: Depend on u64 module instead of providing
28696         u64.h.
28697
28698 2009-03-27  Eric Blake  <ebb9@byu.net>
28699
28700         test-strerror: make debugging EAI_SYSTEM easier
28701         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28702         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28703         failure was EAI_SYSTEM.
28704
28705 2009-03-25  Bruno Haible  <bruno@clisp.org>
28706
28707         Fix a problem with --enable-relocatable on Solaris 7.
28708         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28709         since 2008-02-24.
28710
28711 2009-03-25  Eric Blake  <ebb9@byu.net>
28712
28713         test-sockets: avoid gcc warning
28714         * tests/test-sockets.c (main): Silence compiler warning.
28715
28716 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28717
28718         New modules nproc, pthread, contributed by Glen Lenker.
28719
28720         * MODULES.html.sh: Add pthread, nproc.
28721         * lib/nproc.c: New file.
28722         * lib/nproc.h: New file.
28723         * lib/pthread.in.h: New file.
28724         * m4/pthread.m4: New file.
28725         * modules/nproc: New file.
28726         * modules/pthread: New file.
28727
28728 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28729
28730         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28731         New variable.
28732
28733 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28734
28735         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28736         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28737         * tests/test-filevercmp.c: Add tests for backup suffixes.
28738
28739 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28740
28741         * modules/stdlib (Depends-on): Add stdint, needed when defining
28742         struct random_data on, for example, HP-UX 10.20.  Reported by
28743         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28744
28745 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28746
28747         * lib/readline.c (readline): Call fflush on stdout after printing
28748         prompt.
28749
28750 2009-03-20  Bruno Haible  <bruno@clisp.org>
28751
28752         Remove dependency from 'close' module to -lws2_32 on native Windows.
28753         * lib/close-hook.h: New file.
28754         * lib/close-hook.c: New file.
28755         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28756         w32sock.h.
28757         (_gl_close_fd_maybe_socket): Remove function.
28758         (rpl_close): Invoke execute_all_close_hooks instead of
28759         _gl_close_fd_maybe_socket.
28760         * lib/sockets.c: Include close-hook.h, w32sock.h.
28761         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28762         (close_sockets_hook): New variable.
28763         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28764         (gl_sockets_cleanup): Unregister it.
28765         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28766         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28767         * modules/close-hook: New file.
28768         * modules/close (Files): Remove lib/w32sock.h.
28769         (Depends-on): Add close-hook.
28770         (Link): Remove section.
28771         * modules/sockets (Files): Add lib/w32sock.h.
28772         (Depends-on): Add close-hook.
28773         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28774         invocation.
28775         * NEWS: Mention that LIB_CLOSE is gone.
28776
28777 2009-03-23  Eric Blake  <ebb9@byu.net>
28778
28779         signal-tests: test previous patch
28780         * tests/test-signal.c: New file.
28781         * modules/signal-tests: Likewise.
28782
28783         signal.h: always support 'volatile sig_atomic_t'
28784         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28785         (gl_SIGNAL_H_DEFAULTS): Add a default.
28786         * modules/signal (Makefile.am): Substitute if needed.
28787         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28788         users can blindly add volatile.
28789         * doc/posix-headers/signal.texi (signal.h): Document it.
28790         Reported by Matthew Woehlke.
28791
28792 2009-03-23  Jim Meyering  <meyering@redhat.com>
28793
28794         pathmax: PATH_MAX: use pathconf only when available
28795         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28796         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28797         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28798         This avoids a link failure in a PSP cross-compilation environment
28799         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28800
28801         * lib/vasnprintf.c (divide): Fix typo in comment.
28802
28803 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28804
28805         * gnulib-tool (func_filter_filelist): Fix comment.
28806
28807 2009-03-20  Bruno Haible  <bruno@clisp.org>
28808
28809         Make sockets.h self-contained.
28810         * lib/sockets.c: Include sockets.h first.
28811         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28812
28813 2009-03-19  Eric Blake  <ebb9@byu.net>
28814
28815         doc: mention more functions added in cygwin 1.7.0
28816         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28817         addition.
28818         * doc/posix-functions/log2f.texi: Likewise.
28819
28820 2009-03-19  Jim Meyering  <meyering@redhat.com>
28821
28822         fsusage: avoid syntax error due to statement-before-declaration
28823         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28824         after all declarations.  Reported by Matthew Woehlke in
28825         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28826
28827 2009-03-18  Eric Blake  <ebb9@byu.net>
28828
28829         build-aux/compile: sync from automake
28830         * build-aux/compile: New file, from automake.
28831         * config/srclist.txt: Mention build-aux/compile.
28832
28833 2009-03-17  Bruno Haible  <bruno@clisp.org>
28834
28835         * lib/git-merge-changelog.c: Fix typo in comment.
28836         Reported by Reuben Thomas <rrt@sc3d.org>.
28837
28838 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28839
28840         * m4/regex.m4: update and improve help for
28841         --without-included-regex.
28842
28843 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28844
28845         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28846         failure on missing include files.
28847
28848 2009-03-17  Eric Blake  <ebb9@byu.net>
28849
28850         doc: mention more functions added in cygwin 1.7.0
28851         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28852         addition.
28853         * doc/posix-functions/fwscanf.texi: Likewise.
28854         * doc/posix-functions/swprintf.texi: Likewise.
28855         * doc/posix-functions/swscanf.texi: Likewise.
28856         * doc/posix-functions/vfwprintf.texi: Likewise.
28857         * doc/posix-functions/vfwscanf.texi: Likewise.
28858         * doc/posix-functions/vswprintf.texi: Likewise.
28859         * doc/posix-functions/vswscanf.texi: Likewise.
28860         * doc/posix-functions/vwprintf.texi: Likewise.
28861         * doc/posix-functions/vwscanf.texi: Likewise.
28862         * doc/posix-functions/wcscasecmp.texi: Likewise.
28863         * doc/posix-functions/wcsdup.texi: Likewise.
28864         * doc/posix-functions/wcsftime.texi: Likewise.
28865         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28866         * doc/posix-functions/wprintf.texi: Likewise.
28867         * doc/posix-functions/wscanf.texi: Likewise.
28868         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28869
28870 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28871
28872         maint.mk: really add $(AM_MAKEFLAGS)
28873         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28874         was inadvertently omitted in the last commit.
28875         Spotted by Bruno Haible.
28876
28877         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28878         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28879         $(AM_MAKEFLAGS)' rather than plain `make'.
28880
28881         gnulib-tool: execute $MAKE not make
28882         * gnulib-tool: Default $MAKE to 'make'.
28883         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28884         than make.  Initialize $MAKE in the do-autobuild script.
28885
28886         gnulib-tool: use $MAKE not make in generated files
28887         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28888         make, in generated files.  Initialize $MAKE in the do-autobuild
28889         script.
28890
28891         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28892
28893         GNUmakefile: disable parallelism only for multiple, recursive targets
28894         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28895         additions in the Makefile.
28896         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28897         by Automake.
28898         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28899         are listed on the command line and at least one of them is
28900         listed in $(ALL_RECURSIVE_TARGETS).
28901
28902 2009-03-14  Bruno Haible  <bruno@clisp.org>
28903
28904         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28905         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28906         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28907         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28908         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28909         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28910         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28911         unistr/u8-uctomb.
28912         * modules/unistr/u8-strchr (Depends-on): Likewise.
28913         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28914         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28915         unistr/u16-uctomb.
28916         * modules/unistr/u16-strchr (Depends-on): Likewise.
28917         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28918
28919 2009-03-12  Bruno Haible  <bruno@clisp.org>
28920
28921         Work around select() bug on Interix 3.5.
28922         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28923         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28924         * m4/select.m4: New file.
28925         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28926         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28927         * modules/select (Files): Add m4/select.m4.
28928         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28929         * modules/nanosleep (Depends-on): Add select.
28930         * modules/poll (Depends-on): Likewise.
28931         * doc/posix-functions/select.texi: Mention the Interix bug.
28932         Reported by Markus Duft <mduft@gentoo.org>.
28933
28934         * lib/select.c: Renamed from lib/winsock-select.c.
28935         * modules/select (Files): Add lib/select.c, remove
28936         lib/winsock-select.c.
28937         (configure.ac): Update.
28938
28939 2009-03-12  Jim Meyering  <meyering@redhat.com>
28940
28941         avoid gcc warnings about unused macro definitions
28942         * lib/readtokens.c (STREQ): Remove unused definition.
28943         * lib/xmalloc.c (SIZE_MAX): Likewise.
28944         * lib/openat-die.c (N_): Likewise.
28945         * lib/mountlist.c (SIZE_MAX): Remove definition.
28946         Instead, include <stdint.h>.
28947         * lib/readutmp.c: Likewise.
28948         * modules/readutmp (Depends-on): Add stdint.
28949         * modules/mountlist (Depends-on): Add stdint.
28950         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28951
28952 2009-03-10  Bruno Haible  <bruno@clisp.org>
28953
28954         Tests for module 'mbmemcasecoll'.
28955         * modules/mbmemcasecoll-tests: New file.
28956         * tests/test-mbmemcasecoll1.sh: New file.
28957         * tests/test-mbmemcasecoll2.sh: New file.
28958         * tests/test-mbmemcasecoll3.sh: New file.
28959         * tests/test-mbmemcasecoll.c: New file.
28960
28961         New module 'mbmemcasecoll'.
28962         * lib/mbmemcasecoll.h: New file.
28963         * lib/mbmemcasecoll.c: New file.
28964         * modules/mbmemcasecoll: New file.
28965
28966         * tests/test-mbmemcasecmp.h: New file, extracted from
28967         tests/test-mbmemcasecmp.c.
28968         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28969         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28970         (main): Update.
28971         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28972
28973 2009-03-09  Bruno Haible  <bruno@clisp.org>
28974
28975         Tests for module 'mbmemcasecmp'.
28976         * modules/mbmemcasecmp-tests: New file.
28977         * tests/test-mbmemcasecmp1.sh: New file.
28978         * tests/test-mbmemcasecmp2.sh: New file.
28979         * tests/test-mbmemcasecmp3.sh: New file.
28980         * tests/test-mbmemcasecmp.c: New file.
28981
28982         New module 'mbmemcasecmp'.
28983         * lib/mbmemcasecmp.h: New file.
28984         * lib/mbmemcasecmp.c: New file.
28985         * modules/mbmemcasecmp: New file.
28986
28987 2009-03-09  Bruno Haible  <bruno@clisp.org>
28988
28989         Tests for module 'unicase/ulc-casecoll'.
28990         * modules/unicase/ulc-casecoll-tests: New file.
28991         * tests/unicase/test-ulc-casecoll1.sh: New file.
28992         * tests/unicase/test-ulc-casecoll2.sh: New file.
28993         * tests/unicase/test-ulc-casecoll.c: New file.
28994
28995         New module 'unicase/ulc-casecoll'.
28996         * lib/unicase.h (ulc_casecoll): New declaration.
28997         * lib/unicase/ulc-casecoll.c: New file.
28998         * modules/unicase/ulc-casecoll: New file.
28999
29000         New module 'unicase/ulc-casexfrm'.
29001         * lib/unicase.h (ulc_casexfrm): New declaration.
29002         * lib/unicase/ulc-casexfrm.c: New file.
29003         * modules/unicase/ulc-casexfrm: New file.
29004
29005 2009-03-09  Bruno Haible  <bruno@clisp.org>
29006
29007         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29008         invocations.
29009
29010         * m4/mbscasecmp.m4: Remove file.
29011         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29012         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29013
29014         * m4/mbscasestr.m4: Remove file.
29015         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29016         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29017
29018         * m4/mbschr.m4: Remove file.
29019         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29020         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29021
29022         * m4/mbscspn.m4: Remove file.
29023         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29024         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29025
29026         * m4/mbslen.m4: Remove file.
29027         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29028         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29029
29030         * m4/mbsncasecmp.m4: Remove file.
29031         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29032         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29033
29034         * m4/mbsnlen.m4: Remove file.
29035         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29036         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29037
29038         * m4/mbspbrk.m4: Remove file.
29039         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29040         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29041
29042         * m4/mbspcasecmp.m4: Remove file.
29043         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29044         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29045
29046         * m4/mbsrchr.m4: Remove file.
29047         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29048         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29049
29050         * m4/mbssep.m4: Remove file.
29051         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29052         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29053
29054         * m4/mbsspn.m4: Remove file.
29055         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29056         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29057
29058         * m4/mbsstr.m4: Remove file.
29059         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29060         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29061
29062         * m4/mbstok_r.m4: Remove file.
29063         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29064         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29065
29066         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29067
29068         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29069         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29070
29071         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29072
29073 2009-03-08  Bruno Haible  <bruno@clisp.org>
29074
29075         Tests for module 'unicase/ulc-casecmp'.
29076         * modules/unicase/ulc-casecmp-tests: New file.
29077         * tests/unicase/test-ulc-casecmp1.sh: New file.
29078         * tests/unicase/test-ulc-casecmp2.sh: New file.
29079         * tests/unicase/test-ulc-casecmp.c: New file.
29080
29081         New module 'unicase/ulc-casecmp'.
29082         * lib/unicase.h (ulc_casecmp): New declaration.
29083         * lib/unicase/ulc-casecmp.c: New file.
29084         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29085         'const SRC_UNIT *'.
29086         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29087         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29088         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29089         * modules/unicase/ulc-casecmp: New file.
29090
29091         Tests for module 'unicase/u32-is-cased'.
29092         * modules/unicase/u32-is-cased-tests: New file.
29093         * tests/unicase/test-u32-is-cased.c: New file.
29094
29095         Tests for module 'unicase/u16-is-cased'.
29096         * modules/unicase/u16-is-cased-tests: New file.
29097         * tests/unicase/test-u16-is-cased.c: New file.
29098
29099         Tests for module 'unicase/u8-is-cased'.
29100         * modules/unicase/u8-is-cased-tests: New file.
29101         * tests/unicase/test-u8-is-cased.c: New file.
29102         * tests/unicase/test-is-cased.h: New file.
29103
29104         New module 'unicase/u32-is-cased'.
29105         * lib/unicase/u32-is-cased.c: New file.
29106         * modules/unicase/u32-is-cased: New file.
29107
29108         New module 'unicase/u16-is-cased'.
29109         * lib/unicase/u16-is-cased.c: New file.
29110         * modules/unicase/u16-is-cased: New file.
29111
29112         New module 'unicase/u8-is-cased'.
29113         * lib/unicase/u8-is-cased.c: New file.
29114         * lib/unicase/u-is-cased.h: New file.
29115         * modules/unicase/u8-is-cased: New file.
29116
29117         Tests for module 'unicase/u32-is-casefolded'.
29118         * modules/unicase/u32-is-casefolded-tests: New file.
29119         * tests/unicase/test-u32-is-casefolded.c: New file.
29120
29121         Tests for module 'unicase/u16-is-casefolded'.
29122         * modules/unicase/u16-is-casefolded-tests: New file.
29123         * tests/unicase/test-u16-is-casefolded.c: New file.
29124
29125         Tests for module 'unicase/u8-is-casefolded'.
29126         * modules/unicase/u8-is-casefolded-tests: New file.
29127         * tests/unicase/test-u8-is-casefolded.c: New file.
29128         * tests/unicase/test-is-casefolded.h: New file.
29129
29130         New module 'unicase/u32-is-casefolded'.
29131         * lib/unicase/u32-is-casefolded.c: New file.
29132         * modules/unicase/u32-is-casefolded: New file.
29133
29134         New module 'unicase/u16-is-casefolded'.
29135         * lib/unicase/u16-is-casefolded.c: New file.
29136         * modules/unicase/u16-is-casefolded: New file.
29137
29138         New module 'unicase/u8-is-casefolded'.
29139         * lib/unicase/u8-is-casefolded.c: New file.
29140         * modules/unicase/u8-is-casefolded: New file.
29141
29142         Tests for module 'unicase/u32-is-titlecase'.
29143         * modules/unicase/u32-is-titlecase-tests: New file.
29144         * tests/unicase/test-u32-is-titlecase.c: New file.
29145
29146         Tests for module 'unicase/u16-is-titlecase'.
29147         * modules/unicase/u16-is-titlecase-tests: New file.
29148         * tests/unicase/test-u16-is-titlecase.c: New file.
29149
29150         Tests for module 'unicase/u8-is-titlecase'.
29151         * modules/unicase/u8-is-titlecase-tests: New file.
29152         * tests/unicase/test-u8-is-titlecase.c: New file.
29153         * tests/unicase/test-is-titlecase.h: New file.
29154
29155         New module 'unicase/u32-is-titlecase'.
29156         * lib/unicase/u32-is-titlecase.c: New file.
29157         * modules/unicase/u32-is-titlecase: New file.
29158
29159         New module 'unicase/u16-is-titlecase'.
29160         * lib/unicase/u16-is-titlecase.c: New file.
29161         * modules/unicase/u16-is-titlecase: New file.
29162
29163         New module 'unicase/u8-is-titlecase'.
29164         * lib/unicase/u8-is-titlecase.c: New file.
29165         * modules/unicase/u8-is-titlecase: New file.
29166
29167         Tests for module 'unicase/u32-is-lowercase'.
29168         * modules/unicase/u32-is-lowercase-tests: New file.
29169         * tests/unicase/test-u32-is-lowercase.c: New file.
29170
29171         Tests for module 'unicase/u16-is-lowercase'.
29172         * modules/unicase/u16-is-lowercase-tests: New file.
29173         * tests/unicase/test-u16-is-lowercase.c: New file.
29174
29175         Tests for module 'unicase/u8-is-lowercase'.
29176         * modules/unicase/u8-is-lowercase-tests: New file.
29177         * tests/unicase/test-u8-is-lowercase.c: New file.
29178         * tests/unicase/test-is-lowercase.h: New file.
29179
29180         New module 'unicase/u32-is-lowercase'.
29181         * lib/unicase/u32-is-lowercase.c: New file.
29182         * modules/unicase/u32-is-lowercase: New file.
29183
29184         New module 'unicase/u16-is-lowercase'.
29185         * lib/unicase/u16-is-lowercase.c: New file.
29186         * modules/unicase/u16-is-lowercase: New file.
29187
29188         New module 'unicase/u8-is-lowercase'.
29189         * lib/unicase/u8-is-lowercase.c: New file.
29190         * modules/unicase/u8-is-lowercase: New file.
29191
29192         Tests for module 'unicase/u32-is-uppercase'.
29193         * modules/unicase/u32-is-uppercase-tests: New file.
29194         * tests/unicase/test-u32-is-uppercase.c: New file.
29195
29196         Tests for module 'unicase/u16-is-uppercase'.
29197         * modules/unicase/u16-is-uppercase-tests: New file.
29198         * tests/unicase/test-u16-is-uppercase.c: New file.
29199
29200         Tests for module 'unicase/u8-is-uppercase'.
29201         * modules/unicase/u8-is-uppercase-tests: New file.
29202         * tests/unicase/test-u8-is-uppercase.c: New file.
29203         * tests/unicase/test-is-uppercase.h: New file.
29204
29205         New module 'unicase/u32-is-uppercase'.
29206         * lib/unicase/u32-is-uppercase.c: New file.
29207         * modules/unicase/u32-is-uppercase: New file.
29208
29209         New module 'unicase/u16-is-uppercase'.
29210         * lib/unicase/u16-is-uppercase.c: New file.
29211         * modules/unicase/u16-is-uppercase: New file.
29212
29213         New module 'unicase/u8-is-uppercase'.
29214         * lib/unicase/u8-is-uppercase.c: New file.
29215         * modules/unicase/u8-is-uppercase: New file.
29216
29217         New module 'unicase/u32-is-invariant'.
29218         * lib/unicase/u32-is-invariant.c: New file.
29219         * modules/unicase/u32-is-invariant: New file.
29220
29221         New module 'unicase/u16-is-invariant'.
29222         * lib/unicase/u16-is-invariant.c: New file.
29223         * modules/unicase/u16-is-invariant: New file.
29224
29225         New module 'unicase/u8-is-invariant'.
29226         * lib/unicase/u8-is-invariant.c: New file.
29227         * lib/unicase/invariant.h: New file.
29228         * lib/unicase/u-is-invariant.h: New file.
29229         * modules/unicase/u8-is-invariant: New file.
29230
29231         Tests for module 'unicase/u32-casecoll'.
29232         * modules/unicase/u32-casecoll-tests: New file.
29233         * tests/unicase/test-u32-casecoll.c: New file.
29234
29235         Tests for module 'unicase/u16-casecoll'.
29236         * modules/unicase/u16-casecoll-tests: New file.
29237         * tests/unicase/test-u16-casecoll.c: New file.
29238
29239         Tests for module 'unicase/u8-casecoll'.
29240         * modules/unicase/u8-casecoll-tests: New file.
29241         * tests/unicase/test-u8-casecoll.c: New file.
29242
29243         New module 'unicase/u32-casecoll'.
29244         * lib/unicase/u32-casecoll.c: New file.
29245         * modules/unicase/u32-casecoll: New file.
29246
29247         New module 'unicase/u16-casecoll'.
29248         * lib/unicase/u16-casecoll.c: New file.
29249         * modules/unicase/u16-casecoll: New file.
29250
29251         New module 'unicase/u8-casecoll'.
29252         * lib/unicase/u8-casecoll.c: New file.
29253         * lib/unicase/u-casecoll.h: New file.
29254         * modules/unicase/u8-casecoll: New file.
29255
29256         New module 'unicase/u32-casexfrm'.
29257         * lib/unicase/u32-casexfrm.c: New file.
29258         * modules/unicase/u32-casexfrm: New file.
29259
29260         New module 'unicase/u16-casexfrm'.
29261         * lib/unicase/u16-casexfrm.c: New file.
29262         * modules/unicase/u16-casexfrm: New file.
29263
29264         New module 'unicase/u8-casexfrm'.
29265         * lib/unicase/u8-casexfrm.c: New file.
29266         * lib/unicase/u-casexfrm.h: New file.
29267         * modules/unicase/u8-casexfrm: New file.
29268
29269         Tests for module 'unicase/u32-casecmp'.
29270         * modules/unicase/u32-casecmp-tests: New file.
29271         * tests/unicase/test-u32-casecmp.c: New file.
29272
29273         Tests for module 'unicase/u16-casecmp'.
29274         * modules/unicase/u16-casecmp-tests: New file.
29275         * tests/unicase/test-u16-casecmp.c: New file.
29276
29277         Tests for module 'unicase/u8-casecmp'.
29278         * modules/unicase/u8-casecmp-tests: New file.
29279         * tests/unicase/test-u8-casecmp.c: New file.
29280         * tests/unicase/test-casecmp.h: New file.
29281
29282         New module 'unicase/u32-casecmp'.
29283         * lib/unicase/u32-casecmp.c: New file.
29284         * modules/unicase/u32-casecmp: New file.
29285
29286         New module 'unicase/u16-casecmp'.
29287         * lib/unicase/u16-casecmp.c: New file.
29288         * modules/unicase/u16-casecmp: New file.
29289
29290         New module 'unicase/u8-casecmp'.
29291         * lib/unicase/u8-casecmp.c: New file.
29292         * lib/unicase/u-casecmp.h: New file.
29293         * modules/unicase/u8-casecmp: New file.
29294
29295         Tests for module 'unicase/u32-casefold'.
29296         * modules/unicase/u32-casefold-tests: New file.
29297         * tests/unicase/test-u32-casefold.c: New file.
29298
29299         Tests for module 'unicase/u16-casefold'.
29300         * modules/unicase/u16-casefold-tests: New file.
29301         * tests/unicase/test-u16-casefold.c: New file.
29302
29303         Tests for module 'unicase/u8-casefold'.
29304         * modules/unicase/u8-casefold-tests: New file.
29305         * tests/unicase/test-u8-casefold.c: New file.
29306
29307         New module 'unicase/u32-casefold'.
29308         * lib/unicase/u32-casefold.c: New file.
29309         * modules/unicase/u32-casefold: New file.
29310
29311         New module 'unicase/u16-casefold'.
29312         * lib/unicase/u16-casefold.c: New file.
29313         * modules/unicase/u16-casefold: New file.
29314
29315         New module 'unicase/u8-casefold'.
29316         * lib/unicase/u8-casefold.c: New file.
29317         * lib/unicase/u-casefold.h: New file.
29318         * modules/unicase/u8-casefold: New file.
29319
29320         New module 'unicase/tocasefold'.
29321         * lib/unicase/casefold.h: New file.
29322         * lib/unicase/tocasefold.c: New file.
29323         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29324         * modules/unicase/tocasefold: New file.
29325
29326         Tests for module 'unicase/u32-totitle'.
29327         * modules/unicase/u32-totitle-tests: New file.
29328         * tests/unicase/test-u32-totitle.c: New file.
29329
29330         Tests for module 'unicase/u16-totitle'.
29331         * modules/unicase/u16-totitle-tests: New file.
29332         * tests/unicase/test-u16-totitle.c: New file.
29333
29334         Tests for module 'unicase/u8-totitle'.
29335         * modules/unicase/u8-totitle-tests: New file.
29336         * tests/unicase/test-u8-totitle.c: New file.
29337
29338         New module 'unicase/u32-totitle'.
29339         * lib/unicase/u32-totitle.c: New file.
29340         * modules/unicase/u32-totitle: New file.
29341
29342         New module 'unicase/u16-totitle'.
29343         * lib/unicase/u16-totitle.c: New file.
29344         * modules/unicase/u16-totitle: New file.
29345
29346         New module 'unicase/u8-totitle'.
29347         * lib/unicase/u8-totitle.c: New file.
29348         * lib/unicase/u-totitle.h: New file.
29349         * modules/unicase/u8-totitle: New file.
29350
29351         Tests for module 'unicase/u32-tolower'.
29352         * modules/unicase/u32-tolower-tests: New file.
29353         * tests/unicase/test-u32-tolower.c: New file.
29354
29355         Tests for module 'unicase/u16-tolower'.
29356         * modules/unicase/u16-tolower-tests: New file.
29357         * tests/unicase/test-u16-tolower.c: New file.
29358
29359         Tests for module 'unicase/u8-tolower'.
29360         * modules/unicase/u8-tolower-tests: New file.
29361         * tests/unicase/test-u8-tolower.c: New file.
29362
29363         New module 'unicase/u32-tolower'.
29364         * lib/unicase/u32-tolower.c: New file.
29365         * modules/unicase/u32-tolower: New file.
29366
29367         New module 'unicase/u16-tolower'.
29368         * lib/unicase/u16-tolower.c: New file.
29369         * modules/unicase/u16-tolower: New file.
29370
29371         New module 'unicase/u8-tolower'.
29372         * lib/unicase/u8-tolower.c: New file.
29373         * modules/unicase/u8-tolower: New file.
29374
29375         Tests for module 'unicase/u32-toupper'.
29376         * modules/unicase/u32-toupper-tests: New file.
29377         * tests/unicase/test-u32-toupper.c: New file.
29378
29379         Tests for module 'unicase/u16-toupper'.
29380         * modules/unicase/u16-toupper-tests: New file.
29381         * tests/unicase/test-u16-toupper.c: New file.
29382
29383         Tests for module 'unicase/u8-toupper'.
29384         * modules/unicase/u8-toupper-tests: New file.
29385         * tests/unicase/test-u8-toupper.c: New file.
29386
29387         New module 'unicase/u32-toupper'.
29388         * lib/unicase/u32-toupper.c: New file.
29389         * modules/unicase/u32-toupper: New file.
29390
29391         New module 'unicase/u16-toupper'.
29392         * lib/unicase/u16-toupper.c: New file.
29393         * modules/unicase/u16-toupper: New file.
29394
29395         New module 'unicase/u8-toupper'.
29396         * lib/unicase/u8-toupper.c: New file.
29397         * modules/unicase/u8-toupper: New file.
29398
29399         New module 'unicase/u32-casemap'.
29400         * lib/unicase/u32-casemap.c: New file.
29401         * modules/unicase/u32-casemap: New file.
29402
29403         New module 'unicase/u16-casemap'.
29404         * lib/unicase/u16-casemap.c: New file.
29405         * modules/unicase/u16-casemap: New file.
29406
29407         New module 'unicase/u8-casemap'.
29408         * lib/unicase/unicasemap.h: New file.
29409         * lib/unicase/u8-casemap.c: New file.
29410         * lib/unicase/u-casemap.h: New file.
29411         * modules/unicase/u8-casemap: New file.
29412
29413         New module 'unicase/special-casing'.
29414         * lib/unicase/special-casing.h: New file.
29415         * lib/unicase/special-casing.c: New file.
29416         * lib/unicase/special-casing-table.gperf: New file, generated by
29417         gen-uni-tables.c.
29418         * modules/unicase/special-casing: New file.
29419
29420         Tests for module 'unicase/locale-language'.
29421         * modules/unicase/locale-language-tests: New file.
29422         * tests/unicase/test-locale-language.sh: New file.
29423         * tests/unicase/test-locale-language.c: New file.
29424
29425         New module 'unicase/locale-language'.
29426         * lib/unicase/locale-language.c: New file.
29427         * lib/unicase/locale-languages.gperf: New file.
29428         * modules/unicase/locale-language: New file.
29429
29430         Generate more tables for case conversion and case folding.
29431         * lib/gen-uni-tables.c (SCC_*): New enum items.
29432         (struct special_casing_rule): New type.
29433         (casing_rules, num_casing_rules, allocated_casing_rules): New
29434         variables.
29435         (add_casing_rule, fill_casing_rules): New functions.
29436         (struct casefold_rule): New type.
29437         (casefolding_rules, num_casefolding_rules,
29438         allocated_casefolding_rules): New variables.
29439         (fill_casefolding_rules): New function.
29440         (unicode_casefold): New variable.
29441         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29442         sort_casing_rules, output_casing_rules): New functions.
29443         (main): Accept to more arguments: SpecialCasing.txt and
29444         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29445         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29446         Output mapping for casefolding.
29447
29448         * lib/unicase.h: Include stdbool.h, uninorm.h.
29449         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29450         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29451         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29452         arguments.
29453         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29454         resultp arguments.
29455         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29456         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29457         resultp arguments.
29458         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29459         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29460         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29461         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29462         declarations.
29463         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29464
29465 2009-03-08  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29468         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29469         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29470         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29471
29472 2009-03-07  Bruno Haible  <bruno@clisp.org>
29473
29474         Adjust u*_normcmp, u*_normcoll API.
29475         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29476         u16_normcoll, u32_normcoll): Change failure conventions.
29477         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29478         errno and return -1.
29479         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29480
29481 2009-03-07  Bruno Haible  <bruno@clisp.org>
29482
29483         Tests for module 'uninorm/u32-normcoll'.
29484         * modules/uninorm/u32-normcoll-tests: New file.
29485         * tests/uninorm/test-u32-normcoll.c: New file.
29486
29487         Tests for module 'uninorm/u16-normcoll'.
29488         * modules/uninorm/u16-normcoll-tests: New file.
29489         * tests/uninorm/test-u16-normcoll.c: New file.
29490
29491         Tests for module 'uninorm/u8-normcoll'.
29492         * modules/uninorm/u8-normcoll-tests: New file.
29493         * tests/uninorm/test-u8-normcoll.c: New file.
29494
29495 2009-03-07  Bruno Haible  <bruno@clisp.org>
29496
29497         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29498         tests/uninorm/test-u32-normcmp.c.
29499         * tests/uninorm/test-u32-normcmp.c: Include it.
29500         (test_nonascii): New function, extracted from main. Add some more
29501         tests.
29502         (main): Invoke test_ascii and test_nonascii.
29503         * modules/uninorm/u32-normcmp-tests (Files): Add
29504         tests/uninorm/test-u32-normcmp.h.
29505         (Depends-on): Remove uninorm/u32-normcmp.
29506
29507         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29508         tests/uninorm/test-u16-normcmp.c.
29509         * tests/uninorm/test-u16-normcmp.c: Include it.
29510         (test_nonascii): New function, extracted from main. Add some more
29511         tests.
29512         (main): Invoke test_ascii and test_nonascii.
29513         * modules/uninorm/u16-normcmp-tests (Files): Add
29514         tests/uninorm/test-u16-normcmp.h.
29515         (Depends-on): Remove uninorm/u16-normcmp.
29516
29517         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29518         tests/uninorm/test-u8-normcmp.c.
29519         * tests/uninorm/test-u8-normcmp.c: Include it.
29520         (test_nonascii): New function, extracted from main. Add some more
29521         tests.
29522         (main): Invoke test_ascii and test_nonascii.
29523         * modules/uninorm/u8-normcmp-tests (Files): Add
29524         tests/uninorm/test-u8-normcmp.h.
29525         (Depends-on): Remove uninorm/u8-normcmp.
29526
29527 2009-03-07  Bruno Haible  <bruno@clisp.org>
29528
29529         New module 'uninorm/u32-normcoll'.
29530         * lib/uninorm/u32-normcoll.c: New file.
29531         * modules/uninorm/u32-normcoll: New file.
29532
29533         New module 'uninorm/u16-normcoll'.
29534         * lib/uninorm/u16-normcoll.c: New file.
29535         * modules/uninorm/u16-normcoll: New file.
29536
29537         New module 'uninorm/u8-normcoll'.
29538         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29539         declarations.
29540         * lib/uninorm/u8-normcoll.c: New file.
29541         * lib/uninorm/u-normcoll.h: New file.
29542         * modules/uninorm/u8-normcoll: New file.
29543
29544         New module 'uninorm/u32-normxfrm'.
29545         * lib/uninorm/u32-normxfrm.c: New file.
29546         * modules/uninorm/u32-normxfrm: New file.
29547
29548         New module 'uninorm/u16-normxfrm'.
29549         * lib/uninorm/u16-normxfrm.c: New file.
29550         * modules/uninorm/u16-normxfrm: New file.
29551
29552         New module 'uninorm/u8-normxfrm'.
29553         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29554         declarations.
29555         * lib/uninorm/u8-normxfrm.c: New file.
29556         * lib/uninorm/u-normxfrm.h: New file.
29557         * modules/uninorm/u8-normxfrm: New file.
29558
29559 2009-03-07  Bruno Haible  <bruno@clisp.org>
29560
29561         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29562         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29563         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29564
29565 2009-03-07  Bruno Haible  <bruno@clisp.org>
29566
29567         New module 'memxfrm'.
29568         * lib/memxfrm.h: New file.
29569         * lib/memxfrm.c: New file.
29570         * modules/memxfrm: New file.
29571
29572 2009-03-07  Bruno Haible  <bruno@clisp.org>
29573
29574         New module 'memcmp2'.
29575         * lib/memcmp2.h: New file.
29576         * lib/memcmp2.c: New file.
29577         * modules/memcmp2: New file.
29578
29579 2009-03-07  Bruno Haible  <bruno@clisp.org>
29580
29581         Tests for module 'uninorm/decomposing-form'.
29582         * modules/uninorm/decomposing-form-tests: New file.
29583         * tests/uninorm/test-decomposing-form.c: New file.
29584
29585         New module 'uninorm/decomposing-form'.
29586         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29587         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29588         Add 'decomposing_variant' field.
29589         * lib/uninorm/decomposing-form.c: New file.
29590         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29591         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29592         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29593         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29594         * modules/uninorm/decomposing-form: New file.
29595         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29596         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29597
29598 2009-03-07  Bruno Haible  <bruno@clisp.org>
29599
29600         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29601         strings.
29602
29603 2009-03-06  Bruno Haible  <bruno@clisp.org>
29604
29605         Tests for module 'uninorm/u32-normcmp'.
29606         * tests/uninorm/test-u32-normcmp.c: New file.
29607         * modules/uninorm/u32-normcmp-tests: New file.
29608
29609         Tests for module 'uninorm/u16-normcmp'.
29610         * tests/uninorm/test-u16-normcmp.c: New file.
29611         * modules/uninorm/u16-normcmp-tests: New file.
29612
29613         Tests for module 'uninorm/u8-normcmp'.
29614         * tests/uninorm/test-u8-normcmp.c: New file.
29615         * modules/uninorm/u8-normcmp-tests: New file.
29616
29617         New module 'uninorm/u32-normcmp'.
29618         * lib/uninorm/u32-normcmp.c: New file.
29619         * modules/uninorm/u32-normcmp: New file.
29620
29621         New module 'uninorm/u16-normcmp'.
29622         * lib/uninorm/u16-normcmp.c: New file.
29623         * modules/uninorm/u16-normcmp: New file.
29624
29625         New module 'uninorm/u8-normcmp'.
29626         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29627         declarations.
29628         * lib/uninorm/u8-normcmp.c: New file.
29629         * lib/uninorm/u-normcmp.h: New file.
29630         * modules/uninorm/u8-normcmp: New file.
29631
29632 2009-03-06  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29635         Reported by Eric Blake.
29636
29637 2009-03-06  Eric Blake  <ebb9@byu.net>
29638             Bruno Haible  <bruno@clisp.org>
29639
29640         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29641         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29642         condition.
29643         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29644         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29645         condition.
29646         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29647
29648 2009-03-06  Eric Blake  <ebb9@byu.net>
29649
29650         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29651         to avoid compiler warnings.
29652         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29653
29654 2009-03-05  Bruno Haible  <bruno@clisp.org>
29655
29656         * tests/test-ftell.c (main): Disable test beyond end of file on
29657         FreeMiNT.
29658         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29659
29660 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29661
29662         * lib/filevercmp.c: Move hidden files up in ordering.
29663         * tests/test-filevercmp.c: Add tests for hidden files.
29664
29665 2009-03-04  Bruno Haible  <bruno@clisp.org>
29666
29667         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29668         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29669         AM_CFLAGS.
29670         Reported by Simon Josefsson.
29671
29672 2009-03-03  Bruno Haible  <bruno@clisp.org>
29673
29674         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29675         Reported by Simon Josefsson.
29676
29677         * doc/ld-version-script.texi: Update node reference.
29678
29679 2009-03-03  Bruno Haible  <bruno@clisp.org>
29680
29681         * modules/visibility (License): Change to 'unlimited'.
29682         Suggested by Simon Josefsson.
29683
29684 2009-03-03  Jim Meyering  <meyering@redhat.com>
29685
29686         unlinkdir: cannot_unlink_dir may modify process state
29687         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29688         it's neither thread-safe nor appropriate for use in a library.
29689
29690 2009-03-03  Eric Blake  <ebb9@byu.net>
29691
29692         test-closein: silence test under Darwin
29693         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29694         care if it dies from EPIPE or EBADF.
29695
29696 2009-03-03  Bruno Haible  <bruno@clisp.org>
29697
29698         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29699         earlier.
29700         * doc/visibility.texi: Fix @node and @section.
29701
29702 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29703
29704         * doc/gnulib.texi: Link to sections for ld version script and
29705         visibility.
29706         * doc/visibility.texi: Add @node and @section.
29707         * modules/ld-version-script: New module.
29708         * m4/ld-version-script.m4: New file.
29709         * doc/ld-version-script.texi: New file.
29710
29711 2009-03-02  David Lutterkort  <lutter@redhat.com>
29712
29713         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29715
29716 2009-03-02  Bruno Haible  <bruno@clisp.org>
29717
29718         * doc/visibility.texi: Mention libtool's -export-symbols option.
29719
29720 2009-03-02  Jim Meyering  <meyering@redhat.com>
29721
29722         announce-gen: new option: --no-print-checksums
29723         * build-aux/announce-gen (usage): Describe it.
29724         (print_checksums): Print a newline here, not in the [*] footnote.
29725         (main): Honor it.
29726
29727 2009-03-01  Bruno Haible  <bruno@clisp.org>
29728
29729         Use socklen_t in the native Windows replacements prototypes.
29730         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29731         instead of 'int'.
29732         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29733         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29734         * modules/getsockopt (Depends-on): Add socklen.
29735         * modules/setsockopt (Depends-on): Add socklen.
29736
29737 2009-03-01  Bruno Haible  <bruno@clisp.org>
29738
29739         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29740         least 4.2.
29741
29742 2009-03-01  Eric Blake  <ebb9@byu.net>
29743             Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29746         error messages.
29747         * lib/wait-process.c (wait_subprocess): Omit error message about
29748         deadly signal sent to the child of termsigp != NULL.
29749
29750 2009-03-01  Eric Blake  <ebb9@byu.net>
29751
29752         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29753
29754 2009-03-01  Bruno Haible  <bruno@clisp.org>
29755
29756         Avoid a gcc warning.
29757         * tests/test-sched.c (b): Make global.
29758         Reported by Eric Blake.
29759
29760 2009-01-19  Martin Lambers  <marlam@marlam.de>
29761
29762         Provide POSIX semantics for socket timeout options on W32.
29763         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29764         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29765         * modules/setsockopt: Depend on sys_time module for struct timeval.
29766         * modules/getsockopt: Depend on sys_time module for struct timeval.
29767
29768 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29769
29770         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29771         __USE_GNU, for consistency with netdb.in.h.
29772         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29773
29774 2009-03-01  Bruno Haible  <bruno@clisp.org>
29775
29776         More support for FreeMiNT.
29777         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29778         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29779
29780 2009-03-01  Bruno Haible  <bruno@clisp.org>
29781
29782         More support for FreeMiNT.
29783         * lib/fpurge.c (fpurge): Correct last commit.
29784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29785
29786 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29787
29788         Fix unportable awk script in vc-list-files.
29789         * build-aux/vc-list-files: In the replacement awk script, use
29790         substr with a second argument of 1, not zero.
29791         Report by Simon Josefsson.
29792
29793 2009-02-28  Bruno Haible  <bruno@clisp.org>
29794
29795         More support for FreeMiNT.
29796         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29797         to FreeMiNT today.
29798         * lib/fwriting.c (fwriting): Likewise.
29799         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29800
29801 2009-02-28  Bruno Haible  <bruno@clisp.org>
29802
29803         * tests/test-freadseek.c (main): Disable test beyond end of file on
29804         FreeMiNT.
29805         * tests/test-ftello.c (main): Likewise.
29806         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29807
29808 2009-02-28  Bruno Haible  <bruno@clisp.org>
29809
29810         Add tentative support for FreeMiNT.
29811         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29812         * lib/fpurge.c (fpurge): Likewise.
29813         * lib/freadable.c (freadable): Likewise.
29814         * lib/freading.c (freading): Likewise.
29815         * lib/freadptr.c (freadptr): Likewise.
29816         * lib/freadseek.c (freadptrinc): Likewise.
29817         * lib/fseeko.c (rpl_fseeko): Likewise.
29818         * lib/fseterr.c (fseterr): Likewise.
29819         * lib/fwritable.c (fwritable): Likewise.
29820         * lib/fwriting.c (fwriting): Likewise.
29821         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29822         Hourihane.
29823         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29824
29825 2009-02-28  Bruno Haible  <bruno@clisp.org>
29826
29827         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29828         SIGCHLD.
29829         Reported by Jim Meyering.
29830
29831 2009-02-28  Bruno Haible  <bruno@clisp.org>
29832
29833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29834         Mention the results of these tests on various platforms.
29835         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29836         order.
29837         * doc/posix-functions/printf.texi: Likewise.
29838         * doc/posix-functions/snprintf.texi: Likewise.
29839         * doc/posix-functions/sprintf.texi: Likewise.
29840         * doc/posix-functions/vfprintf.texi: Likewise.
29841         * doc/posix-functions/vprintf.texi: Likewise.
29842         * doc/posix-functions/vsnprintf.texi: Likewise.
29843         * doc/posix-functions/vsprintf.texi: Likewise.
29844         * doc/glibc-functions/obstack_printf.texi: Likewise.
29845         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29846
29847 2009-02-28  Bruno Haible  <bruno@clisp.org>
29848
29849         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29850         Reported by Loïc Minier <lool@dooz.org>.
29851
29852 2009-02-27  Bruno Haible  <bruno@clisp.org>
29853
29854         * gnulib-tool (func_import): Make the sed expression used to create the
29855         sed script for updating the .gitignore file POSIX compliant.
29856         Reported by Eric Blake.
29857
29858 2009-02-27  Bruno Haible  <bruno@clisp.org>
29859
29860         * gnulib-tool (sed): Don't alias as "sed --posix".
29861         Reported by Eric Blake.
29862
29863 2009-02-27  Bruno Haible  <bruno@clisp.org>
29864
29865         Avoid test link errors.
29866         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29867         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29868         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29869         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29871
29872 2009-02-27  Bruno Haible  <bruno@clisp.org>
29873
29874         Avoid spurious "(cached)" in configure output.
29875         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29876         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29877         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29878         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29879         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29880         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29881         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29882         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29883         Reported by Eric Blake.
29884
29885 2009-02-27  Eric Blake  <ebb9@byu.net>
29886
29887         printf: fix regression in previous patch
29888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29889
29890 2009-02-27  Bruno Haible  <bruno@clisp.org>
29891
29892         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29893         value.
29894         * lib/stdint.in.h: Likewise.
29895         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29896
29897 2009-02-27  Eric Blake  <ebb9@byu.net>
29898
29899         doc: mention more functions added in cygwin 1.7.0
29900         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29901         addition.
29902         * doc/posix-functions/open_wmemstream.texi: Likewise.
29903         * doc/posix-functions/wcsnlen.texi: Likewise.
29904         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29905         * doc/posix-functions/wcstod.texi: Likewise.
29906         * doc/posix-functions/wcstof.texi: Likewise.
29907         * doc/posix-functions/wcstoimax.texi: Likewise.
29908         * doc/posix-functions/wcstok.texi: Likewise.
29909         * doc/posix-functions/wcstoumax.texi: Likewise.
29910
29911         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29913         * doc/posix-functions/fprintf.texi: Update.
29914         * doc/posix-functions/printf.texi: Update.
29915         * doc/posix-functions/snprintf.texi: Update.
29916         * doc/posix-functions/sprintf.texi: Update.
29917         * doc/posix-functions/vfprintf.texi: Update.
29918         * doc/posix-functions/vprintf.texi: Update.
29919         * doc/posix-functions/vsnprintf.texi: Update.
29920         * doc/posix-functions/vsprintf.texi: Update.
29921         * doc/glibc-functions/obstack_printf.texi: Update.
29922         * doc/glibc-functions/obstack_vprintf.texi: Update.
29923
29924 2009-02-26  Eric Blake  <ebb9@byu.net>
29925
29926         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29927         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29928         compilation bug by using runtime conversion.
29929         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29930         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29931         * modules/ceill-tests (Files): Use nan.h.
29932         * modules/floorl-tests (Files): Likewise.
29933         * modules/frexpl-tests (Files): Likewise.
29934         * modules/isnanl-tests (Files): Likewise.
29935         * modules/ldexpl-tests (Files): Likewise.
29936         * modules/roundl-tests (Files): Likewise.
29937         * modules/truncl-tests (Files): Likewise.
29938         * tests/test-ceill.c (main): Use a working NaN.
29939         * tests/test-floorl.c (main): Likewise.
29940         * tests/test-frexpl.c (main): Likewise.
29941         * tests/test-isnan.c (test_long_double): Likewise.
29942         * tests/test-isnanl.h (main): Likewise.
29943         * tests/test-ldexpl.h (main): Likewise.
29944         * tests/test-roundl.h (main): Likewise.
29945         * tests/test-truncl.h (main): Likewise.
29946         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29947
29948 2009-02-26  Eric Blake  <ebb9@byu.net>
29949             Bruno Haible  <bruno@clisp.org>
29950
29951         Work around a *printf bug with %ls on Solaris.
29952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29953         precision is specified, sprintf stops converting the wide string
29954         argument when the number of bytes that have been produced by this
29955         conversion equals or exceeds the precision.
29956         * doc/posix-functions/fprintf.texi: Update.
29957         * doc/posix-functions/printf.texi: Update.
29958         * doc/posix-functions/snprintf.texi: Update.
29959         * doc/posix-functions/sprintf.texi: Update.
29960         * doc/posix-functions/vfprintf.texi: Update.
29961         * doc/posix-functions/vprintf.texi: Update.
29962         * doc/posix-functions/vsnprintf.texi: Update.
29963         * doc/posix-functions/vsprintf.texi: Update.
29964         * doc/glibc-functions/obstack_printf.texi: Update.
29965         * doc/glibc-functions/obstack_vprintf.texi: Update.
29966
29967 2009-02-26  Eric Blake  <ebb9@byu.net>
29968
29969         stdlib: favor compiler check of random.h
29970         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29971         to avoid an ObjC random.h installed by Swarm.
29972
29973 2009-02-26  Bruno Haible  <bruno@clisp.org>
29974
29975         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29976         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29977         Reported by Gary V. Vaughan <gary@gnu.org>.
29978
29979 2009-02-26  Bruno Haible  <bruno@clisp.org>
29980
29981         Fix *printf behaviour regarding the %ls directive.
29982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29983         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29984         NEED_PRINTF_DIRECTIVE_LS.
29985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29986         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29988         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29989         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29990         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29991         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29996         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30000         * doc/posix-functions/fprintf.texi: Update.
30001         * doc/posix-functions/printf.texi: Update.
30002         * doc/posix-functions/snprintf.texi: Update.
30003         * doc/posix-functions/sprintf.texi: Update.
30004         * doc/posix-functions/vfprintf.texi: Update.
30005         * doc/posix-functions/vprintf.texi: Update.
30006         * doc/posix-functions/vsnprintf.texi: Update.
30007         * doc/posix-functions/vsprintf.texi: Update.
30008         * doc/glibc-functions/obstack_printf.texi: Update.
30009         * doc/glibc-functions/obstack_vprintf.texi: Update.
30010         Reported by Eric Blake.
30011
30012 2009-02-25  Bruno Haible  <bruno@clisp.org>
30013
30014         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30015         with known value.
30016         Reported by Gary V. Vaughan <gary@gnu.org>.
30017
30018 2009-02-25  Bruno Haible  <bruno@clisp.org>
30019
30020         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30021         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30022         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30023         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30024         Reported by Gary V. Vaughan <gary@gnu.org>.
30025
30026 2009-02-25  Bruno Haible  <bruno@clisp.org>
30027
30028         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30029         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30030         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30031         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30032         Reported by Gary V. Vaughan <gary@gnu.org>.
30033
30034 2009-02-25  Eric Blake  <ebb9@byu.net>
30035
30036         tests: skip fseek/ftell tests if ungetc is broken
30037         * m4/ungetc.m4: New file.
30038         * modules/fseek-tests: Split test, so ungetc dependency is
30039         separate from rest of test.
30040         * modules/fseeko-tests: Likewise.
30041         * modules/ftell-tests: Likewise.
30042         * modules/ftello-tests: Likewise.
30043         * tests/test-fseek.c (main): Isolate ungetc dependency.
30044         * tests/test-fseeko.c (main): Likewise.
30045         * tests/test-ftell.c (main): Likewise.
30046         * tests/test-ftello.c (main): Likewise.
30047         * tests/test-fseek2.sh: New file.
30048         * tests/test-fseeko2.sh: Likewise.
30049         * tests/test-ftell2.sh: Likewise.
30050         * tests/test-ftello2.sh: Likewise.
30051
30052 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
30053
30054         test-getaddrinfo: fix usage of skip return code 77
30055         * tests/test-gettaddrinfo.c: Return skip code 77 only
30056         for first occurance of skip (4x77 is not 77)
30057
30058 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30059
30060         strtod: avoid C99 decl-after-statement
30061         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30062
30063 2009-02-24  Eric Blake  <ebb9@byu.net>
30064
30065         strtod: detect HP-UX 11.31 bug
30066         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30067         Reported by Gary V. Vaughan.
30068
30069 2009-02-23  Bruno Haible  <bruno@clisp.org>
30070
30071         Fix invalid read past end of memory block.
30072         * lib/vasnprintf.c (DCHAR_SET): Define.
30073         (local_wcslen): Define only when needed.
30074         (local_strnlen, local_wcsnlen): New functions.
30075         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30076         directives that involve a conversion ourselves.
30077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30078         wcsnlen, mbrtowc, wcrtomb.
30079         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30080         * tests/test-vasprintf-posix.c (test_function): Likewise.
30081         * tests/test-snprintf-posix.h (test_function): Likewise.
30082         * tests/test-sprintf-posix.h (test_function): Likewise.
30083         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30084
30085 2009-02-22  Bruno Haible  <bruno@clisp.org>
30086
30087         Implement new clarified decomposition of Hangul syllables.
30088         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30089         of type LTV, return only a pairwise decomposition.
30090         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30091         Likewise.
30092         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30093         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30094         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30095
30096 2009-02-22  Bruno Haible  <bruno@clisp.org>
30097
30098         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30099         zero-length results and shrink excess allocated memory.
30100         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30101         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30102         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30103         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30104         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30105         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30106         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30107         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30108         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30109         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30110         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30111         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30112
30113 2009-02-21  Bruno Haible  <bruno@clisp.org>
30114
30115         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30116         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30117         spaces after a period. Put a space between a macro name and its
30118         argument list. Trivial rewordings.
30119         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30120         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30121         (main): Return 0 explicitly.
30122
30123 2009-02-21  Bruno Haible  <bruno@clisp.org>
30124
30125         Tests for module 'uninorm/filter'.
30126         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30127         * modules/uninorm/filter-tests: New file.
30128
30129         New module 'uninorm/filter'.
30130         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30131         uninorm_filter_flush, uninorm_filter_free): New declarations.
30132         * lib/uninorm/uninorm-filter.c: New file.
30133         * modules/uninorm/filter: New file.
30134
30135 2009-02-21  Bruno Haible  <bruno@clisp.org>
30136
30137         Tests for module 'uninorm/nfkc'.
30138         * tests/uninorm/test-nfkc.c: New file.
30139         * tests/uninorm/test-u8-nfkc.c: New file.
30140         * tests/uninorm/test-u16-nfkc.c: New file.
30141         * tests/uninorm/test-u32-nfkc.c: New file.
30142         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30143         * tests/uninorm/test-u32-nfkc-big.c: New file.
30144         * modules/uninorm/nfkc-tests: New file.
30145
30146         New module 'uninorm/nfkc'.
30147         * lib/uninorm/nfkc.c: New file.
30148         * modules/uninorm/nfkc: New file.
30149
30150         Tests for module 'uninorm/nfkd'.
30151         * tests/uninorm/test-nfkd.c: New file.
30152         * tests/uninorm/test-u8-nfkd.c: New file.
30153         * tests/uninorm/test-u16-nfkd.c: New file.
30154         * tests/uninorm/test-u32-nfkd.c: New file.
30155         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30156         * tests/uninorm/test-u32-nfkd-big.c: New file.
30157         * modules/uninorm/nfkd-tests: New file.
30158
30159         New module 'uninorm/nfkd'.
30160         * lib/uninorm/nfkd.c: New file.
30161         * modules/uninorm/nfkd: New file.
30162
30163         Tests for module 'uninorm/nfc'.
30164         * tests/uninorm/test-nfc.c: New file.
30165         * tests/uninorm/test-u8-nfc.c: New file.
30166         * tests/uninorm/test-u16-nfc.c: New file.
30167         * tests/uninorm/test-u32-nfc.c: New file.
30168         * tests/uninorm/test-u32-nfc-big.sh: New file.
30169         * tests/uninorm/test-u32-nfc-big.c: New file.
30170         * modules/uninorm/nfc-tests: New file.
30171
30172         New module 'uninorm/nfc'.
30173         * lib/uninorm/nfc.c: New file.
30174         * modules/uninorm/nfc: New file.
30175
30176         Tests for module 'uninorm/nfd'.
30177         * tests/uninorm/test-nfd.c: New file.
30178         * tests/uninorm/test-u8-nfd.c: New file.
30179         * tests/uninorm/test-u16-nfd.c: New file.
30180         * tests/uninorm/test-u32-nfd.c: New file.
30181         * tests/uninorm/test-u32-nfd-big.sh: New file.
30182         * tests/uninorm/test-u32-nfd-big.c: New file.
30183         * tests/uninorm/test-u32-normalize-big.h: New file.
30184         * tests/uninorm/test-u32-normalize-big.c: New file.
30185         * tests/uninorm/NormalizationTest.txt: New file, created from
30186         Unicode 5.1.0 NormalizationTest.txt.
30187         * modules/uninorm/nfd-tests: New file.
30188
30189         New module 'uninorm/nfd'.
30190         * lib/uninorm/nfd.c: New file.
30191         * modules/uninorm/nfd: New file.
30192
30193         New module 'uninorm/u32-normalize'.
30194         * lib/uninorm/u32-normalize.c: New file.
30195         * modules/uninorm/u32-normalize: New file.
30196
30197         New module 'uninorm/u16-normalize'.
30198         * lib/uninorm/u16-normalize.c: New file.
30199         * modules/uninorm/u16-normalize: New file.
30200
30201         New module 'uninorm/u8-normalize'.
30202         * lib/uninorm/u8-normalize.c: New file.
30203         * lib/uninorm/normalize-internal.h: New file.
30204         * lib/uninorm/u-normalize-internal.h: New file.
30205         * modules/uninorm/u8-normalize: New file.
30206
30207         New module 'uninorm/decompose-internal'.
30208         * lib/uninorm/decompose-internal.c: New file.
30209         * modules/uninorm/decompose-internal: New file.
30210
30211         Tests for module 'uninorm/composition'.
30212         * tests/uninorm/test-composition.c: New file.
30213         * modules/uninorm/composition-tests: New file.
30214
30215         New module 'uninorm/composition'.
30216         * lib/uninorm/composition.c: New file.
30217         * lib/uninorm/composition-table.gperf: New file, generated by
30218         gen-uni-tables.
30219         * modules/uninorm/composition: New file.
30220
30221         Tests for module 'uninorm/compat-decomposition'.
30222         * tests/uninorm/test-compat-decomposition.c: New file.
30223         * modules/uninorm/compat-decomposition-tests: New file.
30224
30225         New module 'uninorm/compat-decomposition'.
30226         * lib/uninorm/decompose-internal.h: New file.
30227         * lib/uninorm/compat-decomposition.c: New file.
30228         * modules/uninorm/compat-decomposition: New file.
30229
30230         Tests for module 'uninorm/canonical-decomposition'.
30231         * tests/uninorm/test-canonical-decomposition.c: New file.
30232         * modules/uninorm/canonical-decomposition-tests: New file.
30233
30234         New module 'uninorm/canonical-decomposition'.
30235         * lib/uninorm/canonical-decomposition.c: New file.
30236         * modules/uninorm/canonical-decomposition: New file.
30237
30238         Tests for module 'uninorm/decomposition'.
30239         * tests/uninorm/test-decomposition.c: New file.
30240         * modules/uninorm/decomposition-tests: New file.
30241
30242         New module 'uninorm/decomposition'.
30243         * lib/uninorm/decomposition.c: New file.
30244         * modules/uninorm/decomposition: New file.
30245
30246         New module 'uninorm/decomposition-table'.
30247         * lib/uninorm/decomposition-table.h: New file.
30248         * lib/uninorm/decomposition-table.c: New file.
30249         * lib/uninorm/decomposition-table1.h: New file, generated by
30250         gen-uni-tables.
30251         * lib/uninorm/decomposition-table2.h: New file, generated by
30252         gen-uni-tables.
30253         * modules/uninorm/decomposition-table: New file.
30254
30255         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30256         (UC_DECOMP_*): New enumeration items.
30257         (get_decomposition): New function.
30258         (struct decomp_table): New type.
30259         (output_decomposition, output_decomposition_tables): New functions.
30260         (unicode_composition_exclusions): New variable.
30261         (fill_composition_exclusions, debug_output_composition_tables): New
30262         functions.
30263         (main): Accept one more argument. Invoke fill_composition_exclusions.
30264         Output decomposition and composition tables.
30265
30266         New module 'uninorm/base'.
30267         * lib/uninorm.h: New file.
30268         * lib/unictype.h: Update comment.
30269         * modules/uninorm/base: New file.
30270
30271 2009-02-21  David Lutterkort  <lutter@redhat.com>
30272
30273         Tests for module 'safe-alloc'.
30274         * tests/test-safe-alloc.c: New file.
30275         * modules/safe-alloc-tests: New file.
30276
30277         New module 'safe-alloc'.
30278         * lib/safe-alloc.h: New file.
30279         * lib/safe-alloc.c: New file.
30280         * m4/safe-alloc.m4: New file.
30281         * modules/safe-alloc: New file.
30282         * doc/safe-alloc.texi: New file.
30283         * doc/gnulib.texi: Include it.
30284         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30285         safe-alloc.
30286
30287 2009-02-18  Bruno Haible  <bruno@clisp.org>
30288
30289         Fix link error on non-glibc systems.
30290         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30291         variable.
30292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30293
30294 2009-02-18  Jim Meyering  <meyering@redhat.com>
30295
30296         fts: avoid used-uninitialized error due to recent change
30297         * lib/fts.c (fts_read): Guard uses of the new member,
30298         parent->fts_n_dirs_remaining, since it's not relevant for
30299         the parent of a directory specified on the command-line.
30300
30301 2009-02-17  James Youngman  <jay@gnu.org>
30302             Bruno Haible  <bruno@clisp.org>
30303
30304         * m4/include_next.m4: Reformulate comment.
30305
30306 2009-02-16  Jim Meyering  <meyering@redhat.com>
30307
30308         fts: add #if guards so that the fts_lgpl module still builds
30309         * lib/fts.c: Guard just-added hash-table-using parts with
30310         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30311         Reported by Simon Josefsson.
30312
30313 2009-02-15  Bruno Haible  <bruno@clisp.org>
30314
30315         * modules/array-mergesort-tests: New file.
30316         * tests/test-array-mergesort.c: New file.
30317
30318         New module 'array-mergesort'.
30319         * modules/array-mergesort: New file.
30320         * lib/array-mergesort.h: New file.
30321
30322 2009-02-15  Bruno Haible  <bruno@clisp.org>
30323
30324         Fix 2009-02-07 commit.
30325         * lib/gen-uni-tables.c (output_predicate, output_category,
30326         output_combclass, output_bidi_category, output_decimal_digit,
30327         output_digit, output_numeric, output_mirror, output_scripts,
30328         output_ident_category, output_simple_mapping): Fix format directives.
30329         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30330
30331 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30332
30333         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30334         fixes are available from IBM.
30335
30336 2009-02-13  Jim Meyering  <meyering@redhat.com>
30337
30338         fts: arrange not to stat non-directories in more cases
30339         This makes GNU find (when it doesn't need to stat each file)
30340         *much* more efficient at traversing reiserfs file systems.
30341         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30342         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30343         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30344         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30345         (leaf_optimization_applies): New function.
30346         (LCO_hash, LCO_compare): New helper functions.
30347         (link_count_optimize_ok): New function.
30348         (fts_stat): Initialize new member (if dir).
30349         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30350         we've just stat'ed a directory.  Skip the stat call when possible.
30351         ---
30352         Note this AFS-related exchange:
30353         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30354         and note find's pioctl call in find/fstype.c.
30355         But that is necessary only if you want to enable the
30356         optimization for AFS, and for now, I don't.
30357
30358         fts: move a function definition "up" (no semantic change)
30359         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30360         "up" to precede upcoming use of a related function.
30361
30362 2009-02-11  Jim Meyering  <meyering@redhat.com>
30363
30364         fts: correct internal computation of nlinks (optimization-related)
30365         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30366         whether the current entry is a directory, so don't test it.
30367
30368 2009-02-10  Bruno Haible  <bruno@clisp.org>
30369
30370         Tests for module 'uniwbrk/ulc-wordbreaks'.
30371         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30372         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30373         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30374
30375         Tests for module 'uniwbrk/u32-wordbreaks'.
30376         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30377         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30378
30379         Tests for module 'uniwbrk/u16-wordbreaks'.
30380         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30381         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30382
30383         Tests for module 'uniwbrk/u8-wordbreaks'.
30384         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30385         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30386
30387 2009-02-10  Bruno Haible  <bruno@clisp.org>
30388
30389         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30390         property.
30391         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30392         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30393         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30394
30395 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30396
30397         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30398         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30399
30400 2009-02-10  Bruno Haible  <bruno@clisp.org>
30401
30402         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30403         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30404         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30405         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30406         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30407         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30408
30409 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30410
30411         * lib/sockets.h (gl_fd_to_handle): New function.
30412
30413         * tests/test-sockets.c: Call gl_fd_to_handle.
30414
30415 2009-02-09  Bruno Haible  <bruno@clisp.org>
30416
30417         * doc/havelib.texi: Document the conventions on bi-arch systems.
30418
30419 2009-02-08  Bruno Haible  <bruno@clisp.org>
30420
30421         Document the AC_LIB_LINKFLAGS macro.
30422         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30423         * doc/gnulib.texi: Include it.
30424
30425 2009-02-08  Bruno Haible  <bruno@clisp.org>
30426
30427         Fix wrong order of sections, compared to TOC.
30428         * doc/gnulib.texi: Include relocatable-maint.texi after the
30429         "Regular expressions" node, not before.
30430
30431 2009-02-08  Bruno Haible  <bruno@clisp.org>
30432
30433         Tests for module 'unicase/totitle'.
30434         * modules/unicase/totitle-tests: New file.
30435
30436         Tests for module 'unicase/tolower'.
30437         * modules/unicase/tolower-tests: New file.
30438
30439         Tests for module 'unicase/toupper'.
30440         * modules/unicase/toupper-tests: New file.
30441         * tests/unicase/test-mapping-part1.h: New file.
30442         * tests/unicase/test-mapping-part2.h: New file.
30443
30444         New module 'unicase/totitle'.
30445         * modules/unicase/totitle: New file.
30446         * lib/unicase/totitle.c: New file.
30447
30448         New module 'unicase/tolower'.
30449         * modules/unicase/tolower: New file.
30450         * lib/unicase/tolower.c: New file.
30451
30452         New module 'unicase/toupper'.
30453         * modules/unicase/toupper: New file.
30454         * lib/unicase/toupper.c: New file.
30455         * lib/unicase/simple-mapping.h: New file.
30456
30457         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30458         (mapping_table): New structure.
30459         (output_simple_mapping): New function.
30460         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30461         * modules/gen-uni-tables (Description): Update.
30462         * lib/unicase/toupper.h: New file, automatically generated by
30463         gen-uni-tables.
30464         * lib/unicase/tolower.h: New file, automatically generated by
30465         gen-uni-tables.
30466         * lib/unicase/totitle.h: New file, automatically generated by
30467         gen-uni-tables.
30468         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30469         gen-uni-tables.
30470         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30471         gen-uni-tables.
30472         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30473         gen-uni-tables.
30474
30475         New module 'unicase/base'.
30476         * modules/unicase/base: New file.
30477         * lib/unicase.h: New file.
30478
30479 2009-02-08  Bruno Haible  <bruno@clisp.org>
30480
30481         New module 'uniwbrk/ulc-wordbreaks'.
30482         * modules/uniwbrk/ulc-wordbreaks: New file.
30483         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30484
30485         New module 'uniwbrk/u32-wordbreaks'.
30486         * modules/uniwbrk/u32-wordbreaks: New file.
30487         * lib/uniwbrk/u32-wordbreaks.c: New file.
30488
30489         New module 'uniwbrk/u16-wordbreaks'.
30490         * modules/uniwbrk/u16-wordbreaks: New file.
30491         * lib/uniwbrk/u16-wordbreaks.c: New file.
30492
30493         New module 'uniwbrk/u8-wordbreaks'.
30494         * modules/uniwbrk/u8-wordbreaks: New file.
30495         * lib/uniwbrk/u8-wordbreaks.c: New file.
30496         * lib/uniwbrk/u-wordbreaks.h: New file.
30497
30498         New module 'uniwbrk/table'.
30499         * modules/uniwbrk/table: New file.
30500         * lib/uniwbrk/wbrktable.h: New file.
30501         * lib/uniwbrk/wbrktable.c: New file.
30502
30503         New module 'uniwbrk/wordbreak-property'.
30504         * modules/uniwbrk/wordbreak-property: New file.
30505         * lib/uniwbrk/wordbreak-property.c: New file.
30506
30507         * lib/gen-uni-tables.c (WBP_*): New enum items.
30508         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30509         (unicode_org_wbp): New variable.
30510         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30511         New functions.
30512         (wbp_table): New structure.
30513         (output_wbp, output_wbrk_tables): New functions.
30514         (main): Accept additional argument. Invoke fill_org_wbp,
30515         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30516         output_wbrk_tables.
30517         * modules/gen-uni-tables (Description): Update.
30518         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30519         gen-uni-tables.
30520
30521         New module 'uniwbrk/base'.
30522         * modules/uniwbrk/base: New file.
30523         * lib/uniwbrk.h: New file.
30524
30525 2009-02-08  Bruno Haible  <bruno@clisp.org>
30526
30527         Update to Unicode 5.1.0.
30528         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30529         U+2185..U+2188.
30530         (is_property_default_ignorable_code_point): Don't include characters
30531         of category Cc or Cs and not-a-characters.
30532         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30533         U+0D79, U+109E, U+109F, U+A60C.
30534         * lib/unictype/bidi_of.h: Regenerated.
30535         * lib/unictype/blocks.h: Regenerated.
30536         * lib/unictype/categ_C.h: Regenerated.
30537         * lib/unictype/categ_Cf.h: Regenerated.
30538         * lib/unictype/categ_Cn.h: Regenerated.
30539         * lib/unictype/categ_L.h: Regenerated.
30540         * lib/unictype/categ_Ll.h: Regenerated.
30541         * lib/unictype/categ_Lm.h: Regenerated.
30542         * lib/unictype/categ_Lo.h: Regenerated.
30543         * lib/unictype/categ_Lu.h: Regenerated.
30544         * lib/unictype/categ_M.h: Regenerated.
30545         * lib/unictype/categ_Mc.h: Regenerated.
30546         * lib/unictype/categ_Me.h: Regenerated.
30547         * lib/unictype/categ_Mn.h: Regenerated.
30548         * lib/unictype/categ_N.h: Regenerated.
30549         * lib/unictype/categ_Nd.h: Regenerated.
30550         * lib/unictype/categ_Nl.h: Regenerated.
30551         * lib/unictype/categ_No.h: Regenerated.
30552         * lib/unictype/categ_P.h: Regenerated.
30553         * lib/unictype/categ_Pd.h: Regenerated.
30554         * lib/unictype/categ_Pe.h: Regenerated.
30555         * lib/unictype/categ_Pf.h: Regenerated.
30556         * lib/unictype/categ_Pi.h: Regenerated.
30557         * lib/unictype/categ_Po.h: Regenerated.
30558         * lib/unictype/categ_Ps.h: Regenerated.
30559         * lib/unictype/categ_S.h: Regenerated.
30560         * lib/unictype/categ_Sk.h: Regenerated.
30561         * lib/unictype/categ_Sm.h: Regenerated.
30562         * lib/unictype/categ_So.h: Regenerated.
30563         * lib/unictype/categ_of.h: Regenerated.
30564         * lib/unictype/combining.h: Regenerated.
30565         * lib/unictype/ctype_alnum.h: Regenerated.
30566         * lib/unictype/ctype_alpha.h: Regenerated.
30567         * lib/unictype/ctype_graph.h: Regenerated.
30568         * lib/unictype/ctype_lower.h: Regenerated.
30569         * lib/unictype/ctype_print.h: Regenerated.
30570         * lib/unictype/ctype_punct.h: Regenerated.
30571         * lib/unictype/ctype_upper.h: Regenerated.
30572         * lib/unictype/decdigit.h: Regenerated.
30573         * lib/unictype/digit.h: Regenerated.
30574         * lib/unictype/mirror.h: Regenerated.
30575         * lib/unictype/numeric.h: Regenerated.
30576         * lib/unictype/pr_alphabetic.h: Regenerated.
30577         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30578         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30579         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30580         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30581         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30582         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30583         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30584         * lib/unictype/pr_combining.h: Regenerated.
30585         * lib/unictype/pr_dash.h: Regenerated.
30586         * lib/unictype/pr_decimal_digit.h: Regenerated.
30587         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30588         * lib/unictype/pr_deprecated.h: Regenerated.
30589         * lib/unictype/pr_diacritic.h: Regenerated.
30590         * lib/unictype/pr_extender.h: Regenerated.
30591         * lib/unictype/pr_format_control.h: Regenerated.
30592         * lib/unictype/pr_grapheme_base.h: Regenerated.
30593         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30594         * lib/unictype/pr_grapheme_link.h: Regenerated.
30595         * lib/unictype/pr_id_continue.h: Regenerated.
30596         * lib/unictype/pr_id_start.h: Regenerated.
30597         * lib/unictype/pr_ideographic.h: Regenerated.
30598         * lib/unictype/pr_ignorable_control.h: Regenerated.
30599         * lib/unictype/pr_lowercase.h: Regenerated.
30600         * lib/unictype/pr_math.h: Regenerated.
30601         * lib/unictype/pr_numeric.h: Regenerated.
30602         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30603         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30604         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30605         * lib/unictype/pr_other_id_continue.h: Regenerated.
30606         * lib/unictype/pr_other_lowercase.h: Regenerated.
30607         * lib/unictype/pr_other_math.h: Regenerated.
30608         * lib/unictype/pr_punctuation.h: Regenerated.
30609         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30610         * lib/unictype/pr_soft_dotted.h: Regenerated.
30611         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30612         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30613         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30614         * lib/unictype/pr_uppercase.h: Regenerated.
30615         * lib/unictype/pr_xid_continue.h: Regenerated.
30616         * lib/unictype/pr_xid_start.h: Regenerated.
30617         * lib/unictype/pr_zero_width.h: Regenerated.
30618         * lib/unictype/scripts.h: Regenerated.
30619         * lib/unictype/scripts_byname.gperf: Regenerated.
30620         * lib/unictype/sy_java_ident.h: Regenerated.
30621         * lib/unilbrk/lbrkprop1.h: Regenerated.
30622         * lib/unilbrk/lbrkprop2.h: Regenerated.
30623         * tests/unictype/test-categ_C.c: Regenerated.
30624         * tests/unictype/test-categ_Cf.c: Regenerated.
30625         * tests/unictype/test-categ_Cn.c: Regenerated.
30626         * tests/unictype/test-categ_L.c: Regenerated.
30627         * tests/unictype/test-categ_Ll.c: Regenerated.
30628         * tests/unictype/test-categ_Lm.c: Regenerated.
30629         * tests/unictype/test-categ_Lo.c: Regenerated.
30630         * tests/unictype/test-categ_Lu.c: Regenerated.
30631         * tests/unictype/test-categ_M.c: Regenerated.
30632         * tests/unictype/test-categ_Mc.c: Regenerated.
30633         * tests/unictype/test-categ_Me.c: Regenerated.
30634         * tests/unictype/test-categ_Mn.c: Regenerated.
30635         * tests/unictype/test-categ_N.c: Regenerated.
30636         * tests/unictype/test-categ_Nd.c: Regenerated.
30637         * tests/unictype/test-categ_Nl.c: Regenerated.
30638         * tests/unictype/test-categ_No.c: Regenerated.
30639         * tests/unictype/test-categ_P.c: Regenerated.
30640         * tests/unictype/test-categ_Pd.c: Regenerated.
30641         * tests/unictype/test-categ_Pe.c: Regenerated.
30642         * tests/unictype/test-categ_Pf.c: Regenerated.
30643         * tests/unictype/test-categ_Pi.c: Regenerated.
30644         * tests/unictype/test-categ_Po.c: Regenerated.
30645         * tests/unictype/test-categ_Ps.c: Regenerated.
30646         * tests/unictype/test-categ_S.c: Regenerated.
30647         * tests/unictype/test-categ_Sk.c: Regenerated.
30648         * tests/unictype/test-categ_Sm.c: Regenerated.
30649         * tests/unictype/test-categ_So.c: Regenerated.
30650         * tests/unictype/test-ctype_alnum.c: Regenerated.
30651         * tests/unictype/test-ctype_alpha.c: Regenerated.
30652         * tests/unictype/test-ctype_graph.c: Regenerated.
30653         * tests/unictype/test-ctype_lower.c: Regenerated.
30654         * tests/unictype/test-ctype_print.c: Regenerated.
30655         * tests/unictype/test-ctype_punct.c: Regenerated.
30656         * tests/unictype/test-ctype_upper.c: Regenerated.
30657         * tests/unictype/test-decdigit.h: Regenerated.
30658         * tests/unictype/test-digit.h: Regenerated.
30659         * tests/unictype/test-numeric.h: Regenerated.
30660         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30661         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30662         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30663         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30664         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30665         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30666         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30667         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30668         * tests/unictype/test-pr_combining.c: Regenerated.
30669         * tests/unictype/test-pr_dash.c: Regenerated.
30670         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30671         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30672         * tests/unictype/test-pr_deprecated.c: Regenerated.
30673         * tests/unictype/test-pr_diacritic.c: Regenerated.
30674         * tests/unictype/test-pr_extender.c: Regenerated.
30675         * tests/unictype/test-pr_format_control.c: Regenerated.
30676         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30677         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30678         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30679         * tests/unictype/test-pr_id_continue.c: Regenerated.
30680         * tests/unictype/test-pr_id_start.c: Regenerated.
30681         * tests/unictype/test-pr_ideographic.c: Regenerated.
30682         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30683         * tests/unictype/test-pr_lowercase.c: Regenerated.
30684         * tests/unictype/test-pr_math.c: Regenerated.
30685         * tests/unictype/test-pr_numeric.c: Regenerated.
30686         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30687         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30688         Regenerated.
30689         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30690         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30691         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30692         * tests/unictype/test-pr_other_math.c: Regenerated.
30693         * tests/unictype/test-pr_punctuation.c: Regenerated.
30694         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30695         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30696         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30697         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30698         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30699         * tests/unictype/test-pr_uppercase.c: Regenerated.
30700         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30701         * tests/unictype/test-pr_xid_start.c: Regenerated.
30702         * tests/unictype/test-pr_zero_width.c: Regenerated.
30703
30704         Update to Unicode 5.1.0.
30705         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30706         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30707         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30708         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30709         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30710         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30711         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30712         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30713         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30714         (nonspacing_table_ind): Update.
30715         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30716
30717         Update to Unicode 5.1.0.
30718         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30719         code transform.
30720         * lib/uniname/uniname.c (unicode_character_name,
30721         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30722         * lib/uniname/uninames.h: Regenerated.
30723         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30724
30725 2009-02-07  Bruno Haible  <bruno@clisp.org>
30726
30727         Merge gen-ctype and gen-lbrk into a single program.
30728         * lib/gen-uni-tables.c: New file, incorporating
30729         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30730         Add directory prefixes to the names of the generated files.
30731         * lib/unictype/gen-ctype.c: Remove file.
30732         * lib/unilbrk/gen-lbrk.c: Remove file.
30733         * modules/gen-uni-tables: New file.
30734         * modules/unictype/gen-ctype: Remove file.
30735         * modules/unilbrk/gen-lbrk: Remove file.
30736
30737 2009-02-07  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30740
30741         New module 'unistr/u32-strcoll'.
30742         * modules/unistr/u32-strcoll: New file.
30743         * lib/unistr/u32-strcoll.c: New file.
30744
30745         New module 'unistr/u16-strcoll'.
30746         * modules/unistr/u16-strcoll: New file.
30747         * lib/unistr/u16-strcoll.c: New file.
30748
30749         New module 'unistr/u8-strcoll'.
30750         * modules/unistr/u8-strcoll: New file.
30751         * lib/unistr/u8-strcoll.c: New file.
30752         * lib/unistr/u-strcoll.h: New file.
30753
30754 2009-02-07  Bruno Haible  <bruno@clisp.org>
30755
30756         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30757         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30758         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30759         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30760         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30761         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30762
30763 2009-02-07  Bruno Haible  <bruno@clisp.org>
30764
30765         Make 64-bit clean.
30766         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30767         output_combclass, output_bidi_category, output_decimal_digit,
30768         output_digit, output_numeric, output_mirror, output_scripts,
30769         output_ident_category): Use proper width specifier in format strings.
30770
30771 2009-02-07  Bruno Haible  <bruno@clisp.org>
30772
30773         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30774         failure behaviour.
30775
30776 2009-02-07  Jim Meyering  <meyering@redhat.com>
30777
30778         regex: avoid compilation failure with upcoming gcc-4.4
30779         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30780         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30781         "... error: integer overflow in preprocessor expression".
30782
30783 2009-02-05  Ben Pfaff  <blp@gnu.org>
30784
30785         Fix link errors on Windows when close module is used.
30786         * modules/close: Add $(LIB_CLOSE) to Link section.
30787         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30788         $(LIB_CLOSE) on Windows.
30789
30790 2009-02-05  Jim Meyering  <meyering@redhat.com>
30791
30792         still avoid unused-parameter warnings, but do it cleanly
30793         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30794         (get_fs_usage): Cast to void instead.
30795         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30796         (dev_from_mount_options, read_file_system_list): Cast to void.
30797         Prompted by Bruno Haible.
30798
30799 2009-02-04  Jim Meyering  <meyering@redhat.com>
30800
30801         fsusage.c: correct copyright year
30802         * lib/fsusage.c: Reflect year in which the change is pushed into
30803
30804         avoid misc. warnings
30805         * lib/fsusage.c (UNUSED_PARAM): Define.
30806         (get_fs_usage): Mark parameter "disk" as unused.
30807         * lib/getugroups.c (getgrent): Use "void" in prototype.
30808         * lib/mountlist.c: Mark unused parameters.
30809         (read_file_system_list): Declare a local with "const".
30810         * lib/nanosleep.c (getnow): Declare static.
30811         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30812
30813         dirfd: set errno upon failure
30814         * lib/dirfd.c: Include <errno.h>.
30815         Set errno to ENOTSUP when returning -1.
30816         * modules/dirfd (Depends-on): Add errno.
30817         Suggested by John Kodis <kodis@comcast.net>.
30818
30819 2009-02-01  Bruno Haible  <bruno@clisp.org>
30820
30821         Don't assume sizeof (long) >= sizeof (void *).
30822         * lib/memcmp.c: Include stdint.h.
30823         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30824         srcp2 to 'const byte *'.
30825         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30826         types to uintptr_t.
30827         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30828         * modules/memcmp (Depends-on): Add stdint.
30829         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30830
30831 2009-01-30  Eric Blake  <ebb9@byu.net>
30832
30833         fix more require-before-expand issues
30834         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30835         expand, AC_PROG_AWK.
30836         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30837
30838 2009-01-28  Eric Blake  <ebb9@byu.net>
30839
30840         version-etc: use consistent URL formatting
30841         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30842         Improve formatting.  Use fputs for string without %.
30843
30844 2009-01-28  Jim Meyering  <meyering@redhat.com>
30845
30846         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30847         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30848         "underquoted definition of NAME" from autoconf-2.59.
30849
30850 2009-01-28  Bruno Haible  <bruno@clisp.org>
30851
30852         * doc/gnulib.texi: Add "Obsolete modules" to index.
30853
30854 2009-01-28  Jim Meyering  <meyering@redhat.com>
30855
30856         useless-if-before-free: recognize more variants
30857         * build-aux/useless-if-before-free: Also recognize e.g.,
30858         if (NULL != p) free (p);
30859
30860 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30861
30862         test-getaddrinfo: skip (don't fail) this test when there's no network
30863         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30864         on the presumption that it means you lack network access.
30865
30866 2009-01-26  Jim Meyering  <meyering@redhat.com>
30867
30868         fflush: avoid warnings on modern systems
30869         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30870         pos and result, into scopes where they're used.
30871
30872 2009-01-26  Eric Blake  <ebb9@byu.net>
30873
30874         Silence warning reintroduced by recent extensions patch.
30875         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30876         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30877         autoconf.
30878
30879         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30880         * m4/00gnulib.m4: New file.
30881         * gnulib-tool (func_get_filelist): Always use it.
30882         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30883         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30884
30885 2009-01-25  Bruno Haible  <bruno@clisp.org>
30886
30887         Make test-quotearg work on MacOS X and AIX.
30888         * tests/test-quotearg.sh: New file.
30889         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30890         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30891         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30892         include <libintl.h>.
30893         (fake_locale): Remove variable.
30894         (gettext, dgettext, dcgettext): Remove functions.
30895         (main): Instead of setting a fake locale, set a real locale. Call
30896         textdomain and bindtextdomain.
30897         * modules/quotearg-tests (Files): Add the new files.
30898         (Depends-on): Add gettext, setenv, unsetenv.
30899         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30900         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30901         Augment TESTS_ENVIRONMENT.
30902
30903 2009-01-25  Bruno Haible  <bruno@clisp.org>
30904
30905         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30906         fr_FR.ISO8859-1 locale on MacOS X.
30907         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30908         ja_JP.eucJP locale on MacOS X.
30909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30910         zh_CN.GB18030 locale on MacOS X.
30911
30912 2009-01-25  Bruno Haible  <bruno@clisp.org>
30913
30914         Avoid link errors on MacOS X 10.3.
30915         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30916         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30917
30918 2009-01-25  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30921         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30922         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30923         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30924         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30925         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30926         posix_spawnattr_init, posix_spawnattr_setsigmask,
30927         posix_spawnattr_setflags, posix_spawnattr_destroy.
30928
30929         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30930         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30931         * modules/execute (Files): Remove m4/posix_spawn.m4.
30932         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30933         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30934         posix_spawnattr_init, posix_spawnattr_setsigmask,
30935         posix_spawnattr_setflags, posix_spawnattr_destroy.
30936
30937 2009-01-25  Bruno Haible  <bruno@clisp.org>
30938
30939         * lib/glthread/threadlib.c: Include <stdlib.h>.
30940
30941 2009-01-25  Bruno Haible  <bruno@clisp.org>
30942
30943         * lib/glthread/threadlib.c (dummy): New declaration.
30944
30945 2009-01-25  Bruno Haible  <bruno@clisp.org>
30946
30947         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30948         multibyte characters also for the GB18030 encoding. Don't crash when
30949         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30950
30951 2009-01-25  Bruno Haible  <bruno@clisp.org>
30952
30953         Avoid redefining 'struct random_data' on OSF/1 5.1.
30954         * lib/stdlib.in.h: Include <random.h> if it exists.
30955         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30956         HAVE_RANDOM_H. Include <random.h> when testing whether
30957         'struct random_data' exists.
30958         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30959
30960 2009-01-25  Bruno Haible  <bruno@clisp.org>
30961
30962         Don't install charset.alias on MacOS X >= 10.3.
30963         * lib/localcharset.c (DARWIN7): New macro.
30964         (get_charset_aliases): Hardcode the result for Darwin7.
30965         * modules/localcharset (install-exec-local): Don't install
30966         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30967
30968 2009-01-25  Bruno Haible  <bruno@clisp.org>
30969
30970         Don't install charset.alias on mingw and Cygwin.
30971         * modules/localcharset (install-exec-local): Don't install
30972         charset.alias on mingw and Cygwin, if the file does not yet exist.
30973         The result for these platforms is hardcoded in localcharset.c.
30974
30975 2009-01-25  Bruno Haible  <bruno@clisp.org>
30976
30977         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30979         before requiring AC_USE_SYSTEM_EXTENSIONS.
30980
30981 2009-01-25  Jim Meyering  <meyering@redhat.com>
30982
30983         c-strtod: avoid warnings
30984         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30985         "assignment discards qualifiers from pointer target type" warnings.
30986
30987 2009-01-24  Bruno Haible  <bruno@clisp.org>
30988
30989         Add support for non-UTF-8 locales on MacOS X.
30990         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30991         canonical encodings. For Darwin 7 and newer, don't map traditional
30992         encodings to UTF-8.
30993         Reported by Vincent Lefevre <vincent@vinc17.org>
30994         at <http://savannah.gnu.org/bugs/?25235>.
30995
30996 2009-01-24  Bruno Haible  <bruno@clisp.org>
30997
30998         * doc/gnulib.texi (Obsolete modules): New section.
30999         Reported by Mike Frysinger <vapier@gentoo.org>.
31000
31001 2009-01-24  Bruno Haible  <bruno@clisp.org>
31002
31003         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31004         (%.dvi): New rule.
31005
31006 2009-01-24  Bruno Haible  <bruno@clisp.org>
31007
31008         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31009         Reported by Eric Blake.
31010
31011 2009-01-24  Bruno Haible  <bruno@clisp.org>
31012
31013         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31014         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31015         Reported by Gary V. Vaughan <gary@gnu.org>.
31016
31017 2009-01-24  Bruno Haible  <bruno@clisp.org>
31018
31019         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31020
31021 2009-01-23  Bruno Haible  <bruno@clisp.org>
31022
31023         Make c-strtod, c-strtold usable in libraries.
31024         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31025         (C_STRTOD): Call strdup instead of xstrdup.
31026         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31027         * modules/c-strtold (Depends-on): Likewise.
31028         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31029         * NEWS: Mention the change.
31030         Reported by Michael Gold <mgold@ncf.ca>.
31031
31032 2009-01-23  Jim Meyering  <meyering@redhat.com>
31033
31034         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31035         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31036         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31037
31038 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31039
31040         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31041         GNU CoreUtils.
31042         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31043         * modules/version-etc (Description): Update.
31044
31045 2009-01-22  Bruno Haible  <bruno@clisp.org>
31046
31047         Cache the C locale object.
31048         * lib/c-strtod.c (c_locale_cache): New variable.
31049         (c_locale): New function.
31050         (C_STRTOD): Use it, and don't call freelocale.
31051         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31052         Suggested by Paolo Bonzini.
31053
31054 2009-01-21  Bruno Haible  <bruno@clisp.org>
31055
31056         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31057         conditions other than overflow.
31058
31059 2009-01-21  Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/c-strtod.c: Include errno.h.
31062         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31063         value from STRTOD_L and STRTOD.
31064
31065 2009-01-21  Bruno Haible  <bruno@clisp.org>
31066         and Jim Meyering  <meyering@redhat.com>
31067
31068         nanosleep: skip configure test (fail it) for apple universal builds
31069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31070         universal builds, assume that nanosleep does not work.
31071         * modules/nanosleep (Depends-on): Add multiarch.
31072
31073         mktime: skip configure test (fail it) for apple universal builds
31074         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31075         universal builds, assume that mktime does not work.
31076         * modules/mktime (Depends-on): Add multiarch.
31077
31078 2009-01-21  Eric Blake  <ebb9@byu.net>
31079
31080         multiarch: avoid expand-before-require warning
31081         * modules/multiarch (configure.ac): Require, rather than expand,
31082         gl_MULTIARCH.
31083         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31084         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31085         enforce that all clients require it.  Partial reversion of
31086         2008-12-29 patch.
31087
31088         error: avoid expand-before-require warning
31089         * modules/errno (configure.ac): Require, rather than expand,
31090         gl_HEADER_ERRNO_H.
31091         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31092         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31093         enforce that all clients require it.
31094
31095         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31096         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31097         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31098         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31099
31100 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31101
31102         Revert:
31103         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31104
31105         regex: do not depend on obsolete modules.
31106         * modules/regex: Remove memcmp and memmove.
31107
31108 2009-01-20  Bruno Haible  <bruno@clisp.org>
31109
31110         Make the 'link' module link on Windows NT 4.
31111         * lib/link.c (_WIN32_WINNT): Don't define.
31112         (CreateHardLinkFuncType): New type.
31113         (CreateHardLinkFunc, initialized): New variables.
31114         (initialize): New function.
31115         (link): Invoke CreateHardLink indirectly through the function pointer.
31116
31117 2009-01-20  Bruno Haible  <bruno@clisp.org>
31118
31119         Fix compilation failure on mingw.
31120         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31121
31122 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31123
31124         * doc/c-strtod.texi: Mention a couple of restrictions.
31125
31126 2009-01-20  Jim Meyering  <meyering@redhat.com>
31127
31128         gettimeofday: move more declarations out of functions
31129         * lib/gettimeofday.c: Move extern declarations of tzset and
31130         gmtime out of containing functions.  Prompted by Bruno Haible.
31131
31132 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31133
31134         regex: do not depend on obsolete modules.
31135         * modules/regex: Remove memcmp and memmove.
31136
31137 2009-01-19  Bruno Haible  <bruno@clisp.org>
31138
31139         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31140         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31141         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31142         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31143         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31144
31145 2009-01-19  Bruno Haible  <bruno@clisp.org>
31146
31147         * tests/test-link.c: Include <errno.h>.
31148         (main): Exit with code 77 when a hard link cannot be created due to
31149         the file system.
31150         * tests/test-link.sh: Skip test when a hard link cannot be created due
31151         to the file system.
31152         Suggested by Eric Blake.
31153
31154 2009-01-19  Martin Lambers  <marlam@marlam.de>
31155
31156         * modules/link-tests: New file.
31157         * tests/test-link.sh: New file.
31158         * tests/test-link.c: New file.
31159
31160 2009-01-19  Eric Blake  <ebb9@byu.net>
31161
31162         doc: mention another function added in cygwin 1.7.0
31163         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31164         Another new function in cygwin 1.7.
31165
31166 2009-01-19  Bruno Haible  <bruno@clisp.org>
31167
31168         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31169         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31170         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31171         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31172         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31173         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31175         * m4/md4.m4 (gl_MD4): Likewise.
31176         * m4/md5.m4 (gl_MD5): Likewise.
31177         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31178         * m4/sha1.m4 (gl_SHA1): Likewise.
31179         * m4/sha256.m4 (gl_SHA256): Likewise.
31180         * m4/sha512.m4 (gl_SHA512): Likewise.
31181
31182 2009-01-19  Bruno Haible  <bruno@clisp.org>
31183
31184         * modules/uniname/uniname-tests (Depends-on): Add progname.
31185         * tests/uniname/test-uninames.c: Include progname.h.
31186         (main): Call set_program_name.
31187
31188         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31189         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31190         (main): Call set_program_name.
31191
31192         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31193         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31194         (main): Call set_program_name.
31195
31196         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31197         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31198         (main): Call set_program_name.
31199
31200         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31201         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31202         (main): Call set_program_name.
31203
31204         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31205         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31206         (main): Call set_program_name.
31207
31208         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31209         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31210         (main): Call set_program_name.
31211
31212         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31213         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31214         (main): Call set_program_name.
31215
31216         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31217         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31218         (main): Call set_program_name.
31219
31220 2009-01-19  Eric Blake  <ebb9@byu.net>
31221
31222         test-unistd: test previous patch
31223         * tests/test-unistd.c: Test *_FILENO macros.
31224
31225         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31226         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31227         Guarantee a definition.
31228         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31229         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31230         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31231         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31232         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31233         Likewise.
31234         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31235         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31236         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31237         Likewise.
31238         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31239         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31240         (STDERR_FILENO): Likewise.
31241         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31242         (STDERR_FILENO): Likewise.
31243         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31244         (STDERR_FILENO): Likewise.
31245         Reported by Elbert Pol.
31246
31247 2009-01-19  Eric Blake  <ebb9@byu.net>
31248
31249         doc: mention more functions added in cygwin 1.7.0
31250         * doc/posix-functions/abort.texi (abort): Update wording related
31251         to cygwin.
31252         * doc/posix-functions/daylight.texi (daylight): Likewise.
31253         * doc/posix-functions/optarg.texi (optarg): Likewise.
31254         * doc/posix-functions/optarg.texi (opterr): Likewise.
31255         * doc/posix-functions/optarg.texi (optind): Likewise.
31256         * doc/posix-functions/optarg.texi (optopt): Likewise.
31257         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31258         worked in 1.5.x, and was withdrawn in 1.7.
31259         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31260         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31261         cygwin versions.
31262         * doc/posix-functions/perror.texi (perror): Likewise.
31263         * doc/posix-functions/printf.texi (printf): Likewise.
31264         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31265         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31266         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31267         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31268         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31269         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31270         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31271         Likewise.
31272         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31273         Likewise.
31274         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31275         this function.
31276         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31277         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31278         Likewise.
31279         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31280         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31281         * doc/posix-functions/confstr.texi (confstr): Likewise.
31282         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31283         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31284         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31285         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31286         * doc/posix-functions/fputws.texi (fputws): Likewise.
31287         * doc/posix-functions/fwide.texi (fwide): Likewise.
31288         * doc/posix-functions/getwc.texi (getwc): Likewise.
31289         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31290         * doc/posix-functions/putwc.texi (putwc): Likewise.
31291         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31292         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31293         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31294         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31295         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31296         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31297         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31298         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31299         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31300         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31301         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31302
31303 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31304
31305         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31306         * lib/ioctl.c: Include <sys/ioctl.h>.
31307
31308 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31309
31310         * modules/getdate-tests (Depends-on): Add progname.
31311         * tests/test-getdate.c: Use progname module, to avoid link errors
31312         on non-glibc systems.
31313
31314 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31315
31316         * modules/filenamecat-tests (Depends-on): Add progname.
31317         * modules/fstrcmp-tests (Depends-on): Likewise.
31318
31319         * tests/test-filenamecat.c: Use progname module, to avoid link
31320         errors on non-glibc systems.
31321         * tests/test-fstrcmp.c: Likewise.
31322
31323 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31324
31325         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31326         * lib/gettimeofday.c: Move extern declaration out of function.
31327
31328 2009-01-18  Bruno Haible  <bruno@clisp.org>
31329
31330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31331         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31332         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31333
31334 2009-01-18  Bruno Haible  <bruno@clisp.org>
31335
31336         * lib/strftime.c (MEMPCPY): Remove unused macro.
31337         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31338
31339 2009-01-18  Martin Lambers  <marlam@marlam.de>
31340
31341         New module 'link'.
31342         * lib/unistd.in.h (link): New declaration.
31343         * lib/link.c: New file.
31344         * m4/link.m4: New file.
31345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31346         HAVE_LINK.
31347         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31348         * modules/link: New file.
31349         * doc/posix-functions/link.texi: Mention the new module.
31350
31351 2009-01-18  Bruno Haible  <bruno@clisp.org>
31352
31353         * tests/test-avltree_list.c (main): Call set_program_name.
31354         * tests/test-avltree_oset.c (main): Likewise.
31355         * tests/test-obstack-printf.c: Include progname.h.
31356         (main): Call set_program_name.
31357         * tests/test-quotearg.c: Include progname.h.
31358         (main): Call set_program_name.
31359         * tests/test-xmemdup0.c: Include progname.h.
31360         (main): Call set_program_name.
31361
31362 2009-01-18  Bruno Haible  <bruno@clisp.org>
31363
31364         New module 'alphasort'.
31365         * lib/dirent.in.h (alphasort): New declaration.
31366         * lib/alphasort.c: New file, from glibc with modifications.
31367         * m4/alphasort.m4: New file.
31368         * modules/alphasort: New file.
31369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31370         HAVE_ALPHASORT.
31371         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31372         HAVE_ALPHASORT.
31373         * doc/posix-functions/alphasort.texi: Mention the new module and the
31374         portability problems.
31375
31376 2009-01-18  Bruno Haible  <bruno@clisp.org>
31377
31378         New module 'scandir'.
31379         * lib/dirent.in.h (scandir): New declaration.
31380         * lib/scandir.c: New file, from glibc with modifications.
31381         * m4/scandir.m4: New file.
31382         * modules/scandir: New file.
31383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31384         HAVE_SCANDIR.
31385         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31386         HAVE_SCANDIR.
31387         * doc/posix-functions/scandir.texi: Mention the new module and the
31388         portability problems.
31389
31390 2009-01-17  Bruno Haible  <bruno@clisp.org>
31391
31392         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31393         Update documentation.
31394         (func_remove_suffix): Escape all dots in the suffix. Update
31395         documentation.
31396         (func_filter_filelist): Update documentation.
31397         Reported by Ralf Wildenhues.
31398
31399 2009-01-17  Bruno Haible  <bruno@clisp.org>
31400
31401         * modules/dprintf-posix-tests: New file.
31402         * tests/test-dprintf-posix.sh: New file.
31403         * tests/test-dprintf-posix.c: New file.
31404
31405         New modules 'dprintf', 'dprintf-posix'.
31406         * lib/stdio.in.h (dprintf): New declaration.
31407         * lib/dprintf.c: New file.
31408         * m4/dprintf.m4: New file.
31409         * m4/dprintf-posix.m4: New file.
31410         * modules/dprintf: New file.
31411         * modules/dprintf-posix: New file.
31412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31413         HAVE_DPRINTF, REPLACE_DPRINTF.
31414         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31415         HAVE_DPRINTF, REPLACE_DPRINTF.
31416         * doc/posix-functions/dprintf.texi: Mention the new modules.
31417
31418 2009-01-17  Bruno Haible  <bruno@clisp.org>
31419
31420         * modules/vdprintf-posix-tests: New file.
31421         * tests/test-vdprintf-posix.sh: New file.
31422         * tests/test-vdprintf-posix.c: New file.
31423
31424         New modules 'vdprintf', 'vdprintf-posix'.
31425         * lib/stdio.in.h (vdprintf): New declaration.
31426         * lib/vdprintf.c: New file.
31427         * m4/vdprintf.m4: New file.
31428         * m4/vdprintf-posix.m4: New file.
31429         * modules/vdprintf: New file.
31430         * modules/vdprintf-posix: New file.
31431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31432         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31433         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31434         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31435         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31436
31437 2009-01-17  Bruno Haible  <bruno@clisp.org>
31438
31439         Fix replacement of fopen on mingw.
31440         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31441         mingw.
31442
31443 2009-01-17  Bruno Haible  <bruno@clisp.org>
31444
31445         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31446         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31447
31448 2009-01-17  Bruno Haible  <bruno@clisp.org>
31449
31450         Avoid test-fflush2.sh failure on mingw.
31451         * tests/test-fflush2.c: Include binary-io.h.
31452         (main): Put standard input into binary mode.
31453         * modules/fflush-tests (Depends-on): Add binary-io.
31454
31455 2009-01-17  Bruno Haible  <bruno@clisp.org>
31456
31457         * lib/wchar.in.h: In another particular situation, include only the
31458         system's <wchar.h> file.
31459         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31460         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31461         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31462
31463 2009-01-17  Bruno Haible  <bruno@clisp.org>
31464
31465         Support for stripping executables in --enable-relocatable.
31466         * build-aux/install-reloc: Expect one more argument, or an environment
31467         variable RELOC_STRIP_PROG. If set, strip the destination program and
31468         its wrapper.
31469         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31470         RELOC_STRIP_PROG.
31471         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31472         to set RELOCATABLE_STRIP.
31473         * NEWS: Mention the new Makefile requirement.
31474
31475 2009-01-17  Bruno Haible  <bruno@clisp.org>
31476
31477         * build-aux/install-reloc: Remove debugging information left over by
31478         C compiler on MacOS X.
31479
31480 2009-01-17  Bruno Haible  <bruno@clisp.org>
31481
31482         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31483         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31484         _NSGetExecutablePath.
31485
31486 2009-01-16  Jim Meyering  <meyering@redhat.com>
31487
31488         strerror: avoid warnings about discarding "const"
31489         * lib/strerror.c (rpl_strerror): Instead of returning a const
31490         string from each and every "case", use a variable, and add a single
31491         cast after the switch.
31492
31493 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31494
31495         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31496
31497 2009-01-16  Bruno Haible  <bruno@clisp.org>
31498
31499         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31500         array initializer syntax that also works in C++ mode.
31501         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31502
31503 2009-01-16  Jim Meyering  <meyering@redhat.com>
31504
31505         poll: suppress a warning
31506         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31507         to ignore "...unsigned expression < 0 is always false" warnings.
31508
31509 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31510
31511         poll: remove declarations of unused variables
31512         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31513         sockbuf and optlen.
31514
31515 2009-01-15  Bruno Haible  <bruno@clisp.org>
31516
31517         Make fflush-after-ungetc POSIX compliant on BSD systems.
31518         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31519         (clear_ungetc_buffer): Implement also for other systems.
31520         (rpl_fflush): On glibc systems, invoke
31521         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31522         clear_ungetc_buffer after fetching the stream's position, not before.
31523
31524 2009-01-15  Bruno Haible  <bruno@clisp.org>
31525
31526         Make fflush-after-ungetc POSIX compliant on glibc systems.
31527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31528         after ungetc.
31529         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31530         (rpl_fflush): On glibc systems, simply call the system's fflush
31531         function after clearing the ungetc buffer.
31532         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31533         Instead, lseek only to the end of file, then use the system's fseeko
31534         for the rest. On glibc systems, reset the EOF indicator bit.
31535
31536 2009-01-15  Jim Meyering  <meyering@redhat.com>
31537
31538         openmp.m4: revert quote-adding change, for portability to older autoconf
31539         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31540         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31541         Simon Josefsson noticed the problem when using autoconf-2.61.
31542
31543 2009-01-15  Bruno Haible  <bruno@clisp.org>
31544
31545         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31546         * tests/test-fflush2.c (ASSERT): Always fail.
31547         (main): Add two tests for fflush() after ungetc(), taking into account
31548         the Austin Group's clarification.
31549         Suggested by Eric Blake.
31550
31551 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31552
31553         mktime.m4: remove K&R-style function prototypes
31554         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31555         for the Sun C++ compiler.
31556
31557 2009-01-14  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31560         while including <wchar.h>.
31561         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31562         the system's <wchar.h> file.
31563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31564
31565 2009-01-14  Bruno Haible  <bruno@clisp.org>
31566
31567         * m4/csharp.m4: Don't mention gettext on the serial number line.
31568         * m4/csharpexec.m4: Likewise.
31569         * m4/eaccess.m4: Likewise.
31570         * m4/javaexec.m4: Likewise.
31571         * m4/sig_atomic_t.m4: Likewise.
31572         * m4/tmpdir.m4: Likewise.
31573         * m4/intldir.m4: Bump gettext version.
31574         * m4/lib-ld.m4: Likewise.
31575
31576 2009-01-14  Bruno Haible  <bruno@clisp.org>
31577
31578         * lib/progname.c (set_program_name): Add more comments.
31579         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31580
31581 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31582
31583         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31584         were sys/stat.h does not define it.
31585
31586 2009-01-14  Jim Meyering  <meyering@redhat.com>
31587
31588         many *.m4 files: improve m4 quoting
31589         99% of this change was performed by running the following commands:
31590         git ls-files | grep '\.m4$' | xargs perl -pi \
31591           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31592           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31593           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31594           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31595         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31596         The remainder were to add Copyright dates, increment serial numbers,
31597         undo some changes in comments, exclude m4/intl.m4, and add quotes
31598         around the "1" in ",1" where the unusual spacing prohibited the
31599         above regexps from doing the job.  For more details, see
31600         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31601         * m4/acl.m4: Modified.
31602         * m4/afs.m4: Likewise.
31603         * m4/alloca.m4: Likewise.
31604         * m4/argp.m4: Likewise.
31605         * m4/argz.m4: Likewise.
31606         * m4/atexit.m4: Likewise.
31607         * m4/bison-i18n.m4: Likewise.
31608         * m4/bison.m4: Likewise.
31609         * m4/byteswap.m4: Likewise.
31610         * m4/c-stack.m4: Likewise.
31611         * m4/c-strtod.m4: Likewise.
31612         * m4/calloc.m4: Likewise.
31613         * m4/canonicalize-lgpl.m4: Likewise.
31614         * m4/chown.m4: Likewise.
31615         * m4/clock_time.m4: Likewise.
31616         * m4/codeset.m4: Likewise.
31617         * m4/copy-file.m4: Likewise.
31618         * m4/csharp.m4: Likewise.
31619         * m4/csharpcomp.m4: Likewise.
31620         * m4/csharpexec.m4: Likewise.
31621         * m4/d-ino.m4: Likewise.
31622         * m4/d-type.m4: Likewise.
31623         * m4/dirfd.m4: Likewise.
31624         * m4/double-slash-root.m4: Likewise.
31625         * m4/eaccess.m4: Likewise.
31626         * m4/eealloc.m4: Likewise.
31627         * m4/environ.m4: Likewise.
31628         * m4/errno_h.m4: Likewise.
31629         * m4/euidaccess.m4: Likewise.
31630         * m4/execute.m4: Likewise.
31631         * m4/fatal-signal.m4: Likewise.
31632         * m4/fchdir.m4: Likewise.
31633         * m4/fcntl_h.m4: Likewise.
31634         * m4/fileblocks.m4: Likewise.
31635         * m4/filenamecat.m4: Likewise.
31636         * m4/findprog.m4: Likewise.
31637         * m4/flexmember.m4: Likewise.
31638         * m4/fnmatch.m4: Likewise.
31639         * m4/fopen.m4: Likewise.
31640         * m4/fpending.m4: Likewise.
31641         * m4/fprintf-posix.m4: Likewise.
31642         * m4/free.m4: Likewise.
31643         * m4/frexp.m4: Likewise.
31644         * m4/frexpl.m4: Likewise.
31645         * m4/fsusage.m4: Likewise.
31646         * m4/ftruncate.m4: Likewise.
31647         * m4/gc-camellia.m4: Likewise.
31648         * m4/gc-random.m4: Likewise.
31649         * m4/gc.m4: Likewise.
31650         * m4/getaddrinfo.m4: Likewise.
31651         * m4/getcwd-abort-bug.m4: Likewise.
31652         * m4/getcwd-path-max.m4: Likewise.
31653         * m4/getdate.m4: Likewise.
31654         * m4/getdomainname.m4: Likewise.
31655         * m4/getgroups.m4: Likewise.
31656         * m4/gethostname.m4: Likewise.
31657         * m4/gethrxtime.m4: Likewise.
31658         * m4/getline.m4: Likewise.
31659         * m4/getloadavg.m4: Likewise.
31660         * m4/getndelim2.m4: Likewise.
31661         * m4/getpass.m4: Likewise.
31662         * m4/gettext.m4: Likewise.
31663         * m4/gettime.m4: Likewise.
31664         * m4/gettimeofday.m4: Likewise.
31665         * m4/gnulib-common.m4: Likewise.
31666         * m4/group-member.m4: Likewise.
31667         * m4/host-os.m4: Likewise.
31668         * m4/iconv.m4: Likewise.
31669         * m4/iconv_open.m4: Likewise.
31670         * m4/inet_ntop.m4: Likewise.
31671         * m4/inet_pton.m4: Likewise.
31672         * m4/inline.m4: Likewise.
31673         * m4/intldir.m4: Likewise.
31674         * m4/intlmacosx.m4: Likewise.
31675         * m4/intmax.m4: Likewise.
31676         * m4/intmax_t.m4: Likewise.
31677         * m4/inttypes.m4: Likewise.
31678         * m4/inttypes_h.m4: Likewise.
31679         * m4/inttypes-pri.m4: Likewise.
31680         * m4/isapipe.m4: Likewise.
31681         * m4/isnand.m4: Likewise.
31682         * m4/isnanf.m4: Likewise.
31683         * m4/isnanl.m4: Likewise.
31684         * m4/javacomp.m4: Likewise.
31685         * m4/javaexec.m4: Likewise.
31686         * m4/jm-winsz1.m4: Likewise.
31687         * m4/jm-winsz2.m4: Likewise.
31688         * m4/lchown.m4: Likewise.
31689         * m4/lcmessage.m4: Likewise.
31690         * m4/ldexpl.m4: Likewise.
31691         * m4/lib-ld.m4: Likewise.
31692         * m4/lib-link.m4: Likewise.
31693         * m4/libsigsegv.m4: Likewise.
31694         * m4/link-follow.m4: Likewise.
31695         * m4/localcharset.m4: Likewise.
31696         * m4/locale-fr.m4: Likewise.
31697         * m4/locale-ja.m4: Likewise.
31698         * m4/locale-tr.m4: Likewise.
31699         * m4/locale-zh.m4: Likewise.
31700         * m4/lock.m4: Likewise.
31701         * m4/longlong.m4: Likewise.
31702         * m4/ls-mntd-fs.m4: Likewise.
31703         * m4/lstat.m4: Likewise.
31704         * m4/malloc.m4: Likewise.
31705         * m4/mathl.m4: Likewise.
31706         * m4/mbrtowc.m4: Likewise.
31707         * m4/mbstate_t.m4: Likewise.
31708         * m4/mbswidth.m4: Likewise.
31709         * m4/memchr.m4: Likewise.
31710         * m4/memcmp.m4: Likewise.
31711         * m4/memcpy.m4: Likewise.
31712         * m4/memmem.m4: Likewise.
31713         * m4/memmove.m4: Likewise.
31714         * m4/mempcpy.m4: Likewise.
31715         * m4/memrchr.m4: Likewise.
31716         * m4/memset.m4: Likewise.
31717         * m4/minmax.m4: Likewise.
31718         * m4/mkdir-slash.m4: Likewise.
31719         * m4/mkdtemp.m4: Likewise.
31720         * m4/mktime.m4: Likewise.
31721         * m4/mmap-anon.m4: Likewise.
31722         * m4/mountlist.m4: Likewise.
31723         * m4/nanosleep.m4: Likewise.
31724         * m4/nls.m4: Likewise.
31725         * m4/nocrash.m4: Likewise.
31726         * m4/open.m4: Likewise.
31727         * m4/openat.m4: Likewise.
31728         * m4/openmp.m4: Likewise.
31729         * m4/pathmax.m4: Likewise.
31730         * m4/perl.m4: Likewise.
31731         * m4/physmem.m4: Likewise.
31732         * m4/pipe.m4: Likewise.
31733         * m4/po.m4: Likewise.
31734         * m4/poll.m4: Likewise.
31735         * m4/posixtm.m4: Likewise.
31736         * m4/posixver.m4: Likewise.
31737         * m4/printf-frexp.m4: Likewise.
31738         * m4/printf-frexpl.m4: Likewise.
31739         * m4/printf-posix.m4: Likewise.
31740         * m4/printf-posix-rpl.m4: Likewise.
31741         * m4/printf.m4: Likewise.
31742         * m4/progtest.m4: Likewise.
31743         * m4/putenv.m4: Likewise.
31744         * m4/readline.m4: Likewise.
31745         * m4/readlink.m4: Likewise.
31746         * m4/readutmp.m4: Likewise.
31747         * m4/realloc.m4: Likewise.
31748         * m4/regex.m4: Likewise.
31749         * m4/relocatable.m4: Likewise.
31750         * m4/relocatable-lib.m4: Likewise.
31751         * m4/rename-dest-slash.m4: Likewise.
31752         * m4/rename.m4: Likewise.
31753         * m4/rmdir-errno.m4: Likewise.
31754         * m4/rmdir.m4: Likewise.
31755         * m4/roundf.m4: Likewise.
31756         * m4/roundl.m4: Likewise.
31757         * m4/rpmatch.m4: Likewise.
31758         * m4/save-cwd.m4: Likewise.
31759         * m4/selinux-selinux-h.m4: Likewise.
31760         * m4/setenv.m4: Likewise.
31761         * m4/settime.m4: Likewise.
31762         * m4/sig2str.m4: Likewise.
31763         * m4/sig_atomic_t.m4: Likewise.
31764         * m4/signalblocking.m4: Likewise.
31765         * m4/signbit.m4: Likewise.
31766         * m4/sigpipe.m4: Likewise.
31767         * m4/sockets.m4: Likewise.
31768         * m4/sockpfaf.m4: Likewise.
31769         * m4/st_dm_mode.m4: Likewise.
31770         * m4/stat-time.m4: Likewise.
31771         * m4/stdbool.m4: Likewise.
31772         * m4/stdint.m4: Likewise.
31773         * m4/stdint_h.m4: Likewise.
31774         * m4/stpcpy.m4: Likewise.
31775         * m4/stpncpy.m4: Likewise.
31776         * m4/strcase.m4: Likewise.
31777         * m4/strchrnul.m4: Likewise.
31778         * m4/strcspn.m4: Likewise.
31779         * m4/strdup.m4: Likewise.
31780         * m4/strftime.m4: Likewise.
31781         * m4/strndup.m4: Likewise.
31782         * m4/strnlen.m4: Likewise.
31783         * m4/strpbrk.m4: Likewise.
31784         * m4/strptime.m4: Likewise.
31785         * m4/strsep.m4: Likewise.
31786         * m4/strtod.m4: Likewise.
31787         * m4/strtoimax.m4: Likewise.
31788         * m4/strtok_r.m4: Likewise.
31789         * m4/strtol.m4: Likewise.
31790         * m4/strtoll.m4: Likewise.
31791         * m4/strtoul.m4: Likewise.
31792         * m4/strtoull.m4: Likewise.
31793         * m4/strtoumax.m4: Likewise.
31794         * m4/strverscmp.m4: Likewise.
31795         * m4/threadlib.m4: Likewise.
31796         * m4/timegm.m4: Likewise.
31797         * m4/tm_gmtoff.m4: Likewise.
31798         * m4/tmpdir.m4: Likewise.
31799         * m4/tmpfile.m4: Likewise.
31800         * m4/tzset.m4: Likewise.
31801         * m4/uintmax_t.m4: Likewise.
31802         * m4/unlinkdir.m4: Likewise.
31803         * m4/unlocked-io.m4: Likewise.
31804         * m4/uptime.m4: Likewise.
31805         * m4/userspec.m4: Likewise.
31806         * m4/utimbuf.m4: Likewise.
31807         * m4/utime.m4: Likewise.
31808         * m4/utimes-null.m4: Likewise.
31809         * m4/utimes.m4: Likewise.
31810         * m4/vararrays.m4: Likewise.
31811         * m4/vasnprintf.m4: Likewise.
31812         * m4/vfprintf-posix.m4: Likewise.
31813         * m4/vprintf-posix.m4: Likewise.
31814         * m4/wait-process.m4: Likewise.
31815         * m4/wchar_t.m4: Likewise.
31816         * m4/wint_t.m4: Likewise.
31817         * m4/write-any-file.m4: Likewise.
31818         * m4/yield.m4: Likewise.
31819
31820 2009-01-13  Bruno Haible  <bruno@clisp.org>
31821
31822         Avoid test-copy-file.sh failures when ACL support insufficient.
31823         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31824         TESTS_ENVIRONMENT.
31825         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31826         Reported by Jim Meyering.
31827
31828 2009-01-13  Bruno Haible  <bruno@clisp.org>
31829
31830         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31831         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31832         * modules/unistdio/u8-printf-parse (Files): Likewise.
31833         * modules/unistdio/u32-printf-parse (Files): Likewise.
31834         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31835
31836 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31837
31838         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31839         and m4/inttypes_h.m4 too.
31840
31841 2009-01-12  Eric Blake  <ebb9@byu.net>
31842
31843         tests: IRIX 6.2 cc can't compile -0.0 into .data
31844         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31845         rather than at compile-time.
31846         * tests/test-floorl.c (minus_zero): Likewise.
31847         * tests/test-frexpl.c (minus_zero): Likewise.
31848         * tests/test-isnan.c (minus_zerol): Likewise.
31849         * tests/test-isnanl.h (minus_zero): Likewise.
31850         * tests/test-ldexpl.c (minus_zero): Likewise.
31851         * tests/test-roundl.c (minus_zero): Likewise.
31852         * tests/test-signbit.c (minus_zerol): Likewise.
31853         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31854         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31855         * tests/test-truncl.c (minus_zero): Likewise.
31856         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31857         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31858         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31859
31860 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31861
31862         regex: fix glibc bug 9697
31863         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31864         handling.
31865
31866 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31867
31868         regex: fix glibc bug 697
31869         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31870         being NULL also if there are no backreferences.
31871
31872 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31873
31874         regex: merge glibc changes
31875         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31876         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31877         re_string_skip_chars, re_string_reconstruct): Likewise.
31878         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31879
31880 2009-01-07  Jim Meyering  <meyering@redhat.com>
31881
31882         poll: filter through cppi
31883         * lib/poll.c: Indent cpp directives to reflect nesting.
31884
31885 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31886
31887         poll: don't return uninitialized
31888         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31889
31890 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31891
31892         avoid compile failure on AIX 6.1
31893         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31894         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31895
31896 2009-01-04  Jim Meyering  <meyering@redhat.com>
31897
31898         remove duplicate inclusion of <stdio.h>
31899         * tests/test-fprintf-posix.c: Likewise.
31900         * tests/test-printf-posix.c: Likewise.
31901         * tests/test-snprintf-posix.c: Likewise.
31902         * tests/test-sprintf-posix.c: Likewise.
31903         * tests/test-vasprintf-posix.c: Likewise.
31904         * tests/test-vfprintf-posix.c: Likewise.
31905         * tests/test-vprintf-posix.c: Likewise.
31906         * tests/test-vsnprintf-posix.c: Likewise.
31907         * tests/test-vsprintf-posix.c: Likewise.
31908
31909 2009-01-03  Jim Meyering  <meyering@redhat.com>
31910
31911         gnulib-tool: fix sed-based filtering
31912         * gnulib-tool (func_filter_filelist): Remove extra backslash
31913         in sed_fff_filter definition.
31914
31915 2009-01-02  Jim Meyering  <meyering@redhat.com>
31916
31917         strftime: avoid compilation failure on Solaris 2.6
31918         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31919         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31920         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31921         be available.  Reported by Tom G. Christensen.  Details in
31922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31923
31924 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31925             Bruno Haible  <bruno@clisp.org>
31926
31927         Speed up gnulib-tool by doing more string processing through shell
31928         built-ins.
31929         * gnulib-tool (fast_func_append): New variable.
31930         (func_remove_prefix, func_remove_suffix): New functions.
31931         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31932         (func_filter_filelist): New function.
31933         (func_get_dependencies): Use func_remove_suffix instead of sed.
31934         (func_get_automake_snippet): Use func_filter_filelist instead of a
31935         subshell and sed invocation.
31936
31937 2009-01-01  Bruno Haible  <bruno@clisp.org>
31938
31939         Fix a security bug.
31940         * gnulib-tool (func_import, import, update): Don't allow the characters
31941         '"', '$', '`', '\' in macro arguments that become part of commands that
31942         are evaluated.
31943
31944 2009-01-01  Bruno Haible  <bruno@clisp.org>
31945
31946         * gnulib-tool (func_reset_sigpipe): Add more comments.
31947
31948 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31949
31950         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31951         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31952         already know the answer.
31953
31954 2009-01-01  Jim Meyering  <meyering@redhat.com>
31955
31956         * lib/version-etc.c (version_etc_va): Update copyright year.
31957
31958 2008-12-30  Bruno Haible  <bruno@clisp.org>
31959
31960         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31961         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31962         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31963
31964 2008-12-29  Eric Blake  <ebb9@byu.net>
31965
31966         multiarch: avoid autoconf AC_REQUIRE bug
31967         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31968         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31969         2.63 and older.
31970         Reported by Bruno Haible, and analyzed in
31971         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31972
31973 2008-12-29  Bruno Haible  <bruno@clisp.org>
31974
31975         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31976         files in subdirectories correctly.
31977         Reported by Ralf Wildenhues.
31978
31979 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31980
31981         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31982         rather than 'join FILE -', for Solaris join.
31983
31984 2008-12-29  Bruno Haible  <bruno@clisp.org>
31985
31986         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31987         quoting.
31988         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31989         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31990         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31991         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31992         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31993         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31994         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31995         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31996         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31997         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31998         * m4/nls.m4 (AM_NLS): Likewise.
31999         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32000         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32001         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32002         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32003         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32004         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32005         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32006         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32007         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32008         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32009         * m4/xsize.m4 (gl_XSIZE): Likewise.
32010         Suggested by Jim Meyering.
32011
32012 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32013
32014         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32015         * lib/parse-duration.c: use a switch instead of cascading if's.
32016
32017 2008-12-29  Eric Blake  <ebb9@byu.net>
32018
32019         wchar.h: supply WEOF on Irix 5.3
32020         * lib/wchar.in.h (wint_t): Also supply WEOF.
32021         * lib/wctype.in.h (wint_t): Likewise.
32022         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32023         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32024         Reported by Tom G. Christensen.
32025
32026 2008-12-26  Bruno Haible  <bruno@clisp.org>
32027
32028         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32029         i486, i586, i686.
32030
32031 2008-12-26  Bruno Haible  <bruno@clisp.org>
32032
32033         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32034
32035 2008-12-26  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32038         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32039         not __STDC_CONSTANT_MACROS.
32040         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32041
32042 2008-12-25  Bruno Haible  <bruno@clisp.org>
32043
32044         Add support for universal builds to vasnprintf.
32045         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32046         universal builds, guess no.
32047         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32048         * modules/vasprintf-posix (Depends-on): Likewise.
32049         * modules/fprintf-posix (Depends-on): Likewise.
32050         * modules/vfprintf-posix (Depends-on): Likewise.
32051         * modules/snprintf-posix (Depends-on): Likewise.
32052         * modules/vsnprintf-posix (Depends-on): Likewise.
32053         * modules/sprintf-posix (Depends-on): Likewise.
32054         * modules/vsprintf-posix (Depends-on): Likewise.
32055         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32056         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32059         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32062
32063         Add support for universal builds to <inttypes.h>.
32064         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32065         _SCNu64_PREFIX): In Apple
32066         universal builds, define directly, using _LP64.
32067         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32068         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32069         * modules/inttypes (Depends-on): Add multiarch.
32070         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32071
32072         Add support for universal builds to <stdint.h>.
32073         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32074         universal builds, define directly, using _LP64.
32075         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32076         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32077         and size_t.
32078         * modules/stdint (Depends-on): Add multiarch.
32079         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32080
32081         New module 'multiarch'.
32082         * modules/multiarch: New file.
32083         * m4/multiarch.m4: New file.
32084
32085 2008-12-25  Bruno Haible  <bruno@clisp.org>
32086
32087         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32088
32089 2008-12-25  Bruno Haible  <bruno@clisp.org>
32090
32091         * modules/btowc (License): Relicense under LGPLv2+.
32092         * modules/mbsinit (License): Likewise.
32093         * modules/mbrtowc (License): Likewise.
32094         * modules/wcrtomb (License): Likewise.
32095         * modules/streq (License): Likewise.
32096         Reported by David Lutterkort <lutter@redhat.com>.
32097
32098 2008-12-23  Bruno Haible  <bruno@clisp.org>
32099
32100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32101
32102 2008-12-23  Bruno Haible  <bruno@clisp.org>
32103
32104         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32106         GETADDRINFO_LIB, not in LIBS.
32107         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32108         * modules/canon-host (Link): Likewise.
32109         * NEWS: Mention the change.
32110         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32111         GETADDRINFO_LIB.
32112
32113 2008-12-22  Bruno Haible  <bruno@clisp.org>
32114
32115         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32116         * doc/posix-functions/iswalpha_l.texi: Likewise.
32117         * doc/posix-functions/iswblank_l.texi: Likewise.
32118         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32119         * doc/posix-functions/iswctype_l.texi: Likewise.
32120         * doc/posix-functions/iswdigit_l.texi: Likewise.
32121         * doc/posix-functions/iswgraph_l.texi: Likewise.
32122         * doc/posix-functions/iswlower_l.texi: Likewise.
32123         * doc/posix-functions/iswprint_l.texi: Likewise.
32124         * doc/posix-functions/iswpunct_l.texi: Likewise.
32125         * doc/posix-functions/iswspace_l.texi: Likewise.
32126         * doc/posix-functions/iswupper_l.texi: Likewise.
32127         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32128         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32129         * doc/posix-functions/open_wmemstream.texi: Likewise.
32130         * doc/posix-functions/swscanf.texi: Likewise.
32131         * doc/posix-functions/towctrans_l.texi: Likewise.
32132         * doc/posix-functions/towlower.texi: Likewise.
32133         * doc/posix-functions/towlower_l.texi: Likewise.
32134         * doc/posix-functions/towupper.texi: Likewise.
32135         * doc/posix-functions/towupper_l.texi: Likewise.
32136         * doc/posix-functions/vfwprintf.texi: Likewise.
32137         * doc/posix-functions/vfwscanf.texi: Likewise.
32138         * doc/posix-functions/vswscanf.texi: Likewise.
32139         * doc/posix-functions/vwprintf.texi: Likewise.
32140         * doc/posix-functions/vwscanf.texi: Likewise.
32141         * doc/posix-functions/wcpcpy.texi: Likewise.
32142         * doc/posix-functions/wcpncpy.texi: Likewise.
32143         * doc/posix-functions/wcscasecmp.texi: Likewise.
32144         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32145         * doc/posix-functions/wcscoll_l.texi: Likewise.
32146         * doc/posix-functions/wcsdup.texi: Likewise.
32147         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32148         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32149         * doc/posix-functions/wcsnlen.texi: Likewise.
32150         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32151         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32152         * doc/posix-functions/wctrans_l.texi: Likewise.
32153         * doc/posix-functions/wctype_l.texi: Likewise.
32154         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32155         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32156         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32157         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32158         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32159         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32160         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32161         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32162         * doc/glibc-functions/wcschrnul.texi: Likewise.
32163         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32164         * doc/glibc-functions/wcstod_l.texi: Likewise.
32165         * doc/glibc-functions/wcstof_l.texi: Likewise.
32166         * doc/glibc-functions/wcstol_l.texi: Likewise.
32167         * doc/glibc-functions/wcstold_l.texi: Likewise.
32168         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32169         * doc/glibc-functions/wcstoq.texi: Likewise.
32170         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32171         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32172         * doc/glibc-functions/wcstouq.texi: Likewise.
32173         * doc/glibc-functions/wmempcpy.texi: Likewise.
32174
32175 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32176             Eric Blake  <ebb9@byu.net>
32177             Paolo Bonzini  <bonzini@gnu.org>
32178             Bruno Haible  <bruno@clisp.org>
32179
32180         Make c-stack work on Haiku.
32181         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32182         (c_stack_action): Use SA_ONSTACK flag.
32183
32184 2008-12-22  Bruno Haible  <bruno@clisp.org>
32185
32186         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32187
32188 2008-12-22  Bruno Haible  <bruno@clisp.org>
32189
32190         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32191         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32192         being overridden.
32193         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32194         New macros.
32195         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32197         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32198         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32199
32200 2008-12-22  Bruno Haible  <bruno@clisp.org>
32201
32202         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32203         from test code.
32204
32205 2008-12-22  Eric Blake  <ebb9@byu.net>
32206
32207         Avoid gcc warnings on cygwin.
32208         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32209         Avoid unused variable.
32210         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32211         Likewise.
32212
32213 2008-12-22  Bruno Haible  <bruno@clisp.org>
32214
32215         Remove HAVE_MBRTOWC conditionals.
32216         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32217         (mbscasecmp): Assume mbrtowc function.
32218         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32219         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32220         * lib/mbschr.c: Include mbuiter.h unconditionally.
32221         (mbschr): Assume mbrtowc function.
32222         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32223         (mbscspn): Assume mbrtowc function.
32224         * lib/mbslen.c: Include mbuiter.h unconditionally.
32225         (mbslen): Assume mbrtowc function.
32226         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32227         (mbsncasecmp): Assume mbrtowc function.
32228         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32229         (mbsnlen): Assume mbrtowc function.
32230         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32231         (mbspbrk): Assume mbrtowc function.
32232         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32233         (mbspcasecmp): Assume mbrtowc function.
32234         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32235         (mbsrchr): Assume mbrtowc function.
32236         * lib/mbssep.c: Include mbuiter.h unconditionally.
32237         (mbssep): Assume mbrtowc function.
32238         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32239         (mbsspn): Assume mbrtowc function.
32240         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32241         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32242         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32243         (mbstok_r): Assume mbrtowc function.
32244         * lib/propername.c: Include mbuiter.h unconditionally.
32245         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32246         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32247         (trim2): Assume mbrtowc function.
32248         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32249         (mbsnwidth): Assume mbrtowc function.
32250         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32251         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32252         fallback definitions.
32253         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32254
32255 2008-12-22  Bruno Haible  <bruno@clisp.org>
32256
32257         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32258
32259 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32260
32261         * modules/regex: Request emulations for the mb*/wc* functions we need.
32262         * m4/regex.m4: Don't look for those functions here.
32263         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32264
32265 2008-12-22  Bruno Haible  <bruno@clisp.org>
32266
32267         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32268
32269 2008-12-21  Bruno Haible  <bruno@clisp.org>
32270
32271         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32272         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32273         (Include): Remove conditionalization.
32274         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32275         (Include): Remove conditionalization.
32276         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32277         (Include): Remove conditionalization.
32278         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32279         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32280         * NEWS: Mention the change.
32281         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32282         via Sergey Poznyakoff <gray@gnu.org.ua>.
32283
32284 2008-12-21  Bruno Haible  <bruno@clisp.org>
32285
32286         * MODULES.html.sh (Extended multibyte and wide character utilities
32287         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32288         wcrtomb, wcsrtombs.
32289         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32290         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32291         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32292         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32293
32294 2008-12-21  Bruno Haible  <bruno@clisp.org>
32295
32296         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32297
32298 2008-12-21  Bruno Haible  <bruno@clisp.org>
32299
32300         * modules/wcsnrtombs-tests: New file.
32301         * tests/test-wcsnrtombs1.sh: New file.
32302         * tests/test-wcsnrtombs2.sh: New file.
32303         * tests/test-wcsnrtombs3.sh: New file.
32304         * tests/test-wcsnrtombs4.sh: New file.
32305         * tests/test-wcsnrtombs.c: New file.
32306
32307         New module 'wcsnrtombs'.
32308         * lib/wchar.in.h (wcsnrtombs): New declaration.
32309         * lib/wcsnrtombs.c: New file.
32310         * lib/wcsrtombs-state.c: New file.
32311         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32312         (internal_state): Remove variable.
32313         * m4/wcsnrtombs.m4: New file.
32314         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32315         compilation units.
32316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32317         HAVE_WCSNRTOMBS.
32318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32319         HAVE_WCSNRTOMBS.
32320         * modules/wcsnrtombs: New file.
32321         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32322         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32323
32324 2008-12-21  Bruno Haible  <bruno@clisp.org>
32325
32326         * modules/wcsrtombs-tests: New file.
32327         * tests/test-wcsrtombs1.sh: New file.
32328         * tests/test-wcsrtombs2.sh: New file.
32329         * tests/test-wcsrtombs3.sh: New file.
32330         * tests/test-wcsrtombs4.sh: New file.
32331         * tests/test-wcsrtombs.c: New file.
32332
32333         New module 'wcsrtombs'.
32334         * lib/wchar.in.h (wcsrtombs): New declaration.
32335         * lib/wcsrtombs.c: New file.
32336         * m4/wcsrtombs.m4: New file.
32337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32338         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32340         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32341         * modules/wcsrtombs: New file.
32342         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32343         bugs.
32344
32345 2008-12-21  Bruno Haible  <bruno@clisp.org>
32346
32347         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32348         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32349         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32350         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32351         if not correct.
32352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32353         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32354         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32355         m4/locale-zh.m4, m4/codeset.m4.
32356         * doc/posix-functions/wcrtomb.texi: Document the bug.
32357
32358 2008-12-21  Bruno Haible  <bruno@clisp.org>
32359
32360         Work around a btowc() bug on IRIX 6.5.
32361         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32362         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32363         REPLACE_WTOBC if not.
32364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32365         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32366         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32367
32368 2008-12-21  Bruno Haible  <bruno@clisp.org>
32369
32370         * modules/wcrtomb-tests: New file.
32371         * tests/test-wcrtomb.sh: New file.
32372         * tests/test-wcrtomb.c: New file.
32373
32374         New module 'wcrtomb'.
32375         * lib/wchar.in.h (wcrtomb): New declaration.
32376         * lib/wcrtomb.c: New file.
32377         * m4/wcrtomb.m4: New file.
32378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32379         HAVE_WCRTOMB.
32380         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32381         HAVE_WCRTOMB.
32382         * modules/wcrtomb: New file.
32383         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32384
32385 2008-12-21  Bruno Haible  <bruno@clisp.org>
32386
32387         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32388         * modules/mbsrtowcs (Files): Likewise.
32389         * modules/wctob (Files): Likewise.
32390         * modules/c-strcase-tests (Files): Likewise.
32391         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32392         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32393         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32394         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32395         * modules/vasnprintf-posix-tests (Files): Likewise.
32396
32397 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32398
32399         gitlog-to-changelog: pass all command-line arguments to git-log
32400         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32401         it is sometimes convenient to filter the commits in various ways.
32402         gitlog-to-changelog only allows --since to specify a start date,
32403         but git-log itself supports many other filtering mechanisms.
32404         At the moment, I want to filter by branch name.  Rather than
32405         adding a --branch option to gitlog-to-changelog, it seems more
32406         flexible to simply pass all options directly to git-log and let
32407         git do the work.  Notice that this effectively makes --since a
32408         redundant option for gitlog-to-changelog, but removing it would
32409         require current usage to change since calls would then require
32410         an additional '--'.
32411
32412 2008-12-21  Bruno Haible  <bruno@clisp.org>
32413
32414         * modules/mbsnrtowcs-tests: New file.
32415         * tests/test-mbsnrtowcs1.sh: New file.
32416         * tests/test-mbsnrtowcs2.sh: New file.
32417         * tests/test-mbsnrtowcs3.sh: New file.
32418         * tests/test-mbsnrtowcs4.sh: New file.
32419         * tests/test-mbsnrtowcs.c: New file.
32420
32421         New module 'mbsnrtowcs'.
32422         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32423         * lib/mbsnrtowcs.c: New file.
32424         * lib/mbsrtowcs-state.c: New file.
32425         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32426         (internal_state): Remove variable.
32427         * m4/mbsnrtowcs.m4: New file.
32428         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32429         compilation units.
32430         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32431         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32432         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32433         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32434         * modules/mbsnrtowcs: New file.
32435         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32436         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32437         portability problem.
32438
32439 2008-12-21  Bruno Haible  <bruno@clisp.org>
32440
32441         Work around mbsrtowcs bug.
32442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32443         (gl_FUNC_MBSRTOWCS): Invoke it.
32444         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32445         m4/locale-zh.m4.
32446         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32447
32448 2008-12-21  Bruno Haible  <bruno@clisp.org>
32449
32450         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32451
32452 2008-12-21  Bruno Haible  <bruno@clisp.org>
32453
32454         Update doc for AIX.
32455         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32456         16-bit wchar_t type.
32457         * doc/posix-functions/btowc.texi: Likewise.
32458         * doc/posix-functions/fgetwc.texi: Likewise.
32459         * doc/posix-functions/fgetws.texi: Likewise.
32460         * doc/posix-functions/fputwc.texi: Likewise.
32461         * doc/posix-functions/fputws.texi: Likewise.
32462         * doc/posix-functions/fwide.texi: Likewise.
32463         * doc/posix-functions/fwprintf.texi: Likewise.
32464         * doc/posix-functions/fwscanf.texi: Likewise.
32465         * doc/posix-functions/getwchar.texi: Likewise.
32466         * doc/posix-functions/getwc.texi: Likewise.
32467         * doc/posix-functions/iswalnum.texi: Likewise.
32468         * doc/posix-functions/iswalpha.texi: Likewise.
32469         * doc/posix-functions/iswblank.texi: Likewise.
32470         * doc/posix-functions/iswcntrl.texi: Likewise.
32471         * doc/posix-functions/iswctype.texi: Likewise.
32472         * doc/posix-functions/iswdigit.texi: Likewise.
32473         * doc/posix-functions/iswgraph.texi: Likewise.
32474         * doc/posix-functions/iswlower.texi: Likewise.
32475         * doc/posix-functions/iswprint.texi: Likewise.
32476         * doc/posix-functions/iswpunct.texi: Likewise.
32477         * doc/posix-functions/iswspace.texi: Likewise.
32478         * doc/posix-functions/iswupper.texi: Likewise.
32479         * doc/posix-functions/iswxdigit.texi: Likewise.
32480         * doc/posix-functions/mbrtowc.texi: Likewise.
32481         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32482         * doc/posix-functions/mbstowcs.texi: Likewise.
32483         * doc/posix-functions/mbtowc.texi: Likewise.
32484         * doc/posix-functions/putwchar.texi: Likewise.
32485         * doc/posix-functions/putwc.texi: Likewise.
32486         * doc/posix-functions/swprintf.texi: Likewise.
32487         * doc/posix-functions/tolower.texi: Likewise.
32488         * doc/posix-functions/toupper.texi: Likewise.
32489         * doc/posix-functions/towctrans.texi: Likewise.
32490         * doc/posix-functions/ungetwc.texi: Likewise.
32491         * doc/posix-functions/vswprintf.texi: Likewise.
32492         * doc/posix-functions/wcrtomb.texi: Likewise.
32493         * doc/posix-functions/wcscat.texi: Likewise.
32494         * doc/posix-functions/wcschr.texi: Likewise.
32495         * doc/posix-functions/wcscmp.texi: Likewise.
32496         * doc/posix-functions/wcscoll.texi: Likewise.
32497         * doc/posix-functions/wcscpy.texi: Likewise.
32498         * doc/posix-functions/wcscspn.texi: Likewise.
32499         * doc/posix-functions/wcsftime.texi: Likewise.
32500         * doc/posix-functions/wcslen.texi: Likewise.
32501         * doc/posix-functions/wcsncat.texi: Likewise.
32502         * doc/posix-functions/wcsncmp.texi: Likewise.
32503         * doc/posix-functions/wcsncpy.texi: Likewise.
32504         * doc/posix-functions/wcspbrk.texi: Likewise.
32505         * doc/posix-functions/wcsrchr.texi: Likewise.
32506         * doc/posix-functions/wcsrtombs.texi: Likewise.
32507         * doc/posix-functions/wcsspn.texi: Likewise.
32508         * doc/posix-functions/wcsstr.texi: Likewise.
32509         * doc/posix-functions/wcstod.texi: Likewise.
32510         * doc/posix-functions/wcstof.texi: Likewise.
32511         * doc/posix-functions/wcstoimax.texi: Likewise.
32512         * doc/posix-functions/wcstok.texi: Likewise.
32513         * doc/posix-functions/wcstold.texi: Likewise.
32514         * doc/posix-functions/wcstoll.texi: Likewise.
32515         * doc/posix-functions/wcstol.texi: Likewise.
32516         * doc/posix-functions/wcstombs.texi: Likewise.
32517         * doc/posix-functions/wcstoull.texi: Likewise.
32518         * doc/posix-functions/wcstoul.texi: Likewise.
32519         * doc/posix-functions/wcstoumax.texi: Likewise.
32520         * doc/posix-functions/wcswidth.texi: Likewise.
32521         * doc/posix-functions/wcsxfrm.texi: Likewise.
32522         * doc/posix-functions/wctob.texi: Likewise.
32523         * doc/posix-functions/wctomb.texi: Likewise.
32524         * doc/posix-functions/wctrans.texi: Likewise.
32525         * doc/posix-functions/wctype.texi: Likewise.
32526         * doc/posix-functions/wcwidth.texi: Likewise.
32527         * doc/posix-functions/wmemchr.texi: Likewise.
32528         * doc/posix-functions/wmemcmp.texi: Likewise.
32529         * doc/posix-functions/wmemcpy.texi: Likewise.
32530         * doc/posix-functions/wmemmove.texi: Likewise.
32531         * doc/posix-functions/wmemset.texi: Likewise.
32532         * doc/posix-functions/wprintf.texi: Likewise.
32533         * doc/posix-functions/wscanf.texi: Likewise.
32534
32535 2008-12-21  Bruno Haible  <bruno@clisp.org>
32536
32537         Update doc for HP-UX 11.11.
32538         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32539         in HP-UX version 11.00, not in all versions of HP-UX 11.
32540         * doc/posix-functions/fwide.texi: Likewise.
32541         * doc/posix-functions/fwprintf.texi: Likewise.
32542         * doc/posix-functions/fwscanf.texi: Likewise.
32543         * doc/posix-functions/inet_ntop.texi: Likewise.
32544         * doc/posix-functions/inet_pton.texi: Likewise.
32545         * doc/posix-functions/mbrlen.texi: Likewise.
32546         * doc/posix-functions/mbrtowc.texi: Likewise.
32547         * doc/posix-functions/mbsinit.texi: Likewise.
32548         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32549         * doc/posix-functions/swprintf.texi: Likewise.
32550         * doc/posix-functions/swscanf.texi: Likewise.
32551         * doc/posix-functions/towctrans.texi: Likewise.
32552         * doc/posix-functions/vfwprintf.texi: Likewise.
32553         * doc/posix-functions/vswprintf.texi: Likewise.
32554         * doc/posix-functions/vwprintf.texi: Likewise.
32555         * doc/posix-functions/wcrtomb.texi: Likewise.
32556         * doc/posix-functions/wcsrtombs.texi: Likewise.
32557         * doc/posix-functions/wcsstr.texi: Likewise.
32558         * doc/posix-functions/wctob.texi: Likewise.
32559         * doc/posix-functions/wctrans.texi: Likewise.
32560         * doc/posix-functions/wmemchr.texi: Likewise.
32561         * doc/posix-functions/wmemcmp.texi: Likewise.
32562         * doc/posix-functions/wmemcpy.texi: Likewise.
32563         * doc/posix-functions/wmemmove.texi: Likewise.
32564         * doc/posix-functions/wmemset.texi: Likewise.
32565         * doc/posix-functions/wprintf.texi: Likewise.
32566         * doc/posix-functions/wscanf.texi: Likewise.
32567
32568 2008-12-21  Bruno Haible  <bruno@clisp.org>
32569
32570         Work around a portability problem.
32571         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32572         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32573
32574 2008-12-20  Bruno Haible  <bruno@clisp.org>
32575
32576         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32577         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32578         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32580         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32581
32582         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32583         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32584         set.
32585         (GNULIB_defined_mbstate_t): New macro.
32586         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32587         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32588         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32589         reuses the system's mbrtowc function but works around the bugs.
32590         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32592         macros.
32593         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32594         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32595         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32596         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32597         REPLACE_MBSINIT if mbsinit needs to be overridden.
32598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32599         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32600         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32601         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32602         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32603         m4/locale-zh.m4.
32604         (Depends): Add mbsinit.
32605         * modules/mbsinit (Depends): Add mbrtowc.
32606         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32607
32608 2008-12-20  Bruno Haible  <bruno@clisp.org>
32609
32610         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32611         so that there are no conversion errors on AIX.
32612         * tests/test-mbsrtowcs.c (main): LIkewise.
32613
32614 2008-12-20  Bruno Haible  <bruno@clisp.org>
32615
32616         Work around wctob bug on Solaris <= 9.
32617         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32618         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32620         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32621         * modules/wctob (Files): Add m4/locale-fr.m4.
32622         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32623
32624 2008-12-20  Bruno Haible  <bruno@clisp.org>
32625
32626         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32627         /dev/null.
32628         * tests/test-select-in.sh: Likewise.
32629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32630
32631 2008-12-20  Bruno Haible  <bruno@clisp.org>
32632
32633         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32634         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32635         Cygwin 1.5.x.
32636
32637 2008-12-20  Bruno Haible  <bruno@clisp.org>
32638
32639         Ensure mbstate_t is defined on HP-UX 11.11.
32640         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32641         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32642         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32643         AC_USE_SYSTEM_EXTENSIONS.
32644         * modules/fnmatch (Depends-on): Add extensions.
32645         * modules/mbrlen (Depends-on): Likewise.
32646         * modules/mbrtowc (Depends-on): Likewise.
32647         * modules/mbsinit (Depends-on): Likewise.
32648         * modules/mbsrtowcs (Depends-on): Likewise.
32649         * modules/mbswidth (Depends-on): Likewise.
32650         * modules/quotearg (Depends-on): Likewise.
32651         * modules/strftime (Depends-on): Likewise.
32652
32653 2008-12-20  Bruno Haible  <bruno@clisp.org>
32654
32655         Ensure wctob is declared on IRIX 6.5.
32656         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32657         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32658         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32660         of HAVE_WCTOB.
32661         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32662         HAVE_WCTOB.
32663         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32664
32665 2008-12-19  Bruno Haible  <bruno@clisp.org>
32666
32667         * modules/mbsrtowcs-tests: New file.
32668         * tests/test-mbsrtowcs1.sh: New file.
32669         * tests/test-mbsrtowcs2.sh: New file.
32670         * tests/test-mbsrtowcs3.sh: New file.
32671         * tests/test-mbsrtowcs4.sh: New file.
32672         * tests/test-mbsrtowcs.c: New file.
32673
32674         New module 'mbsrtowcs'.
32675         * lib/wchar.in.h (mbsrtowcs): New declaration.
32676         * lib/mbsrtowcs.c: New file.
32677         * m4/mbsrtowcs.m4: New file.
32678         * modules/mbsrtowcs: New file.
32679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32680         HAVE_MBSRTOWCS.
32681         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32682         HAVE_MBSRTOWCS.
32683         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32684
32685 2008-12-19  Bruno Haible  <bruno@clisp.org>
32686
32687         New module 'mbrlen'.
32688         * lib/wchar.in.h (mbrlen): New declaration.
32689         * lib/mbrlen.c: New file.
32690         * m4/mbrlen.m4: New file.
32691         * modules/mbrlen: New file.
32692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32693         HAVE_MBRLEN.
32694         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32695         HAVE_MBRLEN.
32696         * doc/posix-functions/mbrlen.texi: Document the new module.
32697
32698 2008-12-19  Bruno Haible  <bruno@clisp.org>
32699
32700         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32701         * modules/mbrtowc (Depends-on): Add verify.
32702         Suggested by Paul Eggert.
32703
32704 2008-12-18  Bruno Haible  <bruno@clisp.org>
32705
32706         * modules/mbsinit-tests: New file.
32707         * tests/test-mbsinit.sh: New file.
32708         * tests/test-mbsinit.c: New file.
32709
32710 2008-12-18  Bruno Haible  <bruno@clisp.org>
32711
32712         * modules/mbrtowc-tests: New file.
32713         * tests/test-mbrtowc1.sh: New file.
32714         * tests/test-mbrtowc2.sh: New file.
32715         * tests/test-mbrtowc3.sh: New file.
32716         * tests/test-mbrtowc4.sh: New file.
32717         * tests/test-mbrtowc.c: New file.
32718
32719         New module 'mbrtowc'.
32720         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32721         mbsinit and mbrtowc.
32722         (mbrtowc): New declaration.
32723         * lib/mbrtowc.c: New file.
32724         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32725         * modules/mbrtowc: New file.
32726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32727         HAVE_MBRTOWC.
32728         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32729         HAVE_MBRTOWC.
32730         * doc/posix-functions/mbrtowc.texi: Document the new module.
32731
32732 2008-12-18  Bruno Haible  <bruno@clisp.org>
32733
32734         New module 'wctob'.
32735         * lib/wchar.in.h (wctob): New declaration.
32736         * lib/wctob.c: New file.
32737         * m4/wctob.m4: New file.
32738         * modules/wctob: New file.
32739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32740         HAVE_WCTOB.
32741         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32742         * doc/posix-functions/wctob.texi: Document the new module.
32743
32744 2008-12-18  Bruno Haible  <bruno@clisp.org>
32745
32746         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32747         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32748
32749 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32750
32751         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32752         G. Christensen" <tgc@jupiterrise.com>.
32753
32754         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32755         G. Christensen" <tgc@jupiterrise.com>.
32756
32757         * lib/flock.c: Need to include string.h.  Reported by "Tom
32758         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32759         <ebb9@byu.net>.
32760
32761 2008-12-18  Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/locale-ja.m4: New file, from GNU gettext.
32764
32765 2008-12-17  Bruno Haible  <bruno@clisp.org>
32766
32767         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32768         Suggested by Eric Blake.
32769
32770 2008-12-17  Bruno Haible  <bruno@clisp.org>
32771
32772         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32773
32774 2008-12-17  Bruno Haible  <bruno@clisp.org>
32775
32776         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32777         * modules/mbsinit (Depends-on): Add verify.
32778         Suggested by Paul Eggert.
32779
32780 2008-12-17  Bruno Haible  <bruno@clisp.org>
32781
32782         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32783         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32784         gl_FUNC_MBRTOWC.
32785         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32786         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32787         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32788         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32789         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32790         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32791         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32792         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32793         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32794         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32795         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32796         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32797         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32798         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32799         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32800         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32801         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32802         * modules/trim (configure.ac): Likewise.
32803
32804 2008-12-17  Bruno Haible  <bruno@clisp.org>
32805
32806         * modules/btowc-tests: New file.
32807         * tests/test-btowc1.sh: New file.
32808         * tests/test-btowc2.sh: New file.
32809         * tests/test-btowc.c: New file.
32810
32811         New module 'btowc'.
32812         * lib/wchar.in.h (btowc): New declaration.
32813         * lib/btowc.c: New file.
32814         * m4/btowc.m4: New file.
32815         * modules/btowc: New file.
32816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32817         HAVE_BTOWC.
32818         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32819         * doc/posix-functions/btowc.texi: Document the new module.
32820
32821 2008-12-17  Bruno Haible  <bruno@clisp.org>
32822
32823         New module 'mbsinit'.
32824         * lib/wchar.in.h (mbsinit): New declaration.
32825         * lib/mbsinit.c: New file.
32826         * m4/mbsinit.m4: New file.
32827         * modules/mbsinit: New file.
32828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32829         HAVE_MBSINIT.
32830         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32831         HAVE_MBSINIT.
32832         * doc/posix-functions/mbsinit.texi: Document the new module.
32833
32834 2008-12-16  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/unistd.in.h: Add comment.
32837         * tests/test-environ.c: Don't include <stdlib.h>.
32838
32839 2008-12-16  Bruno Haible  <bruno@clisp.org>
32840
32841         * lib/parse-duration.h (parse_duration): Document return value
32842         convention.
32843         * lib/parse-duration.c: Include specification header first. Add
32844         comments.
32845         (_): Remove macro.
32846         (parse_year_month_day, parse_hour_minute_second): Move side effects
32847         outside of strchr call.
32848         (parse_non_iso8601): Move side effects outside of isspace call.
32849         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32850         call.
32851
32852 2008-12-16  Bruno Haible  <bruno@clisp.org>
32853
32854         * tests/test-parse-duration.sh: Produce no output when the test
32855         succeeds.
32856
32857 2008-12-16  Bruno Haible  <bruno@clisp.org>
32858
32859         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32860         expressions.
32861
32862 2008-12-15  Bruno Haible  <bruno@clisp.org>
32863
32864         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32865         * doc/glibc-functions/flistxattr.texi: Likewise.
32866         * doc/glibc-functions/fopencookie.texi: Likewise.
32867         * doc/glibc-functions/fremovexattr.texi: Likewise.
32868         * doc/glibc-functions/fsetxattr.texi: Likewise.
32869         * doc/glibc-functions/getxattr.texi: Likewise.
32870         * doc/glibc-functions/lgetxattr.texi: Likewise.
32871         * doc/glibc-functions/listxattr.texi: Likewise.
32872         * doc/glibc-functions/llistxattr.texi: Likewise.
32873         * doc/glibc-functions/lremovexattr.texi: Likewise.
32874         * doc/glibc-functions/lsetxattr.texi: Likewise.
32875         * doc/glibc-functions/removexattr.texi: Likewise.
32876         * doc/glibc-functions/setxattr.texi: Likewise.
32877         * doc/posix-functions/open_memstream.texi: Likewise.
32878
32879 2008-12-15  Eric Blake  <ebb9@byu.net>
32880
32881         Update doc for cygwin 1.7.
32882         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32883         functions.
32884         * doc/posix-functions/fchmodat.texi: Likewise.
32885         * doc/posix-functions/fchownat.texi: Likewise.
32886         * doc/posix-functions/fdopendir.texi: Likewise.
32887         * doc/posix-functions/fmemopen.texi: Likewise.
32888         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32889         * doc/posix-functions/fstatat.texi: Likewise.
32890         * doc/posix-functions/futimens.texi: Likewise.
32891         * doc/posix-functions/gai_strerror.texi: Likewise.
32892         * doc/posix-functions/getaddrinfo.texi: Likewise.
32893         * doc/posix-functions/getnameinfo.texi: Likewise.
32894         * doc/posix-functions/if_freenameindex.texi: Likewise.
32895         * doc/posix-functions/if_indextoname.texi: Likewise.
32896         * doc/posix-functions/if_nameindex.texi: Likewise.
32897         * doc/posix-functions/if_nametoindex.texi: Likewise.
32898         * doc/posix-functions/insque.texi: Likewise.
32899         * doc/posix-functions/linkat.texi: Likewise.
32900         * doc/posix-functions/llrint.texi: Likewise.
32901         * doc/posix-functions/llrintf.texi: Likewise.
32902         * doc/posix-functions/llrintl.texi: Likewise.
32903         * doc/posix-functions/lockf.texi: Likewise.
32904         * doc/posix-functions/lrintl.texi: Likewise.
32905         * doc/posix-functions/mkdirat.texi: Likewise.
32906         * doc/posix-functions/mkfifoat.texi: Likewise.
32907         * doc/posix-functions/mknodat.texi: Likewise.
32908         * doc/posix-functions/mq_close.texi: Likewise.
32909         * doc/posix-functions/mq_getattr.texi: Likewise.
32910         * doc/posix-functions/mq_notify.texi: Likewise.
32911         * doc/posix-functions/mq_open.texi: Likewise.
32912         * doc/posix-functions/mq_receive.texi: Likewise.
32913         * doc/posix-functions/mq_send.texi: Likewise.
32914         * doc/posix-functions/mq_setattr.texi: Likewise.
32915         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32916         * doc/posix-functions/mq_timedsend.texi: Likewise.
32917         * doc/posix-functions/mq_unlink.texi: Likewise.
32918         * doc/posix-functions/open_memstream.texi: Likewise.
32919         * doc/posix-functions/openat.texi: Likewise.
32920         * doc/posix-functions/posix_fadvise.texi: Likewise.
32921         * doc/posix-functions/posix_fallocate.texi: Likewise.
32922         * doc/posix-functions/posix_madvise.texi: Likewise.
32923         * doc/posix-functions/posix_memalign.texi: Likewise.
32924         * doc/posix-functions/posix_openpt.texi: Likewise.
32925         * doc/posix-functions/readlinkat.texi: Likewise.
32926         * doc/posix-functions/remque.texi: Likewise.
32927         * doc/posix-functions/renameat.texi: Likewise.
32928         * doc/posix-functions/rintl.texi: Likewise.
32929         * doc/posix-functions/sem_unlink.texi: Likewise.
32930         * doc/posix-functions/shm_open.texi: Likewise.
32931         * doc/posix-functions/shm_unlink.texi: Likewise.
32932         * doc/posix-functions/signgam.texi: Likewise.
32933         * doc/posix-functions/sigset.texi: Likewise.
32934         * doc/posix-functions/stpcpy.texi: Likewise.
32935         * doc/posix-functions/stpncpy.texi: Likewise.
32936         * doc/posix-functions/strerror.texi: Likewise.
32937         * doc/posix-functions/strtod.texi: Likewise.
32938         * doc/posix-functions/symlinkat.texi: Likewise.
32939         * doc/posix-functions/unlinkat.texi: Likewise.
32940         * doc/posix-functions/utimensat.texi: Likewise.
32941         * doc/glibc-functions/bindresvport.texi: Likewise.
32942         * doc/glibc-functions/dn_expand.texi: Likewise.
32943         * doc/glibc-functions/exp10.texi: Likewise.
32944         * doc/glibc-functions/exp10f.texi: Likewise.
32945         * doc/glibc-functions/fgetxattr.texi: Likewise.
32946         * doc/glibc-functions/flistxattr.texi: Likewise.
32947         * doc/glibc-functions/fopencookie.texi: Likewise.
32948         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32949         * doc/glibc-functions/fremovexattr.texi: Likewise.
32950         * doc/glibc-functions/fsetxattr.texi: Likewise.
32951         * doc/glibc-functions/getifaddrs.texi: Likewise.
32952         * doc/glibc-functions/getxattr.texi: Likewise.
32953         * doc/glibc-functions/lgetxattr.texi: Likewise.
32954         * doc/glibc-functions/listxattr.texi: Likewise.
32955         * doc/glibc-functions/llistxattr.texi: Likewise.
32956         * doc/glibc-functions/lremovexattr.texi: Likewise.
32957         * doc/glibc-functions/lsetxattr.texi: Likewise.
32958         * doc/glibc-functions/pow10.texi: Likewise.
32959         * doc/glibc-functions/pow10f.texi: Likewise.
32960         * doc/glibc-functions/rcmd_af.texi: Likewise.
32961         * doc/glibc-functions/removexattr.texi: Likewise.
32962         * doc/glibc-functions/res_init.texi: Likewise.
32963         * doc/glibc-functions/res_mkquery.texi: Likewise.
32964         * doc/glibc-functions/res_query.texi: Likewise.
32965         * doc/glibc-functions/res_querydomain.texi: Likewise.
32966         * doc/glibc-functions/res_send.texi: Likewise.
32967         * doc/glibc-functions/rresvport_af.texi: Likewise.
32968         * doc/glibc-functions/setxattr.texi: Likewise.
32969         * doc/glibc-functions/strcasestr.texi: Likewise.
32970
32971 2008-12-15  Bruno Haible  <bruno@clisp.org>
32972
32973         Fix compilation error on OSF/1 4.0.
32974         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32975         <sys/time.h>, simply delegate to the system header.
32976         Reported by Daniel Richard G. <oss@teragram.com>.
32977
32978 2008-12-15  Bruno Haible  <bruno@clisp.org>
32979
32980         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32981         * doc/posix-functions/fchmodat.texi: Likewise.
32982         * doc/posix-functions/fchownat.texi: Likewise.
32983         * doc/posix-functions/fdopendir.texi: Likewise.
32984         * doc/posix-functions/fstatat.texi: Likewise.
32985         * doc/posix-functions/mkdirat.texi: Likewise.
32986         * doc/posix-functions/unlinkat.texi: Likewise.
32987
32988 2008-12-14  Bruno Haible  <bruno@clisp.org>
32989
32990         Update doc for POSIX:2008.
32991         * doc/posix-functions/faccessat.texi: New file.
32992         * doc/posix-functions/fchmodat.texi: New file.
32993         * doc/posix-functions/fchownat.texi: New file.
32994         * doc/posix-functions/fdopendir.texi: New file.
32995         * doc/posix-functions/fstatat.texi: New file.
32996         * doc/posix-functions/futimens.texi: New file.
32997         * doc/posix-functions/linkat.texi: New file.
32998         * doc/posix-functions/mkdirat.texi: New file.
32999         * doc/posix-functions/mkfifoat.texi: New file.
33000         * doc/posix-functions/mknodat.texi: New file.
33001         * doc/posix-functions/open_wmemstream.texi: New file.
33002         * doc/posix-functions/openat.texi: New file.
33003         * doc/posix-functions/psiginfo.texi: New file.
33004         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33005         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33006         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33007         * doc/posix-functions/readlinkat.texi: New file.
33008         * doc/posix-functions/renameat.texi: New file.
33009         * doc/posix-functions/strerror_l.texi: New file.
33010         * doc/posix-functions/symlinkat.texi: New file.
33011         * doc/posix-functions/unlinkat.texi: New file.
33012         * doc/posix-functions/utimensat.texi: New file.
33013         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33014
33015 2008-12-14  Bruno Haible  <bruno@clisp.org>
33016
33017         Update doc for POSIX:2008.
33018         * doc/posix-functions/alphasort.texi: Renamed from
33019         doc/glibc-functions/alphasort.texi.
33020         * doc/posix-functions/dirfd.texi: Renamed from
33021         doc/glibc-functions/dirfd.texi.
33022         * doc/posix-functions/dprintf.texi: Renamed from
33023         doc/glibc-functions/dprintf.texi.
33024         * doc/posix-functions/duplocale.texi: Renamed from
33025         doc/glibc-functions/duplocale.texi.
33026         * doc/posix-functions/fexecve.texi: Renamed from
33027         doc/glibc-functions/fexecve.texi.
33028         * doc/posix-functions/fmemopen.texi: Renamed from
33029         doc/glibc-functions/fmemopen.texi.
33030         * doc/posix-functions/freelocale.texi: Renamed from
33031         doc/glibc-functions/freelocale.texi.
33032         * doc/posix-functions/getdate_err.texi: Renamed from
33033         doc/glibc-functions/getdate_err.texi.
33034         * doc/posix-functions/isalnum_l.texi: Renamed from
33035         doc/glibc-functions/isalnum_l.texi.
33036         * doc/posix-functions/isalpha_l.texi: Renamed from
33037         doc/glibc-functions/isalpha_l.texi.
33038         * doc/posix-functions/isblank_l.texi: Renamed from
33039         doc/glibc-functions/isblank_l.texi.
33040         * doc/posix-functions/iscntrl_l.texi: Renamed from
33041         doc/glibc-functions/iscntrl_l.texi.
33042         * doc/posix-functions/isdigit_l.texi: Renamed from
33043         doc/glibc-functions/isdigit_l.texi.
33044         * doc/posix-functions/isgraph_l.texi: Renamed from
33045         doc/glibc-functions/isgraph_l.texi.
33046         * doc/posix-functions/islower_l.texi: Renamed from
33047         doc/glibc-functions/islower_l.texi.
33048         * doc/posix-functions/isprint_l.texi: Renamed from
33049         doc/glibc-functions/isprint_l.texi.
33050         * doc/posix-functions/ispunct_l.texi: Renamed from
33051         doc/glibc-functions/ispunct_l.texi.
33052         * doc/posix-functions/isspace_l.texi: Renamed from
33053         doc/glibc-functions/isspace_l.texi.
33054         * doc/posix-functions/isupper_l.texi: Renamed from
33055         doc/glibc-functions/isupper_l.texi.
33056         * doc/posix-functions/iswalnum_l.texi: Renamed from
33057         doc/glibc-functions/iswalnum_l.texi.
33058         * doc/posix-functions/iswalpha_l.texi: Renamed from
33059         doc/glibc-functions/iswalpha_l.texi.
33060         * doc/posix-functions/iswblank_l.texi: Renamed from
33061         doc/glibc-functions/iswblank_l.texi.
33062         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33063         doc/glibc-functions/iswcntrl_l.texi.
33064         * doc/posix-functions/iswctype_l.texi: Renamed from
33065         doc/glibc-functions/iswctype_l.texi.
33066         * doc/posix-functions/iswdigit_l.texi: Renamed from
33067         doc/glibc-functions/iswdigit_l.texi.
33068         * doc/posix-functions/iswgraph_l.texi: Renamed from
33069         doc/glibc-functions/iswgraph_l.texi.
33070         * doc/posix-functions/iswlower_l.texi: Renamed from
33071         doc/glibc-functions/iswlower_l.texi.
33072         * doc/posix-functions/iswprint_l.texi: Renamed from
33073         doc/glibc-functions/iswprint_l.texi.
33074         * doc/posix-functions/iswpunct_l.texi: Renamed from
33075         doc/glibc-functions/iswpunct_l.texi.
33076         * doc/posix-functions/iswspace_l.texi: Renamed from
33077         doc/glibc-functions/iswspace_l.texi.
33078         * doc/posix-functions/iswupper_l.texi: Renamed from
33079         doc/glibc-functions/iswupper_l.texi.
33080         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33081         doc/glibc-functions/iswxdigit_l.texi.
33082         * doc/posix-functions/isxdigit_l.texi: Renamed from
33083         doc/glibc-functions/isxdigit_l.texi.
33084         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33085         doc/glibc-functions/mbsnrtowcs.texi.
33086         * doc/posix-functions/mkdtemp.texi: Renamed from
33087         doc/glibc-functions/mkdtemp.texi.
33088         * doc/posix-functions/newlocale.texi: Renamed from
33089         doc/glibc-functions/newlocale.texi.
33090         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33091         doc/glibc-functions/nl_langinfo_l.texi.
33092         * doc/posix-functions/open_memstream.texi: Renamed from
33093         doc/glibc-functions/open_memstream.texi.
33094         * doc/posix-functions/opterr.texi: Renamed from
33095         doc/glibc-functions/opterr.texi.
33096         * doc/posix-functions/optind.texi: Renamed from
33097         doc/glibc-functions/optind.texi.
33098         * doc/posix-functions/optopt.texi: Renamed from
33099         doc/glibc-functions/optopt.texi.
33100         * doc/posix-functions/psignal.texi: Renamed from
33101         doc/glibc-functions/psignal.texi.
33102         * doc/posix-functions/scandir.texi: Renamed from
33103         doc/glibc-functions/scandir.texi.
33104         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33105         doc/glibc-functions/sched_get_priority_min.texi.
33106         * doc/posix-functions/signgam.texi: Renamed from
33107         doc/glibc-functions/signgam.texi.
33108         * doc/posix-functions/stpcpy.texi: Renamed from
33109         doc/glibc-functions/stpcpy.texi.
33110         * doc/posix-functions/stpncpy.texi: Renamed from
33111         doc/glibc-functions/stpncpy.texi.
33112         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33113         doc/glibc-functions/strcasecmp_l.texi.
33114         * doc/posix-functions/strcoll_l.texi: Renamed from
33115         doc/glibc-functions/strcoll_l.texi.
33116         * doc/posix-functions/strfmon_l.texi: Renamed from
33117         doc/glibc-functions/strfmon_l.texi.
33118         * doc/posix-functions/strftime_l.texi: Renamed from
33119         doc/glibc-functions/strftime_l.texi.
33120         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33121         doc/glibc-functions/strncasecmp_l.texi.
33122         * doc/posix-functions/strndup.texi: Renamed from
33123         doc/glibc-functions/strndup.texi.
33124         * doc/posix-functions/strnlen.texi: Renamed from
33125         doc/glibc-functions/strnlen.texi.
33126         * doc/posix-functions/strsignal.texi: Renamed from
33127         doc/glibc-functions/strsignal.texi.
33128         * doc/posix-functions/strxfrm_l.texi: Renamed from
33129         doc/glibc-functions/strxfrm_l.texi.
33130         * doc/posix-functions/timer_gettime.texi: Renamed from
33131         doc/glibc-functions/timer_gettime.texi.
33132         * doc/posix-functions/tolower_l.texi: Renamed from
33133         doc/glibc-functions/tolower_l.texi.
33134         * doc/posix-functions/toupper_l.texi: Renamed from
33135         doc/glibc-functions/toupper_l.texi.
33136         * doc/posix-functions/towctrans_l.texi: Renamed from
33137         doc/glibc-functions/towctrans_l.texi.
33138         * doc/posix-functions/towlower_l.texi: Renamed from
33139         doc/glibc-functions/towlower_l.texi.
33140         * doc/posix-functions/towupper_l.texi: Renamed from
33141         doc/glibc-functions/towupper_l.texi.
33142         * doc/posix-functions/uselocale.texi: Renamed from
33143         doc/glibc-functions/uselocale.texi.
33144         * doc/posix-functions/vdprintf.texi: Renamed from
33145         doc/glibc-functions/vdprintf.texi.
33146         * doc/posix-functions/wcpcpy.texi:
33147         Renamed from doc/glibc-functions/wcpcpy.texi.
33148         * doc/posix-functions/wcpncpy.texi: Renamed from
33149         doc/glibc-functions/wcpncpy.texi.
33150         * doc/posix-functions/wcscasecmp.texi: Renamed from
33151         doc/glibc-functions/wcscasecmp.texi.
33152         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33153         doc/glibc-functions/wcscasecmp_l.texi.
33154         * doc/posix-functions/wcscoll_l.texi: Renamed from
33155         doc/glibc-functions/wcscoll_l.texi.
33156         * doc/posix-functions/wcsdup.texi: Renamed from
33157         doc/glibc-functions/wcsdup.texi.
33158         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33159         doc/glibc-functions/wcsncasecmp.texi.
33160         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33161         doc/glibc-functions/wcsncasecmp_l.texi.
33162         * doc/posix-functions/wcsnlen.texi: Renamed from
33163         doc/glibc-functions/wcsnlen.texi.
33164         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33165         doc/glibc-functions/wcsnrtombs.texi.
33166         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33167         doc/glibc-functions/wcsxfrm_l.texi.
33168         * doc/posix-functions/wctrans_l.texi: Renamed from
33169         doc/glibc-functions/wctrans_l.texi.
33170         * doc/posix-functions/wctype_l.texi: Renamed from
33171         doc/glibc-functions/wctype_l.texi.
33172         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33173         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33174         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33175         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33176         these subsections.
33177         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33178         Remove sections.
33179
33180 2008-12-14  Bruno Haible  <bruno@clisp.org>
33181
33182         Update doc for POSIX:2008.
33183         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33184
33185 2008-12-14  Bruno Haible  <bruno@clisp.org>
33186
33187         Update doc for POSIX:2008.
33188         * doc/pastposix-functions/bcmp.texi: Renamed from
33189         doc/posix-functions/bcmp.texi.
33190         * doc/pastposix-functions/bcopy.texi: Renamed from
33191         doc/posix-functions/bcopy.texi.
33192         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33193         doc/posix-functions/bsd_signal.texi.
33194         * doc/pastposix-functions/bzero.texi: Renamed from
33195         doc/posix-functions/bzero.texi.
33196         * doc/pastposix-functions/ecvt.texi: Renamed from
33197         doc/posix-functions/ecvt.texi.
33198         * doc/pastposix-functions/fcvt.texi: Renamed from
33199         doc/posix-functions/fcvt.texi.
33200         * doc/pastposix-functions/ftime.texi: Renamed from
33201         doc/posix-functions/ftime.texi.
33202         * doc/pastposix-functions/gcvt.texi: Renamed from
33203         doc/posix-functions/gcvt.texi.
33204         * doc/pastposix-functions/getcontext.texi: Renamed from
33205         doc/posix-functions/getcontext.texi.
33206         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33207         doc/posix-functions/gethostbyaddr.texi.
33208         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33209         doc/posix-functions/gethostbyname.texi.
33210         * doc/pastposix-functions/getwd.texi: Renamed from
33211         doc/posix-functions/getwd.texi.
33212         * doc/pastposix-functions/h_errno.texi: Renamed from
33213         doc/posix-functions/h_errno.texi.
33214         * doc/pastposix-functions/index.texi: Renamed from
33215         doc/posix-functions/index.texi.
33216         * doc/pastposix-functions/makecontext.texi: Renamed from
33217         doc/posix-functions/makecontext.texi.
33218         * doc/pastposix-functions/mktemp.texi: Renamed from
33219         doc/posix-functions/mktemp.texi.
33220         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33221         doc/posix-functions/pthread_attr_getstackaddr.texi.
33222         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33223         doc/posix-functions/pthread_attr_setstackaddr.texi.
33224         * doc/pastposix-functions/rindex.texi: Renamed from
33225         doc/posix-functions/rindex.texi.
33226         * doc/pastposix-functions/scalb.texi: Renamed from
33227         doc/posix-functions/scalb.texi.
33228         * doc/pastposix-functions/setcontext.texi: Renamed from
33229         doc/posix-functions/setcontext.texi.
33230         * doc/pastposix-functions/swapcontext.texi: Renamed from
33231         doc/posix-functions/swapcontext.texi.
33232         * doc/pastposix-functions/ualarm.texi: Renamed from
33233         doc/posix-functions/ualarm.texi.
33234         * doc/pastposix-functions/usleep.texi: Renamed from
33235         doc/posix-functions/usleep.texi.
33236         * doc/pastposix-functions/vfork.texi: Renamed from
33237         doc/posix-functions/vfork.texi.
33238         * doc/pastposix-functions/wcswcs.texi: Renamed from
33239         doc/posix-functions/wcswcs.texi.
33240         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33241         (Function Substitutes): Update.
33242
33243 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33244
33245         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33246         m4/strerror.m4.
33247
33248 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33249             Bruno Haible  <bruno@clisp.org>
33250
33251         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33252
33253 2008-12-13  Bruno Haible  <bruno@clisp.org>
33254
33255         * modules/strtoull (Depends-on): Remove unistd.
33256
33257 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33258
33259         * modules/strtoull (Depends-on): Add stdlib.
33260
33261 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33262
33263         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33264
33265 2008-12-10  Jim Meyering  <meyering@redhat.com>
33266
33267         gl_ASSERT: don't say assertions are disabled when they're not
33268         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33269         "checking whether to enable assertions... no", when they are in
33270         fact enabled.  This is solely a bug in the output of configure.
33271         In spite of saying "no", NDEBUG was not defined in that case.
33272         Also, as noted by Eric Blake, leave assertions enabled upon
33273         --enable-assert=INVALID.
33274
33275 2008-12-10  Bruno Haible  <bruno@clisp.org>
33276
33277         Change MODULES.html to refer to POSIX:2008 where possible.
33278         * MODULES.html.sh (POSIX2008_URL): New variable.
33279         (posix_headers): Remove sys/timeb, ucontext.
33280         (posix2001_headers): New variable.
33281         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33282         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33283         index, makecontext, mktemp, pthread_attr_getstackaddr,
33284         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33285         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33286         (posix2001_functions): New variable.
33287         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33288         otherwise.
33289
33290 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33291
33292         add missing include to parse-duration.c
33293         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33294         * modules/parse-duration (Depends-on): Add xalloc.
33295
33296         fix sed script reading maint.mk
33297         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33298         (syntax-check-rules): Use it.
33299
33300 2008-12-09  Bruno Haible  <bruno@clisp.org>
33301
33302         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33303         MacOS X 10.4/PowerPC.
33304         Reported by Simon Josefsson.
33305
33306 2008-12-08  Jim Meyering  <meyering@redhat.com>
33307
33308         work around mingw's lack of some S_IF definitions
33309         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33310         Reported by Simon Josefsson.
33311
33312 2008-12-08  Bruno Haible  <bruno@clisp.org>
33313
33314         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33315         applied to variables. Needed on MacOS X 10.4/PowerPC.
33316         Reported by Simon Josefsson.
33317
33318 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33319         and Eric Blake  <ebb9@byu.net>
33320
33321         assert: honor --enable-assert
33322         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33323         order to honor --enable-assert, rather than treating it as a
33324         synonym for --disable-assert.
33325
33326 2008-12-08  Jim Meyering  <meyering@redhat.com>
33327
33328         * lib/posixtm.c: Remove now-useless declaration of mktime.
33329
33330         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33331
33332 2008-12-07  Bruno Haible  <bruno@clisp.org>
33333
33334         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33335         test_once): Mark functions as static.
33336         * tests/test-tls.c (test_tls): Likewise.
33337
33338 2008-12-07  Bruno Haible  <bruno@clisp.org>
33339
33340         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33341         iconv_register_autodetect.
33342
33343 2008-12-07  Jim Meyering  <meyering@redhat.com>
33344
33345         posixtm.c: avoid a warning
33346         * lib/posixtm.c (posixtime): Don't initialize tm0.
33347         It's no longer needed to placate gcc4's -Wuninitialized,
33348         and the attempt to placate would elicit a new warning.
33349
33350         unicodeio.c: mark unused parameters
33351         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33352         (fallback_failure_callback): Likewise.
33353
33354 2008-12-07  Bruno Haible  <bruno@clisp.org>
33355
33356         * gnulib-tool (func_create_testdir): When building the tests
33357         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33358         Reported by Simon Josefsson.
33359
33360 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33361
33362         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33363
33364 2008-12-06  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33367         Suggested by Eric Blake.
33368
33369 2008-12-06  Bruno Haible  <bruno@clisp.org>
33370
33371         Fix a c-stack test failure on MacOS X.
33372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33373         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33374         handler for SIGBUS as well.
33375         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33376         install a signal handler for SIGBUS as well.
33377         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33378
33379 2008-12-06  Bruno Haible  <bruno@clisp.org>
33380
33381         Advocacy documentation.
33382         * doc/gnulib-intro.texi (Benefits): New section.
33383         * doc/gnulib.texi: Update.
33384
33385 2008-12-06  Bruno Haible  <bruno@clisp.org>
33386
33387         Document the 'manywarnings' module.
33388         * doc/manywarnings.texi: New file.
33389         * doc/gnulib.texi: Include it.
33390
33391 2008-12-05  Eric Blake  <ebb9@byu.net>
33392
33393         tests: silence some gcc warnings
33394         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33395         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33396         type mismatches.
33397
33398 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33399             Bruno Haible  <bruno@clisp.org>
33400
33401         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33402
33403 2008-11-29  Jim Meyering  <meyering@redhat.com>
33404
33405         unicodeio.c: mark unused parameters
33406         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33407         (fallback_failure_callback): Likewise.
33408
33409         fts: fix a thinko
33410         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33411         (set_stat_type): Return S_IF*-valued "type" directly.
33412         Prompted by James Youngman's spotting a related bug.
33413         Confirmed by further testing through find.
33414
33415         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33416         * lib/fts.c (D_TYPE): Define.
33417         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33418         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33419         (s_ifmt_shift_bits): New function.
33420         (set_stat_type): New function.
33421         (fts_build): When not calling fts_stat, call set_stat_type
33422         to propagate dirent.d_type info to fts_read caller.
33423         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33424         fts_statp->st_mode type information may be valid.
33425
33426 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33427
33428         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33429         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33430         <sds@gnu.org>.
33431
33432 2008-11-20  Bruno Haible  <bruno@clisp.org>
33433
33434         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33435         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33436         INCLUDE_NEXT.
33437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33438         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33439         * modules/math (Makefile.am): Substitute
33440         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33442
33443 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33444             Bruno Haible  <bruno@clisp.org>
33445
33446         * lib/stdint.in.h: Define all type macros so that their expansion is
33447         a single typedef'ed token. Fixes a compilation failure in Boost which
33448         does "using ::int8_t;".
33449
33450 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33451
33452         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33453         gl_MANYWARN_ALL_GCC.
33454         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33455         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33456         * modules/manywarnings: New file.
33457         * MODULES.html.sh: Mention manywarnings module.
33458
33459 2008-11-18  Bruno Haible  <bruno@clisp.org>
33460
33461         * doc/gnulib-tool.texi (Unit tests): New section.
33462
33463 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33464
33465         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33466         paths like 'lib/po/foo.po'.
33467
33468 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33469
33470         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33471         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33472
33473 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33474
33475         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33476         parameter works.
33477
33478 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33479
33480         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33481
33482 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33483
33484         * modules/parse-duration-tests: New file.
33485         * tests/test-parse-duration.sh: New file.
33486         * tests/test-parse-duration.c: New file.
33487
33488         New module 'parse-duration'.
33489         * lib/parse-duration.h: New file.
33490         * lib/parse-duration.c: New file.
33491         * modules/parse-duration: New file.
33492
33493 2008-11-17  Bruno Haible  <bruno@clisp.org>
33494
33495         * tests/test-select-out.sh: Comment out the first pipe test.
33496         Reported by Simon Josefsson.
33497
33498 2008-11-17  Bruno Haible  <bruno@clisp.org>
33499
33500         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33502         gl_HOSTENT.
33503
33504 2008-11-17  Bruno Haible  <bruno@clisp.org>
33505
33506         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33507         -lnetwork and -lnet. Needed for Haiku and BeOS.
33508
33509 2008-11-16  Bruno Haible  <bruno@clisp.org>
33510
33511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33512
33513 2008-11-16  Bruno Haible  <bruno@clisp.org>
33514
33515         Avoid test failure on Haiku.
33516         * tests/test-fsync.c: Include <errno.h>.
33517         (main): Don't require that fsync (0) fails.
33518
33519 2008-11-15  Bruno Haible  <bruno@clisp.org>
33520
33521         New module 'hostent'.
33522         * modules/hostent: New file.
33523         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33524
33525 2008-11-15  Bruno Haible  <bruno@clisp.org>
33526
33527         New module 'servent'.
33528         * modules/servent: New file.
33529         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33530
33531 2008-11-15  Bruno Haible  <bruno@clisp.org>
33532
33533         Avoid generating same test program with two different rules.
33534         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33535         test-frexp to test-frexp-nolibm.
33536         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33537         test-frexpl to test-frexpl-nolibm.
33538
33539 2008-11-15  Bruno Haible  <bruno@clisp.org>
33540
33541         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33542         $(FREXPL_LIBM).
33543
33544 2008-11-15  Bruno Haible  <bruno@clisp.org>
33545
33546         * lib/netdb.in.h: Activate the definitions also when the system's
33547         <netdb.h> has 'struct addrinfo'.
33548         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33549         EAI_OVERFLOW or AI_NUMERICSERV.
33550         * doc/posix-headers/netdb.texi: Document the problem.
33551
33552 2008-11-15  Bruno Haible  <bruno@clisp.org>
33553
33554         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33555
33556         Make the 'sched' module work on platforms where <sched.h> exists but
33557         is incomplete (such as Haiku).
33558         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33559         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33560         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33561         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33562         HAVE_STRUCT_SCHED_PARAM.
33563         * modules/sched (Depends-on): Add include_next.
33564         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33565         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33566         * doc/posix-headers/sched.texi: Document the issue.
33567
33568 2008-11-13  Jim Meyering  <meyering@redhat.com>
33569
33570         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33571         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33572         test would fail due to the difference in the Report bugs to ...
33573         line.  The expected address is empty, "<>", while the actual
33574         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33575
33576 2008-11-12  Bruno Haible  <bruno@clisp.org>
33577
33578         lstat: don't compile lstat.c on systems lacking lstat
33579         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33580         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33581         Reported by Daniel P. Berrange via Jim Meyering.
33582
33583 2008-11-12  Jim Meyering  <meyering@redhat.com>
33584
33585         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33586
33587 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33588
33589         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33590         instead.
33591
33592 2008-11-12  Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/unicodeio.c: Include unistr.h.
33595         (utf8_wctomb): Remove function.
33596         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33597
33598 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33599
33600         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33601         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33602         <bruno@clisp.org>.
33603         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33604
33605 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33606
33607         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33608         * doc/gnulib.texi: Add section for warnings.
33609
33610 2008-11-11  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/sockets.h: Add a comment.
33613
33614 2008-11-11  Karl Berry  <karl@gnu.org>
33615
33616         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33617
33618 2008-11-11  Eric Blake  <ebb9@byu.net>
33619
33620         fdl.texi: avoid git symlinks
33621         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33622
33623 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33624
33625         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33626
33627 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33628
33629         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33630         (gl_WARN_ADD): Substitute $2 if literal.
33631
33632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33633
33634         * m4/warning.m4: Remove.
33635
33636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33637
33638         * m4/warnings.m4: Almost complete rewrite. :-)
33639
33640 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33641
33642         * modules/warnings: New module.
33643         * m4/warnings.m4: New file.
33644         * MODULES.html.sh: Mention warnings module.
33645         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33646         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33647
33648 2008-11-10  Eric Blake  <ebb9@byu.net>
33649
33650         fdl.texi: make a symlink to the latest version
33651         * doc/standards.texi: Revert today's earlier change.
33652         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33653         * doc/fdl.texi: ...and replace this with a symlink to the newer
33654         fdl-1.3.texi.
33655
33656 2008-11-10  Bruno Haible  <bruno@clisp.org>
33657
33658         * tests/test-select-fd.c (main): Accept the result file name as fourth
33659         argument.
33660         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33661         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33662
33663 2008-11-10  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33666         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33667         as autoconf-substituted macros.
33668         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33670         gl_NETDB_H_DEFAULTS. Set these variables.
33671         * modules/netdb (Makefile.am): Substitute these variables.
33672
33673 2008-11-10  Eric Blake  <ebb9@byu.net>
33674
33675         standards.texi: include correct file for FDL 1.3
33676         * doc/standards.texi (GNU Free Documentation License): Change
33677         include file to pull in FDL 1.3, not 1.2.
33678
33679         fdl.texi: revert accidental change to license
33680         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33681
33682 2008-11-10  Bruno Haible  <bruno@clisp.org>
33683
33684         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33685         cross-compiling guesses also when the native compile gives no result.
33686
33687 2008-11-10  Bruno Haible  <bruno@clisp.org>
33688
33689         * lib/spawni.c (__spawni): Force variable into the stack.
33690
33691 2008-11-10  Bruno Haible  <bruno@clisp.org>
33692
33693         Add support for Haiku.
33694         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33695         glibc and BeOS, but also on Haiku.
33696         * lib/fpurge.c (fpurge): Likewise.
33697         * lib/freadable.c (freadable): Likewise.
33698         * lib/freadahead.c (freadahead): Likewise.
33699         * lib/freading.c (freading): Likewise.
33700         * lib/freadptr.c (freadptr): Likewise.
33701         * lib/freadseek.c (freadptrinc): Likewise.
33702         * lib/fseeko.c (rpl_fseeko): Likewise.
33703         * lib/fseterr.c (fseterr): Likewise.
33704         * lib/fwritable.c (fwritable): Likewise.
33705         * lib/fwriting.c (fwriting): Likewise.
33706         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33707
33708 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33709
33710         * lib/config.charset: Treat Haiku like BeOS.
33711
33712 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33713
33714         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33715         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33716
33717 2008-11-08  Bruno Haible  <bruno@clisp.org>
33718
33719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33720         AC_CACHE_CHECK.
33721
33722 2008-11-08  Bruno Haible  <bruno@clisp.org>
33723
33724         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33725
33726 2008-11-08  Bruno Haible  <bruno@clisp.org>
33727
33728         * tests/test-select-fd.c: New file.
33729         * tests/test-select-in.sh: New file.
33730         * tests/test-select-out.sh: New file.
33731         * tests/test-select-stdin.c: New file.
33732         * modules/select-tests (Files): Add the new files.
33733         (Depends-on): Add gettimeofday.
33734         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33735         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33736         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33737
33738 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33739             Bruno Haible  <bruno@clisp.org>
33740
33741         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33742
33743 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33744
33745         * build-aux/pmccabe2html: Added support for C++ source files.
33746
33747 2008-11-05  Ben Pfaff  <blp@gnu.org>
33748
33749         Fix lib/close.c build on Windows.
33750         * modules/close (Files): Add lib/w32sock.h.
33751
33752 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33753
33754         Accept Bison's NEWS format.
33755         * build-aux/announce-gen (print_news_deltas): Tweak
33756         $re_prefix.
33757
33758 2008-11-04  Bruno Haible  <bruno@clisp.org>
33759
33760         * modules/random_r (Maintainer): Add glibc.
33761
33762 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33763
33764         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33765         by karl@freefriends.org (Karl Berry).
33766         * doc/alloca.texi: Likewise.
33767         * doc/c-ctype.texi: Likewise.
33768         * doc/c-strcase.texi: Likewise.
33769         * doc/c-strcaseeq.texi: Likewise.
33770         * doc/c-strcasestr.texi: Likewise.
33771         * doc/c-strstr.texi: Likewise.
33772         * doc/c-strtod.texi: Likewise.
33773         * doc/c-strtold.texi: Likewise.
33774         * doc/ctime.texi: Likewise.
33775         * doc/error.texi: Likewise.
33776         * doc/fdl.texi: Likewise.
33777         * doc/gcd.texi: Likewise.
33778         * doc/getdate.texi: Likewise.
33779         * doc/gnulib-intro.texi: Likewise.
33780         * doc/gnulib-tool.texi: Likewise.
33781         * doc/gnulib.texi: Likewise.
33782         * doc/inet_ntoa.texi: Likewise.
33783         * doc/maintain.texi: Likewise.
33784         * doc/make-stds.texi: Likewise.
33785         * doc/quote.texi: Likewise.
33786         * doc/regexprops-generic.texi: Likewise.
33787         * doc/standards.texi: Likewise.
33788         * doc/verify.texi: Likewise.
33789         * doc/visibility.texi: Likewise.
33790         * doc/gnulib.texi (GNU Free Documentation License): Include
33791         fdl-1.3.texi instead of fdl.texi.
33792
33793 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33794
33795         * doc/fdl-1.3.texi: New file, from
33796         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33797         * modules/fdl-1.3: Add.
33798         * MODULES.html.sh: Add fdl-1.3.
33799
33800 2008-11-03  Bruno Haible  <bruno@clisp.org>
33801
33802         Make determination of absolute name of header file work with AIX xlc.
33803         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33804         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33805         preprocessing.
33806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33807         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33808
33809 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33810
33811         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33812         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33813         <ludo@gnu.org>.
33814
33815 2008-11-02  Bruno Haible  <bruno@clisp.org>
33816
33817         Mark 'strpbrk' obsolete.
33818         * modules/strpbrk (Status, Notice): New sections.
33819         * modules/strtok_r (Depends-on): Add strpbrk.
33820
33821 2008-11-02  Bruno Haible  <bruno@clisp.org>
33822
33823         Mark 'strdup' obsolete.
33824         * modules/strdup (Status, Notice): New sections.
33825         * modules/findprog (Depends-on): Add strdup.
33826         * modules/getaddrinfo (Depends-on): Likewise.
33827         * modules/localename (Depends-on): Likewise.
33828         * modules/relocatable-lib (Depends-on): Likewise.
33829         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33830         * modules/relocatable-prog (Depends-on): Likewise.
33831         * modules/trim (Depends-on): Likewise.
33832         * modules/unictype/gen-ctype (Depends-on): Likewise.
33833         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33834
33835 2008-11-02  Bruno Haible  <bruno@clisp.org>
33836
33837         Mark 'strcspn' obsolete.
33838         * modules/strcspn (Status, Notice): New sections.
33839
33840 2008-11-02  Bruno Haible  <bruno@clisp.org>
33841
33842         Mark 'rmdir' obsolete.
33843         * modules/rmdir (Status, Notice): New sections.
33844         * modules/clean-temp (Depends-on): Add rmdir.
33845         * modules/openat (Depends-on): Likewise.
33846
33847 2008-11-02  Bruno Haible  <bruno@clisp.org>
33848
33849         Mark 'raise' obsolete.
33850         * modules/raise (Status, Notice): New sections.
33851         (Include): Specify <signal.h>.
33852         * modules/stdio (Depends-on): Add raise.
33853         * modules/write (Depends-on): Likewise.
33854
33855 2008-11-02  Bruno Haible  <bruno@clisp.org>
33856
33857         Mark 'memset' obsolete.
33858         * modules/memset (Status, Notice): New sections.
33859
33860 2008-11-02  Bruno Haible  <bruno@clisp.org>
33861
33862         Mark 'memmove' obsolete.
33863         * modules/memmove (Status, Notice): New sections.
33864         * modules/argp (Depends-on): Add memmove.
33865         * modules/argz (Depends-on): Likewise.
33866         * modules/canonicalize (Depends-on): Likewise.
33867         * modules/canonicalize-lgpl (Depends-on): Likewise.
33868         * modules/fts (Depends-on): Likewise.
33869         * modules/getcwd (Depends-on): Likewise.
33870         * modules/human (Depends-on): Likewise.
33871         * modules/regex (Depends-on): Likewise.
33872         * modules/striconveh (Depends-on): Likewise.
33873         * modules/trim (Depends-on): Likewise.
33874         * modules/unistr/u8-move (Depends-on): Likewise.
33875         * modules/unistr/u16-move (Depends-on): Likewise.
33876         * modules/unistr/u32-move (Depends-on): Likewise.
33877
33878 2008-11-02  Bruno Haible  <bruno@clisp.org>
33879
33880         Mark 'memcpy' obsolete.
33881         * modules/memcpy (Status, Notice): New sections.
33882
33883 2008-11-02  Bruno Haible  <bruno@clisp.org>
33884
33885         Mark 'memcmp' obsolete.
33886         * modules/memcmp (Status, Notice): New sections.
33887         * modules/argmatch (Depends-on): Add memchr.
33888         * modules/backupfile (Depends-on): Likewise.
33889         * modules/c-strcasestr (Depends-on): Likewise.
33890         * modules/crypto/des (Depends-on): Likewise.
33891         * modules/csharpcomp (Depends-on): Likewise.
33892         * modules/fnmatch (Depends-on): Likewise.
33893         * modules/git-merge-changelog (Depends-on): Likewise.
33894         * modules/isnand (Depends-on): Likewise.
33895         * modules/isnand-nolibm (Depends-on): Likewise.
33896         * modules/isnanf (Depends-on): Likewise.
33897         * modules/isnanf-nolibm (Depends-on): Likewise.
33898         * modules/isnanl (Depends-on): Likewise.
33899         * modules/isnanl-nolibm (Depends-on): Likewise.
33900         * modules/mbchar (Depends-on): Likewise.
33901         * modules/memcoll (Depends-on): Likewise.
33902         * modules/quotearg (Depends-on): Likewise.
33903         * modules/regex (Depends-on): Likewise.
33904         * modules/relocatable-prog (Depends-on): Likewise.
33905         * modules/same (Depends-on): Likewise.
33906         * modules/signbit (Depends-on): Likewise.
33907         * modules/strcasestr-simple (Depends-on): Likewise.
33908         * modules/unictype/gen-ctype (Depends-on): Likewise.
33909         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33910         * modules/uniname/uniname (Depends-on): Likewise.
33911         * modules/unistr/u8-cmp (Depends-on): Likewise.
33912
33913 2008-11-02  Bruno Haible  <bruno@clisp.org>
33914
33915         Mark 'memchr' obsolete.
33916         * modules/memchr (Status, Notice): New sections.
33917         * modules/argp (Depends-on): Add memchr.
33918         * modules/base64 (Depends-on): Likewise.
33919         * modules/c-strcasestr (Depends-on): Likewise.
33920         * modules/chdir-long (Depends-on): Likewise.
33921         * modules/fnmatch (Depends-on): Likewise.
33922         * modules/getsubopt (Depends-on): Likewise.
33923         * modules/git-merge-changelog (Depends-on): Likewise.
33924         * modules/glob (Depends-on): Likewise.
33925         * modules/strcasestr-simple (Depends-on): Likewise.
33926         * modules/strnlen (Depends-on): Likewise.
33927
33928 2008-11-02  Bruno Haible  <bruno@clisp.org>
33929
33930         Mark 'atexit' obsolete.
33931         * modules/atexit (Status, Notice): New sections.
33932         * modules/chdir-long (Depends-on): Add atexit.
33933         * modules/wait-process (Depends-on): Likewise.
33934
33935 2008-11-02  Bruno Haible  <bruno@clisp.org>
33936
33937         * gnulib-tool: New option --with-obsolete.
33938         (func_usage): Document it.
33939         (func_modules_transitive_closure): Drop obsolete dependencies if
33940         incobsolete is not true.
33941         (func_import): Read and save the incobsolete variable to the cache.
33942
33943 2008-11-02  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33946         * gnulib-tool: New option --extract-status.
33947         (func_usage): Document it.
33948         (sed_extract_prog): Recognize it.
33949         (func_get_status): New function.
33950
33951 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33952
33953         * modules/sockets (License): Change from LGPL to LGPLv2+.
33954
33955 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33956
33957         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33958
33959 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33960
33961         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33962         Mention times and sys_times.
33963         * modules/sys_times, modules/sys_times-tests: New modules.
33964         * modules/times, modules/times-tests: Likewise
33965         * m4/sys_times_h.m4: New file.
33966         * lib/sys_times.in.h: Likewise
33967         * lib/times.c: Likewise.
33968         * tests/test-sys_times.c: Likewise.
33969         * tests/test-times.c: Likewise.
33970         * doc/posix-headers/sys_times.texi: Update.
33971         * doc/posix-functions/times.texi: Update.
33972
33973 2008-10-28  Jim Meyering  <meyering@redhat.com>
33974
33975         * modules/tempname (Depends-on): Add lstat.
33976
33977         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33978
33979 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33980
33981         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33982         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33983         using idiom used elsewhere in gnulib.
33984
33985 2008-10-27  Jim Meyering  <meyering@redhat.com>
33986
33987         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33988
33989 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33990
33991         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33992         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33993         programs.
33994         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33995
33996 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33997
33998         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33999
34000 2008-10-27  Bruno Haible  <bruno@clisp.org>
34001
34002         * tests/test-lstat.c: Include <stdio.h>.
34003
34004 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34005
34006         * modules/lstat-tests: New module.
34007         * tests/test-lstat.c: New file.
34008
34009 2008-10-26  Jim Meyering  <meyering@redhat.com>
34010
34011         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34012
34013 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34014             Bruno Haible  <bruno@clisp.org>
34015
34016         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34017         * modules/configmake (Include): Add a note that the include must come
34018         after all system headers.
34019         * lib/javaversion.c: Include configmake.h after all other includes.
34020
34021 2008-10-26  Bruno Haible  <bruno@clisp.org>
34022
34023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34024         HAVE_STRUCT_RANDOM_DATA to 1.
34025         (gl_STDLIB_H): Simplify.
34026
34027 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34028
34029         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34030         substitute HAVE_STRUCT_RANDOM_DATA.
34031         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34032         random_data.
34033         * modules/stdlib (Makefile.am): Substitute
34034         HAVE_STRUCT_RANDOM_DATA.
34035
34036 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34037
34038         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34039         * doc/gnulib-intro.texi (Copyright): Likewise.
34040
34041 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34042
34043         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34044         findings.
34045
34046 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34047             Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/unistd.in.h: Include <winsock2.h>.
34050         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34051         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34052         Provide dummy declarations.
34053         (gethostname): Override.
34054         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34056         gl_PREREQ_SYS_H_WINSOCK2.
34057         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34058         * doc/posix-functions/gethostname.texi: More details.
34059
34060 2008-10-25  Bruno Haible  <bruno@clisp.org>
34061
34062         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34063         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34064         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34065
34066         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34067         here ...
34068         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34069         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34070         gl_UNISTD_H_DEFAULTS.
34071
34072 2008-10-25  Eric Blake  <ebb9@byu.net>
34073
34074         signbit: avoid spurious compiler failure
34075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34076         declarations inside function.
34077
34078 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34079             Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34082         * modules/random_r (Depends-on): Add stdint.
34083
34084 2008-10-24  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34087         Eggert.
34088         * modules/strerror (License): Likewise.
34089
34090 2008-10-24  Jim Meyering  <meyering@redhat.com>
34091
34092         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34093         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34094
34095 2008-10-24  Eric Blake  <ebb9@byu.net>
34096
34097         getgroups: fix compilation when getgroups is available
34098         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34099         but with <config.h> override of getgroups disabled.
34100
34101 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34102
34103         * doc/gnulib.texi (Header files): Add note about C++ problems.
34104         Explained by Bruno Haible <bruno@clisp.org>.
34105
34106 2008-10-23  Bruno Haible  <bruno@clisp.org>
34107
34108         Define a dummy SA_NODEFER macro on Interix.
34109         * lib/signal.in.h (SA_NODEFER): Define fallback.
34110         Reported by Aleksey Cheusov <cheusov@tut.by> via
34111         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34112
34113 2008-10-23  Bruno Haible  <bruno@clisp.org>
34114
34115         * modules/freadahead (License): Change to LGPLv2+.
34116         Suggested by Simon Josefsson.
34117
34118 2008-10-23  Jim Meyering  <meyering@redhat.com>
34119
34120         random_r: new module
34121         * modules/random_r: New file.
34122         * m4/random_r.m4: New file.
34123         * lib/random_r.c: New file, from glibc.
34124         * modules/random_r-tests: New file.
34125         * tests/test-random_r.c: New file.
34126         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34127          Declare.
34128         (RAND_MAX): Define.
34129         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34130         * modules/stdlib: Substitute them, too.
34131         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34132         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34133         * doc/glibc-functions/random_r.texi: Likewise.
34134         * doc/glibc-functions/setstate_r.texi: Likewise.
34135         * doc/glibc-functions/srandom_r.texi: Likewise.
34136         * config/srclist.txt: Mention it.
34137
34138 2008-10-23  David Lutterkort  <lutter@redhat.com>
34139
34140         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34141         link requirement
34142
34143 2008-10-23  Jim Meyering  <meyering@redhat.com>
34144
34145         selinux-h: mark parameters of stub functions as intentionally unused
34146         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34147         * lib/se-context.in.h: Likewise.
34148
34149 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34150
34151         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34152
34153 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34154
34155         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34156
34157 2008-10-22  Eric Blake  <ebb9@byu.net>
34158
34159         glthread/thread: avoid compiler warning
34160         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34161         Add unreachable abort to silence compiler.
34162
34163 2008-10-22  Eric Blake  <ebb9@byu.net>
34164
34165         netdb: also supply struct addrinfo for cygwin 1.5.x
34166         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34167         older cygwin.
34168         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34169         cygwin.
34170         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34171
34172 2008-10-22  Bruno Haible  <bruno@clisp.org>
34173
34174         * users.txt: Update entry about pspp.
34175
34176 2008-10-21  Bruno Haible  <bruno@clisp.org>
34177
34178         Simplification.
34179         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34180         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34181
34182         Simplification.
34183         * lib/ioctl.c (ioctl): Don't undefine.
34184         * lib/socket.c (socket): Don't undefine.
34185
34186         Remove unused module indicator macros.
34187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34188         GNULIB_$1 as a C macro.
34189
34190         * doc/posix-functions/close.texi: Undo last change.
34191         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34192         Windows platforms.
34193
34194 2008-10-21  Bruno Haible  <bruno@clisp.org>
34195
34196         Add gethostname() declaration to <unistd.h>.
34197         * lib/unistd.in.h (gethostname): New declaration.
34198         * lib/gethostname.c: Include <unistd.h>.
34199         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34200         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34202         and HAVE_GETHOSTNAME.
34203         * modules/gethostname (Depends-on): Add unistd.
34204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34205         (Include): Specify <unistd.h>.
34206         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34207         HAVE_GETHOSTNAME.
34208         * tests/test-gethostname.c: Include <unistd.h> first.
34209
34210 2008-10-21  Bruno Haible  <bruno@clisp.org>
34211
34212         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34213         * modules/select-tests (Depends-on): Likewise.
34214         Reported by Simon Josefsson.
34215
34216 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34217
34218         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34219         * lib/accept.c: New file, based on winsock.c.
34220         * lib/bind.c: New file, based on winsock.c.
34221         * lib/connect.c: New file, based on winsock.c.
34222         * lib/getpeername.c: New file, based on winsock.c.
34223         * lib/getsockname.c: New file, based on winsock.c.
34224         * lib/getsockopt.c: New file, based on winsock.c.
34225         * lib/ioctl.c: New file, based on winsock.c.
34226         * lib/listen.c: New file, based on winsock.c.
34227         * lib/recv.c: New file, based on winsock.c.
34228         * lib/recvfrom.c: New file, based on winsock.c.
34229         * lib/send.c: New file, based on winsock.c.
34230         * lib/sendto.c: New file, based on winsock.c.
34231         * lib/setsockopt.c: New file, based on winsock.c.
34232         * lib/shutdown.c: New file, based on winsock.c.
34233         * lib/socket.c: New file, based on winsock.c.
34234         * lib/w32sock.h: New file, based on winsock.c.
34235         * lib/winsock.c: Remove file.
34236         * modules/accept: Likewise.
34237         * modules/bind: Likewise.
34238         * modules/connect: Likewise.
34239         * modules/getpeername: Likewise.
34240         * modules/getsockname: Likewise.
34241         * modules/getsockopt: Likewise.
34242         * modules/ioctl: Likewise.
34243         * modules/listen: Likewise.
34244         * modules/recv: Likewise.
34245         * modules/recvfrom: Likewise.
34246         * modules/send: Likewise.
34247         * modules/sendto: Likewise.
34248         * modules/setsockopt: Likewise.
34249         * modules/shutdown: Likewise.
34250         * modules/socket: Use socket.c instead of winsock.c.
34251         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34252         * doc/posix-functions/accept.texi: Doc fix.
34253         * doc/posix-functions/bind.texi: Doc fix.
34254         * doc/posix-functions/close.texi: Doc fix.
34255         * doc/posix-functions/connect.texi: Doc fix.
34256         * doc/posix-functions/getpeername.texi: Doc fix.
34257         * doc/posix-functions/getsockname.texi: Doc fix.
34258         * doc/posix-functions/getsockopt.texi: Doc fix.
34259         * doc/posix-functions/ioctl.texi: Doc fix.
34260         * doc/posix-functions/listen.texi: Doc fix.
34261         * doc/posix-functions/recv.texi: Doc fix.
34262         * doc/posix-functions/recvfrom.texi: Doc fix.
34263         * doc/posix-functions/send.texi: Doc fix.
34264         * doc/posix-functions/sendto.texi: Doc fix.
34265         * doc/posix-functions/setsockopt.texi: Doc fix.
34266         * doc/posix-functions/shutdown.texi: Doc fix.
34267         * doc/posix-functions/socket.texi: Doc fix.
34268
34269 2008-10-20  Bruno Haible  <bruno@clisp.org>
34270
34271         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34272         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34273         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34274         as an alias for SIGABRT.
34275         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34276         (sigaction): Map it to SIGABRT.
34277         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34278
34279 2008-10-20  Bruno Haible  <bruno@clisp.org>
34280
34281         * lib/fts.c: Don't include lstat.h.
34282         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34283
34284         Move the lstat() declaration to <sys/stat.h>.
34285         * lib/lstat.h: Remove file.
34286         * lib/sys_stat.in.h: Add special invocation convention.
34287         (lstat): New declaration.
34288         * lib/lstat.c (orig_lstat): New function.
34289         (rpl_lstat): Use orig_lstat instead of lstat.
34290         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34291         AC_C_INLINE. Set REPLACE_LSTAT.
34292         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34293         and REPLACE_LSTAT.
34294         * modules/lstat (Files): Remove lib/lstat.h.
34295         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34296         (Include): Specify <sys/stat.h> instead of lstat.h.
34297         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34298         REPLACE_LSTAT.
34299         * NEWS: Mention the change.
34300
34301 2008-10-20  Bruno Haible  <bruno@clisp.org>
34302
34303         * modules/posix_spawn-tests: New file.
34304         * tests/test-posix_spawn3.c: New file.
34305
34306 2008-10-20  Bruno Haible  <bruno@clisp.org>
34307
34308         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34309         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34310         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34311         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34312         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34313
34314 2008-10-20  Bruno Haible  <bruno@clisp.org>
34315
34316         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34317         of posix_spawn on AIX 5.3.
34318
34319 2008-10-20  Bruno Haible  <bruno@clisp.org>
34320
34321         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34322
34323 2008-10-20  Bruno Haible  <bruno@clisp.org>
34324
34325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34326         of AC_LANG_PROGRAM.
34327
34328 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34329
34330         * lib/netdb.in.h: Don't define GNU specific constants until they
34331         are supported or needed.  Reported by Bruno Haible
34332         <bruno@clisp.org>.
34333
34334 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34335
34336         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34337
34338 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34339
34340         * lib/getaddrinfo.h: Remove file.
34341         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34342         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34343         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34344         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34345         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34346         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34347         * tests/test-getaddrinfo.c: Likewise.
34348         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34349         * NEWS: Mention change.
34350
34351 2008-10-19  Bruno Haible  <bruno@clisp.org>
34352
34353         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34354
34355 2008-10-19  Bruno Haible  <bruno@clisp.org>
34356
34357         * lib/wait-process.c: Include simply <sys/wait.h>.
34358         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34359         WIFSTOPPED): Remove fallback definitions.
34360         * modules/wait-process (Depends-on): Add sys_wait.
34361
34362         New module 'sys_wait'.
34363         * modules/sys_wait: New file.
34364         * lib/sys_wait.in.h: New file, partially copied from
34365         lib/wait-process.c.
34366         * m4/sys_wait_h.m4: New file.
34367         * doc/posix-headers/sys_wait.texi: Mention the new module.
34368
34369 2008-10-19  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34372
34373 2008-10-19  Bruno Haible  <bruno@clisp.org>
34374
34375         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34376         * lib/wait-process.c (WAIT_T): Remove type.
34377         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34378         (wait_subprocess): Update.
34379
34380 2008-10-19  Bruno Haible  <bruno@clisp.org>
34381
34382         New module 'atoll'.
34383         * modules/atoll: New file.
34384         * lib/stdlib.in.h (atoll): New declaration.
34385         * lib/atoll.c: New file, from glibc with modifications.
34386         * m4/atoll.m4: New file.
34387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34388         HAVE_ATOLL.
34389         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34390         * doc/posix-functions/atoll.texi: Mention the new module.
34391
34392 2008-10-19  Bruno Haible  <bruno@clisp.org>
34393
34394         Add strtoull() declaration to <stdlib.h>.
34395         * lib/stdlib.in.h (strtoull): New declaration.
34396         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34397         Set HAVE_STRTOULL.
34398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34399         HAVE_STRTOULL.
34400         * modules/strtoull (Depends-on): Add stdlib.
34401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34402         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34403         HAVE_STRTOULL.
34404
34405 2008-10-19  Bruno Haible  <bruno@clisp.org>
34406
34407         Add strtoll() declaration to <stdlib.h>.
34408         * lib/stdlib.in.h (strtoll): New declaration.
34409         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34410         Set HAVE_STRTOLL.
34411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34412         HAVE_STRTOLL.
34413         * modules/strtoll (Depends-on): Add stdlib.
34414         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34415         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34416
34417 2008-10-19  Bruno Haible  <bruno@clisp.org>
34418
34419         * modules/bcopy (Depends-on): Add strings.
34420         (Include): Specify <strings.h>.
34421
34422 2008-10-19  Bruno Haible  <bruno@clisp.org>
34423
34424         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34425
34426 2008-10-19  Bruno Haible  <bruno@clisp.org>
34427
34428         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34429         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34430         mingw.
34431
34432 2008-10-19  Bruno Haible  <bruno@clisp.org>
34433
34434         * lib/atanl.c: Don't include isnanl.h.
34435         * lib/cosl.c: Likewise.
34436         * lib/ldexpl.c: Likewise.
34437         * lib/logl.c: Likewise.
34438         * lib/sinl.c: Likewise.
34439         * lib/sqrtl.c: Likewise.
34440         * lib/tanl.c: Likewise.
34441
34442         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34443         * lib/isnanf.h: Remove file.
34444         * lib/isnand.h: Remove file.
34445         * lib/isnanl.h: Remove file.
34446         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34447         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34448         macros.
34449         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34450         HAVE_ISNANF, don't define it as a C macro.
34451         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34452         HAVE_ISNAND, don't define it as a C macro.
34453         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34454         HAVE_ISNANL, don't define it as a C macro.
34455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34456         HAVE_ISNAN[FDL].
34457         * modules/isnanf (Files): Remove lib/isnanf.h.
34458         (Depends-on): Add math.
34459         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34460         (Include): Specify <math.h> instead of isnanf.h.
34461         * modules/isnand (Files): Remove lib/isnand.h.
34462         (Depends-on): Add math.
34463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34464         (Include): Specify <math.h> instead of isnand.h.
34465         * modules/isnanl (Files): Remove lib/isnanl.h.
34466         (Depends-on): Add math.
34467         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34468         (Include): Specify <math.h> instead of isnanl.h.
34469         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34470         HAVE_ISNAN[FDL].
34471         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34472         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34473         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34474         * NEWS: Mention the change.
34475
34476 2008-10-18  Bruno Haible  <bruno@clisp.org>
34477
34478         Add getusershell(), setusershell(), endusershell() declarations to
34479         <unistd.h>.
34480         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34481         declarations.
34482         * lib/getusershell.c: Include unistd.h.
34483         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34484         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34485         HAVE_GETUSERSHELL.
34486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34487         and HAVE_GETUSERSHELL.
34488         * modules/getusershell (Depends-on): Add unistd, extensions.
34489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34490         (Include): Specify <unistd.h>.
34491         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34492         HAVE_GETUSERSHELL.
34493
34494 2008-10-18  Bruno Haible  <bruno@clisp.org>
34495
34496         Add a getloadavg() declaration to <stdlib.h>.
34497         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34498         getloadavg declaration.
34499         (getloadavg): New declaration.
34500         * lib/getloadavg.c: Include <stdlib.h> first.
34501         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34502         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34503         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34505         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34506         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34508         (Include): Specify <stdlib.h>.
34509         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34510         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34511
34512 2008-10-18  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/dirchownmod.c: Don't include lchmod.h.
34515
34516         Move the lchmod() declaration to <sys/stat.h>.
34517         * lib/lchmod.h: Remove file.
34518         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34519         (lchmod): New declaration, moved here from lib/lchown.h.
34520         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34521         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34523         and HAVE_LCHMOD.
34524         * modules/lchmod (Files): Remove lib/lchmod.h.
34525         (Depends-on): Add sys_stat, extensions.
34526         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34527         (Include): Specify <sys/stat.h> instead of lchmod.h.
34528         * modules/sys_stat (Depends-on): Add link-warning.
34529         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34530         definition of GL_LINK_WARNING.
34531         * NEWS: Mention the change.
34532
34533 2008-10-18  Bruno Haible  <bruno@clisp.org>
34534
34535         * lib/fchdir.c: Don't include dirfd.h.
34536         * lib/fts.c: Likewise.
34537         * lib/getcwd.c: Likewise.
34538         * lib/glob.c: Likewise.
34539
34540         Move the dirfd() declaration to <dirent.h>.
34541         * lib/dirfd.h: Remove file.
34542         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34543         (dirfd): New declaration.
34544         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34545         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34546         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34547         HAVE_DECL_DIRFD.
34548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34549         HAVE_DECL_DIRFD.
34550         * modules/dirfd (Files): Remove lib/dirfd.h.
34551         (Depends-on): Add dirent, extensions.
34552         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34553         (Include): Specify <dirent.h> instead of dirfd.h.
34554         * modules/dirent (Depends-on): Add link-warning.
34555         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34556         definition of GL_LINK_WARNING.
34557         * NEWS: Mention the change.
34558
34559 2008-10-18  Bruno Haible  <bruno@clisp.org>
34560
34561         Move the euidaccess() declaration to <unistd.h>.
34562         * lib/euidaccess.h: Remove file.
34563         * lib/unistd.in.h (euidaccess): New declaration.
34564         * lib/euidaccess.c: Don't include euidaccess.h.
34565         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34566         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34568         and HAVE_EUIDACCESS.
34569         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34570         (Depends-on): Add unistd.
34571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34572         (Include): Specify <unistd.h> instead of euidaccess.h.
34573         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34574         HAVE_EUIDACCESS.
34575         * NEWS: Mention the change.
34576
34577 2008-10-18  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34580
34581         Move the getdomainname() declaration to <unistd.h>.
34582         * lib/getdomainname.h: Remove file.
34583         * lib/unistd.in.h (getdomainname): New declaration.
34584         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34585         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34586         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34587         HAVE_GETDOMAINNAME.
34588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34589         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34590         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34591         (Depends-on): Add unistd, extensions.
34592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34593         (Includes): Specify <unistd.h> instead of getdomainname.h.
34594         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34595         HAVE_GETDOMAINNAME.
34596         * NEWS: Mention the change.
34597
34598 2008-10-18  Bruno Haible  <bruno@clisp.org>
34599
34600         * modules/dirent: New file.
34601         * m4/dirent_h.m4: New file.
34602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34603         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34604         * modules/fchdir (Files): Remove lib/dirent.in.h.
34605         (Depends-on): Add dirent.
34606         (Makefile.am): Move rules to modules/dirent.
34607         * doc/posix-headers/dirent.texi: Mention the new module.
34608
34609 2008-10-18  Bruno Haible  <bruno@clisp.org>
34610
34611         Avoid -Wunused-parameter warnings in public gnulib header files.
34612         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34613         macro.
34614         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34615
34616 2008-10-18  Bruno Haible  <bruno@clisp.org>
34617
34618         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34619         * doc/glibc-functions/error.texi: Mention the module 'error'.
34620         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34621         * doc/glibc-functions/getdomainname.texi: Mention the module
34622         'getdomainname'.
34623         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34624         * doc/glibc-functions/getpagesize.texi: Mention the module
34625         'getpagesize'.
34626         * doc/glibc-functions/getusershell.texi: Mention the module
34627         'getusershell'.
34628         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34629         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34630         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34631         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34632         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34633         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34634         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34635         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34636         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34637         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34638         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34639         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34640         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34641         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34642
34643 2008-10-17  Bruno Haible  <bruno@clisp.org>
34644
34645         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34646         HP-UX and IRIX, use -0.0L.
34647         * tests/test-ceill.c (minus_zero): Likewise.
34648         * tests/test-floorl.c (minus_zero): Likewise.
34649         * tests/test-frexpl.c (minus_zero): Likewise.
34650         * tests/test-isnan.c (minus_zerol): Likewise.
34651         * tests/test-isnanl.h (minus_zero): Likewise.
34652         * tests/test-ldexpl.c (minus_zero): Likewise.
34653         * tests/test-roundl.c (minus_zero): Likewise.
34654         * tests/test-signbit.c (minus_zerol): Likewise.
34655         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34656         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34657         * tests/test-truncl.c (minus_zero): Likewise.
34658         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34659         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34660         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34661         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34662
34663 2008-10-17  Bruno Haible  <bruno@clisp.org>
34664
34665         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34666         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34667         that it gets activated only for gcc >= 3.0.
34668         * lib/dirent.in.h: Likewise.
34669         * lib/errno.in.h: Likewise.
34670         * lib/fcntl.in.h: Likewise.
34671         * lib/float.in.h: Likewise.
34672         * lib/iconv.in.h: Likewise.
34673         * lib/inttypes.in.h: Likewise.
34674         * lib/locale.in.h: Likewise.
34675         * lib/math.in.h: Likewise.
34676         * lib/netdb.in.h: Likewise.
34677         * lib/netinet_in.in.h: Likewise.
34678         * lib/search.in.h: Likewise.
34679         * lib/signal.in.h: Likewise.
34680         * lib/spawn.in.h: Likewise.
34681         * lib/stdarg.in.h: Likewise.
34682         * lib/stdint.in.h: Likewise.
34683         * lib/stdio.in.h: Likewise.
34684         * lib/stdlib.in.h: Likewise.
34685         * lib/string.in.h: Likewise.
34686         * lib/strings.in.h: Likewise.
34687         * lib/sys_file.in.h: Likewise.
34688         * lib/sys_ioctl.in.h: Likewise.
34689         * lib/sys_select.in.h: Likewise.
34690         * lib/sys_socket.in.h: Likewise.
34691         * lib/sys_stat.in.h: Likewise.
34692         * lib/sys_time.in.h: Likewise.
34693         * lib/sysexits.in.h: Likewise.
34694         * lib/time.in.h: Likewise.
34695         * lib/unistd.in.h: Likewise.
34696         * lib/wchar.in.h: Likewise.
34697         * lib/wctype.in.h: Likewise.
34698         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34699
34700 2008-10-17  Jim Meyering  <meyering@redhat.com>
34701
34702         ignore-value: don't depend on inline module
34703         * modules/ignore-value (Depends-on): Remove 'inline'.
34704         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34705         Suggestion from Bruno Haible.
34706
34707 2008-10-17  Bruno Haible  <bruno@clisp.org>
34708
34709         New implementation of condition variables for Win32.
34710         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34711         (gl_linked_waitqueue_t): New type.
34712         (gl_cond_t): Use it.
34713         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34714         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34715         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34716         (glthread_cond_init_func, glthread_cond_wait_func,
34717         glthread_cond_timedwait_func, glthread_cond_signal_func,
34718         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34719         Reimplemented on the basis of gl_linked_waitqueue_t.
34720         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34721         gl_waitqueue_t.
34722         (gl_rwlock_t): Update.
34723         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34724
34725 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34726
34727         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34728         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34729
34730 2008-10-17  Jim Meyering  <meyering@redhat.com>
34731
34732         ignore-value: new module
34733         * modules/ignore-value: New file.
34734         * lib/ignore-value.h: New file.
34735         * MODULES.html.sh (Compiler warning management): New section,
34736         just for this module.  More to come.
34737
34738 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34739
34740         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34741         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34742         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34743
34744 2008-10-16  Jim Meyering  <meyering@redhat.com>
34745
34746         openat-die.c: avoid 'no previous prototype' warning
34747         * lib/openat-die.c: Include "openat.h".
34748         Reported by Reuben Thomas <rrt@sc3d.org>.
34749
34750 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34751
34752         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34753         * lib/netdb.in.h: Fix typo.
34754         Reported by Bruno Haible  <bruno@clisp.org>
34755
34756         * lib/netdb.in.h: Include sys/socket.h for platforms without
34757         netdb.h, to get structures like hostent on MinGW.
34758         * modules/netdb (Depends-on): Add sys_socket.
34759
34760 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34761
34762         * modules/netdb, modules/netdb-tests: New file.
34763         * m4/netdb_h.m4: New file.
34764         * lib/netdb.in.h: Add, currently just an empty file pending
34765         definitions.
34766         * tests/test-netdb.c: New file.
34767         * doc/posix-headers/netdb.texi: Mention that we replace it if
34768         needed.
34769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34770         netdb.
34771
34772 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34773
34774         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34775         with code.
34776
34777 2008-10-13  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/glthread/cond.c (glthread_cond_wait_func,
34780         glthread_cond_timedwait_func): Add a comment.
34781
34782 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34783
34784         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34785         * tests/test-select.c: Likewise,
34786
34787 2008-10-13  Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/glthread/cond.c (glthread_cond_wait_func,
34790         glthread_cond_timedwait_func): Fix variable name.
34791         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34792
34793 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34794
34795         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34797         struct sockaddr.sa_len.
34798         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34799
34800 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34801
34802         * build-aux/pmccabe2html: Add css and css_url parameters.
34803
34804 2008-10-12  Bruno Haible  <bruno@clisp.org>
34805
34806         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34807         calling aclx_get.
34808         Reported by Rainer Tammer <tammer@tammer.net>.
34809
34810 2008-10-12  Bruno Haible  <bruno@clisp.org>
34811
34812         Use msvcrt aware primitives for creation/termination of Win32 threads.
34813         * lib/glthread/thread.c: Include <process.h>.
34814         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34815         (wrapper_func): Update signature.
34816         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34817
34818 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34819             Bruno Haible  <bruno@clisp.org>
34820
34821         Provide a Win32 implementation of the 'cond' module.
34822         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34823         * lib/glthread/cond.c (glthread_cond_init_func,
34824         glthread_cond_wait_func, glthread_cond_timedwait_func,
34825         glthread_cond_signal_func, glthread_cond_broadcast_func,
34826         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34827         * modules/cond (Dependencies): Add gettimeofday.
34828
34829 2008-10-11  Bruno Haible  <bruno@clisp.org>
34830
34831         Make sleep work on older versions of mingw.
34832         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34833         only whether it exists.
34834         * doc/posix-functions/sleep.texi: Mention the problem with older
34835         versions of mingw.
34836
34837 2008-10-11  Bruno Haible  <bruno@clisp.org>
34838
34839         New module 'shutdown'.
34840         * modules/shutdown: New file.
34841         * lib/sys_socket.in.h (shutdown): New declaration.
34842         * lib/winsock.c (shutdown): New function.
34843         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34844         GNULIB_SHUTDOWN.
34845         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34846         * doc/posix-functions/shutdown.texi: Document the new module.
34847
34848 2008-10-11  Jim Meyering  <meyering@redhat.com>
34849
34850         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34851
34852 2008-10-11  Bruno Haible  <bruno@clisp.org>
34853
34854         New module 'fclose'.
34855         * modules/fclose: New file.
34856         * lib/stdio.in.h (fclose): New declaration.
34857         * lib/fclose.c: New file.
34858         * m4/fclose.m4: New file.
34859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34860         REPLACE_FCLOSE.
34861         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34862         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34863         REPLACE_FCLOSE.
34864         * modules/close (Depends-on): fclose.
34865         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34866
34867 2008-10-11  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34870         set errno and don't call _close.
34871
34872 2008-10-10  Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34875         ACL, not afterwards. Fixes test failure on Cygwin.
34876
34877 2008-10-09  Ben Pfaff  <blp@gnu.org>
34878
34879         * build-aux/announce-gen: Fix gnulib version related part of usage
34880         message.  Die with a useful error message if no tarballs are
34881         found.
34882
34883 2008-10-10  Jim Meyering  <meyering@redhat.com>
34884
34885         bootstrap: use git's --depth=N option only if it's supported
34886         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34887         recognize the --depth option.  Reported by Pádraig Brady.
34888
34889 2008-10-09  Bruno Haible  <bruno@clisp.org>
34890
34891         New module 'ioctl'.
34892         * modules/ioctl: New file.
34893         * lib/sys_socket.in.h (ioctl): Remove declaration.
34894         * lib/winsock.c: Include <sys/ioctl.h>.
34895         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34896         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34897         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34898         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34899         * doc/posix-functions/ioctl.texi: Mention the new module.
34900
34901 2008-10-09  Bruno Haible  <bruno@clisp.org>
34902
34903         New module 'sys_ioctl'.
34904         * lib/sys_ioctl.in.h: New file.
34905         * m4/sys_ioctl_h.m4: New file.
34906         * modules/sys_ioctl: New file.
34907         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34908
34909 2008-10-09  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34912         * lib/winsock.c: Include <stdarg.h>.
34913         (rpl_ioctl): Change to second argument 'int' and then varargs.
34914
34915 2008-10-09  Bruno Haible  <bruno@clisp.org>
34916
34917         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34918         when the sys_socket module is present and the system has <winsock2.h>.
34919
34920 2008-10-09  Bruno Haible  <bruno@clisp.org>
34921
34922         * doc/posix-functions/close.texi: Mention module 'close' instead of
34923         module 'sys_socket'.
34924
34925 2008-10-09  Bruno Haible  <bruno@clisp.org>
34926
34927         * doc/glibc-headers/sys_ioctl.texi: New file.
34928         * doc/gnulib.texi: Include it.
34929
34930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34931             Bruno Haible  <bruno@clisp.org>
34932
34933         Combine the two replacements of 'close'.
34934         * lib/sys_socket.in.h (close): Define to a reminder to include
34935         <unistd.h>.
34936         (_gl_close_fd_maybe_socket): New declaration.
34937         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34938         * lib/winsock.c (close): Remove undefinition.
34939         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34940         needed for the gnulib module 'close'.
34941         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34942         define to an error symbol or to a warning, if suitable.
34943         * lib/close.c: Include <sys/socket.h>.
34944         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34945         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34946         UNISTD_H_HAVE_WINSOCK2_H.
34947         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34949         UNISTD_H_HAVE_WINSOCK2_H.
34950         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34951         (configure.ac): Set a module indicator.
34952         (Makefile.am): Substitute GNULIB_CLOSE.
34953         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34954         * modules/poll-tests (Depends-on): Add close.
34955         * modules/select-tests (Depends-on): Likewise.
34956
34957 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34958             Bruno Haible  <bruno@clisp.org>
34959
34960         New module 'close'.
34961         * modules/close: New file.
34962         * lib/unistd.in.h (close): Move declaration out of the
34963         FCHDIR_REPLACEMENT scope.
34964         (_gl_unregister_fd): New declaration.
34965         * lib/close.c: New file.
34966         * lib/fchdir.c (rpl_close): Remove function.
34967         * m4/close.m4: New file.
34968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34969         close.
34970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34971         REPLACE_CLOSE.
34972         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34973         REPLACE_CLOSE.
34974         * modules/fchdir (Depends-on): Add close.
34975
34976 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34977             Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/fcntl.in.h (open): Simplify conditionals.
34980         (_gl_register_fd): New declaration.
34981         * lib/fchdir.c (rpl_open): Remove function.
34982         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34983         also.
34984         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34986         open.
34987
34988 2008-10-09  Jim Meyering  <meyering@redhat.com>
34989
34990         GNUmakefile: use the more name-space-friendly "_version"
34991         * top/GNUmakefile (_dummy): Update.
34992         (_version): Rename from "version".
34993
34994 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34995             Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34998         rpl_close.
34999         (_gl_register_fd): New function, extracted from rpl_open.
35000         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35001         (rpl_open, rpl_opendir): Use _gl_register_fd.
35002
35003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35004
35005         Fix organization of 'open' replacement.
35006         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35007         (gl_FUNC_OPEN): Use it.
35008         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35009
35010 2008-10-08  Bruno Haible  <bruno@clisp.org>
35011
35012         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35013
35014 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35015
35016         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35017         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35018         listen).
35019
35020 2008-10-08  Eric Blake  <ebb9@byu.net>
35021
35022         GNUmakefile: add 'make version' target
35023         * top/GNUmakefile (_curr-ver): Split version update rules...
35024         (version): ...into a target.
35025
35026 2008-10-07  Bruno Haible  <bruno@clisp.org>
35027
35028         Use a more portable replacement expression for -0.0L.
35029         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35030         instead of -0.0L. Fix m4 quotation.
35031
35032         * tests/test-signbit.c: Include <float.h>.
35033         (minus_zero): New variable.
35034         (test_signbitl): Use minus_zero instead of -zero.
35035         * modules/signbit-tests (Depends-on): Add float.
35036
35037         * tests/test-ceill.c: Include <float.h>.
35038         (zero): Remove variable.
35039         (minus_zero): New variable.
35040         (main): Use minus_zero instead of -zero.
35041         * modules/ceill-tests (Depends-on): Add float.
35042
35043         * tests/test-floorl.c: Include <float.h>.
35044         (zero): Remove variable.
35045         (minus_zero): New variable.
35046         (main): Use minus_zero instead of -zero.
35047         * modules/floorl-tests (Depends-on): Add float.
35048
35049         * tests/test-roundl.c: Include <float.h>.
35050         (zero): Remove variable.
35051         (minus_zero): New variable.
35052         (main): Use minus_zero instead of -zero.
35053         * modules/roundl-tests (Depends-on): Add float.
35054
35055         * tests/test-truncl.c: Include <float.h>.
35056         (zero): Remove variable.
35057         (minus_zero): New variable.
35058         (main): Use minus_zero instead of -zero.
35059         * modules/truncl-tests (Depends-on): Add float.
35060
35061         * tests/test-frexpl.c (zero): Remove variable.
35062         (minus_zero): New variable.
35063         (main): Use minus_zero instead of -zero.
35064         * modules/frexpl-tests (Depends-on): Add float.
35065
35066         * tests/test-isnan.c (zerol): Remove variable.
35067         (minus_zerol): New variable.
35068         (test_long_double): Use minus_zerol instead of -zerol.
35069         * modules/isnan-tests (Depends-on): Add float.
35070
35071         * tests/test-isnanl.h (zero): Remove variable.
35072         (minus_zero): New variable.
35073         (main): Use minus_zero instead of -zero.
35074         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35075         * modules/isnanl-tests (Depends-on): Add float.
35076
35077         * tests/test-ldexpl.c (zero): Remove variable.
35078         (minus_zero): New variable.
35079         (main): Use minus_zero instead of -zero.
35080         * modules/ldexpl-tests (Depends-on): Add float.
35081
35082         * tests/test-snprintf-posix.h (zerol): Remove variable.
35083         (minus_zerol): New variable.
35084         (test_function): Use minus_zerol instead of -zerol.
35085         * modules/snprintf-posix-tests (Depends-on): Add float.
35086         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35087
35088         * tests/test-sprintf-posix.h (zerol): Remove variable.
35089         (minus_zerol): New variable.
35090         (test_function): Use minus_zerol instead of -zerol.
35091         * modules/sprintf-posix-tests (Depends-on): Add float.
35092         * modules/vsprintf-posix-tests (Depends-on): Add float.
35093
35094         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35095         (minus_zerol): New variable.
35096         (test_function): Use minus_zerol instead of -zerol.
35097         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35098
35099         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35100         (minus_zerol): New variable.
35101         (test_function): Use minus_zerol instead of -zerol.
35102         * modules/vasprintf-posix-tests (Depends-on): Add float.
35103
35104 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35105
35106         * MODULES.html.sh (Support for building documentation): Mention
35107         pmccabe2html.  Sort entries.
35108
35109         Add pmccabe2html module, from gnupdf.
35110         * build-aux/pmccabe.css: New file.
35111         * build-aux/pmccabe2html: New file.
35112         * m4/pmccabe2html.m4: New file.
35113         * modules/pmccabe2html: New file.
35114
35115 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35116
35117         flock: new module
35118         * MODULES.html.sh: Add to list of modules.
35119         * lib/flock.c: flock implementation for Windows and Unix systems
35120         which have fcntl.
35121         * doc/glibc-functions/flock.texi: Update documentation.
35122         * lib/sys_file.in.h: <sys/file.h> header file.
35123         * m4/flock.m4: M4 macros.
35124         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35125         * modules/flock: flock module.
35126         * modules/flock-tests: flock tests module.
35127         * modules/sys_file: sys/file.h module.
35128         * tests/test-flock.c: test suite for flock.
35129
35130 2008-10-06  Jim Meyering  <meyering@redhat.com>
35131
35132         bootstrap: check for LT_INIT more portably still ;-)
35133         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35134         Spotted by Bruno Haible.
35135
35136 2008-10-06  Eric Blake  <ebb9@byu.net>
35137
35138         test-signbit: avoid tripping Irix cc bug on -0.0L
35139         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35140         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35141         entire testsuite consistent and avoids an Irix 6.2 bug.
35142
35143 2008-10-05  Bruno Haible  <bruno@clisp.org>
35144             Jim Meyering  <jim@meyering.net>
35145
35146         Add an option for ignoring EPIPE during close_stdout.
35147         * lib/closeout.h: Include <stdbool.h>.
35148         (close_stdout_set_ignore_EPIPE): New declaration.
35149         * lib/closeout.c: Include <stdbool.h>.
35150         (ignore_EPIPE): New variable.
35151         (close_stdout_set_ignore_EPIPE): New function.
35152         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35153         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35154         failure.
35155         * modules/closeout (Depends-on): Add stdbool.
35156
35157 2008-10-05  Bruno Haible  <bruno@clisp.org>
35158
35159         * modules/accept: New file.
35160         * modules/bind: New file.
35161         * modules/connect: New file.
35162         * modules/getpeername: New file.
35163         * modules/getsockname: New file.
35164         * modules/getsockopt: New file.
35165         * modules/listen: New file.
35166         * modules/recv: New file.
35167         * modules/recvfrom: New file.
35168         * modules/send: New file.
35169         * modules/sendto: New file.
35170         * modules/setsockopt: New file.
35171         * modules/socket: New file.
35172         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35173         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35174         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35175         the particular module is requested. Add a link warning when the
35176         particular module is not requested.
35177         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35178         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35179         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35180         the particular module is requested.
35181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35182         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35183         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35184         * modules/sys_socket (Depends-on): Add link-warning.
35185         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35186         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35187         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35188         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35189         GL_LINK_WARNING.
35190         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35191         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35192         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35193         * doc/posix-functions/getpeername.texi: Mention the new module
35194         'getpeername'.
35195         * doc/posix-functions/getsockname.texi: Mention the new module
35196         'getsockname'.
35197         * doc/posix-functions/getsockopt.texi: Mention the new module
35198         'getsockopt'.
35199         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35200         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35201         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35202         * doc/posix-functions/send.texi: Mention the new module 'send'.
35203         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35204         * doc/posix-functions/setsockopt.texi: Mention the new module
35205         'setsockopt'.
35206         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35207         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35208         listen, connect, accept.
35209         * modules/select-tests (Depends-on): Likewise.
35210
35211 2008-10-05  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/winsock.c (strerror): Remove unused #undef.
35214         (rpl_close): Remove unused local variable.
35215
35216         * modules/sys_socket (Depends-on); Add errno.
35217
35218 2008-10-05  Bruno Haible  <bruno@clisp.org>
35219
35220         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35221         (select): Add a link warning when the 'select' module is not used.
35222         * modules/sys_select (Depends-on): Add link-warning.
35223         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35224         Suggested by Paolo Bonzini.
35225
35226 2008-10-05  Jim Meyering  <meyering@redhat.com>
35227
35228         bootstrap: check for LT_INIT more portably
35229         * build-aux/bootstrap: Avoid using grep -E, since it's not
35230         portable enough.  Suggestion from Bruno Haible.
35231
35232 2008-10-05  Bruno Haible  <bruno@clisp.org>
35233
35234         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35235         as being fixed by gnulib.
35236
35237 2008-10-05  Bruno Haible  <bruno@clisp.org>
35238
35239         * modules/select-tests: New file, mostly copied from
35240         modules/sys_select-tests.
35241         * tests/test-select.c: New file, mostly copied from
35242         tests/test-sys_select.c.
35243         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35244         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35245         (Makefile.am): Remove test_sys_select_LDADD.
35246
35247         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35248         to an undefined symbol, for an error message.
35249         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35250         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35251         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35252         winsock-select.c here.
35253         * modules/sys_select (Files): Remove lib/winsock-select.c.
35254         (Depends-on): Remove alloca.
35255         (Makefile.am): Substitute GNULIB_SELECT.
35256         * modules/select: New file.
35257         * doc/posix-functions/select.texi: Update.
35258
35259 2008-10-05  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35262         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35263         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35264         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35265         getdtablesize.
35266         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35267         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35268
35269 2008-10-05  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/getdtablesize-tests: New file.
35272         * tests/test-getdtablesize.c: New file.
35273
35274         New module 'getdtablesize'.
35275         * lib/unistd.in.h (getdtablesize): New declaration.
35276         * lib/getdtablesize.c: New file.
35277         * m4/getdtablesize.m4: New file.
35278         * modules/getdtablesize: New file.
35279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35280         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35281         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35282         HAVE_GETDTABLESIZE.
35283         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35284
35285 2008-10-05  Bruno Haible  <bruno@clisp.org>
35286
35287         * modules/sched (Makefile.am): Fix typo.
35288         Reported by Simon Josefsson.
35289
35290 2008-10-05  Jim Meyering  <meyering@redhat.com>
35291
35292         bootstrap: check for LT_INIT, too
35293         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35294         are deprecated.  Suggestion from Ralf Wildenhues.
35295
35296 2008-10-05  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35299         overriding them by ours.
35300         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35301
35302 2008-10-05  Jim Meyering  <meyering@redhat.com>
35303
35304         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35305         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35306         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35307
35308 2008-10-04  Bruno Haible  <bruno@clisp.org>
35309
35310         * modules/dup2 (License): Change to LGPLv2+.
35311         * modules/sleep (License): Likewise.
35312         * modules/perror (License): Likewise.
35313         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35314         Blake.
35315         * modules/signal (License): Likewise.
35316         * modules/sigprocmask (License): Likewise.
35317         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35318         Meyering.
35319
35320 2008-10-04  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35323         Reported by Rainer Tammer <tammer@tammer.net>.
35324
35325 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35326             Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35329         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35330         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35331
35332 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35333
35334         filevercmp: new module
35335         * lib/filevercmp.h: New function filevercmp comparing version strings.
35336         * lib/filevercmp.c: Implementation of filevercmp function.
35337         * modules/filevercmp: Module metadata.
35338         * tests/test-filevercmp.c: Unit test for new module.
35339         * modules/filevercmp-tests: Unit test metadata.
35340         * MODULES.html.sh: Add filevercmp module.
35341
35342 2008-10-03  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/c-ctype.h: Add comment.
35345         Reported by Jim Meyering.
35346
35347 2008-10-02  Bruno Haible  <bruno@clisp.org>
35348
35349         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35350
35351 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35352
35353         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35354         name of bootstrap.conf accordingly.
35355
35356 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35357
35358         * build-aux/bootstrap: Install git-merge-changelog configuration
35359         items into .gitconfig if needed.
35360
35361 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35362
35363         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35364         git repository, and initialize/update it accordingly.
35365
35366 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35367
35368         * modules/fsync-tests: New file.
35369         * tests/test-fsync.c: New file.
35370
35371         New module 'fsync'.
35372         * lib/fsync.c: New file.
35373         * m4/fsync.m4: New file.
35374         * modules/fsync: New file.
35375         * lib/unistd.in.h (fsync): New declaration.
35376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35377         GNULIB_FSYNC and HAVE_FSYNC.
35378         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35379         * MODULES.html.sh (posix_functions): Add fsync.
35380         * doc/posix-functions/fsync.texi: Mention the new module.
35381
35382 2008-10-02  Jim Meyering  <meyering@redhat.com>
35383
35384         fts.c: sync with similar code from coreutils' remove.c
35385         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35386         Guard also with "#if defined __linux__", since for now at least,
35387         this code is Linux-kernel-specific.
35388
35389 2008-10-02  Jim Meyering  <meyering@redhat.com>
35390
35391         fts: bug fixes
35392         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35393         Include <sys/vfs.h>, not <sys/statfs.h>.
35394
35395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35396         Include <sys/vfs.h>, not <sys/statfs.h>.
35397
35398 2008-10-01  Bruno Haible  <bruno@clisp.org>
35399
35400         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35402         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35403         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35404         * doc/posix-functions/posix_spawnp.texi: Likewise.
35405         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35406         whether posix_spawn actually works.
35407         * m4/pipe.m4 (gl_PIPE): Likewise.
35408         * modules/execute (Files): Add m4/posix_spawn.m4.
35409         * modules/pipe (Files): Add m4/posix_spawn.m4.
35410         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35411
35412 2008-10-01  Jim Meyering  <meyering@redhat.com>
35413
35414         remove trailing spaces
35415         * NEWS: Likewise.
35416         * lib/poll.c (poll): Likewise.
35417         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35418         * lib/winsock.c (rpl_close): Likewise.
35419         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35420         * modules/yield: Likewise.
35421         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35422         * tests/test-sys_select.c (connect_to_socket): Likewise.
35423
35424         fts.c: adjust a new interface to be more generally useful
35425         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35426         (fts_build): Adjust caller.
35427
35428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35429
35430         * modules/cond-tests: New file.
35431         * tests/test-cond.c: New file.
35432
35433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35434             Bruno Haible  <bruno@clisp.org>
35435
35436         * modules/cond (Dependencies): Add errno, time.
35437         * lib/glthread/cond.h: Include <time.h>.
35438         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35439         across platforms.
35440
35441 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35442             Bruno Haible  <bruno@clisp.org>
35443
35444         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35445
35446 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35447             Bruno Haible  <bruno@clisp.org>
35448
35449         * modules/tls-tests (Depends-on): Add thread, yield.
35450         (configure.ac): Remove all checks.
35451         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35452         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35453         gl_thread_self): Remove definitions. Include glthread/thread.h and
35454         glthread/yield.h instead.
35455         (test_tls): Pass an additional NULL argument to gl_thread_join.
35456
35457 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35458             Bruno Haible  <bruno@clisp.org>
35459
35460         * modules/lock-tests (Depends-on): Add thread, yield.
35461         (configure.ac): Remove all checks.
35462         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35463         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35464         gl_thread_self): Remove definitions. Include glthread/thread.h and
35465         glthread/yield.h instead.
35466         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35467         additional NULL argument to gl_thread_join.
35468
35469 2008-09-30  Bruno Haible  <bruno@clisp.org>
35470
35471         Fix the Win32 implementation of the 'thread' module.
35472         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35473         pointer type.
35474         (gl_thread_self): Invoke gl_thread_self_func.
35475         (gl_thread_self_func): New declaration.
35476         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35477         (do_init_self_key, init_self_key): New functions.
35478         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35479         Remove some fields.
35480         (running_threads, running_lock): Remove variables.
35481         (get_current_thread_handle): New function.
35482         (gl_thread_self_func, wrapper_func, glthread_create_func,
35483         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35484         simplified.
35485
35486 2008-09-30  Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35489         files.
35490
35491 2008-09-30  Jim Meyering  <meyering@redhat.com>
35492
35493         fts.m4: correct the test for statfs.f_type
35494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35495         when checking for statfs.f_type.
35496
35497 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35498
35499         tests: avoid some compiler warnings
35500         * tests/test-memchr.c (main): Pass NULL indirectly.
35501         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35502
35503 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
35504
35505         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35506         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35507         exactly specified dayshifts.
35508         (dayshift): New rule.
35509         (rel): Add dayshift.
35510         (relative_time_table) [tomorrow, yesterday, today, now]:
35511         Use tDAY_SHIFT in place of tDAY_UNIT.
35512         * tests/test-getdate.c: Add tests for now-disallowed countable
35513         dayshifts, e.g., "4 yesterday ago".
35514
35515 2008-09-29  Bruno Haible  <bruno@clisp.org>
35516
35517         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35518         * tests/test-posix_spawn1.in.sh: Renamed from
35519         tests/test-posix_spawn.in.sh.
35520         * tests/test-posix_spawn2.c: New file.
35521         * tests/test-posix_spawn2.in.sh: New file.
35522         * modules/posix_spawnp-tests (Files): Update.
35523         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35524
35525 2008-09-29  Bruno Haible  <bruno@clisp.org>
35526
35527         Propagate effects of putenv/setenv/unsetenv to child processes.
35528         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35529         * lib/pipe.c (create_pipe): Likewise.
35530
35531 2008-09-29  Bruno Haible  <bruno@clisp.org>
35532
35533         Enable use of shell scripts as executables in mingw.
35534         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35535         run the program as a shell script.
35536         * lib/pipe.c (create_pipe): Likewise.
35537         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35538         resulting array.
35539
35540 2008-09-29  Eric Blake  <ebb9@byu.net>
35541
35542         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35543
35544 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35545
35546         * doc/posix-functions/accept.texi: Update mingw problems.
35547         * doc/posix-functions/bind.texi: Update mingw problems.
35548         * doc/posix-functions/close.texi: Update mingw problems.
35549         * doc/posix-functions/connect.texi: Update mingw problems.
35550         * doc/posix-functions/getpeername.texi: Update mingw problems.
35551         * doc/posix-functions/getsockname.texi: Update mingw problems.
35552         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35553         * doc/posix-functions/ioctl.texi: Update mingw problems.
35554         * doc/posix-functions/listen.texi: Update mingw problems.
35555         * doc/posix-functions/recv.texi: Update mingw problems.
35556         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35557         * doc/posix-functions/select.texi: Update mingw problems.
35558         * doc/posix-functions/send.texi: Update mingw problems.
35559         * doc/posix-functions/sendto.texi: Update mingw problems.
35560         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35561         * doc/posix-functions/socket.texi: Update mingw problems.
35562
35563 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35564             Bruno Haible  <bruno@clisp.org>
35565
35566         * lib/sys_select.in.h: Include sys/time.h.
35567         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35568         * modules/sys_select: Depend on sys_time.
35569         * tests/test-sys_select.c: Test that sys/select.h defines struct
35570         timeval fully.
35571
35572 2008-09-29  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35575         * lib/sys_select.in.h: Likewise.
35576
35577 2008-09-29  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35580
35581 2008-09-29  Bruno Haible  <bruno@clisp.org>
35582
35583         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35584         Set LIBSOCKET instead of augmenting LIBS.
35585         * modules/sockets (Link): New section.
35586         * modules/sockets-tests (test_sockets_LDADD): New variable.
35587         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35588         * modules/poll-tests (test_poll_LDADD): New variable.
35589         * NEWS: Document the change.
35590
35591 2008-09-29  Bruno Haible  <bruno@clisp.org>
35592
35593         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35594         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35595         ARPA_INET_H directly.
35596         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35597
35598 2008-09-28  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35601         from gl_HEADER_SYS_SOCKET.
35602         (gl_HEADER_SYS_SOCKET): Invoke it.
35603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35604
35605 2008-09-28  Bruno Haible  <bruno@clisp.org>
35606
35607         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35608         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35609         Needed on OSF/1 4.0.
35610
35611 2008-09-28  Bruno Haible  <bruno@clisp.org>
35612
35613         Override open more carefully.
35614         * lib/open.c (orig_open): New function.
35615         (rpl_open): Use orig_open instead of open.
35616         * lib/fcntl.in.h: Add special invocation convention.
35617         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35618         (gl_FUNC_OPEN): Invoke it.
35619
35620         Override freopen more carefully.
35621         * lib/freopen.c (orig_freopen): New function.
35622         (rpl_freopen): Use orig_freopen instead of freopen.
35623         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35624         (gl_FUNC_FREOPEN): Invoke it.
35625
35626         Override fopen more carefully.
35627         * lib/fopen.c (orig_fopen): New function.
35628         (rpl_fopen): Use orig_fopen instead of fopen.
35629         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35630         (gl_FUNC_FOPEN): Invoke it.
35631         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35632
35633 2008-09-28  Bruno Haible  <bruno@clisp.org>
35634
35635         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35636         SIGPIPE.
35637
35638 2008-09-28  Bruno Haible  <bruno@clisp.org>
35639
35640         * tests/test-sigaction.c (handler, main): Disable the check whether
35641         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35642         glibc systems with LinuxThreads.
35643
35644 2008-09-28  Bruno Haible  <bruno@clisp.org>
35645
35646         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35647
35648         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35649         with AIX xlc.
35650         * lib/fcntl.in.h (open): Likewise.
35651         Reported by Rainer Tammer <tammer@tammer.net>.
35652
35653 2008-09-28  Bruno Haible  <bruno@clisp.org>
35654
35655         * modules/posix_spawnp-tests: New file.
35656         * tests/test-posix_spawn.c: New file.
35657         * tests/test-posix_spawn.in.sh: New file.
35658
35659         New module 'posix_spawnp'.
35660         * modules/posix_spawnp: New file.
35661         * lib/spawnp.c: New file, from GNU libc with modifications.
35662         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35663
35664         New module 'posix_spawn'.
35665         * modules/posix_spawn: New file.
35666         * lib/spawn.c: New file, from GNU libc with modifications.
35667         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35668
35669         New module 'posix_spawnattr_destroy'.
35670         * modules/posix_spawnattr_destroy: New file.
35671         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35672         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35673         module.
35674
35675         New module 'posix_spawnattr_setsigmask'.
35676         * modules/posix_spawnattr_setsigmask: New file.
35677         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35678         modifications.
35679         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35680         new module.
35681
35682         New module 'posix_spawnattr_getsigmask'.
35683         * modules/posix_spawnattr_getsigmask: New file.
35684         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35685         modifications.
35686         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35687         new module.
35688
35689         New module 'posix_spawnattr_setsigdefault'.
35690         * modules/posix_spawnattr_setsigdefault: New file.
35691         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35692         modifications.
35693         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35694         new module.
35695
35696         New module 'posix_spawnattr_getsigdefault'.
35697         * modules/posix_spawnattr_getsigdefault: New file.
35698         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35699         modifications.
35700         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35701         new module.
35702
35703         New module 'posix_spawnattr_setschedpolicy'.
35704         * modules/posix_spawnattr_setschedpolicy: New file.
35705         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35706         modifications.
35707         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35708         new module.
35709
35710         New module 'posix_spawnattr_getschedpolicy'.
35711         * modules/posix_spawnattr_getschedpolicy: New file.
35712         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35713         modifications.
35714         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35715         new module.
35716
35717         New module 'posix_spawnattr_setschedparam'.
35718         * modules/posix_spawnattr_setschedparam: New file.
35719         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35720         modifications.
35721         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35722         new module.
35723
35724         New module 'posix_spawnattr_getschedparam'.
35725         * modules/posix_spawnattr_getschedparam: New file.
35726         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35727         modifications.
35728         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35729         new module.
35730
35731         New module 'posix_spawnattr_setpgroup'.
35732         * modules/posix_spawnattr_setpgroup: New file.
35733         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35734         modifications.
35735         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35736         module.
35737
35738         New module 'posix_spawnattr_getpgroup'.
35739         * modules/posix_spawnattr_getpgroup: New file.
35740         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35741         modifications.
35742         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35743         module.
35744
35745         New module 'posix_spawnattr_setflags'.
35746         * modules/posix_spawnattr_setflags: New file.
35747         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35748         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35749         module.
35750
35751         New module 'posix_spawnattr_getflags'.
35752         * modules/posix_spawnattr_getflags: New file.
35753         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35754         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35755         module.
35756
35757         New module 'posix_spawnattr_init'.
35758         * modules/posix_spawnattr_init: New file.
35759         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35760         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35761         module.
35762
35763         New module 'posix_spawn_file_actions_destroy'.
35764         * modules/posix_spawn_file_actions_destroy: New file.
35765         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35766         modifications.
35767         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35768         the new module.
35769
35770         New module 'posix_spawn_file_actions_addopen'.
35771         * modules/posix_spawn_file_actions_addopen: New file.
35772         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35773         modifications.
35774         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35775         the new module.
35776
35777         New module 'posix_spawn_file_actions_adddup2'.
35778         * modules/posix_spawn_file_actions_adddup2: New file.
35779         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35780         modifications.
35781         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35782         the new module.
35783
35784         New module 'posix_spawn_file_actions_addclose'.
35785         * modules/posix_spawn_file_actions_addclose: New file.
35786         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35787         modifications.
35788         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35789         the new module.
35790
35791         New module 'posix_spawn_file_actions_init'.
35792         * modules/posix_spawn_file_actions_init: New file.
35793         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35794         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35795         new module.
35796
35797         New module 'posix_spawn-internal'.
35798         * modules/posix_spawn-internal: New file.
35799         * lib/spawn_int.h: New file, from GNU libc with modifications.
35800         * lib/spawni.c: New file, from GNU libc with modifications.
35801         * m4/posix_spawn.m4: New file.
35802
35803         New module 'spawn'.
35804         * modules/spawn: New file.
35805         * lib/spawn.in.h: New file, from GNU libc with modifications.
35806         * m4/spawn_h.m4: New file.
35807         * doc/posix-headers/spawn.texi: Mention the new module.
35808
35809 2008-09-28  Bruno Haible  <bruno@clisp.org>
35810
35811         * modules/sched-tests: New file.
35812         * tests/test-sched.c: New file.
35813
35814         New module 'sched'.
35815         * modules/sched: New file.
35816         * lib/sched.in.h: New file.
35817         * m4/sched_h.m4: New file.
35818         * doc/posix-headers/sched.texi: Mention the new module.
35819
35820 2008-09-27  Eric Blake  <ebb9@byu.net>
35821
35822         Fix previous patch, and tweak references to $0.
35823         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35824         (func_version, func_gnulib_dir): Don't call this program
35825         gnulib-tool.
35826         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35827         with using $0 in function.
35828         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35829         (func_fatal_error): Reuse the name the user invoked us with.
35830
35831 2008-09-27  Bruno Haible  <bruno@clisp.org>
35832
35833         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35834         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35835         (gl_ICONV_H): Not here.
35836         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35837         instead of assigning ICONV_H directly.
35838
35839         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35841         WCHAR_H directly.
35842
35843 2008-09-27  Bruno Haible  <bruno@clisp.org>
35844
35845         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35846         * modules/arpa_inet (Depends-on): Add link-warning.
35847         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35848         * modules/unistd (Makefile.am): Likewise.
35849
35850 2008-09-26  Bruno Haible  <bruno@clisp.org>
35851
35852         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35853         variables.
35854         (func_version): Essentially copied from gnulib-tool.
35855         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35856         func_readlink): Copied from gnulib-tool.
35857
35858 2008-09-26  Bruno Haible  <bruno@clisp.org>
35859
35860         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35861         invoking git-version-gen.
35862
35863 2008-09-26  Bruno Haible  <bruno@clisp.org>
35864
35865         * posix-modules: Update to directory names changed on 2008-01-19.
35866         Remove commas in output before splitting into words. No more need to
35867         avoid 'ftruncate' since 2007-02-19.
35868
35869 2008-09-26  Bruno Haible  <bruno@clisp.org>
35870
35871         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35872
35873 2008-09-26  Bruno Haible  <bruno@clisp.org>
35874
35875         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35876         * modules/fwriteerror (Depends-on): Add errno.
35877
35878 2008-09-26  Bruno Haible  <bruno@clisp.org>
35879
35880         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35881         * tests/test-vc-list-files-cvs.sh: Likewise.
35882
35883 2008-09-26  Bruno Haible  <bruno@clisp.org>
35884
35885         * doc/posix-headers/sys_resource.texi: Reorder items.
35886
35887 2008-09-26  Jim Meyering  <meyering@redhat.com>
35888
35889         fts: tweak inode comparison function
35890         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35891         inode numbers, as documented.
35892
35893         fts: sort dirent entries on inode number before traversing
35894         This avoids a quadratic, seek-related performance penalty when
35895         operating on a directory containing many entries (measurable at 10k;
35896         3.5 hours at 2 million entries with a cold cache) on certain types
35897         of file systems, including ext3 and ext4, but not tmpfs.
35898         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35899         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35900         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35901         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35902         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35903         (fts_build): Set the stat.st_ino member from D_INO.
35904         If it is likely to be useful, sort dirent entries on inode number.
35905
35906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35907         and the struct statfs.f_type member.
35908         * modules/fts (Depends-on): Add d-ino.
35909
35910 2008-09-26  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/sigpipe-die (Depends-on): Add sigpipe.
35913
35914         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35915         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35916         and GNULIB_STDIO_H_SIGPIPE are set.
35917         * lib/stdio-write.c: New file.
35918         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35919         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35920         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35921         REPLACE_STDIO_WRITE_FUNCS.
35922         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35923         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35924         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35925         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35926         * modules/stdio (Files): Add lib/stdio-write.c.
35927         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35928         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35929         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35930         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35931         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35932         REPLACE_FPRINTF_POSIX.
35933         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35934         REPLACE_PRINTF_POSIX.
35935         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35936         REPLACE_VFPRINTF_POSIX.
35937         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35938         REPLACE_VPRINTF_POSIX.
35939         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35940         SIGPIPE issue.
35941         * doc/posix-functions/fputc.texi: Likewise.
35942         * doc/posix-functions/fputs.texi: Likewise.
35943         * doc/posix-functions/fwrite.texi: Likewise.
35944         * doc/posix-functions/printf.texi: Likewise.
35945         * doc/posix-functions/putc.texi: Likewise.
35946         * doc/posix-functions/putchar.texi: Likewise.
35947         * doc/posix-functions/puts.texi: Likewise.
35948         * doc/posix-functions/vfprintf.texi: Likewise.
35949         * doc/posix-functions/vprintf.texi: Likewise.
35950
35951         * modules/safe-write (Depends-on): Add write.
35952
35953         * modules/sigpipe-tests: New file.
35954         * tests/test-sigpipe.c: New file.
35955         * tests/test-sigpipe.sh: New file.
35956
35957         * modules/write: New file.
35958         * lib/unistd.in.h: Include <sys/types.h>.
35959         (write): New declaration.
35960         * lib/write.c: New file.
35961         * m4/write.m4: New file.
35962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35963         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35964         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35965         GNULIB_WRITE, REPLACE_WRITE.
35966         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35967         and the SIGPIPE issue.
35968
35969         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35970         (raise): New declaration.
35971         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35972         (ext_signal): New function.
35973         (rpl_raise): New function.
35974         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35975         GNULIB_SIGNAL_H_SIGPIPE.
35976         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35977         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35978
35979         * modules/sigpipe: New file.
35980         * m4/sigpipe.m4: New file.
35981
35982 2008-09-25  Derek Price  <derek@ximbiot.com>
35983             Bruno Haible  <bruno@clisp.org>
35984
35985         * gnulib-tool (func_import): Report all license incompatibilities, not
35986         just the first one.
35987
35988 2008-09-25  Bruno Haible  <bruno@clisp.org>
35989
35990         * gnulib-tool (func_import): When computing the edits, consider not
35991         only the Makefile.ams that exist but also those that will be generated.
35992
35993 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35994
35995         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35996         fixes gnulib-tool --test warning about duplicate dependency.
35997
35998 2008-09-25  Bruno Haible  <bruno@clisp.org>
35999
36000         * gnulib-tool: Don't ask the user to perform edits in the generated
36001         Makefile.ams.
36002         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36003         apply to the Makefile.am being generated.
36004         (func_emit_tests_Makefile_am): Execute edits that apply to the
36005         Makefile.am being generated.
36006         (func_import): Setup list of Makefile.am edits before emitting the
36007         Makefile.ams, not at the end.
36008         (func_create_testdir): Update.
36009         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36010
36011 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36012
36013         * gnulib-tool (func_import): Store the --tests-base option in the
36014         comment in gnulib-cache.m4.
36015
36016 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36017
36018         * NEWS: Document increased portability that sys_select now provides.
36019
36020         * lib/sys_select.in.h: Install select wrapper.
36021         * lib/sys_socket.in.h: Use more descriptive name when there is no
36022         select wrapper.
36023         * lib/winsock-select.c: New.
36024         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36025         Require gl_HEADER_SYS_SOCKET.
36026         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36027         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36028         * tests/test-sys_select.c: Add functional tests.
36029
36030 2008-09-24  Eric Blake  <ebb9@byu.net>
36031
36032         open, fopen: close fd leak in last patch
36033         * lib/open.c (rpl_open): Close fd before returning error.
36034         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36035         * doc/posix-functions/open.texi (open): Document that Irix also
36036         has the bug.
36037         * doc/posix-functions/fopen.texi (fopen): Likewise.
36038         Reported by Paolo Bonzini.
36039
36040 2008-09-24  Bruno Haible  <bruno@clisp.org>
36041
36042         Ensure that a filename ending in a slash cannot be used to access a
36043         non-directory.
36044         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36045         to check whether it's really a directory.
36046         * lib/fopen.c: Include fcntl.h, unistd.h.
36047         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36048         and fdopen().
36049         * modules/fopen (Depends-on): Add unistd.
36050         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36051         * tests/test-fopen.c (main): Likewise.
36052         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36053         * doc/posix-functions/fopen.texi: Likewise.
36054         Reported by Eric Blake.
36055
36056 2008-09-23  Eric Blake  <ebb9@byu.net>
36057
36058         c-stack: avoid compiler optimizations when provoking overflow
36059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36060         recursion harder to optimize, to ensure a stack overflow occurs.
36061         * tests/test-c-stack.c (recurse): Likewise.
36062         Borrowed from libsigsegv.
36063
36064         c-stack: work around Irix sigaltstack bug
36065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36066         whether sigaltstack uses wrong end of stack_t (copied in part from
36067         libsigsegv).
36068         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36069         Irix bug, without requiring an over-allocation.
36070         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36071         bug.
36072
36073         fopen: document mingw bug on directories
36074         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36075         not allowing a stream visiting a directory, even though reading
36076         from such a stream is not portable.
36077
36078 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36079
36080         * lib/poll.c: Rewrite.
36081         * modules/poll: Depend on alloca.
36082
36083 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36084
36085         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36086         instead define prototypes for a full set of wrappers.  Ensure
36087         that Cygwin does not use the compatibility code, which is only
36088         for MinGW.
36089         * lib/winsock.c: New.
36090         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36091         * modules/sys_socket: Add lib/winsock.c.
36092
36093         * modules/poll-tests: Add errno and perror.
36094         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36095
36096 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36097
36098         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36099
36100 2008-09-23  Bruno Haible  <bruno@clisp.org>
36101
36102         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36103         * doc/glibc-functions/*: Likewise.
36104
36105 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36106
36107         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36108         success.
36109
36110 2008-09-22  Eric Blake  <ebb9@byu.net>
36111             Bruno Haible  <bruno@clisp.org>
36112
36113         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36114         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36115         supply %A but mishandle pseudo-NaN.
36116         Reported by Simon Josefsson.
36117
36118 2008-09-21  Bruno Haible  <bruno@clisp.org>
36119
36120         * tests/test-lock.c (main): Tweak skip message.
36121         * tests/test-tls.c (main): Likewise.
36122
36123 2008-09-21  Bruno Haible  <bruno@clisp.org>
36124
36125         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36126         whether 'struct sigaction' has sa_sigaction here...
36127         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36128         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36129
36130 2008-09-21  Bruno Haible  <bruno@clisp.org>
36131
36132         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36133         section.
36134         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36135         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36136         the new section.
36137         (Support for obsolete systems lacking POSIX:2001): New section.
36138         (String handling <string.h>): Move strdup to the new section.
36139         Suggested by Simon Josefsson and Paolo Bonzini.
36140
36141 2008-09-21  Bruno Haible  <bruno@clisp.org>
36142
36143         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36144         exponents in %e and %g results on 'long double'. Needed for mingw's
36145         improved *printf functions.
36146         * tests/test-vasprintf-posix.c (test_function): Likewise.
36147         * tests/test-snprintf-posix.h (test_function): Likewise.
36148         * tests/test-sprintf-posix.h (test_function): Likewise.
36149         Reported by Eric Blake.
36150
36151 2008-09-21  Bruno Haible  <bruno@clisp.org>
36152
36153         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36154         * tests/test-sprintf-posix.h (test_function): Likewise.
36155
36156 2008-09-21  Bruno Haible  <bruno@clisp.org>
36157
36158         * modules/getpass (Depends-on): Add strdup-posix.
36159
36160         New module 'strdup-posix'.
36161         * modules/strdup-posix: New file.
36162         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36163         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36165         REPLACE_STRDUP.
36166         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36167         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36169         strdup-posix.
36170
36171         * modules/strdup (Depends-on): Remove malloc-posix.
36172
36173 2008-09-20  Bruno Haible  <bruno@clisp.org>
36174
36175         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36176         Wildenhues.
36177
36178 2008-09-20  Bruno Haible  <bruno@clisp.org>
36179
36180         Ensure that wint_t gets defined on IRIX 5.3.
36181         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36182         * lib/wctype.in.h (wint_t): Likewise.
36183         (__wctype_wint_t): Remove type.
36184         (isw*): Use wint_t instead of __wctype_wint_t.
36185         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36186         * modules/wchar (Files): Add m4/wint_t.m4.
36187         (Makefile.am): Substitute HAVE_WINT_T.
36188         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36189         * tests/test-wctype.c: Check that wint_t is defined.
36190         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36191         * doc/posix-headers/wctype.texi: Likewise.
36192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36193
36194 2008-09-18  Bruno Haible  <bruno@clisp.org>
36195
36196         * gnulib-tool (func_exit): Update comment.
36197
36198 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36199
36200         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36201         assumes strdup exists and does not depend on strdup to return
36202         ENOMEM on out of memory conditions.
36203
36204 2008-09-18  Bruno Haible  <bruno@clisp.org>
36205
36206         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
36207         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36208         digits for the exponent.
36209
36210 2008-09-18  Jim Meyering  <meyering@redhat.com>
36211             Bruno Haible  <bruno@clisp.org>
36212
36213         * lib/vasnprintf.c (decimal_point_char): Define also if
36214         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36215
36216 2008-09-16  Bruno Haible  <bruno@clisp.org>
36217         and Eric Blake  <ebb9@byu.net>
36218
36219         vasnprintf: support Irix 5.3
36220         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36221         that mishandle long double infinity.
36222         Reported by Tom G. Christensen.
36223
36224 2008-09-16  Bruno Haible  <bruno@clisp.org>
36225
36226         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36227         Solaris 9.
36228         * doc/glibc-functions/alphasort.texi: Likewise.
36229         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36230
36231 2008-09-16  Jim Meyering  <meyering@redhat.com>
36232
36233         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36234         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36235         a umask modification leak out of a subshell.  Otherwise, the
36236         opensolaris /bin/sh would be accepted and thus cause unwarranted
36237         failures in the coreutils test suite.
36238
36239 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36240
36241         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36242         to succeed.
36243
36244 2008-09-16  Jim Meyering  <meyering@redhat.com>
36245
36246         avoid spurious test failure when library is built without ACL support
36247         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36248         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36249         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36250         * tests/test-copy-acl.sh: Likewise.
36251
36252 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36253
36254         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36255         based on character occurrence counts.
36256
36257 2008-09-15  Eric Blake  <ebb9@byu.net>
36258
36259         tests: avoid some compiler warnings
36260         * tests/test-memchr.c (main): Pass NULL indirectly.
36261         * tests/test-closein.c (main): Avoid unused variable.
36262
36263 2008-09-15  Bruno Haible  <bruno@clisp.org>
36264
36265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36266         are missing on OpenBSD 4.0 individually.
36267         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36268
36269 2008-09-15  Bruno Haible  <bruno@clisp.org>
36270
36271         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36272         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36273         * doc/posix-functions/perror.texi: Likewise.
36274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36275         is missing.
36276         Reported by Eric Blake.
36277
36278         * lib/errno.in.h: Use replacement values >= 2000.
36279         Reported by Eric Blake.
36280
36281 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36282
36283         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36284         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36285         limit.
36286         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36287         compareseq was aborted.
36288
36289 2008-09-14  Bruno Haible  <bruno@clisp.org>
36290
36291         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36292         yvec_edit_count.
36293         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36294         (fstrcmp_bounded): Simplify result computation accordingly.
36295
36296 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36297
36298         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36299         (fstrcmp): Define in terms of fstrcmp_bounded.
36300         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36301         lower_bound argument.
36302         Return quickly if the result is certainly < lower_bound.
36303         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36304
36305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36306
36307         * lib/diffseq.h (EARLY_ABORT): New macro.
36308         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36309         evaluates to true.
36310
36311 2008-09-14  Bruno Haible  <bruno@clisp.org>
36312
36313         * modules/perror-tests: New file.
36314         * tests/test-perror.sh: New file.
36315         * tests/test-perror.c: New file.
36316
36317         New module 'perror'.
36318         * lib/stdio.in.h (perror): New declaration.
36319         * lib/perror.c: New file.
36320         * m4/perror.m4: New file.
36321         * modules/perror: New file.
36322         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36323         * doc/posix-functions/perror.texi: Mention the perror module.
36324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36325         REPLACE_PERROR.
36326         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36327         REPLACE_PERROR.
36328
36329 2008-09-14  Bruno Haible  <bruno@clisp.org>
36330
36331         * modules/stdio (Makefile.am): Reorder to match the order in
36332         lib/stdio.in.h.
36333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36334
36335 2008-09-13  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36338
36339 2008-09-13  Bruno Haible  <bruno@clisp.org>
36340
36341         Extend strerror to cover the added errno values.
36342         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36343         (rpl_strerror): Provide error messages for the added errno values and
36344         for the WSA* values.
36345         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36346         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36347         strerror.
36348         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36349         * modules/strerror (Depends-on): Add errno.
36350         * doc/posix-functions/strerror.texi: Document the change.
36351         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36352         and EOVERFLOW.
36353
36354 2008-09-13  Bruno Haible  <bruno@clisp.org>
36355
36356         * modules/EOVERFLOW: Remove file.
36357         * m4/eoverflow.m4: Remove file.
36358         * modules/EOVERFLOW-tests: Remove file.
36359         * tests/test-EOVERFLOW.c: Remove file.
36360         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36361         * modules/ftell (Depends-on): Likewise.
36362         * modules/getdelim (Depends-on): Likewise.
36363         * modules/getugroups (Depends-on): Likewise.
36364         * modules/poll (Depends-on): Likewise.
36365         * modules/snprintf (Depends-on): Likewise.
36366         * modules/sprintf-posix (Depends-on): Likewise.
36367         * modules/vasnprintf (Depends-on): Likewise.
36368         * modules/vasprintf (Depends-on): Likewise.
36369         * modules/vfprintf-posix (Depends-on): Likewise.
36370         * modules/vsnprintf (Depends-on): Likewise.
36371         * modules/vsprintf-posix (Depends-on): Likewise.
36372         * modules/xvasprintf (Depends-on): Likewise.
36373         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36374         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36375         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36376         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36378         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36379         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36380         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36381         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36382         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36383         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36384         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36385         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36386         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36387         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36388         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36389         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36390         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36391         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36392         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36394         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36395         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36396         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36397         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36398         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36399         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36400         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36401         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36402         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36403         * MODULES.html.sh: Remove EOVERFLOW.
36404         * NEWS: Mention the change.
36405
36406 2008-09-13  Bruno Haible  <bruno@clisp.org>
36407
36408         * modules/errno-tests: New file.
36409         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36410
36411         * lib/errno.in.h: New file.
36412         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36413         * modules/errno: New file.
36414         * doc/posix-headers/errno.texi: Update documentation.
36415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36416
36417 2008-09-13  Bruno Haible  <bruno@clisp.org>
36418
36419         * tests/test-poll.c: Use #if for native Windows, rather than testing
36420         __MSVCRT__.
36421
36422 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36423             Bruno Haible  <bruno@clisp.org>
36424
36425         * lib/glob.c: Don't include <pwd.h> on native Windows.
36426         (WINDOWS32): New macro.
36427         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36428
36429 2008-09-13  Bruno Haible  <bruno@clisp.org>
36430
36431         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36432         (ETIMEDOUT): Remove macro.
36433         (glthread_cond_timedwait_multithreaded): New declaration.
36434         (glthread_cond_timedwait): Use it.
36435         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36436         (glthread_cond_timedwait_multithreaded): New function.
36437
36438 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36439
36440         * modules/poll-tests: Do not check for io.h.
36441         * tests/test-poll.c: Check for __MSVCRT__ instead.
36442
36443 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36444
36445         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36446         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36447         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36448
36449 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36450
36451         * modules/poll-tests: New.
36452         * tests/test-poll.c: New.
36453
36454 2008-09-12  Eric Blake  <ebb9@byu.net>
36455
36456         frexp: test for NetBSD failure on -0.0
36457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36458         not all, bugs from NetBSD 3.0 have been fixed.
36459         * doc/posix-functions/frexp.texi (frexp): Document bug.
36460         Reported by Thomas Klausner.
36461
36462         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36463         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36464         literal -0.0.
36465         Reported by Jonathan C. Patschke <jp@centtech.com>.
36466
36467 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36468
36469         * lib/glthread/cond.h: Use dummy implementation also if
36470         USE_WIN32_THREADS.
36471
36472 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36473
36474         * modules/fnmatch-posix (License): Change to LGPLv2+.
36475         * modules/fnmatch-gnu (License): Likewise.
36476
36477 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36478
36479         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36480
36481 2008-09-11  Jim Meyering  <meyering@redhat.com>
36482
36483         * users.txt: Add gtk-vnc.
36484
36485 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36486
36487         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36488         rotate amounts.
36489
36490         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36491         required for 16-bit and 8-bit rotates.
36492         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36493         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36494         UINT8_MAX instead of hard-coded constants.
36495         Suggested by Paul Eggert.
36496
36497 2008-09-07  Bruno Haible  <bruno@clisp.org>
36498
36499         * tests/test-striconveh.c (main): Check behaviour when converting from
36500         UTF-7.
36501
36502         Make striconveh work better with stateful encodings.
36503         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36504         that iconv does not increment the inptr when returning -1/EINVAL.
36505
36506 2008-09-07  Bruno Haible  <bruno@clisp.org>
36507
36508         * build-aux/config.rpath: Update according to libtool-2.2.6.
36509         * build-aux/config.libpath: Likewise.
36510
36511 2008-09-06  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36514         * lib/freadptr.c (freadptr): Likewise.
36515         * lib/freadseek.c (freadptrinc): Likewise.
36516         Reported by Simon Josefsson.
36517
36518 2008-09-06  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/freadptr (License): Change to LGPLv2+.
36521         * modules/freadseek (License): Likewise.
36522         Suggested by Eric Blake.
36523
36524         * modules/memchr2 (License): Change to LGPLv2+.
36525         Approved by Eric Blake.
36526
36527 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36528             Bruno Haible  <bruno@clisp.org>
36529
36530         Make gnulib-tool work with native 'sed' on AIX.
36531         * gnulib-tool (sed_noop): New variable.
36532         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36533         func_add_or_update, func_create_testdir): Use it to initialize sed
36534         script variables.
36535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36536
36537 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36538             Bruno Haible  <bruno@clisp.org>
36539
36540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36541         also works after #include directives.
36542
36543 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
36544
36545         getdate.y: reject an out-of-range timezone value
36546         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36547         the range [-24...+24].  When specified with only one or two digits,
36548         * tests/test-getdate.c: Tests for the fix.
36549         * doc/getdate.texi: Document this change.
36550
36551 2008-09-03  Bruno Haible  <bruno@clisp.org>
36552
36553         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36554
36555 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36556
36557         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36558         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36559         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36560         Blake <ebb9@byu.net>.
36561
36562         * tests/test-bitrotate.c: Add more test vectors.
36563
36564 2008-09-02  Eric Blake  <ebb9@byu.net>
36565
36566         vasnprintf-posix: handle large precision via %.*d
36567         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36568         when handling it ourselves.
36569         * tests/test-vasnprintf-posix.c (test_function): Add test.
36570         * tests/test-snprintf-posix.h (test_function): Likewise.
36571         * tests/test-sprintf-posix.h (test_function): Likewise.
36572         * tests/test-vasprintf-posix.c (test_function): Likewise.
36573         Reported by Alain Guibert.
36574
36575 2008-09-01  Eric Blake  <ebb9@byu.net>
36576
36577         c-stack: make configure-time check more robust
36578         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36579         successful sigaction call.
36580         Reported by Tom G. Christensen.
36581
36582 2008-09-01  Bruno Haible  <bruno@clisp.org>
36583
36584         New module 'findprog-lgpl'.
36585         * modules/findprog-lgpl: New file.
36586         * lib/findprog-lgpl.c: New file.
36587         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36588         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36589         to decide whether to use strdup or xstrdup, concatenated_filename or
36590         xconcatenated_filename.
36591
36592 2008-09-01  Bruno Haible  <bruno@clisp.org>
36593
36594         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36595         'xconcat-filename' (GPL).
36596         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36597         (License): Change to LGPLv2+.
36598         * modules/xconcat-filename: New file.
36599         * lib/concat-filename.h (concatenated_filename): Change specification.
36600         (xconcatenated_filename): New declaration.
36601         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36602         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36603         memory situations.
36604         * lib/xconcat-filename.c: New file.
36605         * NEWS: Mention the change.
36606         * lib/findprog.c: Include concat-filename.h, not filename.h.
36607         (find_in_path): Use xconcatenated_filename instead of
36608         concatenated_filename.
36609         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36610         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36611         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36612         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36613         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36614         instead of concatenated_filename.
36615         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36616         (execute_java_class): Use xconcatenated_filename instead of
36617         concatenated_filename.
36618         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36619         * modules/javacomp (Depends-on): Likewise.
36620         * modules/javaexec (Depends-on): Likewise.
36621
36622 2008-09-01  Bruno Haible  <bruno@clisp.org>
36623
36624         Split module 'filename' into 'filename' and 'concat-filename'.
36625         * modules/filename: Keep only lib/filename.h.
36626         (License): Change to LGPLv2+.
36627         * modules/concat-filename: New file, extracted from modules/filename.
36628         * lib/filename.h (concatenated_filename): Remove declaration.
36629         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36630         * lib/concat-filename.c: Include concat-filename.h.
36631         * NEWS: Mention the change.
36632
36633 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36634
36635         * lib/bitrotate.h (rotl8, rotr8): Add.
36636
36637         * modules/bitrotate (configure.ac): Need
36638         AC_REQUIRE([AC_C_INLINE]).
36639         (Description): Mention stdint.h.  Reported by Bruno Haible
36640         <bruno@clisp.org>.
36641
36642         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36643         Paolo Bonzini <bonzini@gnu.org>.
36644
36645 2008-08-31  Bruno Haible  <bruno@clisp.org>
36646
36647         Assume Solaris specific bi-arch conventions on Solaris systems.
36648         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36649         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36651         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36652         like acl_libdirstem.
36653         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36654         acl_libdirstem.
36655         * NEWS: Mention the change.
36656         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36657
36658 2008-08-31  Jim Meyering  <meyering@redhat.com>
36659
36660         * lib/strftime.h: Add comments describing the two added arguments.
36661
36662         remove duplicate #include directives
36663         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36664         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36665
36666 2008-08-31  Bruno Haible  <bruno@clisp.org>
36667
36668         New module 'sigpipe-die'.
36669         * modules/sigpipe-die: New file.
36670         * lib/sigpipe-die.h: New file.
36671         * lib/sigpipe-die.c: New file.
36672         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36673
36674 2008-08-31  Bruno Haible  <bruno@clisp.org>
36675
36676         Don't override previously installed signal handlers.
36677         * lib/fatal-signal.c (saved_sigactions): New variable.
36678         (uninstall_handlers): Reset the signal to the saved handler, not
36679         to SIG_DFL (except when ignored).
36680         (install_handlers): Save the previous handlers.
36681
36682 2008-08-30  Bruno Haible  <bruno@clisp.org>
36683
36684         * gnulib-tool (func_reset_sigpipe): New function.
36685         (func_get_automake_snippet, func_modules_transitive_closure,
36686         func_import): Invoke it before a join command that reads from stdin,
36687         to avoid "echo: write error: Broken pipe" error messages on stderr.
36688         Reported by Sam Steingold <sds@gnu.org>.
36689
36690 2008-08-30  Bruno Haible  <bruno@clisp.org>
36691
36692         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36693         Code copied from m4/open.m4.
36694         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36695         access and the filename ends in a slash. Code copied from lib/open.c.
36696         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36697         * tests/test-fopen.c (main): Check against bug with trailing slash.
36698
36699 2008-08-29  Bruno Haible  <bruno@clisp.org>
36700
36701         Avoid some "gcc -pedantic" warnings.
36702         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36703         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36704         * lib/dirent.in.h: Likewise.
36705         * lib/fcntl.in.h: Likewise.
36706         * lib/float.in.h: Likewise.
36707         * lib/iconv.in.h: Likewise.
36708         * lib/inttypes.in.h: Likewise.
36709         * lib/locale.in.h: Likewise.
36710         * lib/math.in.h: Likewise.
36711         * lib/netinet_in.in.h: Likewise.
36712         * lib/search.in.h: Likewise.
36713         * lib/signal.in.h: Likewise.
36714         * lib/stdarg.in.h: Likewise.
36715         * lib/stdint.in.h: Likewise.
36716         * lib/stdio.in.h: Likewise.
36717         * lib/stdlib.in.h: Likewise.
36718         * lib/string.in.h: Likewise.
36719         * lib/strings.in.h: Likewise.
36720         * lib/sys_select.in.h: Likewise.
36721         * lib/sys_socket.in.h: Likewise.
36722         * lib/sys_stat.in.h: Likewise.
36723         * lib/sys_time.in.h: Likewise.
36724         * lib/sysexits.in.h: Likewise.
36725         * lib/time.in.h: Likewise.
36726         * lib/unistd.in.h: Likewise.
36727         * lib/wchar.in.h: Likewise.
36728         * lib/wctype.in.h: Likewise.
36729         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36730         * modules/fchdir (Makefile.am): Likewise.
36731         * modules/fcntl (Makefile.am): Likewise.
36732         * modules/float (Makefile.am): Likewise.
36733         * modules/iconv_open (Makefile.am): Likewise.
36734         * modules/inttypes (Makefile.am): Likewise.
36735         * modules/locale (Makefile.am): Likewise.
36736         * modules/math (Makefile.am): Likewise.
36737         * modules/netinet_in (Makefile.am): Likewise.
36738         * modules/search (Makefile.am): Likewise.
36739         * modules/signal (Makefile.am): Likewise.
36740         * modules/stdarg (Makefile.am): Likewise.
36741         * modules/stdint (Makefile.am): Likewise.
36742         * modules/stdio (Makefile.am): Likewise.
36743         * modules/stdlib (Makefile.am): Likewise.
36744         * modules/string (Makefile.am): Likewise.
36745         * modules/strings (Makefile.am): Likewise.
36746         * modules/sys_select (Makefile.am): Likewise.
36747         * modules/sys_socket (Makefile.am): Likewise.
36748         * modules/sys_stat (Makefile.am): Likewise.
36749         * modules/sys_time (Makefile.am): Likewise.
36750         * modules/sysexits (Makefile.am): Likewise.
36751         * modules/time (Makefile.am): Likewise.
36752         * modules/unistd (Makefile.am): Likewise.
36753         * modules/wchar (Makefile.am): Likewise.
36754         * modules/wctype (Makefile.am): Likewise.
36755         Reported by Reuben Thomas <rrt@sc3d.org>.
36756
36757 2008-08-29  Bruno Haible  <bruno@clisp.org>
36758
36759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36760         any more.
36761
36762 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36763
36764         * MODULES.html.sh (Misc): Add bitrotate.
36765
36766         * modules/bitrotate: New file.
36767
36768         * lib/bitrotate.h: New file.
36769
36770         * modules/bitrotate-tests: New file.
36771
36772         * tests/test-bitrotate.c: New file.
36773
36774         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36775         on the bitrotate module.
36776
36777         * lib/arctwo.c: Use new bitrotate module.
36778
36779 2008-08-29  Jim Meyering  <meyering@redhat.com>
36780
36781         bootstrap: merge changes from coreutils
36782         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36783         of copied files.  Remove a kludge, now that this is fixed.
36784         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36785         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36786         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36787
36788 2008-08-29  Bruno Haible  <bruno@clisp.org>
36789
36790         * MODULES.html.sh: Remove --cvs-urls option.
36791
36792 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36793
36794         maint.mk: adjust to file name change
36795         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36796
36797 2008-08-28  Jim Meyering  <meyering@redhat.com>
36798
36799         * modules/getndelim2 (License): Relicense to LGPLv2+.
36800         Approved by Richard Stallman for the version of 1995, and by
36801         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36802
36803 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36804
36805         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36806         dummy if one is not available.  Do not touch them if
36807         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36808         (getc_maybe_unlocked): New.
36809         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36810
36811 2008-08-26  Eric Blake  <ebb9@byu.net>
36812
36813         doc/INSTALL: resync from autoconf
36814         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36815         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36816         moving...
36817         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36818         * INSTALL: Regenerate.
36819         * INSTALL.ISO: New file.
36820         * INSTALL.UTF-8: Likewise.
36821
36822 2008-08-26  Jim Meyering  <meyering@redhat.com>
36823
36824         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36825         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36826         these definitions conditional, so that they may be overridden, too.
36827
36828 2008-08-26  Bruno Haible  <bruno@clisp.org>
36829
36830         Generate INSTALL file variants with prettier quotes.
36831         * doc/Makefile (INSTALL_PRELUDE): New macro.
36832         (INSTALL): Use it.
36833         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36834
36835 2008-08-26  Bruno Haible  <bruno@clisp.org>
36836
36837         Run makeinfo in an English locale.
36838         * doc/Makefile (MAKEINFO): New variable.
36839
36840 2008-08-26  Bruno Haible  <bruno@clisp.org>
36841
36842         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36843         Suggested by Eric Blake.
36844
36845 2008-08-25  Bruno Haible  <bruno@clisp.org>
36846
36847         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36848
36849 2008-08-25  Eric Blake  <ebb9@byu.net>
36850
36851         c-stack: test that stack overflow can be caught
36852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36853         that platform allows handling stack overflow; at least OS/2 EMX
36854         has sigaltstack, but crashes before transferring control to
36855         handler on stack overflow.
36856         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36857         check for HAVE_STACK_OVERFLOW_HANDLING.
36858         Reported by Elbert Pol.
36859
36860 2008-08-25  Bruno Haible  <bruno@clisp.org>
36861
36862         * doc/posix-functions/strftime.texi: Fix description of strftime
36863         module.
36864
36865 2008-08-24  Bruno Haible  <bruno@clisp.org>
36866
36867         * tests/uniwidth/test-uc_width2.c: New file.
36868         * tests/uniwidth/test-uc_width2.sh: New file.
36869         * modules/uniwidth/width-tests (Files): Add the new files.
36870         (TESTS): Add uniwidth/test-uc_width2.sh.
36871         (TESTS_ENVIRONMENT): New variable.
36872         (check_PROGRAMS): Add test-uc_width2.
36873         (test_uc_width2_SOURCES): New variable.
36874
36875         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36876         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36877         not 0x00AB.
36878         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36879
36880 2008-08-22  Eric Blake  <ebb9@byu.net>
36881
36882         test-lock, test-tls: mention why a test is skipped
36883         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36884         skipped.
36885         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36886
36887         count-one-bits: relax license
36888         * modules/count-one-bits (License): Relicense to LGPLv2+.
36889         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36890
36891 2008-08-22  Andreas Schwab  <schwab@suse.de>
36892
36893         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36894         Remove spurious space in assignment.
36895
36896 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36897
36898         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36899         Paul Eggert <eggert@CS.UCLA.EDU>.
36900
36901 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36902
36903         * modules/gettext: Add m4/threadlib.m4.
36904
36905 2008-08-19  Eric Blake  <ebb9@byu.net>
36906
36907         test-c-stack: fix compilation failure on FreeBSD 5.0
36908         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36909         headers before <sys/resource.h>.
36910         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36911         the bug.
36912         Reported by Nelson H. F. Beebe.
36913
36914         strverscmp: migrate from "strverscmp.h" to <string.h>
36915         * modules/string (Makefile.am): Add new hooks.
36916         * modules/strverscmp (Files): Remove strverscmp.h.
36917         (Depends-on): Add string.
36918         (configure.ac): Add indicator.
36919         (Include): Mention new header.
36920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36921         defaults.
36922         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36923         results.
36924         * lib/strverscmp.h: Delete.
36925         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36926         * tests/test-strverscmp.c (includes): Adjust client.
36927         * lib/check-version.c (includes): Likewise.
36928         * NEWS: Document the change.
36929
36930         strverscmp: add unit test
36931         * modules/strverscmp-tests: New file.
36932         * tests/test-strverscmp.c: Likewise.
36933
36934 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36935
36936         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36937         regarding Windows crypto stuff, from Mono.
36938
36939 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36940
36941         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36942         if present, for intel RND.  Return error on failures.
36943
36944 2008-08-18  Ben Pfaff  <blp@gnu.org>
36945
36946         gitlog-to-changelog: give better diagnostic for failed pipe-open
36947         * build-aux/gitlog-to-changelog: Improve error message: suggest
36948         that the version of Git may be too old.
36949
36950 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36951
36952         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36953         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36954
36955 2008-08-18  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36958         pthread_in_use().
36959
36960 2008-08-18  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/glthread/threadlib.c: Include <pthread.h>.
36963
36964 2008-08-18  Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36967         glthread_recursive_lock_* macros.
36968         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36969         Fix syntax error.
36970
36971 2008-08-18  Bruno Haible  <bruno@clisp.org>
36972
36973         * lib/glthread/thread.c: Avoid forcing a context switch right after
36974         thread creation.
36975
36976 2008-08-17  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36979         * lib/glthread/thread.h: Provide Win32 specific implementation.
36980         * modules/thread (Files): Add lib/glthread/thread.c.
36981         (Depends-on): Add lock.
36982         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36983
36984 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36985
36986         New module 'yield'.
36987         * modules/yield: New file.
36988         * lib/glthread/yield.h: New file.
36989         * m4/yield.m4: New file.
36990         * MODULES.html.sh (Multithreading): Add yield.
36991
36992 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36993
36994         New module 'thread'.
36995         * modules/thread: New file.
36996         * lib/glthread/thread.h: New file.
36997         * m4/thread.m4: New file.
36998         * MODULES.html.sh (Multithreading): Add thread.
36999
37000 2008-08-17  Bruno Haible  <bruno@clisp.org>
37001
37002         * lib/glthread/lock.h: Include <stdlib.h> always.
37003         * lib/glthread/tls.h: Likewise.
37004         * lib/glthread/cond.h: Likewise.
37005
37006 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37007
37008         New module 'cond'.
37009         * modules/cond: New file.
37010         * lib/glthread/cond.h: New file.
37011         * lib/glthread/cond.c: New file.
37012         * m4/cond.m4: New file.
37013         * MODULES.html.sh (Multithreading): Add cond.
37014
37015 2008-08-16  Eric Blake  <ebb9@byu.net>
37016
37017         c-stack: fix regression on Irix 5.3 from 2008-06-21
37018         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37019         sa_sigaction...
37020         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37021         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37022         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37023         * modules/signal (Makefile.am): Use the value.
37024         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37025         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37026         * doc/posix-headers/signal.texi (signal.h): Document this
37027         portability issue.
37028         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37029         Reported by Tom G. Christensen.
37030
37031 2008-08-17  Bruno Haible  <bruno@clisp.org>
37032
37033         New module 'threadlib'.
37034         * modules/threadlib: New file.
37035         * lib/glthread/threadlib.c: New file, extracted from
37036         lib/glthread/lock.c.
37037         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37038         functions.
37039         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37040         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37041         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37042         macros.
37043         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37044         (gl_DISABLE_THREADS): Remove macro.
37045         * modules/lock (Files): Remove build-aux/config.rpath.
37046         (Depends-on): Remove havelib. Add threadlib.
37047         (configure.ac-early): Remove section.
37048         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37049         * modules/tls (Depends-on): Remove lock. Add threadlib.
37050         (Link): New section, copied from threadlib.
37051         * MODULES.html.sh (Multithreading): Add threadlib.
37052
37053 2008-08-14  Bruno Haible  <bruno@clisp.org>
37054
37055         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37056         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37057         glthread_rwlock_unlock, glthread_rwlock_destroy,
37058         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37059         glthread_recursive_lock_destroy): Define as macros always.
37060         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37061         glthread_lock_lock.
37062         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37063         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37064         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37065         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37066         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37067         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37068         (glthread_recursive_lock_lock_func): Renamed from
37069         glthread_recursive_lock_lock.
37070         (glthread_recursive_lock_unlock_func): Renamed from
37071         glthread_recursive_lock_unlock.
37072         (glthread_recursive_lock_destroy_func): Renamed from
37073         glthread_recursive_lock_destroy.
37074
37075 2008-08-14  Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/glthread/lock.h: Renamed from lib/lock.h.
37078         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37079         * lib/glthread/tls.h: Renamed from lib/tls.h.
37080         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37081         * lib/fstrcmp.c: Update includes.
37082         * lib/strsignal.c: Update includes.
37083         * modules/lock (Files, Makefile.am): Update.
37084         (Include): Change to "glthread/lock.h".
37085         * modules/tls (Files, Makefile.am): Update.
37086         (Include): Change to "glthread/tls.h".
37087         * tests/test-lock.c: Update includes.
37088         * tests/test-tls.c: Update includes.
37089         * NEWS: Mention the renamed header files.
37090
37091 2008-08-11  Jim Meyering  <meyering@redhat.com>
37092
37093         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37094
37095 2008-08-11  Eric Blake  <ebb9@byu.net>
37096
37097         test-c-stack: avoid C99-ism
37098         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37099         before statement.
37100         Reported by Alain Guibert.
37101
37102 2008-08-10  Jim Meyering  <meyering@redhat.com>
37103
37104         ensure that return value of uinttostr et al are not ignored
37105         * lib/inttostr.h (__GNUC_PREREQ): Define.
37106         (__attribute_warn_unused_result__): Define.
37107         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37108
37109 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37110
37111         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37112         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37113
37114 2008-08-07  Jim Meyering  <meyering@redhat.com>
37115
37116         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37117
37118         * modules/mkstemp (License): Relicense under LGPLv2+.
37119         * modules/tempname (License): Likewise.
37120
37121 2008-08-06  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/poll.c (poll): Further micro-optimization.
37124
37125 2008-08-06  Jim Meyering  <meyering@redhat.com>
37126
37127         inet_pton.c: use locale-independent tolower
37128         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37129         (inet_pton6): Use c_tolower rather than tolower.
37130         * modules/inet_pton (Depends-on): Add c-ctype.
37131
37132 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37133
37134         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37135         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37136
37137 2008-08-06  Jim Meyering  <meyering@redhat.com>
37138
37139         * modules/inet_pton (License): Relicense under LGPLv2+.
37140
37141 2008-08-03  Bruno Haible  <bruno@clisp.org>
37142
37143         Additional non-aborting API for lock and tls.
37144         * lib/lock.h: Include <errno.h>.
37145         (glthread_lock_init): New macro/function.
37146         (gl_lock_init): Define as wrapper around glthread_lock_init.
37147         (glthread_lock_lock): New macro/function.
37148         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37149         (glthread_lock_unlock): New macro/function.
37150         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37151         (glthread_lock_destroy): New macro/function.
37152         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37153         (glthread_rwlock_init): New macro/function.
37154         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37155         (glthread_rwlock_rdlock): New macro/function.
37156         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37157         (glthread_rwlock_wrlock): New macro/function.
37158         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37159         (glthread_rwlock_unlock): New macro/function.
37160         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37161         (glthread_rwlock_destroy): New macro/function.
37162         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37163         (glthread_recursive_lock_init): New macro/function.
37164         (gl_recursive_lock_init): Define as wrapper around
37165         glthread_recursive_lock_init.
37166         (glthread_recursive_lock_lock): New macro/function.
37167         (gl_recursive_lock_lock): Define as wrapper around
37168         glthread_recursive_lock_lock.
37169         (glthread_recursive_lock_unlock): New macro/function.
37170         (gl_recursive_lock_unlock): Define as wrapper around
37171         glthread_recursive_lock_unlock.
37172         (glthread_recursive_lock_destroy): New macro/function.
37173         (gl_recursive_lock_destroy): Define as wrapper around
37174         glthread_recursive_lock_destroy.
37175         (glthread_once): New macro/function.
37176         (gl_once): Define as wrapper around glthread_once.
37177         Update function declarations.
37178         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37179         glthread_rwlock_init. Return error code.
37180         (glthread_rwlock_rdlock_multithreaded): Renamed from
37181         glthread_rwlock_rdlock. Return error code.
37182         (glthread_rwlock_wrlock_multithreaded): Renamed from
37183         glthread_rwlock_wrlock. Return error code.
37184         (glthread_rwlock_unlock_multithreaded): Renamed from
37185         glthread_rwlock_unlock. Return error code.
37186         (glthread_rwlock_destroy_multithreaded): Renamed from
37187         glthread_rwlock_destroy. Return error code.
37188         (glthread_recursive_lock_init_multithreaded): Renamed from
37189         glthread_recursive_lock_init. Return error code.
37190         (glthread_recursive_lock_lock_multithreaded): Renamed from
37191         glthread_recursive_lock_lock. Return error code.
37192         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37193         glthread_recursive_lock_unlock. Return error code.
37194         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37195         glthread_recursive_lock_destroy. Return error code.
37196         (glthread_once_call): Make static.
37197         (glthread_once_multithreaded): Renamed from glthread_once.
37198         * lib/tls.h: Include <errno.h>.
37199         (glthread_tls_key_init): New macro/function.
37200         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37201         (glthread_tls_set): New macro/function.
37202         (gl_tls_set): Define as wrapper around glthread_tls_set.
37203         (glthread_tls_key_destroy): New macro/function.
37204         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37205         Update function declarations.
37206         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37207         glthread_tls_get.
37208         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37209
37210 2008-08-04  Eric Blake  <ebb9@byu.net>
37211
37212         gnumakefile: use space, not TAB, outside of targets
37213         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37214
37215 2008-08-02  Jim Meyering  <meyering@redhat.com>
37216
37217         getdate.y: avoid locale-dependent date parsing failure
37218         In Turkish locales, getdate would fail to recognize keywords
37219         containing a lowercase "i".  The solution is not to rely on
37220         locale-sensitive case-conversion.
37221         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37222         (lookup_word): Use c_toupper in place of toupper.
37223         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37224         Reported by Vefa Bicakci <bicave@superonline.com> in
37225         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37226         * modules/getdate (Depends-on): Add c-ctype.
37227
37228 2008-08-02  Bruno Haible  <bruno@clisp.org>
37229
37230         * gnulib-tool (func_import): When updating or creating a .gitignore
37231         file, prepend each added line with a slash, and ignore leading slashes
37232         from the existing lines.
37233         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37234
37235 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37236
37237         Portability fix for GNU make 3.79.1.
37238         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37239         versions do not understand.
37240
37241 2008-08-01  Bruno Haible  <bruno@clisp.org>
37242
37243         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37244         * tests/test-isnanf.h (zero): New variable.
37245         (main): Avoid literal -0.0f.
37246         * tests/test-isnand.h (zero): New variable.
37247         (main): Avoid literal -0.0.
37248         * tests/test-isnanl.h (zero): New variable.
37249         (main): Avoid literal -0.0L.
37250         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37251         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37252         -0.0, -0.0L.
37253         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37254         (test_signbitd): Avoid literal -0.0.
37255         (test_signbitl): Avoid literal -0.0L.
37256         * tests/test-ceilf1.c (zero): New variable.
37257         (main): Avoid literal -0.0f.
37258         * tests/test-ceill.c (zero): New variable.
37259         (main): Avoid literal -0.0L.
37260         * tests/test-floorf1.c (zero): New variable.
37261         (main): Avoid literal -0.0f.
37262         * tests/test-floorl.c (zero): New variable.
37263         (main): Avoid literal -0.0L.
37264         * tests/test-roundf1.c (zero): New variable.
37265         (main): Avoid literal -0.0f.
37266         * tests/test-round1.c (zero): New variable.
37267         (main): Avoid literal -0.0.
37268         * tests/test-roundl.c (zero): New variable.
37269         (main): Avoid literal -0.0L.
37270         * tests/test-truncf1.c (zero): New variable.
37271         (main): Avoid literal -0.0f.
37272         * tests/test-trunc1.c (zero): New variable.
37273         (main): Avoid literal -0.0.
37274         * tests/test-truncl.c (zero): New variable.
37275         (main): Avoid literal -0.0L.
37276         * tests/test-frexp.c (zero): New variable.
37277         (main): Avoid literal -0.0.
37278         * tests/test-frexpl.c (zero): New variable.
37279         (main): Avoid literal -0.0L.
37280         * tests/test-ldexpl.c (zero): New variable.
37281         (main): Avoid literal -0.0L.
37282         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37283         (zerod, zerol): New variables.
37284         (test_function): Avoid literals -0.0, -0.0L.
37285         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37286         (zerod, zerol): New variables.
37287         (test_function): Avoid literals -0.0, -0.0L.
37288         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37289         (zerod, zerol): New variables.
37290         (test_function): Avoid literals -0.0, -0.0L.
37291         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37292         (zerod, zerol): New variables.
37293         (test_function): Avoid literals -0.0, -0.0L.
37294         * tests/test-strtod.c (zero): New variable.
37295         (main): Avoid literal -0.0.
37296         Reported by Jonathan C. Patschke <jp@centtech.com>.
37297
37298 2008-07-31  Jim Meyering  <meyering@redhat.com>
37299
37300         sha256.h: correct definition of SHA224_DIGEST_SIZE
37301         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37302         Reported by Paulie Pena IV <paulie4@gmail.com>.
37303         Define as 224 / 8, rather than as a literal.
37304         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37305         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37306         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37307
37308 2008-07-31  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37311         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37312         Reported by Jonathan Patschke <jp@centtech.com>.
37313
37314 2008-07-31  Bruno Haible  <bruno@clisp.org>
37315
37316         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37317         Reported by Paolo Bonzini <bonzini@gnu.org>.
37318
37319 2008-07-30  Eric Blake  <ebb9@byu.net>
37320
37321         test-strtod: allow compilation without -lm
37322         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37323         Reported by Dennis Clarke <blastwave@gmail.com>.
37324
37325 2008-07-28  Jim Meyering  <meyering@redhat.com>
37326
37327         bootstrap: work also when there are no .po files in po/
37328         * build-aux/bootstrap (update_po_files): Complete the change
37329         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37330
37331 2008-07-27  Jim Meyering  <meyering@redhat.com>
37332
37333         * users.txt: Add zile.
37334
37335 2008-07-26  Ben Pfaff  <blp@gnu.org>
37336
37337         Add missing dependencies on new m4/exponent[fdl].m4 files.
37338         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37339         * modules/isnand-nolibm: Add m4/exponentd.m4.
37340         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37341         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37342         m4/isnan[fdl].m4, because the macros actually used moved.
37343         Reported by Jim Meyering.
37344
37345 2008-07-14  Ben Pfaff  <blp@gnu.org>
37346
37347         Add isinf module.
37348         * lib/isinf.c: New file.
37349         * lib/math.in.h: Define isinf macro if we have decided to replace
37350         it.
37351         * m4/isinf.m4: New file.
37352         * m4/math_h.m4: Initialize and substitute variables for isinf
37353         module.
37354         * modules/isinf: New file.
37355         * modules/isinf-tests: New file.
37356         * modules/math: Add substitutions for new module.
37357         * tests/test-isinf.c: New file.
37358         * doc/posix-functions/isinf.texi: Mention new module.
37359         * MODULES.html.sh: Mention new module.
37360
37361 2008-07-14  Ben Pfaff  <blp@gnu.org>
37362
37363         Factor out some macros for use by additional modules.
37364         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37365         exponentf.m4.
37366         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37367         exponentd.m4.
37368         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37369         file exponentl.m4.
37370         * m4/exponentf.m4: New file.
37371         * m4/exponentd.m4: New file.
37372         * m4/exponentl.m4: New file.
37373         * modules/isnanf: Use new file m4/exponentf.m4.
37374         * modules/isnand: Use new file m4/exponentd.m4.
37375         * modules/isnanl: Use new file m4/exponentl.m4.
37376
37377 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37378
37379         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37380         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37381         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37382         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37383
37384         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37385         readlink on platforms without PATH_MAX.
37386
37387 2008-07-21  Eric Blake  <ebb9@byu.net>
37388
37389         Warn, not fail, on stale version.
37390         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37391
37392         Don't allow installation with stale devel version number.
37393         * top/GNUmakefile (_is-install-target): New macro.
37394         (_curr-ver): Forbid installation with stale version number.
37395
37396 2008-07-20  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37399         TESTS_ENVIRONMENT.
37400         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37401
37402 2008-07-20  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/c-stack.h (c_stack_action): Add documentation.
37405         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37406
37407 2008-07-20  Bruno Haible  <bruno@clisp.org>
37408
37409         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37410         * modules/readlink (License): Likewise.
37411
37412 2008-07-17  Eric Blake  <ebb9@byu.net>
37413
37414         * modules/c-stack (Link): Fix typo.
37415
37416         Make c-stack use libsigsegv, when available.
37417         * modules/c-stack (Depends-on): Add libsigsegv.
37418         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37419         needed.
37420         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37421         (segv_handler, overflow_handler, c_stack_action)
37422         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37423         implementation when libsigsegv is available, but only when using
37424         the library is necessary.
37425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37426         comment, explaining why XSI check fails on Linux.
37427         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37428         * tests/test-c-stack2.sh: Tweak skip message.
37429         * NEWS: Document new link-time requirements.
37430
37431 2008-07-16  Eric Blake  <ebb9@byu.net>
37432
37433         c-stack: Expose false positives when not using libsigsegv.
37434         * modules/c-stack-tests (Files): Expand test.
37435         * tests/test-c-stack.c (main): Add means to conditionally trigger
37436         non-overflow SIGSEGV.
37437         * tests/test-c-stack2.sh: New file.
37438
37439 2008-07-14  Bruno Haible  <bruno@clisp.org>
37440
37441         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37442         Reported by Eric Blake.
37443
37444 2008-07-14  Sam Steingold  <sds@gnu.org>
37445             Bruno Haible  <bruno@clisp.org>
37446
37447         New module libsigsegv.
37448         * modules/libsigsegv: New file.
37449         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37450         modifications.
37451         * MODULES.html.sh (Signal handling): New section.
37452
37453 2008-07-14  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/unictype/ctype-* (Description): Add the word "function".
37456         Improves the resulting doc in MODULES.html.
37457
37458 2008-07-12  Ben Pfaff  <blp@gnu.org>
37459
37460         Add longlong module.
37461         * modules/longlong: New file.
37462
37463 2008-07-12  Bruno Haible  <bruno@clisp.org>
37464
37465         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37466         to empty.
37467
37468 2008-07-10  Ben Pfaff  <blp@gnu.org>
37469
37470         Add isnan module.
37471         * doc/posix-functions/isnan.texi: Mention new module.
37472         * lib/math.in.h: Define isnan macro if we have decided to replace
37473         it.
37474         * m4/isnan.m4: New file.
37475         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37476         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37477         also.
37478         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37479         redundancy.
37480         * m4/math_h.m4: Initialize and substitute variables for isnan
37481         module.
37482         * modules/isnan: New file.
37483         * modules/isnan-tests: New file.
37484         * modules/math: Add substitutions for new module.
37485         * tests/test-isnan.c: New file.
37486         * MODULES.html.sh: Mention new module.
37487
37488 2008-07-10  Ben Pfaff  <blp@gnu.org>
37489
37490         Add isnanf module.
37491         * lib/isnanf.m4: New file.
37492         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37493         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37494         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37495         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37496         * modules/isnanf: New file.
37497         * modules/isnanf-tests: New file.
37498         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37499         files.
37500         * tests/test-isnanf-nolibm.c: factored most of its contents into
37501         new file tests/test-isnanf.h.
37502         * tests/test-isnanf.h: New file.
37503         * tests/test-isnanf.c: New file.
37504         * MODULES.html.sh: Mention new module.
37505         * doc/glibc-functions/isnanf.texi: Mention new module.
37506
37507 2008-07-10  Ben Pfaff  <blp@gnu.org>
37508
37509         Add isnand module.
37510         * lib/isnand.h: New file.
37511         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37512         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37513         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37514         functionality also.
37515         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37516         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37517         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37518         * modules/isnand: New file.
37519         * modules/isnand-tests: New file.
37520         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37521         files.
37522         * tests/test-isnand-nolibm.c: factored most of its contents into
37523         new file tests/test-isnand.h.
37524         * tests/test-isnand.h: New file.
37525         * tests/test-isnand.c: New file.
37526         * MODULES.html.sh: Mention new module.
37527
37528 2008-07-10  Ben Pfaff  <blp@gnu.org>
37529
37530         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37531         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37532         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37533         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37534         * modules/isnanf-nolibm: Update references to renamed files.
37535         * modules/isnand-nolibm: Likewise.
37536         * modules/isnanf-nolibm-tests: Likewise.
37537         * modules/isnand-nolibm-tests: Likewise.
37538         * lib/frexp.c: Likewise.
37539         * lib/isfinite.c: Likewise.
37540         * lib/signbitd.c: Likewise.
37541         * lib/signbitf.c: Likewise.
37542         * lib/vasnprintf.c: Likewise.
37543         * tests/test-ceilf1.c: Likewise.
37544         * tests/test-ceilf2.c: Likewise.
37545         * tests/test-floorf1.c: Likewise.
37546         * tests/test-floorf2.c: Likewise.
37547         * tests/test-frexp.c: Likewise.
37548         * tests/test-round1.c: Likewise.
37549         * tests/test-round2.c: Likewise.
37550         * tests/test-roundf1.c: Likewise.
37551         * tests/test-strtod.c: Likewise.
37552         * tests/test-trunc1.c: Likewise.
37553         * tests/test-trunc2.c: Likewise.
37554         * tests/test-truncf1.c: Likewise.
37555         * tests/test-truncf2.c: Likewise.
37556         * NEWS: Mention the renamed header files.
37557
37558 2008-07-11  Jim Meyering  <meyering@redhat.com>
37559
37560         vc-list-files: make the last-resort awk code more portable
37561         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37562         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37563         does not support it.
37564
37565 2008-07-10  Eric Blake  <ebb9@byu.net>
37566
37567         Work with tar's bootstrap.
37568         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37569         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37570         an m4 comment.
37571
37572 2008-07-09  Jim Meyering  <meyering@redhat.com>
37573
37574         posix-shell.m4: fix typo that made this test malfunction
37575         * m4/posix-shell.m4: Remove capitalization in variable name.
37576
37577 2008-07-08  Bruno Haible  <bruno@clisp.org>
37578
37579         * m4/onceonly.m4: Update comments.
37580         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37581
37582 2008-07-04  Jim Meyering  <meyering@redhat.com>
37583
37584         * users.txt: Add vc-dwim.
37585         (bison, coreutils): Use the gitweb URL.
37586
37587 2008-07-03  Jim Meyering  <meyering@redhat.com>
37588
37589         * users.txt: Add libffcall.  From Sam Steingold.
37590
37591 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
37592
37593         getdate.y: do not ignore TZ with relative day, month or year offset
37594         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37595         relative-date-handling, since otherwise, the latter would clobber the
37596         sole output (an updated Start value) of the tz-handling block.
37597         * tests/test-getdate.c: Tests for the fix
37598
37599 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37600
37601         Recognize 'foo_LIBRARIES += libgnu.a'.
37602         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37603         makefile snippet has already specified an installation location,
37604         also using '+='.
37605
37606 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
37607
37608         getdate.y: factor out common actions
37609         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37610         Use them in place of open-coded actions.
37611
37612 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37613
37614         Add self-test for getdate module.
37615         * modules/getdate-tests: New file.
37616         * tests/test-getdate.c: New file.
37617
37618 2008-06-29  Bruno Haible  <bruno@clisp.org>
37619
37620         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37621         .gitignore.
37622         Reported by Sylvain Beucler <beuc@beuc.net>.
37623
37624 2008-06-29  Bruno Haible  <bruno@clisp.org>
37625
37626         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37627         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37628
37629 2008-06-29  Bruno Haible  <bruno@clisp.org>
37630
37631         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37632         EXTRA_DIST.
37633         Reported by Sylvain Beucler <beuc@beuc.net>.
37634
37635 2008-06-26  Jim Meyering  <meyering@redhat.com>
37636
37637         make several modules depend on the "open" module
37638         This provides slightly increased consistency when opening-for-write
37639         the name of a non-directory spelled with a trailing slash.
37640         * modules/chdir-safer: Likewise.
37641         * modules/chown: Likewise.
37642         * modules/clean-temp: Likewise.
37643         * modules/copy-file: Likewise.
37644         * modules/fchdir: Likewise.
37645         * modules/fcntl-safer: Likewise.
37646         * modules/pipe: Likewise.
37647         * modules/utime: Likewise.
37648         Prompted by Eric Blake and Bruno Haible.
37649
37650 2008-06-24  Andreas Schwab  <schwab@suse.de>
37651
37652         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37653         literals can be used as initializers for global variables.
37654
37655 2008-06-23  Eric Blake  <ebb9@byu.net>
37656
37657         Make gnulib-cache.m4 easier to diff.
37658         * gnulib-tool (func_import): Allow newlines when reading cached
37659         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37660
37661 2008-06-23  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37664         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37665         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37666         m4/signalblocking.m4.
37667         (gl_PREREQ_SIGACTION): Don't invoke it.
37668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37669         gl_PREREQ_SIG_HANDLER_H.
37670         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37671         Don't check for sigaction here.
37672
37673 2008-06-23  Bruno Haible  <bruno@clisp.org>
37674
37675         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37676         (install_handlers): Don't set the SA_RESETHAND flag.
37677
37678 2008-06-23  Bruno Haible  <bruno@clisp.org>
37679
37680         * m4/sigaction.m4: Comment fixes.
37681         * lib/signal.in.h: Likewise.
37682
37683 2008-06-23  Eric Blake  <ebb9@byu.net>
37684
37685         Fix typo.
37686         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37687
37688         Avoid SA_ namespace.
37689         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37690         Reported by Ralf Wildenhues.
37691
37692         Avoid test failure due to SA_RESTORER.
37693         * tests/test-sigaction.c (SA_MASK): New macro.
37694         (main): Avoid failing due to extension flags being set.
37695         Reported by Jim Meyering.
37696
37697         Revert use of sig-handler.h in sigprocmask.c.
37698         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37699         it requires the existence of struct sigaction.
37700         * lib/sigprocmask.c (handler_t): Restore typedef.
37701         (rpl_signal, old_handlers): Use local type.
37702
37703 2008-06-22  Bruno Haible  <bruno@clisp.org>
37704
37705         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37706         conditionally.
37707         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37708
37709 2008-06-22  Bruno Haible  <bruno@clisp.org>
37710
37711         * doc/posix-functions/siginterrupt.texi: Move note.
37712
37713         * lib/signal.in.h (SA_RESTART): New macro.
37714         * lib/sigaction.c: Update comment.
37715
37716         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37717
37718         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37719         (gl_PREREQ_SIGPROCMASK): Invoke it.
37720         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37721
37722         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37723
37724         * lib/sigprocmask.c: Update a comment.
37725
37726 2008-06-21  Eric Blake  <ebb9@byu.net>
37727
37728         Use sigaction module rather than signal().
37729         * modules/c-stack (Depends-on): Add sigaction.
37730         * modules/fatal-signal (Depends-on): Likewise.
37731         * modules/nanosleep (Depends-on): Likewise.
37732         * modules/sigprocmask (Files): Add sig-handler.h.
37733         * modules/sigaction (Files): Likewise.
37734         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37735         Eggert.
37736         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37737         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37738         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37739         (init_fatal_signals): Likewise.
37740         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37741         (siginterrupt): Delete fallback.
37742         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37743         instead.
37744         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37745         siginterrupt.
37746
37747         New module sigaction, for mingw.
37748         * modules/sigaction: New module...
37749         * modules/sigaction-tests: ...and its test.
37750         * m4/sigaction.m4: New file.
37751         * lib/sigaction.c: Likewise.
37752         * tests/test-sigaction.c: Likewise.
37753         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37754         * modules/signal (Makefile.am): Likewise.
37755         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37756         needed.
37757         * doc/posix-headers/signal.texi (signal.h): Mention provided
37758         types.
37759         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37760         that sigaction is preferable.
37761         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37762         module.
37763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37764         sigaction.
37765
37766         Improve robustness of sigprocmask by overriding signal.
37767         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37768         is in use.
37769         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37770         (SIGKILL, SIGSTOP): Provide fallbacks.
37771         (rpl_signal): Implement.
37772         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37773         signal can be called inside handlers.
37774
37775         Fix nanosleep module on mingw.
37776         * modules/nanosleep (Depends-on): Add sys_select.
37777         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37778
37779         Fix licensing of sigprocmask.
37780         * modules/raise (License): Relicense as LGPL.
37781
37782 2008-06-21  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37785         result if it contains question marks.
37786         Reported by Michael Geng <linux@michaelgeng.de>.
37787
37788 2008-06-19  Bruno Haible  <bruno@clisp.org>
37789
37790         Fix CVS-ism.
37791         * doc/gnulib.texi: Include updated-stamp.texi.
37792         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37793         (updated-stamp.texi): New rule.
37794         (gnulib.info): Depend on it.
37795         * doc/.gitignore: Add updated-stamp.texi.
37796         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37797
37798 2008-06-19  Bruno Haible  <bruno@clisp.org>
37799
37800         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37801         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37802
37803 2008-06-19  Eric Blake  <ebb9@byu.net>
37804
37805         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37806         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37807         Reported by Stepan Kasal.
37808
37809 2008-06-18  Bruno Haible  <bruno@clisp.org>
37810
37811         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37812         Reported by Eric Blake.
37813
37814 2008-06-18  Eric Blake  <ebb9@byu.net>
37815
37816         Work around cygwin 1.5.25 strsignal bug.
37817         * tests/test-strsignal.c: Allow for const char *.
37818         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37819
37820 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37821
37822         * users.txt: Update URL to article and add author/date
37823         information.
37824
37825 2008-06-17  Bruno Haible  <bruno@clisp.org>
37826
37827         New macro gl_DISABLE_THREADS.
37828         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37829         if the user did not pass --enable-threads or --disable-threads option.
37830         (gl_DISABLE_THREADS): New macro.
37831         Reported by Eric Blake <ebb9@byu.net>.
37832
37833 2008-06-17  Bruno Haible  <bruno@clisp.org>
37834
37835         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37836         when the macro ignores it.
37837         Based on a patch by Eric Blake <ebb9@byu.net>.
37838
37839 2008-06-17  Bruno Haible  <bruno@clisp.org>
37840
37841         * modules/tls (License): Change to LGPLv2+.
37842         Reported by Eric Blake.
37843
37844 2008-06-17  Eric Blake  <ebb9@byu.net>
37845
37846         Simplify c-stack prerequisites.
37847         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37849         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37850         check.
37851         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37852         <sys/resource.h>.
37853
37854         Move c-stack test into testsuite.
37855         * modules/c-stack-tests: New file.
37856         * lib/c-stack.c [DEBUG]: Move test program...
37857         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37858         fail test if sigaltstack is lacking.
37859         * tests/test-c-stack.sh: New driver file.
37860
37861 2008-06-16  Eric Blake  <ebb9@byu.net>
37862
37863         Use raise module consistently.
37864         * modules/fatal-signal (Depends-on): Add raise.
37865         * modules/sigprocmask (Depends-on): Likewise.
37866         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37867         * lib/sigprocmask.c (sigprocmask): Likewise.
37868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37869         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37870
37871         Fix compliance bug in sigpending.
37872         * lib/sigprocmask.c (sigpending): Return pending array via
37873         parameter, not return value.
37874
37875 2008-06-14  Eric Blake  <ebb9@byu.net>
37876
37877         Improve obstack-printf test code.
37878         * tests/test-obstack-printf.c (test_function): Fix comment, and
37879         simplify usage of obstack_* in macros.  Add a test for coverage.
37880         Reported by Bruno Haible.
37881
37882 2008-06-14  Bruno Haible  <bruno@clisp.org>
37883
37884         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37885         array size as a constant, not as a const variable.
37886         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37887         AC_USE_SYSTEM_EXTENSIONS.
37888         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37889         Test whether the obstack_printf function actually exists.
37890         * modules/obstack-printf (Depends-on): Add extensions.
37891         (Include): Remove obstack.h.
37892         * modules/obstack-printf-posix (Depends-on): Add extensions.
37893         (Include): Remove obstack.h.
37894
37895 2008-06-13  Eric Blake  <ebb9@byu.net>
37896
37897         Add obstack-printf and obstack-printf-posix modules.
37898         * modules/obstack-printf: New file.
37899         * modules/obstack-printf-posix: Likewise.
37900         * MODULES.html.sh (Misc): Mention them.
37901         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37902         Likewise.
37903         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37904         Likewise.
37905         * modules/stdio (Makefile.am): Accomodate new modules.
37906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37907         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37908         Declare.
37909         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37910         functions.
37911         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37912         (gl_REPLACE_OBSTACK_PRINTF): New macros
37913         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37914         * tests/test-obstack-printf.c: New file.
37915         * modules/obstack-printf-tests: Likewise.
37916         * modules/obstack-printf-posix-tests: Likewise.
37917
37918 2008-06-11  Bruno Haible  <bruno@clisp.org>
37919
37920         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37921         * lib/open.c: Include errno.h.
37922         (open): Fail when attempting to write to a file that has a trailing
37923         slash.
37924         * tests/test-open.c (main): Test against trailing slash bug.
37925         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37926
37927 2008-06-10  Bruno Haible  <bruno@clisp.org>
37928
37929         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37930         for $? to work inside the trap command, with various /bin/sh-s.
37931         * tests/test-vc-list-files-cvs.sh: Likewise.
37932
37933 2008-06-10  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/acl-internal.h: Don't include gettext.h here.
37936         * lib/set-mode-acl.c: Include gettext.h here.
37937         * lib/copy-acl.c: Likewise.
37938
37939 2008-06-10  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37942         * lib/wait-process.c (wait_subprocess): Likewise.
37943         * lib/execute.h (execute): Add termsigp argument.
37944         * lib/execute.c (execute): Likewise.
37945         * lib/csharpcomp.c (compile_csharp_using_pnet,
37946         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37947         * lib/csharpexec.c (execute_csharp_using_pnet,
37948         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37949         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37950         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37951         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37952         is_jikes_present): Update.
37953         * lib/javaexec.c (execute_java_class): Update.
37954         * lib/javaversion.c (execute_and_read_line): Update.
37955         * NEWS: Document the changes.
37956         Reported by Eric Blake.
37957
37958 2008-06-10  Eric Blake  <ebb9@byu.net>
37959
37960         Add missing include.
37961         * tests/test-strstr.c (includes): Add <signal.h>.
37962         * tests/test-strcasestr.c (includes): Likewise.
37963         * tests/test-memmem.c (includes): Likewise.
37964
37965 2008-06-10  Bruno Haible  <bruno@clisp.org>
37966
37967         * lib/wait-process.c (wait_subprocess): Add an assertion.
37968
37969 2008-06-10  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37972
37973 2008-06-10  Bruno Haible  <bruno@clisp.org>
37974
37975         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37976         using alarm().
37977         * tests/test-strcasestr.c (main): Likewise.
37978         * tests/test-strstr.c (main): Likewise.
37979
37980 2008-06-09  Bruno Haible  <bruno@clisp.org>
37981
37982         Work around the Solaris 10 ACE ACLs ABI change.
37983         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37984         declare if ACL_NO_TRIVIAL is present.
37985         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37986         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37987         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37988         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37989         define if ACL_NO_TRIVIAL is present.
37990         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37991         and use the current ABI.
37992         (file_has_acl): Use same #if condition as elsewhere.
37993         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37994         in use, and use the current ABI.
37995         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37996         Reported by Jim Meyering.
37997
37998 2008-06-09  Eric Blake  <ebb9@byu.net>
37999
38000         Work around environments that (stupidly) ignore SIGALRM.
38001         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38002         before using alarm().
38003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38005         Reported by Ian Beckwith <ianb@erislabs.net>.
38006
38007         Produce autobuild blurb earlier in log.
38008         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38009
38010 2008-06-09  Jim Meyering  <meyering@redhat.com>
38011         and Ondřej Vašík  <ovasik@redhat.com>
38012
38013         utimens.c: correct kernel bug work-around
38014         Ondřej Vašík found that the invalid return value of 280 indicates
38015         failure, not success, and the kernel bug we're trying to work
38016         around affects not just the utimensat call, but also the fallback
38017         futimens call.
38018         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38019         not success.
38020         [HAVE_FUTIMENS]: Use the same work-around, here.
38021
38022 2008-06-09  Jim Meyering  <meyering@redhat.com>
38023
38024         add more guards around definition of ACE_-related code
38025         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38026         ALLOW and ACE_OWNER are also defined.
38027
38028 2008-06-08  Bruno Haible  <bruno@clisp.org>
38029
38030         * lib/acl-internal.h: Add me as co-author.
38031         * lib/file-has-acl.c: Likewise.
38032         * lib/set-mode-acl.c: Likewise.
38033         * lib/copy-acl.c: Likewise.
38034
38035 2008-06-08  Bruno Haible  <bruno@clisp.org>
38036
38037         Add support for AIX ACLs.
38038         * lib/acl-internal.h (acl_nontrivial): New declaration.
38039         * lib/file-has-acl.c (acl_nontrivial): New function.
38040         (file_has_acl): Add implementation using AIX 4 ACL API.
38041         * lib/set-mode-acl.c (qset_acl): Likewise.
38042         * lib/copy-acl.c (qcopy_acl): Likewise.
38043
38044 2008-06-08  Bruno Haible  <bruno@clisp.org>
38045
38046         Add support for HP-UX ACLs.
38047         * lib/acl-internal.h (acl_nontrivial): New declaration.
38048         * lib/file-has-acl.c (acl_nontrivial): New function.
38049         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38050         * lib/set-mode-acl.c (qset_acl): Likewise.
38051         * lib/copy-acl.c (qcopy_acl): Likewise.
38052
38053 2008-06-08  Bruno Haible  <bruno@clisp.org>
38054
38055         Add support for Cygwin ACLs.
38056         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38057         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38058         the chmod_or_fchmod call.
38059         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38060
38061 2008-06-08  Bruno Haible  <bruno@clisp.org>
38062
38063         Fix bug with setuid modes in Solaris 10+ code.
38064         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38065         succeeded, when the mode contains some special bits.
38066
38067 2008-06-08  Bruno Haible  <bruno@clisp.org>
38068
38069         Add support for Solaris 7..10 ACLs.
38070         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38071         declarations.
38072         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38073         functions.
38074         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38075         * lib/set-mode-acl.c (qset_acl): Likewise.
38076         * lib/copy-acl.c (qcopy_acl): Likewise.
38077
38078 2008-06-08  Bruno Haible  <bruno@clisp.org>
38079
38080         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38081         declaration.
38082         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38083         (acl_access_nontrivial): Remove MacOS X case.
38084         (file_has_acl): Use acl_extended_nontrivial.
38085         * lib/copy-acl.c (qcopy_acl): Likewise.
38086
38087 2008-06-08  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38090
38091 2008-06-08  Jim Meyering  <meyering@redhat.com>
38092
38093         * modules/acl (Maintainer): Add Bruno Haible.
38094
38095 2008-06-07  Bruno Haible  <bruno@clisp.org>
38096
38097         Improve support for Tru64 ACLs.
38098         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38099         ACL on OSF/1.
38100
38101 2008-06-07  Bruno Haible  <bruno@clisp.org>
38102
38103         Add support for MacOS X ACLs.
38104         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38105         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38106         * lib/set-mode-acl.c (qset_acl): Likewise.
38107         * lib/copy-acl.c (qcopy_acl): Likewise.
38108
38109 2008-06-07  Bruno Haible  <bruno@clisp.org>
38110
38111         Fix memory leak introduced on 2008-05-22.
38112         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38113         use.
38114
38115 2008-06-07  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38118         to construct an empty ACL.
38119
38120 2008-06-07  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38123         precisely.
38124         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38125
38126 2008-06-07  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38129         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38130
38131 2008-06-07  Bruno Haible  <bruno@clisp.org>
38132
38133         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38134         regardless of POSIX.
38135         * doc/posix-functions/_longjmp.texi: Likewise.
38136         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38137         SystemV platform in this case.
38138
38139 2008-06-06  Eric Blake  <ebb9@byu.net>
38140
38141         Document abort() bugs.
38142         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38143
38144         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38145         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38146         sigsetjmp.
38147         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38148         siglongjmp, but only as a macro.
38149         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38150         is obsolete.
38151         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38152
38153         Tweak documentation to cover cygwin argz bugs.
38154         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38155         argz bug fix; no code change needed since no cygwin releases
38156         occurred between the last fix and the bug being tested.
38157         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38158         module and recently fixed cygwin bugs.
38159         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38160         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38161         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38162         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38163         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38164         Likewise.
38165         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38166         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38167         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38168         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38169         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38170         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38171         Likewise.
38172
38173         Avoid gcc warning on cygwin.
38174         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38175         !ACL_NO_TRIVIAL]: Avoid unused variable.
38176
38177 2008-06-05  Eric Blake  <ebb9@byu.net>
38178
38179         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38180         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38181         git-version-gen fails to come up with a version.
38182         Reported by Simon Josefsson.
38183
38184 2008-06-05  Jim Meyering  <meyering@redhat.com>
38185             Paul Eggert  <eggert@cs.ucla.edu>
38186
38187         utimens.c: work around a probable Linux kernel bug
38188         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38189         appears to be a kernel bug that causes utimensat to return 280
38190         instead of 0, indicating success.
38191
38192 2008-06-04  Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38195         2008-06-01 commit.
38196
38197 2008-06-04  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38200         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38201         (file_has_acl): Use it. Save errno afterwards.
38202         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38203
38204 2008-06-03  Bruno Haible  <bruno@clisp.org>
38205
38206         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38207         draft code. Simplify #ifs.
38208         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38209         Put Solaris code after POSIX-draft code. Fix comments regarding
38210         Solaris 10, HP-UX. Mention Cygwin.
38211         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38212
38213 2008-06-03  Eric Blake  <ebb9@byu.net>
38214
38215         Provide fallback for older kernels.
38216         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38217         Provide runtime fallback if kernel lacks support.
38218         Reported by Mike Frysinger.
38219
38220 2008-06-02  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38223         it exists.
38224
38225 2008-06-02  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38228         * lib/copy-acl.c (qcopy_acl): Update comment.
38229
38230 2008-06-02  Bruno Haible  <bruno@clisp.org>
38231
38232         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38233         like ACL APIs.
38234
38235 2008-06-02  Bruno Haible  <bruno@clisp.org>
38236
38237         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38238         * tests/test-set-mode-acl.sh: Likewise.
38239         * tests/test-copy-acl.sh: Likewise.
38240         * tests/test-copy-file.sh: Likewise.
38241
38242 2008-06-02  Bruno Haible  <bruno@clisp.org>
38243
38244         * tests/test-file-has-acl.sh: Remove unused code.
38245
38246 2008-06-01  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38249         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38250         messages.
38251         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38252
38253 2008-06-01  Bruno Haible  <bruno@clisp.org>
38254
38255         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38256         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38257         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38258         APIs.
38259         * modules/acl-tests (configure.ac): Remove tests now contained in
38260         m4/acl.m4.
38261
38262 2008-06-02  Jim Meyering  <meyering@redhat.com>
38263
38264         announce-gen: use a better key-server host name
38265         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38266         it may be more consistently reliable.  Suggested by Werner Koch
38267         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38268
38269 2008-06-01  Bruno Haible  <bruno@clisp.org>
38270
38271         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38272         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38273
38274 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38275
38276         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38277
38278 2008-06-01  Bruno Haible  <bruno@clisp.org>
38279
38280         New ACL tests.
38281         * tests/test-file-has-acl.sh: New file.
38282         * tests/test-file-has-acl.c: New file.
38283         * tests/test-set-mode-acl.sh: New file.
38284         * tests/test-set-mode-acl.c: New file.
38285         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38286         * tests/test-copy-acl.c: New file.
38287         * modules/acl-tests: New file, based on modules/copy-file-tests.
38288         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38289         (Depends-on): Add acl-tests.
38290         (configure.ac): Remove checks.
38291         (Makefile.am): Don't create test-sameacls program here any more.
38292
38293 2008-06-01  Bruno Haible  <bruno@clisp.org>
38294
38295         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38296         * tests/test-sameacls.c: Include progname.h.
38297         (main): Invoke set_program_name. Portability fixes for MacOS X,
38298         Solaris, HP-UX.
38299
38300 2008-06-01  Bruno Haible  <bruno@clisp.org>
38301
38302         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38303         function.
38304         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38305
38306 2008-06-01  Bruno Haible  <bruno@clisp.org>
38307
38308         * modules/rpmatch (Depends-on): Add strdup.
38309
38310 2008-06-01  Bruno Haible  <bruno@clisp.org>
38311
38312         * lib/pipe.c: Include unistd-safer.h.
38313         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38314         * modules/pipe (Depends-on): Add unistd-safer.
38315
38316 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38317
38318         * modules/autobuild (configure.ac): Call AB_INIT.
38319
38320 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38321
38322         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38323         Suggested by Bruno Haible <bruno@clisp.org>.
38324
38325 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38326
38327         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38328         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38329         <bruno@clisp.org>.
38330
38331 2008-05-29  Eric Blake  <ebb9@byu.net>
38332
38333         Prefer new POSIX 200x interfaces over futimesat.
38334         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38335         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38336         when available.
38337         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38338
38339 2008-05-28  Bruno Haible  <bruno@clisp.org>
38340
38341         * modules/stpcpy (License): Change to LGPLv2+.
38342         Requested by David Lutterkort <dlutter@redhat.com>.
38343
38344 2008-05-27  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38347         current mingw.
38348         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38349
38350 2008-05-27  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/iconv_open (Link): New section, from module 'iconv'.
38353         * modules/striconv (Link): Likewise.
38354         * modules/striconveh (Link): Likewise.
38355         * modules/xstriconv (Link): Likewise.
38356         * modules/unicodeio (Link): Likewise.
38357         * modules/propername (Link): Likewise.
38358         Reported by Jim Meyering.
38359
38360 2008-05-26  Jim Meyering  <meyering@redhat.com>
38361
38362         sha256: do not artificially restrict buffer length to be < 2^32
38363         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38364         uint32_t to size_t.
38365         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38366         to match.
38367
38368         avoid unaligned access errors, e.g., on sparc
38369         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38370         direct access through a possibly-unaligned uint64* pointer.
38371         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38372         direct access through a possibly-unaligned uint32* pointer.
38373         Prompted by this patch from Tom "spot" Callaway:
38374         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38375
38376         sha512.c: fix typo in comment
38377         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38378
38379 2008-05-25  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38382         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38383         (Makefile.am): Update lib_SOURCES.
38384
38385 2008-05-25  Bruno Haible  <bruno@clisp.org>
38386
38387         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38388
38389 2008-05-25  Jim Meyering  <meyering@redhat.com>
38390
38391         useless-if-before-free: freed expr may have white-space differences
38392         * build-aux/useless-if-before-free: Recognize cases in which the
38393         freed expression differs from the tested one in embedded white
38394         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38395         $1 was used, so we can't make any regexp shy.  Improved tests now
38396         detect this.
38397
38398         useless-if-before-free: accept white space in the expression.
38399         * build-aux/useless-if-before-free: For now, any white space
38400         in the expression must be identical in the free argument.
38401
38402         useless-if-before-free: efficiency tweak
38403         * build-aux/useless-if-before-free: Make the expression-matching
38404         regexp "shy".
38405         Make the *outer* regexp shy, not the expr-matching one.
38406
38407         update code-in-comment to accept cast of free arg
38408         * build-aux/useless-if-before-free: Update regexp.
38409
38410 2008-05-25  Bruno Haible  <bruno@clisp.org>
38411
38412         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38413         * modules/copy-file-tests (Files, Makefile.am): Update.
38414         * tests/test-copy-file.c (func_test_copy): Update.
38415
38416 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38417
38418         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38419
38420 2008-05-23  Bruno Haible  <bruno@clisp.org>
38421
38422         Improve support for ACLs on OSF/1.
38423         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38424         Remove fallback for unknown flavors of ACLs.
38425
38426 2008-05-22  Bruno Haible  <bruno@clisp.org>
38427
38428         Add support for ACLs on OSF/1.
38429         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38430         replacements.
38431         (acl_free_text): New macro fallback.
38432         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38433         acl_free.
38434         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38435         acl_free_text function. Require AC_C_INLINE.
38436
38437 2008-05-22  Bruno Haible  <bruno@clisp.org>
38438
38439         Make copy_acl work on MacOS X 10.5.
38440         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38441         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38442         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38443         If MODE_INSIDE_ACL, don't assume that every system has the same text
38444         representation for ACLs as FreeBSD.
38445         * lib/copy-acl.c (copy_acl): Add support for platforms with
38446         !MODE_INSIDE_ACL.
38447         * lib/file-has-acl.c (file_has_acl): Likewise.
38448         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38449         FreeBSD, MacOS X, or IRIX, respectively.
38450
38451 2008-05-22  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/acl.h: Don't include <sys/acl.h>.
38454         (GETACLCNT): Move fallback to lib/acl-internal.h.
38455         * lib/acl-internal.h: Include <sys/acl.h> here.
38456         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38457
38458 2008-05-22  Bruno Haible  <bruno@clisp.org>
38459
38460         Split off copy_acl function to separate file.
38461         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38462         * lib/acl.c (copy_acl): Moved function to separate file.
38463         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38464         * modules/acl (Files): Add lib/copy-acl.c.
38465         (Makefiles.am): Augment lib_SOURCES.
38466
38467 2008-05-22  Bruno Haible  <bruno@clisp.org>
38468
38469         * modules/copy-file-tests: New file.
38470         * tests/test-copy-file.sh: New file.
38471         * tests/test-copy-file.c: New file.
38472         * tests/test-copy-file-sameacls.c: New file.
38473
38474 2008-05-22  Eric Blake  <ebb9@byu.net>
38475
38476         Avoid gcc warning.
38477         * tests/test-memcmp.c (main): Pass NULL indirectly.
38478
38479 2008-05-21  Bruno Haible  <bruno@clisp.org>
38480
38481         Add reference doc about ACLs.
38482         * doc/acl-resources.txt: New file.
38483         * doc/acl-cygwin.txt: New file.
38484
38485 2008-05-21  Bruno Haible  <bruno@clisp.org>
38486
38487         Avoid one more warning from gcc.
38488         * lib/vasnprintf.c (IF_LINT): Update comments.
38489         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38490
38491 2008-05-21  Jim Meyering  <meyering@redhat.com>
38492
38493         avoid a warning from gcc
38494         * lib/vasnprintf.c (IF_LINT): Define.
38495         (scale10_round_decimal_long_double):
38496         Use it to avoid a "may be used uninitialized" warning.
38497         (scale10_round_decimal_double): Likewise.
38498
38499 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38500
38501         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38502         declared.
38503
38504 2008-05-20  Bruno Haible  <bruno@clisp.org>
38505
38506         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38507         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38508
38509 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38510
38511         * modules/memcmp-tests: New file.
38512         * tests/test-memcmp.c: New file.
38513
38514 2008-05-19  Bruno Haible  <bruno@clisp.org>
38515
38516         * modules/propername (Notice, configure.ac): Put quoted "..." into
38517         --keyword option.
38518         * lib/propername.h: Update comments accordingly.
38519         Reported by Eric Blake.
38520
38521 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38522
38523         * modules/getpass-gnu (Depends-on): Add fseeko.
38524
38525 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38526
38527         * modules/base64-tests: New file.
38528
38529 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38530
38531         * lib/base64.c (base64_decode_ctx): If a decode context structure
38532         was passed in use it to ignore newlines.  If a context structure
38533         was _not_ passed in, continue to treat newlines as garbage (this
38534         is the historical behavior).  Formerly base64_decode.
38535         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38536         takes a decode context structure.
38537         * lib/base64.h (base64_decode): Macro for four-argument calls.
38538         (base64_decode_alloc): Likewise.
38539         * lib/base64.c (base64_decode_ctx): If a decode context structure
38540         was passed in use it to ignore newlines.  If a context structure
38541         was _not_ passed in, continue to treat newlines as garbage (this
38542         is the historical behavior).  Formerly base64_decode.
38543         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38544         takes a decode context structure.
38545         * lib/base64.h (base64_decode): Macro for four-argument calls.
38546         (base64_decode_alloc): Likewise.
38547
38548 2008-05-19  Jim Meyering  <meyering@redhat.com>
38549
38550         avoid a warning from gcc
38551         * lib/trim.c (IF_LINT): Define.
38552         (trim2): Use it to avoid a "may be used uninitialized" warning.
38553
38554         Fix doc typo.
38555         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38556
38557 2008-05-19  Bruno Haible  <bruno@clisp.org>
38558
38559         * doc/glibc-functions/getpass.texi: Document limits of other
38560         implementations.
38561
38562 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38563             Bruno Haible <bruno@clisp.org>
38564
38565         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38566
38567 2008-05-18  Bruno Haible  <bruno@clisp.org>
38568
38569         * modules/propername: New file, from GNU gettext.
38570         * lib/propername.h: New file, from GNU gettext.
38571         * lib/propername.c: New file, from GNU gettext.
38572         * MODULES.html.sh (Internationalization functions): Add propername.
38573
38574 2008-05-16  Jim Meyering  <meyering@redhat.com>
38575             Bruno Haible  <bruno@clisp.org>
38576
38577         Avoid some warnings from "gcc -Wshadow".
38578         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38579
38580 2008-05-15  Eric Blake  <ebb9@byu.net>
38581
38582         Extend previous patch to cygwin 1.7.0.
38583         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38584         fast implementation in cygwin >= 1.7.0.
38585         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38587
38588 2008-05-15  Bruno Haible  <bruno@clisp.org>
38589
38590         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38591         implementation in glibc >= 2.9.
38592         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38594
38595 2008-05-15  Bruno Haible  <bruno@clisp.org>
38596
38597         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38598         (Unicode string functions): Add unilbrk/*.
38599         Reported by Karl Berry.
38600
38601 2008-05-15  Eric Blake  <ebb9@byu.net>
38602
38603         Fix violation of <stdbool.h> replacement in regex.
38604         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38605         * lib/regexec.c (re_search_internal): Likewise.
38606         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38607
38608 2008-05-15  Jim Meyering  <meyering@redhat.com>
38609
38610         avoid distracting test output when git or cvs is not found
38611         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38612         * tests/test-vc-list-files-git.sh: Likewise.
38613
38614 2008-05-15  Eric Blake  <ebb9@byu.net>
38615
38616         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38617         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38618         glibc version.
38619         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38620         * doc/posix-functions/strstr.texi (strstr): Likewise.
38621         * lib/str-two-way.h (MAX): Sychronize with glibc.
38622
38623 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38624
38625         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38626         opr.ctx_type.
38627         (calc_first): Initialize constraint field.
38628         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38629         Fix grammar.
38630         (duplicate_node): Merge constraint field for all node types.
38631         (calc_eclosure_iter): Look at constraint field for all node types.
38632         * lib/regex_internal.c (create_cd_newstate): Don't look at
38633         opr.ctx_type.
38634
38635 2008-05-14  Bruno Haible  <bruno@clisp.org>
38636
38637         Help GCC to do better code generation.
38638         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38639         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38640         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38641         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38642         Declare with attribute 'malloc' if supported.
38643
38644 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38645
38646         use "echo STR|wc -c" rather than unportable "expr length STR"
38647         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38648         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38649
38650 2008-05-14  Jim Meyering  <meyering@redhat.com>
38651
38652         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38653         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38654         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38655         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38656         via Collin Lasse.
38657
38658 2008-05-14  Eric Blake  <ebb9@byu.net>
38659
38660         Avoid quadratic growth in gl_LIBSOURCES.
38661         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38662         Suggested by Bruno Haible.
38663
38664         Test xmemdup0.
38665         * modules/xmemdup0-tests: New file.
38666         * tests/test-xmemdup0.c: Likewise.
38667
38668 2008-05-13  Eric Blake  <ebb9@byu.net>
38669
38670         Split xmemdup0 into its own module.
38671         * modules/xmemdup0: New file.
38672         * lib/xmemdup0.h: Likewise.
38673         * lib/xmemdup0.c: Likewise.
38674         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38675         * lib/xalloc.h (xmemdup0): Remove.
38676         * lib/xmalloc.c (xmemdup0): Likewise.
38677
38678 2008-05-13  Eric Blake  <ebb9@byu.net>
38679             Bruno Haible  <bruno@clisp.org>
38680
38681         Reduce number of forks required during autoconf.
38682         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38683         and gl_LIBSOURCES_DIR.
38684         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38685         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38686         m4_syscmd per file.
38687         <m4_foreach_w>: Move...
38688         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38689
38690 2008-05-13  Eric Blake  <ebb9@byu.net>
38691
38692         * gnulib-tool: Fix various comment typos.
38693
38694 2008-05-12  Bruno Haible  <bruno@clisp.org>
38695
38696         Tailor the linebreaking algorithm.
38697         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38698
38699 2008-05-12  Bruno Haible  <bruno@clisp.org>
38700
38701         Update to Unicode 5.0.0.
38702         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38703         LBP_JV, LBP_JT. Redistribute values.
38704         (unilbrk_table): Change size.
38705         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38706         Unicode TR#14 rev. 22.
38707         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38708         LBP_JV, LBP_JT. Redistribute values.
38709         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38710         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38711         Update.
38712         * lib/unilbrk/lbrkprop1.h: Regenerated.
38713         * lib/unilbrk/lbrkprop2.h: Regenerated.
38714         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38715         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38716         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38717         Likewise.
38718         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38719         Likewise.
38720         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38721         result.
38722         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38723         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38724         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38725         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38726         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38727         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38728
38729 2008-05-11  Bruno Haible  <bruno@clisp.org>
38730
38731         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38732
38733 2008-05-11  Bruno Haible  <bruno@clisp.org>
38734
38735         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38736         * modules/unilbrk/gen-lbrk: New file.
38737
38738 2008-05-11  Bruno Haible  <bruno@clisp.org>
38739
38740         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38741         * m4/sha512.m4 (gl_SHA512): Likewise.
38742
38743 2008-05-11  Jim Meyering  <meyering@redhat.com>
38744
38745         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38746         * modules/crypto/sha256: New file.
38747         * modules/crypto/sha512: Likewise.
38748         * lib/sha256.c: Likewise.
38749         * lib/sha256.h: Likewise.
38750         * lib/sha512.c: Likewise.
38751         * lib/sha512.h: Likewise.
38752         * lib/u64.h: Likewise.
38753         * m4/sha256.m4: Likewise.
38754         * m4/sha512.m4: Likewise.
38755         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38756
38757 2008-05-10  Bruno Haible  <bruno@clisp.org>
38758
38759         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38760         (Input/Output <stdio.h>): Add xprintf.
38761         (Signal handling <signal.h>): Add strsignal.
38762         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38763         (Core language properties): Add func.
38764         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38765         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38766         strings.
38767         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38768         (Input/output): New section.
38769         (File system functions): Add openat-die, stat-macros.
38770         (Networking functions): Add sockets.
38771         (Unicode string functions): Add unictype/*.
38772         (Support for building libraries and executables): Add gperf.
38773         (Support for building documentation): Add agpl-3.0.
38774         (Misc): Add nocrash.
38775
38776 2008-05-10  Bruno Haible  <bruno@clisp.org>
38777
38778         * modules/unictype/gen-ctype: New file.
38779
38780 2008-05-10  Jim Meyering  <meyering@redhat.com>
38781
38782         Make chdir-safer.c more efficient on a system with no symlinks.
38783         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38784         also if ELOOP is zero.  Suggested by Bruno Haible.
38785
38786         Make chdir-safer.c slightly safer.
38787         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38788         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38789
38790         Avoid compile failure on systems without ELOOP (like mingw).
38791         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38792         Reported by Bruno Haible.
38793
38794 2008-05-10  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38797         (is_utf8_encoding): Use a case-insensitive comparison.
38798         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38799         streq.
38800
38801 2008-05-10  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38804         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38805         * lib/unilbrk/ulc-common.h (iconv_string_length,
38806         iconv_string_keeping_offsets): Remove declarations.
38807         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38808         Don't include <iconv.h>, streq.h, xsize.h.
38809         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38810         conversion.
38811         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38812         <iconv.h>, streq.h, xsize.h.
38813         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38814         conversion.
38815         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38816         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38817         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38818         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38819
38820 2008-05-10  Bruno Haible  <bruno@clisp.org>
38821
38822         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38823         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38824
38825         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38826         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38827
38828         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38829         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38830
38831         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38832         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38833
38834         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38835         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38836
38837         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38838         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38839
38840         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38841         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38842
38843         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38844         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38845
38846 2008-05-10  Bruno Haible  <bruno@clisp.org>
38847
38848         Split up 'linebreak' module.
38849         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38850         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38851         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38852         modifications.
38853         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38854         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38855         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38856         lib/linebreak.c.
38857         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38858         lib/linebreak.c.
38859         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38860         lib/linebreak.c.
38861         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38862         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38863         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38864         lib/linebreak.c.
38865         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38866         lib/linebreak.c.
38867         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38868         lib/linebreak.c.
38869         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38870         lib/linebreak.c.
38871         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38872         lib/linebreak.c.
38873         * modules/unilbrk/base: New file.
38874         * modules/unilbrk/tables: New file.
38875         * modules/unilbrk/u8-possible-linebreaks: New file.
38876         * modules/unilbrk/u16-possible-linebreaks: New file.
38877         * modules/unilbrk/u32-possible-linebreaks: New file.
38878         * modules/unilbrk/ulc-common: New file.
38879         * modules/unilbrk/ulc-possible-linebreaks: New file.
38880         * modules/unilbrk/u8-width-linebreaks: New file.
38881         * modules/unilbrk/u16-width-linebreaks: New file.
38882         * modules/unilbrk/u32-width-linebreaks: New file.
38883         * modules/unilbrk/ulc-width-linebreaks: New file.
38884         * lib/linebreak.h: Remove file.
38885         * lib/linebreak.c: Remove file.
38886         * m4/linebreak.m4: Remove file.
38887         * modules/linebreak: Remove file.
38888         * NEWS: Mention the changes.
38889
38890 2008-05-09  Eric Blake  <ebb9@byu.net>
38891
38892         Add xmemdup0.
38893         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38894         implementation.
38895         * lib/xmalloc.c (xmemdup0): New C implementation.
38896
38897 2008-05-08  Bruno Haible  <bruno@clisp.org>
38898
38899         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38900
38901 2008-05-07  Eric Blake  <ebb9@byu.net>
38902
38903         Support cross-compilation of <wctype.h>.
38904         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38905         AC_CACHE_CHECK.
38906
38907 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38908
38909         * build-aux/vc-list-files: Add support for bzr.
38910
38911 2008-05-03  Jim Meyering  <meyering@redhat.com>
38912
38913         avoid failed assertion with tight malloc
38914         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38915
38916 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38917
38918         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38919         are needed from arpa/inet.h.
38920         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38921         Reported by Bruno Haible.
38922
38923 2008-05-02  Jim Meyering  <meyering@redhat.com>
38924
38925         avoid compilation error on FreeBSD 6
38926         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38927
38928 2008-05-01  Jim Meyering  <meyering@redhat.com>
38929
38930         useless-if-before-free: correct --help's exit status description
38931         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38932         for one or more matches, etc.  Reported by Bruno Haible.
38933
38934         vc-list-files: make the stand-alone gnulib test work
38935         * modules/vc-list-files-tests (configure.ac):
38936         Define and AC_SUBST abs_aux_dir.
38937         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38938         $(abs_top_srcdir) to each script and having each of them
38939         duplicate the work of setting PATH, set PATH here, using
38940         the new variable, abs_aux_dir instead.
38941         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38942         * tests/test-vc-list-files-git.sh: Likewise.
38943         Reported by Bruno Haible.
38944
38945 2008-05-01  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38948         reallocation. Rename 'done' to 'found_delimiter'.
38949
38950 2008-05-01  Jim Meyering  <meyering@redhat.com>
38951
38952         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38953         * build-aux/vc-list-files: Use `...`, not $(...).
38954
38955 2008-04-30  Jim Meyering  <meyering@redhat.com>
38956
38957         add tests for vc-list-files
38958         * modules/vc-list-files-tests: New module.
38959         * tests/test-vc-list-files-cvs.sh: New file.
38960         * tests/test-vc-list-files-git.sh: New file.
38961
38962         avoid a warning from gcc
38963         * lib/getndelim2.c (IF_LINT): Define.
38964         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38965
38966         vc-list-files: work properly with build-aux/cvsu, too
38967         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38968         to all cvs-based clauses.
38969
38970         vc-list-files: work properly in the CVS+awk case, too
38971         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38972
38973         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38974         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38975         take more than one file argument, so .  Add quotes, just in case $dir
38976         ever contains a shell meta-character.  Prompted by Soren Hansen in
38977         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38978
38979 2008-04-29  Eric Blake  <ebb9@byu.net>
38980
38981         Optimize getndelim2 to use block operations when possible.
38982         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38983         freadseek, and memchr2.
38984         * lib/getndelim2.c (getndelim2): Use them for block reads.
38985
38986 2008-04-29  Bruno Haible  <bruno@clisp.org>
38987
38988         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38989         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38990         * modules/inet_ntop (Depends-on): Add extensions.
38991         * modules/inet_pton (Depends-on): Likewise.
38992         Reported by Simon Josefsson.
38993
38994 2008-04-29  Jim Meyering  <meyering@redhat.com>
38995
38996         When the is more than one match in a block, match all of them.
38997         * build-aux/useless-if-before-free: Iterate through each block
38998         until there are no more matches.
38999
39000         Fix broken useless-if-before-free script.
39001         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39002         the expression to match cast of argument to free-like function.
39003
39004 2008-04-29  Eric Blake  <ebb9@byu.net>
39005
39006         Use new header.
39007         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39008
39009 2008-04-29  Jim Meyering  <meyering@redhat.com>
39010
39011         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39012         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39013         by gnulib to exist and to declare e.g., inet_ntop.
39014         Don't include "inet_ntop.h", now removed.
39015
39016         * m4/arpa_inet_h.m4: Remove trailing blanks.
39017
39018 2008-04-29  Eric Blake  <ebb9@byu.net>
39019
39020         Silence valgrind on safe reads beyond potential array bounds.
39021         * lib/rawmemchr.valgrind: New file.
39022         * lib/strchrnul.valgrind: Likewise.
39023         * modules/rawmemchr (Files): Distribute new file.
39024         * modules/strchrnul (Files): Likewise.
39025         Suggested by Bruno Haible.
39026
39027 2008-04-29  Bruno Haible  <bruno@clisp.org>
39028
39029         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39030         (inet_ntop, inet_pton): Change portability warning's wording.
39031         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39032         Invoke gl_CHECK_NEXT_HEADERS.
39033         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39034         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39035         set ARPA_INET_H.
39036         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39037         * modules/arpa_inet (Description): No longer only for systems that
39038         lack it.
39039         (Depends-on): Add include_next.
39040         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39041         HAVE_ARPA_INET_H.
39042
39043 2008-04-29  Jim Meyering  <meyering@redhat.com>
39044
39045         * modules/mkdir (License): Re-license as LGPLv2+.
39046
39047 2008-04-29  Bruno Haible  <bruno@clisp.org>
39048
39049         * modules/rawmemchr (Maintainer): Set to Eric.
39050         * modules/strchrnul (Maintainer): Likewise.
39051
39052 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39053
39054         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39055         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39056
39057         * modules/arpa_inet (arpa/inet.h): Use them.
39058
39059 2008-04-28  Eric Blake  <ebb9@byu.net>
39060
39061         Test getndelim2.
39062         * modules/getndelim2-tests: New file.
39063         * tests/test-getndelim2.c: Likewise.
39064         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39065         stream.
39066         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39067
39068         * MODULES.html.sh: Document new module.
39069
39070 2008-04-20  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/c-stack.c (die): Use raise.
39073         * modules/c-stack (Depends-on): Add raise.
39074
39075 2008-04-28  Bruno Haible  <bruno@clisp.org>
39076
39077         Expect rpmatch to be declared.
39078         * lib/yesno.c (rpmatch): Remove declaration.
39079
39080         Declare rpmatch.
39081         * lib/stdlib.in.h (rpmatch): New declaration.
39082         * lib/rpmatch.c: Include <stdlib.h> first.
39083         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39084         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39086         HAVE_RPMATCH.
39087         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39089         (Include): Set to <stdlib.h>.
39090         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39091         HAVE_RPMATCH.
39092         * NEWS: Document the change.
39093
39094 2008-04-28  Bruno Haible  <bruno@clisp.org>
39095
39096         Change rpmatch to use nl_langinfo when appropriate.
39097         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39098         (N_): New macro.
39099         (localized_pattern): New function/macro.
39100         (try): Remove match, nomatch arguments. Copy the pattern into safe
39101         memory before caching it.
39102         (rpmatch): Use localized_pattern. Add translator comments.
39103         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39104         Suggested by Eric Blake.
39105         * modules/rpmatch (Depends-on): Add stdbool.
39106
39107 2008-04-28  Eric Blake  <ebb9@byu.net>
39108
39109         Add rawmemchr module, matching glibc.
39110         * modules/string (Makefile.am): New indicator.
39111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39112         * lib/string.in.h (rawmemchr): Declare when appropriate.
39113         * modules/rawmemchr: New file.
39114         * m4/rawmemchr.m4: Likewise.
39115         * lib/rawmemchr.c: Likewise.
39116         * modules/rawmemchr-tests: Likewise.
39117         * tests/test-rawmemchr.c: Likewise.
39118         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39119         module.
39120         * modules/strchrnul (Depends-on): Add rawmemchr.
39121         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39122
39123         Whitespace cleanup.
39124         * tests/test-strchrnul.c: Reindent.
39125         * lib/strchrnul.c: Likewise.
39126
39127         Optimize and test strchrnul.
39128         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39129         * modules/strchrnul-tests: New file.
39130         * tests/test-strchrnul.c: Likewise.
39131
39132         Remove intprops dependency.
39133         * modules/memchr (Depends-on): Remove intprops.
39134         * modules/memrchr (Depends-on): Likewise.
39135         * modules/memchr2 (Depends-on): Likewise.
39136         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39137         * lib/memrchr.c (__memrchr): Likewise.
39138         * lib/memrchr2.c (memchr2): Likewise.
39139         Reported by Simon Josefsson.
39140
39141 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39142
39143         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39144         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39145
39146 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39147
39148         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39149
39150         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39151
39152         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39153
39154         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39155         declarations.
39156         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39157
39158         * m4/inet_pton.m4: Don't check for header files.
39159
39160         * m4/inet_ntop.m4: Don't check for header files.
39161
39162 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39163
39164         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39165         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39166         trigger for cygwin).
39167         Reported by Bruno Haible  <bruno@clisp.org>.
39168
39169 2008-04-28  Bruno Haible  <bruno@clisp.org>
39170
39171         * doc/posix-functions/strdup.texi: Mention mingw problem.
39172
39173 2008-04-27  Bruno Haible  <bruno@clisp.org>
39174
39175         * modules/stat-time-tests (Depends-on): Add sleep.
39176         * tests/test-stat-time.c (force_unlink): New function.
39177         (cleanup): Use it.
39178         (test_mtime): Remove the ctime related tests.
39179         (test_ctime): New function, containing the ctime related tests.
39180         (main): Call test_ctime, except on native Windows platforms.
39181
39182 2008-04-27  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/rpmatch.c (rpmatch): Add some comments.
39185         Reported by James Youngman <jay@gnu.org>.
39186
39187 2008-04-27  Bruno Haible  <bruno@clisp.org>
39188
39189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39190         quiet NaNs.
39191
39192 2008-04-27  Bruno Haible  <bruno@clisp.org>
39193
39194         Make test-yesno.sh work on mingw.
39195         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39196         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39197         (main): Set stdin to binary mode.
39198         * modules/yesno-tests (Depends-on): Add binary-io.
39199
39200 2008-04-27  Bruno Haible  <bruno@clisp.org>
39201
39202         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39203         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39204         argument that lie outside the IEEE 854 domain.
39205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39206         (gl_ISFINITE): Use it.
39207         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39208
39209 2008-04-27  Bruno Haible  <bruno@clisp.org>
39210
39211         Allow local renaming in config.h.
39212         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39213
39214 2008-04-27  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/memchr.c (__memchr): Change type of 'i'.
39217         * lib/memchr2.c (memchr2): Likewise.
39218
39219 2008-04-26  Eric Blake  <ebb9@byu.net>
39220         and Bruno Haible  <bruno@clisp.org>
39221
39222         Optimize and test memrchr.
39223         * modules/memrchr (Depends-on): Add intprops.
39224         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39225         * modules/memrchr-tests: New file.
39226         * tests/test-memrchr.c: New file.
39227
39228 2008-04-26  Bruno Haible  <bruno@clisp.org>
39229
39230         Add tentative support for DragonFly BSD.
39231         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39232         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39233         fp.
39234         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39235         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39236         * lib/fpurge.c (fpurge): Likewise.
39237         * lib/freadable.c (freaadable): Likewise.
39238         * lib/freadahead.c (freadahead): Likewise.
39239         * lib/freading.c (freading): Likewise.
39240         * lib/freadptr.c (freadptr): Likewise.
39241         * lib/freadseek.c (freadptrinc): Likewise.
39242         * lib/fseeko.c (fseeko): Likewise.
39243         * lib/fseterr.c (fseterr): Likewise.
39244         * lib/fwritable.c (fwritable): Likewise.
39245         * lib/fwriting.c (fwriting): Likewise.
39246
39247 2008-04-26  Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/stdio-impl.h: New file.
39250         * lib/fbufmode.c: Include stdio-impl.h.
39251         (fbufmode): Use fp_, remove redundant #defines.
39252         * lib/fflush.c: Include stdio-impl.h.
39253         (clear_ungetc_buffer): Remove redundant #defines.
39254         * lib/fpurge.c: Include stdio-impl.h.
39255         (fpurge): Remove redundant #defines.
39256         * lib/freadable.c: Include stdio-impl.h.
39257         (freadable): Remove redundant #defines.
39258         * lib/freadahead.c: Include stdio-impl.h.
39259         (freadahead): Remove redundant #defines.
39260         * lib/freading.c: Include stdio-impl.h.
39261         (freading): Remove redundant #defines.
39262         * lib/freadptr.c: Include stdio-impl.h.
39263         (freadptr): Remove redundant #defines.
39264         * lib/freadseek.c: Include stdio-impl.h.
39265         (freadptrinc): Remove redundant #defines.
39266         * lib/fseeko.c: Include stdio-impl.h.
39267         (rpl_fseeko): Remove redundant #defines.
39268         * lib/fseterr.c: Include stdio-impl.h.
39269         (fseterr): Remove redundant #defines.
39270         * lib/fwritable.c: Include stdio-impl.h.
39271         (fwritable: Remove redundant #defines.
39272         * lib/fwriting.c: Include stdio-impl.h.
39273         (fwriting): Remove redundant #defines.
39274         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39275         * modules/fflush (Files): Likewise.
39276         * modules/fpurge (Files): Likewise.
39277         * modules/freadable (Files): Likewise.
39278         * modules/freadahead (Files): Likewise.
39279         * modules/freading (Files): Likewise.
39280         * modules/freadptr (Files): Likewise.
39281         * modules/freadseek (Files): Likewise.
39282         * modules/fseeko (Files): Likewise.
39283         * modules/fseterr (Files): Likewise.
39284         * modules/fwritable (Files): Likewise.
39285         * modules/fwriting (Files): Likewise.
39286
39287 2008-04-26  Bruno Haible  <bruno@clisp.org>
39288
39289         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39290         restore_seek_optimization, update_fpos_cache): New functions, extracted
39291         from rpl_fflush.
39292         (rpl_fflush): Use them.
39293         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39294         (gl_REPLACE_FFLUSH): Use it.
39295
39296 2008-04-26  Bruno Haible  <bruno@clisp.org>
39297
39298         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39299         on Solaris.
39300         * tests/test-xstrtoimax.sh: Likewise.
39301         * tests/test-xstrtoumax.sh: Likewise.
39302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39303
39304 2008-04-26  Bruno Haible  <bruno@clisp.org>
39305
39306         * modules/memchr-tests: New file.
39307         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39308
39309 2008-04-26  Eric Blake  <ebb9@byu.net>
39310             Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/memchr.c: Include intprops.h.
39313         (__memchr): Optimize parallel detection of matching bytes. Rename local
39314         variables. Add explanatory comments.
39315
39316 2008-04-26  Bruno Haible  <bruno@clisp.org>
39317
39318         Fix module 'memchr', broken since 2000-10-28.
39319         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39320
39321 2008-04-26  Bruno Haible  <bruno@clisp.org>
39322
39323         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39324         comments.
39325
39326 2008-04-25  Eric Blake  <ebb9@byu.net>
39327
39328         Use native fstatat on cygwin 1.7.0.
39329         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39330         first.
39331
39332 2008-04-23  Eric Blake  <ebb9@byu.net>
39333
39334         Improve memchr2 performance.
39335         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39336         NUL bytes.
39337         * modules/memchr2 (Depends-on): Use intprops.h.
39338
39339 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39340
39341         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39342         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39343         <blp@cs.stanford.edu>.
39344
39345 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39346
39347         * lib/arpa_inet.in.h: New file.
39348
39349         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39350         (Makefile.am): Sed in substitute header file.
39351
39352         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39353         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39354
39355         * modules/inet_ntop (configure.ac): Use
39356         gl_ARPA_INET_MODULE_INDICATOR.
39357
39358         * modules/inet_pton (configure.ac): Use
39359         gl_ARPA_INET_MODULE_INDICATOR.
39360
39361 2008-04-22  Jim Meyering  <meyering@redhat.com>
39362
39363         * modules/verify (License): Re-license as LGPLv2+.
39364
39365 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39366
39367         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39368         parameter to void* as per POSIX standard (MinGW uses char*).
39369
39370 2008-04-21  Bruno Haible  <bruno@clisp.org>
39371
39372         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39373         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39374         Define to replacements if REPLACE_ISWCNTRL is 1.
39375         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39376         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39377         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39378         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39379         what it fixes.
39380         * doc/posix-functions/iswalpha.texi: Likewise.
39381         * doc/posix-functions/iswblank.texi: Likewise.
39382         * doc/posix-functions/iswcntrl.texi: Likewise.
39383         * doc/posix-functions/iswdigit.texi: Likewise.
39384         * doc/posix-functions/iswgraph.texi: Likewise.
39385         * doc/posix-functions/iswlower.texi: Likewise.
39386         * doc/posix-functions/iswprint.texi: Likewise.
39387         * doc/posix-functions/iswpunct.texi: Likewise.
39388         * doc/posix-functions/iswspace.texi: Likewise.
39389         * doc/posix-functions/iswupper.texi: Likewise.
39390         * doc/posix-functions/iswxdigit.texi: Likewise.
39391         Reported by Alain Guibert.
39392
39393 2008-04-21  Bruno Haible  <bruno@clisp.org>
39394
39395         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39396         Patch by Alain Guibert.
39397
39398 2008-04-21  Bruno Haible  <bruno@clisp.org>
39399
39400         Fix test failures on mingw.
39401         * tests/test-xstrtol.c (print_no_progname): New function.
39402         (main): Install it in error_print_progname hook.
39403         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39404         * tests/test-xstrtoimax.sh: Likewise.
39405         * tests/test-xstrtoumax.sh: Likewise.
39406
39407 2008-04-21  Bruno Haible  <bruno@clisp.org>
39408
39409         Fix test failure on mingw.
39410         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39411
39412 2008-04-21  Bruno Haible  <bruno@clisp.org>
39413
39414         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39415         Actually assign a value.
39416
39417 2008-04-20  Bruno Haible  <bruno@clisp.org>
39418
39419         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39420         take 2.
39421         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39422         'canonicalize-lgpl' module is also used.
39423         * lib/canonicalize-lgpl.c: Undo last change.
39424         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39425
39426 2008-04-20  Bruno Haible  <bruno@clisp.org>
39427
39428         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39429         config.h. Provide _mkdir based fallback for mingw.
39430         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39431         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39432         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39433         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39434         rather than defining mkdir in config.h.
39435         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39436         (gl_SYS_STAT_H_DEFAULTS): New macro.
39437         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39438         HAVE_IO_H any more.
39439         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39440         HAVE_DECL_MKDIR and HAVE_IO_H.
39441
39442 2008-04-20  Bruno Haible  <bruno@clisp.org>
39443
39444         * lib/isapipe.c: Port to native Windows platforms.
39445
39446 2008-04-20  Bruno Haible  <bruno@clisp.org>
39447
39448         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39449
39450 2008-04-21  Eric Blake  <ebb9@byu.net>
39451
39452         Work around preprocessors that don't handle UINTMAX_MAX.
39453         * lib/memchr2.c (memchr2): Avoid embedded #if.
39454         Reported by Alain Guibert, fix suggested by Bruno Haible.
39455
39456 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39457
39458         * doc/posix-functions/strftime.texi (strftime): Explain better
39459         Windows incompatibility.  Suggested by Micah Cowan
39460         <micah@cowan.name>.
39461
39462 2008-04-20  Bruno Haible  <bruno@clisp.org>
39463
39464         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39465         unistr/u8-mblen.
39466
39467 2008-04-20  Bruno Haible  <bruno@clisp.org>
39468
39469         Fix test failure on platforms with non-GNU iconv.
39470         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39471         (U_TO_U8): Use it, rather than u16_to_u8.
39472         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39473         units at the end of the input string.
39474         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39475
39476 2008-04-20  Bruno Haible  <bruno@clisp.org>
39477
39478         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39479         when the resulting length is 0.
39480         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39481
39482 2008-04-20  Bruno Haible  <bruno@clisp.org>
39483
39484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39485         works.
39486         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39487
39488 2008-04-20  Bruno Haible  <bruno@clisp.org>
39489
39490         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39491         * modules/tsearch-tests (configure.ac): Test for initstate function.
39492
39493 2008-04-20  Bruno Haible  <bruno@clisp.org>
39494
39495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39496         for nlink_t if missing.
39497         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39498
39499 2008-04-19  Bruno Haible  <bruno@clisp.org>
39500
39501         Work around snprintf bug on Linux libc5.
39502         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39504         gl_SNPRINTF_SIZE1.
39505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39506         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39507         that test failed.
39508         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39509         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39510         * modules/snprintf (Files): Add m4/printf.m4.
39511         * modules/vsnprintf (Files): Likewise.
39512         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39513         * doc/posix-functions/vsnprintf.texi: Likewise.
39514
39515 2008-04-19  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39518         from 0.0058 to less than 10^-7.
39519
39520 2008-04-19  Bruno Haible  <bruno@clisp.org>
39521
39522         Fix rounding when a precision is given.
39523         * lib/vasnprintf.c (is_borderline): New function.
39524         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39525         9...9x.
39526         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39527         %e, %g.
39528         * tests/test-vasprintf-posix.c (test_function): Likewise.
39529         * tests/test-snprintf-posix.h (test_function): Likewise.
39530         * tests/test-sprintf-posix.h (test_function): Likewise.
39531         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39532         * tests/test-printf-posix.h (test_function): Likewise.
39533         * tests/test-printf-posix.output: Update.
39534         Reported by John Darrington <john@darrington.wattle.id.au> via
39535         Ben Pfaff <blp@cs.stanford.edu>.
39536
39537 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39538
39539         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39540         Suggested by Bruno Haible <bruno@clisp.org>.
39541
39542 2008-04-17  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39545         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39546         implementation.
39547         Patch by Bruce Merry <bmerry@gmail.com>.
39548
39549 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39550
39551         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39552         doesn't work under Windows.
39553
39554 2008-04-16  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39557         New macros.
39558         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39559         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39560         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39561         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39562         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39563         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39564         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39565         macros.
39566         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39567         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39568         Northern Sotho, Uighur.
39569
39570 2008-04-16  Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39573         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39574         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39575         Reported by Daniel Bergström <daniel@octocode.com>.
39576
39577 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39578             Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39581         function.
39582         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39583         New functions, mostly extracted from gl_locale_name_default.
39584         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39585
39586 2008-04-16  Eric Blake  <ebb9@byu.net>
39587
39588         Adjust strtod detection to catch glibc 2.7 bug.
39589         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39590         Reported by John Gatewood Ham.
39591
39592 2008-04-16  Bruno Haible  <bruno@clisp.org>
39593
39594         Add tentative support for Linux libc5.
39595         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39596         * lib/fpurge.c (fpurge): Likewise.
39597         * lib/freadable.c (freadable): Likewise.
39598         * lib/freadahead.c (freadahead): Likewise.
39599         * lib/freading.c (freading): Likewise.
39600         * lib/freadptr.c (freadptr): Likewise.
39601         * lib/freadseek.c (freadptrinc): Likewise.
39602         * lib/fseeko.c (rpl_fseeko): Likewise.
39603         * lib/fseterr.c (fseterr): Likewise.
39604         * lib/fwritable.c (fwritable): Likewise.
39605         * lib/fwriting.c (fwriting): Likewise.
39606         Reported by Alain Guibert <alguibert+bts@free.fr>.
39607
39608 2008-04-15  Bruno Haible  <bruno@clisp.org>
39609
39610         * modules/mathl (configure.ac): Define module indicator.
39611
39612 2008-04-15  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/logl.c (logl): Remove unused variables.
39615
39616 2008-04-15  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39619         fails.
39620
39621 2008-04-15  Bruno Haible  <bruno@clisp.org>
39622
39623         * lib/trim.c (trim2): Fix argument of isspace() macro.
39624
39625 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39626
39627         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39628         to 0.
39629         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39630
39631 2008-04-14  Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39634         AC_LANG_PROGRAM argument.
39635         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39636         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39638         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39639         * m4/math_h.m4 (gl_MATH_H): Likewise.
39640         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39642         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39644         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39645         * m4/regex.m4 (gl_REGEX): Likewise.
39646         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39647         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39649         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39651         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39654
39655 2008-04-14  Jim Meyering  <meyering@redhat.com>
39656
39657         test-strtod: fix typos: s/abs/fabs/
39658         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39659
39660 2008-04-13  Bruno Haible  <bruno@clisp.org>
39661
39662         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39663         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39664         module is also used and while not building the reloc-wrapper.
39665
39666 2008-04-13  Bruno Haible  <bruno@clisp.org>
39667
39668         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39669
39670 2008-04-13  Bruno Haible  <bruno@clisp.org>
39671
39672         Fix AIX compilation failure introduced on 2008-04-02.
39673         * tests/test-frexp.c (exp): Undefine before redefining.
39674         * tests/test-frexpl.c (exp): Likewise.
39675
39676 2008-04-13  Bruno Haible  <bruno@clisp.org>
39677
39678         Work around a HP-UX stdio bug.
39679         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39680         * tests/test-ftello.c (main): Likewise.
39681         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39682         * doc/posix-functions/ftello.texi: Likewise.
39683
39684 2008-04-13  Bruno Haible  <bruno@clisp.org>
39685
39686         Make test-signbit pass on HP-UX/hppa.
39687         * tests/test-signbit.c (minus_zerol): New variable.
39688         (test_signbitl): Use it.
39689
39690 2008-04-13  Bruno Haible  <bruno@clisp.org>
39691
39692         Make truncl work on OSF/1 4.0.
39693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39694         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39695         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39697         HAVE_DECL_TRUNCL.
39698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39699         HAVE_DECL_TRUNCL.
39700         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39701
39702 2008-04-13  Bruno Haible  <bruno@clisp.org>
39703
39704         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39705
39706 2008-04-13  Bruno Haible  <bruno@clisp.org>
39707
39708         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39709         expression, so as to avoid HP-UX 11 cc compiler bug.
39710
39711 2008-04-13  Bruno Haible  <bruno@clisp.org>
39712
39713         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39714
39715 2008-04-13  Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/git-merge-changelog.c: Remove empty declaration outside of
39718         functions.
39719
39720 2008-04-13  Bruno Haible  <bruno@clisp.org>
39721
39722         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39723
39724 2008-04-13  Bruno Haible  <bruno@clisp.org>
39725
39726         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39727         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39729         also if it exists but lacks definitions of the SHUT_* macros.
39730         * modules/sys_socket (Description): Update.
39731         Reported by Elbert Pol <e.pol@chello.nl>.
39732
39733 2008-04-13  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/localcharset.c (OS2): Don't redefine if already defined.
39736         Reported by Elbert Pol <e.pol@chello.nl>.
39737
39738 2008-04-13  Bruno Haible  <bruno@clisp.org>
39739
39740         * lib/binary-io.h [__EMX__]: Include <io.h>.
39741         Reported by Elbert Pol <e.pol@chello.nl>.
39742
39743 2008-04-12  Bruno Haible  <bruno@clisp.org>
39744
39745         * lib/fpucw.h: Enable the definitions also for x86_64.
39746         Needed for NetBSD/x86_64.
39747         Reported by Thomas Klausner <tk@giga.or.at>.
39748
39749 2008-04-12  Bruno Haible  <bruno@clisp.org>
39750
39751         * tests/test-strtod.c: Include isnand.h.
39752         (main): Use isnand instead of isnan.
39753         Reported by Jim Meyering.
39754
39755 2008-04-12  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39758         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39759
39760 2008-04-12  Jim Meyering  <meyering@redhat.com>
39761
39762         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39763
39764 2008-04-12  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39767         Reported by Elbert Pol <e.pol@chello.nl>.
39768
39769 2008-04-12  Eric Blake  <ebb9@byu.net>
39770
39771         Work around Solaris 10 math.h bug.
39772         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39773         (gl_MATH_H_DEFAULTS): Set up default.
39774         * modules/math (Makefile.am): Replace new indicators.
39775         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39776         * tests/test-math.c (main): Test this.
39777         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39778         * doc/posix-headers/math.texi (math.h): Mention bug.
39779         Reported by Nelson H. F. Beebe and Jim Meyering.
39780
39781 2008-04-11  Bruno Haible  <bruno@clisp.org>
39782
39783         Adapt to future versions of Apple GCC.
39784         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39785         Reported by Peter O'Gorman <peter@pogma.com>.
39786
39787 2008-04-11  Bruno Haible  <bruno@clisp.org>
39788
39789         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39790
39791 2008-04-11  Bruno Haible  <bruno@clisp.org>
39792
39793         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39794
39795         * modules/getaddrinfo-tests (Makefile.am): Define
39796         test_getaddrinfo_LDADD.
39797
39798 2008-04-11  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39801         (init): Fix syntax error.
39802         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39803         is declared.
39804
39805 2008-04-11  Bruno Haible  <bruno@clisp.org>
39806
39807         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39808         * modules/glob (Depends-on): Add stdbool.
39809
39810 2008-04-11  Bruno Haible  <bruno@clisp.org>
39811
39812         * lib/trim.c: Include <string.h>.
39813
39814 2008-04-11  Eric Blake  <ebb9@byu.net>
39815
39816         Avoid compile failure on OS/2.
39817         * lib/regex_internal.h (internal_function): Disable optimization
39818         on OS/2 (__EMX__), where it caused compiler error.
39819         Reported by Elbert Pol.
39820
39821 2008-04-11  Bruno Haible  <bruno@clisp.org>
39822
39823         Flush the standard error stream before aborting. Needed on mingw.
39824         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39825         * tests/test-array_list.c (ASSERT): Likewise.
39826         * tests/test-array_oset.c (ASSERT): Likewise.
39827         * tests/test-avltree_list.c (ASSERT): Likewise.
39828         * tests/test-avltree_oset.c (ASSERT): Likewise.
39829         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39830         * tests/test-binary-io.c (ASSERT): Likewise.
39831         * tests/test-byteswap.c (ASSERT): Likewise.
39832         * tests/test-c-ctype.c (ASSERT): Likewise.
39833         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39834         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39835         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39836         * tests/test-c-strstr.c (ASSERT): Likewise.
39837         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39838         * tests/test-canonicalize.c (ASSERT): Likewise.
39839         * tests/test-carray_list.c (ASSERT): Likewise.
39840         * tests/test-ceilf1.c (ASSERT): Likewise.
39841         * tests/test-ceilf2.c (ASSERT): Likewise.
39842         * tests/test-ceill.c (ASSERT): Likewise.
39843         * tests/test-count-one-bits.c (ASSERT): Likewise.
39844         * tests/test-fbufmode.c (ASSERT): Likewise.
39845         * tests/test-fflush2.c (ASSERT): Likewise.
39846         * tests/test-floorf1.c (ASSERT): Likewise.
39847         * tests/test-floorf2.c (ASSERT): Likewise.
39848         * tests/test-floorl.c (ASSERT): Likewise.
39849         * tests/test-fopen.c (ASSERT): Likewise.
39850         * tests/test-fpending.c (ASSERT): Likewise.
39851         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39852         * tests/test-fpurge.c (ASSERT): Likewise.
39853         * tests/test-freadable.c (ASSERT): Likewise.
39854         * tests/test-freadahead.c (ASSERT): Likewise.
39855         * tests/test-freading.c (ASSERT): Likewise.
39856         * tests/test-freadptr.c (ASSERT): Likewise.
39857         * tests/test-freadptr2.c (ASSERT): Likewise.
39858         * tests/test-freadseek.c (ASSERT): Likewise.
39859         * tests/test-freopen.c (ASSERT): Likewise.
39860         * tests/test-frexp.c (ASSERT): Likewise.
39861         * tests/test-frexpl.c (ASSERT): Likewise.
39862         * tests/test-fseek.c (ASSERT): Likewise.
39863         * tests/test-fseeko.c (ASSERT): Likewise.
39864         * tests/test-fstrcmp.c (ASSERT): Likewise.
39865         * tests/test-ftell.c (ASSERT): Likewise.
39866         * tests/test-ftello.c (ASSERT): Likewise.
39867         * tests/test-func.c (ASSERT): Likewise.
39868         * tests/test-fwritable.c (ASSERT): Likewise.
39869         * tests/test-fwriting.c (ASSERT): Likewise.
39870         * tests/test-getdelim.c (ASSERT): Likewise.
39871         * tests/test-getline.c (ASSERT): Likewise.
39872         * tests/test-i-ring.c (ASSERT): Likewise.
39873         * tests/test-iconv-utf.c (ASSERT): Likewise.
39874         * tests/test-iconv.c (ASSERT): Likewise.
39875         * tests/test-isfinite.c (ASSERT): Likewise.
39876         * tests/test-isnand.c (ASSERT): Likewise.
39877         * tests/test-isnanf.c (ASSERT): Likewise.
39878         * tests/test-isnanl.h (ASSERT): Likewise.
39879         * tests/test-ldexpl.c (ASSERT): Likewise.
39880         * tests/test-linked_list.c (ASSERT): Likewise.
39881         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39882         * tests/test-localename.c (ASSERT): Likewise.
39883         * tests/test-lseek.c (ASSERT): Likewise.
39884         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39885         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39886         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39887         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39888         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39889         * tests/test-mbschr.c (ASSERT): Likewise.
39890         * tests/test-mbscspn.c (ASSERT): Likewise.
39891         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39892         * tests/test-mbspbrk.c (ASSERT): Likewise.
39893         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39894         * tests/test-mbsrchr.c (ASSERT): Likewise.
39895         * tests/test-mbsspn.c (ASSERT): Likewise.
39896         * tests/test-mbsstr1.c (ASSERT): Likewise.
39897         * tests/test-mbsstr2.c (ASSERT): Likewise.
39898         * tests/test-mbsstr3.c (ASSERT): Likewise.
39899         * tests/test-memchr2.c (ASSERT): Likewise.
39900         * tests/test-memmem.c (ASSERT): Likewise.
39901         * tests/test-open.c (ASSERT): Likewise.
39902         * tests/test-printf-frexp.c (ASSERT): Likewise.
39903         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39904         * tests/test-printf-posix.c (ASSERT): Likewise.
39905         * tests/test-quotearg.c (ASSERT): Likewise.
39906         * tests/test-rbtree_list.c (ASSERT): Likewise.
39907         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39908         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39909         * tests/test-round1.c (ASSERT): Likewise.
39910         * tests/test-roundf1.c (ASSERT): Likewise.
39911         * tests/test-roundl.c (ASSERT): Likewise.
39912         * tests/test-signbit.c (ASSERT): Likewise.
39913         * tests/test-sleep.c (ASSERT): Likewise.
39914         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39915         * tests/test-snprintf.c (ASSERT): Likewise.
39916         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39917         * tests/test-stat-time.c (ASSERT): Likewise.
39918         * tests/test-strcasestr.c (ASSERT): Likewise.
39919         * tests/test-strerror.c (ASSERT): Likewise.
39920         * tests/test-striconv.c (ASSERT): Likewise.
39921         * tests/test-striconveh.c (ASSERT): Likewise.
39922         * tests/test-striconveha.c (ASSERT): Likewise.
39923         * tests/test-strsignal.c (ASSERT): Likewise.
39924         * tests/test-strstr.c (ASSERT): Likewise.
39925         * tests/test-strtod.c (ASSERT): Likewise.
39926         * tests/test-trunc1.c (ASSERT): Likewise.
39927         * tests/test-trunc2.c (ASSERT): Likewise.
39928         * tests/test-truncf1.c (ASSERT): Likewise.
39929         * tests/test-truncf2.c (ASSERT): Likewise.
39930         * tests/test-truncl.c (ASSERT): Likewise.
39931         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39932         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39933         * tests/test-vasnprintf.c (ASSERT): Likewise.
39934         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39935         * tests/test-vasprintf.c (ASSERT): Likewise.
39936         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39937         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39938         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39939         * tests/test-vsnprintf.c (ASSERT): Likewise.
39940         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39941         * tests/test-wcwidth.c (ASSERT): Likewise.
39942         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39943         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39944         * tests/test-xvasprintf.c (ASSERT): Likewise.
39945         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39946         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39947         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39948         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39949         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39950         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39951         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39952         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39953         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39954         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39955         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39956         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39957         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39958         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39959         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39960         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39961         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39962         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39963         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39964         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39965         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39966         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39967         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39968         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39969         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39970         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39971         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39972         * tests/unictype/test-combining.c (ASSERT): Likewise.
39973         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39974         * tests/unictype/test-digit.c (ASSERT): Likewise.
39975         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39976         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39977         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39978         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39979         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39980         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39981         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39982         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39983         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39984         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39985         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39986         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39987         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39988         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39989         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39990         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39991         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39992         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39993         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39994         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39995         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39996         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39997         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39998         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39999         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40000         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40001         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40002         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40003         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40004         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40005         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40006         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40007         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40008         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40009         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40010         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40011         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40012         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40013         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40014         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40015         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40016         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40017         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40018         Reported by Eric Blake.
40019
40020 2008-04-11  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/wchar.in.h: Tweak comment.
40023
40024 2008-04-11  Bruno Haible  <bruno@clisp.org>
40025
40026         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40027         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40028         gl_COMMON.
40029         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40030
40031 2008-04-11  Bruno Haible  <bruno@clisp.org>
40032
40033         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40034
40035 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40036
40037         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40038         of attempting to use non-existing /dev/*random.  Based on patch
40039         from Adam Strzelecki <ono@java.pl> in
40040         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40041
40042 2008-04-08  Bruno Haible  <bruno@clisp.org>
40043
40044         Add tentative support for emx+gcc.
40045         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40046         * lib/fpurge.c (fpurge): Likewise.
40047         * lib/freadable.c (freadable): Likewise.
40048         * lib/freadahead.c (freadahead): Likewise.
40049         * lib/freading.c (freading): Likewise.
40050         * lib/freadptr.c (freadptr): Likewise.
40051         * lib/freadseek.c (freadptrinc): Likewise.
40052         * lib/fseeko.c (rpl_fseeko): Likewise.
40053         * lib/fseterr.c (fseterr): Likewise.
40054         * lib/fwritable.c (fwritable): Likewise.
40055         * lib/fwriting.c (fwriting): Likewise.
40056         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40057
40058 2008-04-09  Eric Blake  <ebb9@byu.net>
40059
40060         Avoid some autoconf warnings.
40061         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40062         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40063         * m4/afs.m4 (gl_AFS): Likewise.
40064         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40065         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40067         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40068         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40069         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40070         (AC_CHECK_DECLS_ONCE): Likewise.
40071         Rename file...
40072         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40073         gnulib-tool requires autoconf 2.59 or better.
40074         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40075
40076 2008-04-08  Eric Blake  <ebb9@byu.net>
40077
40078         Use 'git describe --match' if present (added in git 1.5.5).
40079         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40080         if possible.
40081
40082 2008-04-08  Bruno Haible  <bruno@clisp.org>
40083
40084         Add tentative support for OpenServer.
40085         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40086         _ptr, _cnt.
40087         * lib/fpurge.c (fpurge): Likewise.
40088         * lib/freadable.c (freadable): Likewise.
40089         * lib/freadahead.c (freadahead): Likewise.
40090         * lib/freading.c (freading): Likewise.
40091         * lib/freadptr.c (freadptr): Likewise.
40092         * lib/freadseek.c (freadptrinc): Likewise.
40093         * lib/fseeko.c (rpl_fseeko): Likewise.
40094         * lib/fseterr.c (fseterr): Likewise.
40095         * lib/fwritable.c (fwritable): Likewise.
40096         * lib/fwriting.c (fwriting): Likewise.
40097         Reported by Roger Cornelius <rac@tenzing.org> and
40098         Brian K. White <brian@aljex.com>.
40099
40100 2008-04-06  Jim Meyering  <meyering@redhat.com>
40101
40102         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40103
40104 2008-04-06  Bruno Haible  <bruno@clisp.org>
40105
40106         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40107         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40108         * tests/test-printf-posix.sh: Likewise.
40109         * tests/test-vfprintf-posix.sh: Likewise.
40110         * tests/test-vprintf-posix.sh: Likewise.
40111         * tests/test-xprintf-posix.sh: Likewise.
40112
40113 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40114
40115         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40116         hide error from 'ls', needed on OS/2.
40117         Report by Elbert Pol <elbert.pol@gmail.com>.
40118
40119 2008-04-04  Eric Blake  <ebb9@byu.net>
40120
40121         Make test-fseeko.c failures meaningful.
40122         * tests/test-fseeko.c: Print line number on failure.
40123         * tests/test-fseek.c: Likewise.
40124         Reported by Nelson H. F. Beebe.
40125
40126         Improve strtod bug detection check.
40127         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40128         required for Solaris 10.
40129         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40130
40131 2008-04-04  Bruno Haible  <bruno@clisp.org>
40132
40133         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40134         by m4/setenv.m4.
40135
40136 2008-04-03  Eric Blake  <ebb9@byu.net>
40137
40138         Ensure sane .version contents.
40139         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40140         version string.
40141         * build-aux/git-version-gen: Improve documentation.
40142
40143         Make GNU make output nicer.
40144         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40145         MAKECMDGOALS to enforce message for all command line targets.  Set
40146         srcdir for use in maint.mk.
40147
40148         Another maintainer tweak.
40149         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40150         a target that regenerates version.
40151
40152 2008-04-03  Jim Meyering  <meyering@redhat.com>
40153
40154         vc-list-files: don't cause coreutils "make po-check" failure
40155         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40156
40157 2008-04-03  Eric Blake  <ebb9@byu.net>
40158
40159         Allow VPATH usage of vc-list-files.
40160         * build-aux/vc-list-files (scriptversion): Add timestamp.
40161         (options): Add --help, --version, -C.
40162         (CVS): Support installed cvsu.
40163
40164 2008-04-02  Bruno Haible  <bruno@clisp.org>
40165
40166         Avoid some "statement with no effect" warnings from gcc.
40167         * tests/test-wctype.c (main): Explicitly ignore unused values.
40168         Reported by Jim Meyering.
40169
40170 2008-04-02  Jim Meyering  <meyering@redhat.com>
40171
40172         Avoid some warnings from "gcc -Wshadow".
40173         * tests/test-frexp.c (exp): Define to a different identifier.
40174         * tests/test-frexpl.c (exp): Likewise.
40175
40176 2008-04-03  Jim Meyering  <meyering@redhat.com>
40177
40178         bootstrap: remove dangling *.[ch] symlinks from lib
40179         * build-aux/bootstrap [dangling symlink removal]: Move find's
40180         -depth option to precede all others, to avoid a warning.
40181         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40182
40183 2008-04-02  Bruno Haible  <bruno@clisp.org>
40184
40185         Avoid some warnings from "gcc -Wshadow".
40186         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40187         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40188         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40189         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40190         Reported by Jim Meyering.
40191
40192 2008-04-01  Bruno Haible  <bruno@clisp.org>
40193
40194         Fix test to work on IRIX 6.5 with cc.
40195         * tests/test-math.c (numeric_equal): New function.
40196         (main): Use it.
40197
40198 2008-04-01  Bruno Haible  <bruno@clisp.org>
40199
40200         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40201
40202 2008-04-01  Bruno Haible  <bruno@clisp.org>
40203
40204         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40205         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40206         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40207         (Depends-on): Remove math.
40208
40209         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40210         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40211         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40212         (Depends-on): Remove math.
40213
40214         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40215         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40216         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40217         (Depends-on): Remove math.
40218         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40219         (Depends-on): Remove math.
40220
40221         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40222         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40223         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40224         (Depends-on): Remove math.
40225         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40226         (Depends-on): Remove math.
40227
40228         * tests/test-round1.c: Include nan.h.
40229         (main): Use NaNd instead of NAN.
40230         * modules/round-tests (Files): Add tests/nan.h.
40231
40232         * tests/test-trunc1.c: Include nan.h.
40233         (main): Use NaNd instead of NAN.
40234         * modules/trunc-tests (Files): Add tests/nan.h.
40235
40236         * tests/test-roundf1.c: Include nan.h.
40237         (main): Use NaNf instead of NAN.
40238         * modules/roundf-tests (Files): Add tests/nan.h.
40239
40240         * tests/test-truncf1.c: Include nan.h.
40241         (main): Use NaNf instead of NAN.
40242         * modules/truncf-tests (Files): Add tests/nan.h.
40243
40244         * tests/test-ceilf1.c: Include nan.h.
40245         (main): Use NaNf instead of NAN.
40246         * modules/ceilf-tests (Files): Add tests/nan.h.
40247
40248         * tests/test-floorf1.c: Include nan.h.
40249         (main): Use NaNf instead of NAN.
40250         * modules/floorf-tests (Files): Add tests/nan.h.
40251
40252         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40253         (main): Use NaNf instead of NAN.
40254         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40255
40256         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40257         (main): Use NaNd instead of NAN.
40258         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40259
40260         * tests/test-frexp.c: Include nan.h.
40261         (main): Use NaNd instead of NAN.
40262         * modules/frexp-tests (Files): Add tests/nan.h.
40263
40264         * lib/isnan.c: Don't include <math.h>.
40265         (FUNC): Don't use NAN macro.
40266         * modules/isnand-nolibm (Depends-on): Remove math.
40267         * modules/isnanf-nolibm (Depends-on): Remove math.
40268         * modules/isnanl (Depends-on): Remove math.
40269         * modules/isnanl-nolibm (Depends-on): Remove math.
40270
40271         * tests/nan.h: New file.
40272
40273 2008-04-01  Eric Blake  <ebb9@byu.net>
40274
40275         Fix typos.
40276         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40277         values to be the right type.
40278
40279         For now, cater to gnulib strtod inaccuracies.
40280         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40281         fractional results.  While not as nice from a QoI perspective, it
40282         is a quicker patch than correctly implementing decimal to binary
40283         rounding.
40284
40285 2008-03-31  Eric Blake  <ebb9@byu.net>
40286
40287         Guarantee a definition of NAN.
40288         * lib/math.in.h (NAN): Define if missing.
40289         * tests/test-math.c (main): Test it.
40290         * doc/posix-headers/math.texi (math.h): Document this.
40291         * lib/isnan.c (rpl_isnand): Use it.
40292         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40293         * tests/test-floorf1.c (NaN): Likewise.
40294         * tests/test-frexp.c (NaN): Likewise.
40295         * tests/test-isnand.c (NaN): Likewise.
40296         * tests/test-isnanf.c (NaN): Likewise.
40297         * tests/test-round1.c (NaN): Likewise.
40298         * tests/test-roundf1.c (NaN): Likewise.
40299         * tests/test-snprintf-posix.h (NaN): Likewise.
40300         * tests/test-sprintf-posix.h (NaN): Likewise.
40301         * tests/test-trunc1.c (NaN): Likewise.
40302         * tests/test-truncf1.c (NaN): Likewise.
40303         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40304         * tests/test-vasprintf-posix.c (NaN): Likewise.
40305         * modules/isnand-nolibm (Depends-on): Add math.
40306         * modules/isnanf-nolibm (Depends-on): Likewise.
40307         * modules/isnanl (Depends-on): Likewise.
40308         * modules/isnanl-nolibm (Depends-on): Likewise.
40309         * modules/snprintf-posix-tests (Depends-on): Likewise.
40310         * modules/sprintf-posix-tests (Depends-on): Likewise.
40311         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40312         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40313         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40314         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40315
40316 2008-03-31  Bruno Haible  <bruno@clisp.org>
40317
40318         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40319         * doc/posix-functions/strtod.texi: Likewise.
40320
40321 2008-03-31  Bruno Haible  <bruno@clisp.org>
40322
40323         * tests/test-strtod.c (main): Don't use C99 syntax.
40324
40325 2008-03-31  Bruno Haible  <bruno@clisp.org>
40326
40327         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40328         Reported by Eric Blake.
40329
40330 2008-03-31  Jim Meyering  <meyering@redhat.com>
40331
40332         Don't compare actual signbit return values.
40333         * tests/test-strtod.c (main): Rather, compare only their
40334         zero/non-zero nature.
40335
40336 2008-03-31  Eric Blake  <ebb9@byu.net>
40337
40338         More strtod documentation.
40339         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40340         failures as distinct bugs.
40341
40342 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40343
40344         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40345         Problem reported by Erik Benada in
40346         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40347
40348 2008-03-30  Bruno Haible  <bruno@clisp.org>
40349
40350         * tests/test-strtod.c: Add comments about which assertion fails on which
40351         platform.
40352         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40353
40354 2008-03-30  Eric Blake  <ebb9@byu.net>
40355
40356         Test signbit behavior on zeros.
40357         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40358         (test_signbitd, test_signbitl): Likewise.
40359
40360         More strtod touchups.
40361         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40362         sign of negative underflow, for now.  Use .5, not .1.
40363         * doc/posix-functions/strtod.texi (strtod): Mention these
40364         limitations.
40365         Reported by Jim Meyering.
40366
40367 2008-03-30  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40370         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40371
40372 2008-03-30  Bruno Haible  <bruno@clisp.org>
40373
40374         Avoid failure when attempting to return empty iconv results on some
40375         platforms.
40376         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40377         allocation, don't report ENOMEM when the resulting string is empty.
40378
40379 2008-03-30  Bruno Haible  <bruno@clisp.org>
40380
40381         Fix buffer overrun.
40382         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40383         Don't consider the width for tmp_length. Check count against tmp_length
40384         before doing the padding. Ensure enough allocation during padding.
40385
40386 2008-03-30  Eric Blake  <ebb9@byu.net>
40387
40388         strtod touchups.
40389         * lib/strtod.c (strtod): Avoid compiler warnings.
40390         Reported by Jim Meyering.
40391
40392 2008-03-30  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40395         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40396         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40397         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40398         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40399         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40400         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40401         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40402
40403         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40404         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40405         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40406         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40407         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40408         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40409         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40410         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40411
40412         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40413         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40414         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40415         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40416         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40417         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40418         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40419         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40420
40421         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40422         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40423
40424         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40425         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40426
40427         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40428         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40429
40430         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40432         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40433
40434         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40436         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40437
40438         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40440         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40441
40442         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40444         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40445
40446         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40447         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40449         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40450         (Depends-on): Add EOVERFLOW.
40451         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40452         (Depends-on): Add EOVERFLOW.
40453         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40454         (Depends-on): Add EOVERFLOW.
40455         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40456         (Depends-on): Add EOVERFLOW.
40457         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40458         (Depends-on): Add EOVERFLOW.
40459         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40460         (Depends-on): Add EOVERFLOW.
40461         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40462         (Depends-on): Add EOVERFLOW.
40463         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40464         (Depends-on): Add EOVERFLOW.
40465
40466         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40468         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40469
40470         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40472         * modules/snprintf (Depends-on): Add EOVERFLOW.
40473
40474         * lib/poll.c (EOVERFLOW): Remove fallback.
40475         * modules/poll (Depends-on): Add EOVERFLOW.
40476
40477         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40478         * modules/getugroups (Depends-on): Add EOVERFLOW.
40479
40480         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40481         * modules/getdelim (Depends-on): Add EOVERFLOW.
40482
40483         * lib/ftell.c (EOVERFLOW): Remove fallback.
40484         * modules/ftell (Depends-on): Add EOVERFLOW.
40485
40486         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40488         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40489
40490         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40491
40492         * modules/EOVERFLOW-tests: New file.
40493         * tests/test-EOVERFLOW.c: New file.
40494
40495         * modules/EOVERFLOW: New file.
40496         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40497
40498 2008-03-30  Bruno Haible  <bruno@clisp.org>
40499
40500         Fix bug introduced on 2007-06-10.
40501         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40502         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40503
40504 2008-03-30  Bruno Haible  <bruno@clisp.org>
40505
40506         Improve freadseek's efficiency after ungetc.
40507         * lib/freadseek.c: Include freadahead.h.
40508         (freadptrinc): New function, extracted from freadseek.
40509         (freadseek): Use it in a loop. Use freadahead to determine the number
40510         of loop iterations.
40511         * modules/freadseek (Depends-on): Add freadahead.
40512         (configure.ac): Require AC_C_INLINE.
40513
40514 2008-03-30  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/freadseek.c (freadseek): Don't ignore the return value of
40517         freadptr.
40518
40519 2008-03-29  Eric Blake  <ebb9@byu.net>
40520
40521         Add hex float support.
40522         * modules/strtod (Depends-on): Add c-ctype.
40523         (Link): Mention POW_LIB.
40524         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40525         whitespace between 'e' and exponent.
40526         * tests/test-strtod.c (main): Enable hex float tests.
40527         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40528         now provides.
40529
40530         Document various strtod bugs, with some fixes.
40531         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40532         "-0x", "inf", "nan", and hex constants.
40533         * doc/posix-functions/atof.texi (atof): Likewise.
40534         * modules/stdlib (Makefile.am): Support strtod.
40535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40536         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40537         detect additional strtod bugs.
40538         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40539         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40540         bool where appropriate.  Parse 'inf' and 'nan'.
40541         * tests/test-strtod.c: New file.
40542         * modules/strtod (Depends-on): Add stdbool, stdlib.
40543         (configure.ac): Turn on module indicator.
40544         * modules/strtod-tests: New module.
40545
40546 2008-03-29  Eric Blake  <ebb9@byu.net>
40547
40548         Fix ftell on mingw.
40549         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40550         * modules/ftell-tests (Depends-on): Add binary-io.
40551         * modules/ftello-tests (Depends-on): Likewise.
40552         * tests/test-ftell.c (main): Enhance test to cover behavior after
40553         ungetc.  Enforce binary mode.
40554         * tests/test-ftello.c (main): Likewise.
40555
40556         Pass test-freadseek on cygwin.
40557         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40558         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40559         ungetc buffer.
40560
40561         * tests/test-fflush2.c (main): Fix typo.
40562
40563 2008-03-29  Bruno Haible  <bruno@clisp.org>
40564
40565         * tests/test-fflush2.c (main): Temporarily disable the contents of
40566         this test.
40567         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40568         Reported by Eric Blake.
40569
40570 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40571
40572         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40573         (GC_SHA224_DIGEST_SIZE): Add.
40574
40575         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40576         (gc_hash_digest_length): Likewise.
40577         (gc_hash_buffer): Likewise.
40578
40579 2008-03-25  Bruno Haible  <bruno@clisp.org>
40580
40581         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40582         detail which gettext release to use.
40583         Reported by Simon Josefsson.
40584
40585 2008-03-26  Jim Meyering  <meyering@redhat.com>
40586
40587         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40588         * modules/gnumakefile (clean-GNUmakefile): Also, use
40589         test ... && ... || : syntax rather than if-then ... fi.
40590
40591         gnumakefile: Don't double-quote-expand $(VPATH) value.
40592         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40593
40594 2008-03-24  Eric Blake  <ebb9@byu.net>
40595
40596         Alter GNUmakefile to install into top directory.
40597         * modules/maintainer-makefile: Split, and add dependency...
40598         * modules/gnumakefile: to this new module.
40599         * build-aux/GNUmakefile: Move...
40600         * top/GNUmakefile: ...here.
40601         * build-aux/maint.mk: Move...
40602         * top/maint.mk: ...here.
40603         * MODULES.html.sh (Support for maintaining...): Document new
40604         module.
40605
40606 2008-03-23  Bruno Haible  <bruno@clisp.org>
40607
40608         * gnulib-tool: New options --vc-files, --no-vc-files.
40609         (func_usage): Document them.
40610         (vc_files): New variable.
40611         (func_import): Consider vc_files.
40612         (func_create_testdir): Set vc_files to empty.
40613         Suggested by Jim Meyering and Karl Berry.
40614
40615 2008-03-23  Bruno Haible  <bruno@clisp.org>
40616
40617         Fix regex compilation error on HP-UX 11.
40618         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40619         * modules/regex (Files): Add m4/mbstate_t.m4.
40620         Reported by Ton Voon <ton.voon@altinity.com>.
40621
40622 2008-03-23  Bruno Haible  <bruno@clisp.org>
40623
40624         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40625
40626 2008-03-23  Eric Blake  <ebb9@byu.net>
40627             Bruno Haible  <bruno@clisp.org>
40628
40629         Install files from top/ in the destination directory.
40630         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40631         augmentation also for the files from top/.
40632         (func_import, func_create_testdir): Rewrite file names:
40633         top/filename -> filename.
40634
40635 2008-03-23  Bruno Haible  <bruno@clisp.org>
40636
40637         Tweak "gnulib --version" output.
40638         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40639
40640 2008-03-23  Bruno Haible  <bruno@clisp.org>
40641
40642         Tweak "gnulib --version" output.
40643         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40644         rather than contents of ChangeLog, when possible.
40645
40646 2008-03-21  Eric Blake  <ebb9@byu.net>
40647
40648         More --version tweaks.
40649         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40650         date of last ChangeLog entry.
40651
40652 2008-03-21  Jim Meyering  <meyering@redhat.com>
40653
40654         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40655
40656 2008-03-20  Eric Blake  <ebb9@byu.net>
40657
40658         VPATH fix.
40659         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40660
40661 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40662
40663         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40664         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40665
40666 2008-03-20  Eric Blake  <ebb9@byu.net>
40667
40668         Sync GNUmakefile with coreutils.
40669         * build-aux/GNUmakefile (have-Makefile): Rename...
40670         (_have-Makefile): ...to this, for namespace consideration.
40671         (GNUmakefile.cfg): Include, if present.
40672         (_autoreconf): Define a default.
40673         (_is-dist-target): New rule for rebuilds to pick up intra-release
40674         version.
40675         (maint-cfg.mk): Rename...
40676         (cfg.mk): ...to this.
40677
40678 2008-03-18  Jim Meyering  <meyering@redhat.com>
40679
40680         New script and module: mktempd
40681         * MODULES.html.sh (maint+release support): Add mktempd.
40682         * build-aux/mktempd: New file.
40683         * modules/mktempd: New file.
40684
40685 2008-03-15  Jim Meyering  <meyering@redhat.com>
40686
40687         Undo last change.
40688         * lib/sha1.c, lib/md5.c: 63 != ~63.
40689         Reported by Andreas Schwab.
40690
40691         sha1.c, md5.c: Hoist a redundant expression.
40692         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40693         "ctx->buflen" only once, before calling *_process_block.
40694         * lib/md5.c (md5_process_bytes): Likewise.
40695
40696 2008-03-14  Eric Blake  <ebb9@byu.net>
40697
40698         Bump copyright year in files generated by gnulib-tool.
40699         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40700         gnulib-tool, rather than hard-coding it.
40701
40702         Fix 'gnulib-tool --version' output to work with git.
40703         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40704         (startup): ...here.
40705         (func_version): Use it to invoke git-version-gen, rather than
40706         relying on CVS keyword expansion.  Modernize wording.
40707         (cvsdatestamp, last_checkin_date, version): Kill unused
40708         variables.
40709
40710 2008-03-12  Jim Meyering  <meyering@redhat.com>
40711
40712         Recognize optional cast of the argument to free.
40713         * build-aux/useless-if-before-free: Update regexps.
40714
40715         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40716
40717 2008-03-11  Bruno Haible  <bruno@clisp.org>
40718
40719         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40720         by a single package.
40721         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40722         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40723         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40724         Reported by Sam Steingold <sds@gnu.org>.
40725
40726 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40727
40728         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40729         repositories.
40730
40731 2008-03-11  Bruno Haible  <bruno@clisp.org>
40732
40733         Avoid conflicts between local macro definitions.
40734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40735         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40736
40737 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40738             Bruno Haible  <bruno@clisp.org>
40739
40740         Make va_copy work with some version of xlc on AIX 5.1.
40741         * lib/stdarg.in.h: New file.
40742         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40743         On AIX, use a <stdarg.h> file substitute.
40744         * modules/stdarg (Files): Add lib/stdarg.in.h.
40745         (Depends-on): Add include_next.
40746         (Makefile.am): Build a stdarg.h substitute if requested.
40747         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40748
40749 2008-03-10  Bruno Haible  <bruno@clisp.org>
40750
40751         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40753         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40754
40755 2008-03-10  Bruno Haible  <bruno@clisp.org>
40756
40757         * modules/stdlib (Depends-on): Add include_next, remove
40758         absolute-header.
40759
40760 2008-03-09  Bruno Haible  <bruno@clisp.org>
40761
40762         * lib/freadahead.h (freadahead): Document more precisely.
40763         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40764         the sum of both buffer sizes.
40765         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40766         * NEWS: Document the change.
40767
40768 2008-03-09  Bruno Haible  <bruno@clisp.org>
40769
40770         Extend freadptr to return also the buffer size.
40771         * lib/freadptr.h (freadptr): Add sizep argument.
40772         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40773         (freadptr): Add sizep argument. Determine buffer size like freadahead
40774         does.
40775         * tests/test-freadptr.c: Don't include freadahead.h.
40776         (main): Adapt for new calling convention of freadptr.
40777         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40778         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40779         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40780         tests/test-freadptr2.sh.
40781         (Depends): Remove freadahead.
40782         (TESTS): Add test-freadptr2.sh.
40783         (check_PROGRAMS): Add test-freadptr2.
40784
40785 2008-03-09  Bruno Haible  <bruno@clisp.org>
40786
40787         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40788         Report and solution by Simon Josefsson.
40789
40790 2008-03-06  Bruno Haible  <bruno@clisp.org>
40791
40792         Make fflush after ungetc work on BSD platforms.
40793         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40794         * tests/test-fflush2.c: New file.
40795         * tests/test-fflush2.sh: New file.
40796         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40797         tests/test-fflush2.c.
40798         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40799         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40800
40801 2008-03-06  Eric Blake  <ebb9@byu.net>
40802
40803         Likewise for ftello.
40804         * modules/ftello (Dependencies): Add extensions.
40805         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40806
40807 2008-03-06  Bruno Haible  <bruno@clisp.org>
40808
40809         * modules/fseeko (Dependencies): Add extensions.
40810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40811         Needed on glibc systems.
40812
40813 2008-03-06  Bruno Haible  <bruno@clisp.org>
40814
40815         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40816         email address.
40817         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40818
40819 2008-03-06  Bruno Haible  <bruno@clisp.org>
40820
40821         * users.txt: Add libgnupdf.
40822
40823 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40824
40825         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40826         (Header File Substitutes, Function Substitutes,
40827         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40828         (Build robot for gnulib): Fix typo.
40829
40830 2008-03-06  Bruno Haible  <bruno@clisp.org>
40831
40832         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40833         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40834
40835 2008-03-06  Bruno Haible  <bruno@clisp.org>
40836
40837         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40838         * doc/gnulib.texi: Include it.
40839
40840 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40841
40842         * modules/func (License): Change license to unlimited; there was
40843         no LGPL parts in the module anyway.
40844
40845 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40846
40847         * modules/__func__: Renamed to modules/func.
40848         * modules/__func__-tests: Renamed to modules/func-tests.
40849         * tests/test-__func__.c: Renamed to tests/test-func.c.
40850         * m4/__func__.m4: Renamed to m4/func.m4.
40851         * doc/gnulib.texi (__func__): Section renamed to func.
40852         Suggested by Eric Blake <ebb9@byu.net>.
40853
40854 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40855
40856         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40857         about __func__.  Make example self-contained.  Suggested by Eric
40858         Blake <ebb9@byu.net>.
40859
40860         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40861         Suggested by Eric Blake <ebb9@byu.net>.
40862
40863 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40864
40865         * modules/__func__: New file.
40866         * modules/__func__-tests: New file.
40867         * tests/test-__func__.c: New file.
40868         * m4/__func__.m4: New file.
40869         * doc/gnulib.texi (__func__): Document __func__ module.
40870
40871 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40872
40873         * modules/byteswap (License): Re-license as LGPLv2+.
40874
40875 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40876
40877         * doc/Makefile: Add pdf target.
40878
40879 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40880
40881         * modules/inline (License): Use 'unlimited', since there are only
40882         *.m4 files in this module.
40883
40884 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40885             Bruno Haible  <bruno@clisp.org>
40886
40887         Add support for HP C 7.1 on OpenVMS 8.3.
40888         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40889
40890 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40891
40892         Update VMS specifics.
40893         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40894
40895 2008-03-02  Jim Meyering  <meyering@redhat.com>
40896
40897         Remove the last dependency on the "free" module.
40898         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40899         Reported by Bob Proulx.
40900
40901         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40902
40903         Remove useless "if" tests before free.  Deprecate "free" module.
40904         * doc/posix-functions/free.texi: Mention that this
40905         module is no longer useful.
40906         * modules/free (Notice): Say this module is obsolete.
40907         * modules/readutmp (Depends-on): Remove free.
40908         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40909         * lib/putenv.c (putenv): Likewise.
40910         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40911         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40912         * tests/test-c-strcasestr.c (main): Likewise.
40913         * tests/test-c-strstr.c (main): Likewise.
40914         * tests/test-mbscasestr1.c (main): Likewise.
40915         * tests/test-mbscasestr2.c (main): Likewise.
40916         * tests/test-mbsstr1.c (main): Likewise.
40917         * tests/test-mbsstr2.c (main): Likewise.
40918         * tests/test-memmem.c (main): Likewise.
40919         * tests/test-strcasestr.c (main): Likewise.
40920         * tests/test-striconv.c (main): Likewise.
40921         * tests/test-striconveh.c (main): Likewise.
40922         * tests/test-striconveha.c (main): Likewise.
40923         * tests/test-strstr.c (main): Likewise.
40924
40925         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40926
40927         bootstrap: sync from coreutils again
40928         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40929
40930 2008-03-01  Jim Meyering  <meyering@redhat.com>
40931
40932         bootstrap: sync from coreutils
40933         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40934         also when the target doesn't exist.
40935
40936 2008-03-01  Eric Blake  <ebb9@byu.net>
40937
40938         Fix bugs in last patch.
40939         * lib/memchr2.c (memchr2): Fix typo.
40940         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40941         extension.
40942         Reported by Bruce Korb.
40943
40944         New module 'memchr2'.
40945         * modules/memchr2: New file.
40946         * modules/memchr2-tests: Likewise.
40947         * lib/memchr2.h: Likewise.
40948         * lib/memchr2.c: Likewise, based on memchr.c.
40949         * tests/test-memchr2.c: New test.
40950         * MODULES.html.sh (String handling): Add memchr2.
40951
40952 2008-02-29  Bruno Haible  <bruno@clisp.org>
40953
40954         * modules/freadseek-tests: New file.
40955         * tests/test-freadseek.sh: New file.
40956         * tests/test-freadseek.c: New file.
40957
40958         New module 'freadseek'.
40959         * modules/freadseek: New file.
40960         * lib/freadseek.h: New file.
40961         * lib/freadseek.c: New file.
40962         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40963
40964 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40965
40966         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40967         wydawca.
40968
40969         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40970         program_invocation_name and program_invocation_short_name are
40971         present.
40972
40973 2008-02-28  Bruno Haible  <bruno@clisp.org>
40974
40975         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40976         * tests/test-freadptr.sh: Also test non-seekable stdin.
40977
40978 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40979
40980         * build-aux/bootstrap (source_base, m4_base)
40981         (doc_base, tests_base): New variables.
40982         (gnulib_tool_options): Do not hardcode base directories, use
40983         the above variables instead.
40984
40985 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40986
40987         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40988
40989 2008-02-28  Bruno Haible  <bruno@clisp.org>
40990
40991         * modules/freadptr-tests: New file.
40992         * tests/test-freadptr.sh: New file.
40993         * tests/test-freadptr.c: New file.
40994
40995         New module 'freadptr'.
40996         * modules/freadptr: New file.
40997         * lib/freadptr.h: New file.
40998         * lib/freadptr.c: New file.
40999         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41000
41001 2008-02-26  Karl Berry  <karl@freefriends.org>
41002
41003         Sync from Libtool:
41004         * libltdl/argz.c (argz_add, argz_count): New functions.
41005         * libltdl/argz.in.h: Declare them.
41006         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41007
41008 2008-02-22  Bruno Haible  <bruno@clisp.org>
41009
41010         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41011         is a pointer type.  Needed for HP-UX 10.
41012         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41013         * doc/posix-functions/gmtime_r.texi: Likewise.
41014         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41015
41016 2008-02-24  Bruno Haible  <bruno@clisp.org>
41017
41018         * modules/environ-tests: New file.
41019         * tests/test-environ.c: New file.
41020
41021         New module 'environ'.
41022         * modules/environ: New file.
41023         * lib/unistd.in.h (environ): New declaration.
41024         * m4/environ.m4: New file.
41025         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41026         after use.
41027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41028         HAVE_DECL_ENVIRON.
41029         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41030         HAVE_DECL_ENVIRON.
41031         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41032         wrong claim that 'environ' is missing on some systems.
41033         * modules/execute (Depends-on): Add environ.
41034         * lib/execute.c (environ): Remove fallback declaration.
41035         * modules/pipe (Depends-on): Add environ.
41036         * lib/pipe.c (environ): Remove fallback declaration.
41037         * modules/setenv (Depends-on): Add environ.
41038         * lib/setenv.c (environ): Remove fallback declaration.
41039         * modules/unsetenv (Depends-on): Add environ.
41040         * lib/unsetenv.c (environ): Remove fallback declaration.
41041         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41042         m4/environ.m4.
41043         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41044         (gl_PREREQ_UNSETENV): Likewise.
41045
41046 2008-02-24  Bruno Haible  <bruno@clisp.org>
41047
41048         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41049
41050 2008-02-20  Bob Proulx  <bob@proulx.com>
41051
41052         Enable use of older two part flavor 'git describe'.
41053         * build-aux/git-version-gen: If using the older two part flavor of
41054         git version then recreate the third part now present in the
41055         newer three part flavor of git describe.
41056
41057 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41058
41059         * lib/fts.c (fts_build): Typo correction to comment.
41060
41061 2008-02-17  Bruno Haible  <bruno@clisp.org>
41062
41063         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41064         generating no-op conflicts.
41065
41066 2008-02-17  Bruno Haible  <bruno@clisp.org>
41067
41068         Speed up by 10%.
41069         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41070         result_entries, rather than an index-based loop.
41071
41072 2008-02-17  Bruno Haible  <bruno@clisp.org>
41073
41074         Speed up by 25%.
41075         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41076         'hashcode_cached'.
41077         (entry_create): New function.
41078         (entry_hashcode): Use the cached hashcode if possible.
41079         (read_changelog_file, try_split_merged_entry): Use entry_create.
41080
41081 2008-02-17  Bruno Haible  <bruno@clisp.org>
41082
41083         Speed up from O(n^2) to O(n) for long ChangeLog files.
41084         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41085         (read_changelog_file): Change implementation of entries_reversed list
41086         to rbtreehash.
41087         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41088
41089 2008-02-17  Bruno Haible  <bruno@clisp.org>
41090
41091         New option --split-merged-entry.
41092         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41093         (find_paragraph_end, try_split_merged_entry): New functions.
41094         (long_options): Add option --split-merged-entry.
41095         (usage): Document option --split-merged-entry.
41096         (main): Implement option --split-merged-entry.
41097         Reported by Eric Blake.
41098
41099 2008-02-17  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/git-merge-changelog.c: Include c-strstr.h.
41102         (main): Support the "git pull --rebase" situation.
41103         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41104         Reported by Eric Blake.
41105
41106 2008-02-16  Eric Blake  <ebb9@byu.net>
41107
41108         Avoid doubling \ in common case of "c-maybe" quoting style.
41109         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41110         eliding outer quotes.
41111         * lib/quotearg.h: Document this.
41112         * tests/test-quotearg.c (result_strings, inputs, results_g)
41113         (flag_results, locale_results): Test it by adding a new string to
41114         each test group.
41115         (compare_strings): Test new string.
41116
41117 2008-02-13  Eric Blake  <ebb9@byu.net>
41118
41119         Avoid trigraph quoting in default output.
41120         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41121         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41122         unless explicitly requested.
41123         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41124
41125 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41126
41127         Don't rely on signed integer overflowing to negative value.
41128         * lib/getugroups.c (getugroups): Include <limits.h>.
41129         Instead, compare against INT_MAX, and increment only if the test passes.
41130
41131 2008-02-13  Jim Meyering  <meyering@redhat.com>
41132         and Eric Blake  <ebb9@byu.net>
41133
41134         Avoid shadowing warning and compile errors on Linux.
41135         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41136         forwarding macros on Linux.
41137         (dcgettext): Define a stub, for Linux.
41138         (results_g, main): Avoid warnings.
41139
41140 2008-02-12  Eric Blake  <ebb9@byu.net>
41141
41142         Silence warning in last patch.
41143         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41144
41145         Quotearg part 4: add tests, fix c-maybe colon quoting.
41146         * lib/quotearg.h: Improve documentation.
41147         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41148         escapes when adding outer quotes.  When quoting trigraphs, use
41149         valid C notation.  When quoting NUL, omit extra characters if next
41150         character is not digit.  Alter prototype.
41151         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41152         callers.
41153         * modules/quotearg-tests: New module.
41154         * tests/test-quotearg.c: New test.
41155
41156 2008-02-07  Eric Blake  <ebb9@byu.net>
41157
41158         Quotearg part 3: add flag to control outer quote elision.
41159         * lib/quotearg.h (c_maybe_quoting_style): New style.
41160         (enum quoting_flags): Better documentation of flags.
41161         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41162         c-maybe style.
41163         (quotearg_buffer_restyled): Handle new flag to elide outer
41164         quotes.
41165
41166         Quotearg part 2: add flag that can control NUL elision.
41167         * lib/quotearg.h (set_quoting_flags): New prototype.
41168         * lib/quotearg.c (struct quoting_options): Add flag field.
41169         (set_quoting_flags): New function.
41170         (quotearg_buffer_restyled): Add flags parameter.
41171         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41172         (quotearg_n_options): Set the flag, since length cannot be
41173         returned.
41174         (quoting_options_from_style): Default flags correctly.
41175
41176         Quotearg part 1: more wrappers, restore quotearg_char state.
41177         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41178         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41179         (quotearg_colon_mem): New wrappers.
41180         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41181         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41182         functions.
41183         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41184         (quotearg_colon_mem): New functions.
41185
41186 2008-02-11  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41189         library in the current directory: it does not work with parallel make.
41190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41191
41192 2008-02-11  Bruno Haible  <bruno@clisp.org>
41193
41194         * .gitattributes: New file.
41195
41196 2008-02-11  Jim Meyering  <meyering@redhat.com>
41197
41198         useless-if-before-free: Fix reversed exit values.
41199         * build-aux/useless-if-before-free: Use correct values
41200         for EXIT_MATCH and EXIT_NO_MATCH.
41201
41202         * build-aux/useless-if-before-free: Close stdout carefully.
41203
41204 2008-02-10  Bruno Haible  <bruno@clisp.org>
41205
41206         New module 'git-merge-changelog'.
41207         * modules/git-merge-changelog: New file.
41208         * lib/git-merge-changelog.c: New file.
41209
41210 2008-02-10  Jim Meyering  <meyering@redhat.com>
41211
41212         useless-if-before-free: New option: --list (-l).
41213
41214         useless-if-before-free: Don't exit immediately upon open failure.
41215         * build-aux/useless-if-before-free: Exit 2 for errors.
41216         Upon failure to open a file, don't exit immediately.
41217         Rather, just warn and continue with any remaining files.
41218
41219 2008-02-10  Bruno Haible  <bruno@clisp.org>
41220
41221         New abstract list operation 'node_set_value'.
41222         * lib/gl_list.h (gl_list_node_set_value): New function.
41223         (struct gl_list_implementation): New field node_set_value.
41224         * lib/gl_list.c (gl_list_node_set_value): New function.
41225         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41226         (gl_array_list_implementation): Update.
41227         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41228         (gl_carray_list_implementation): Update.
41229         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41230         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41231         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41232         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41233         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41234         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41235         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41236         Update.
41237         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41238         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41239         (gl_sublist_list_implementation): Update.
41240
41241 2008-02-10  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41244         Needed when ELEMENT is #defined to 'some_type *'.
41245
41246 2008-02-10  Jim Meyering  <meyering@redhat.com>
41247
41248         New script and module: useless-if-before-free
41249         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41250         * build-aux/useless-if-before-free: New file.
41251         * modules/useless-if-before-free: New file.
41252
41253         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41254
41255         xstrtol_error: Fix typo.
41256         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41257         s/exit_failure/exit_status/.
41258
41259 2008-02-09  Jim Meyering  <meyering@redhat.com>
41260
41261         New script and module: gitlog-to-changelog
41262         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41263         * modules/gitlog-to-changelog: New file.
41264         * build-aux/gitlog-to-changelog: New file.
41265
41266 2008-02-08  Jim Meyering  <meyering@redhat.com>
41267
41268         Avoid two "parameter unused" warnings.
41269         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41270         Mark "st" as used.
41271
41272         Use "git COMMAND", not "git-COMMAND".
41273         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41274         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41275         * build-aux/git-version-gen: Use "git status", not "git-status".
41276
41277 2008-02-07  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41280         Avoids a crash on Windows Vista.
41281         Reported by Adam Strzelecki <ono@java.pl> via
41282         Simon Josefsson <simon@josefsson.org>.
41283
41284 2008-02-06  Bruno Haible  <bruno@clisp.org>
41285
41286         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41287         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41288         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41290         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41292         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41293         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41301         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41302         left-adjust flag.
41303         * tests/test-snprintf-posix.h (test_function): Likewise.
41304         * tests/test-sprintf-posix.h (test_function): Likewise.
41305         * tests/test-vasprintf-posix.c (test_function): Likewise.
41306         * doc/posix-functions/fprintf.texi: Update.
41307         * doc/posix-functions/printf.texi: Update.
41308         * doc/posix-functions/snprintf.texi: Update.
41309         * doc/posix-functions/sprintf.texi: Update.
41310         * doc/posix-functions/vfprintf.texi: Update.
41311         * doc/posix-functions/vprintf.texi: Update.
41312         * doc/posix-functions/vsnprintf.texi: Update.
41313         * doc/posix-functions/vsprintf.texi: Update.
41314         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41315
41316 2008-02-06  Bruno Haible  <bruno@clisp.org>
41317
41318         Fix bug introduced on 2008-01-26.
41319         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41320
41321 2008-02-06  Bruno Haible  <bruno@clisp.org>
41322
41323         Fix bug introduced on 2007-06-10.
41324         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41325         !NEED_PRINTF_FLAG_ZERO.
41326
41327 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41328
41329         getloadavg: use libperfstat on AIX5
41330         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41331
41332 2008-02-03  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/diffseq.h: Add comments about required #includes.
41335         Reported by Michael Biggs <gnulib@doubleplum.net>.
41336
41337 2008-02-01  Bruno Haible  <bruno@clisp.org>
41338
41339         * users.txt: Add gnuit.
41340
41341 2008-01-31  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/md4.c (set_uint32): Mark as inline.
41344         * lib/md5.c (set_uint32): Likewise.
41345         * lib/sha1.c (set_uint32): Likewise.
41346         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41347         * m4/md5.m4 (gl_MD5): Likewise.
41348         * m4/sha1.m4 (gl_SHA1): Likewise.
41349
41350 2008-01-31  Jim Meyering  <meyering@redhat.com>
41351
41352         Use "sizeof VAR", rather than a literal "4".
41353         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41354         * lib/md4.c (md4_read_ctx): Likewise.
41355         * lib/sha1.c (sha1_read_ctx): Likewise.
41356
41357 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41358
41359         * tests/test-sha1.c: New file, based on test-md5.c.
41360
41361         * modules/crypto/sha1-tests: New file.
41362
41363 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41364
41365         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41366
41367 2008-01-31  Jim Meyering  <meyering@redhat.com>
41368
41369         Prefer "sizeof v" over the equivalent "4".
41370         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41371         * lib/md5.c (set_uint32): Likewise.
41372         * lib/sha1.c (set_uint32): Likewise.
41373
41374 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41375
41376         * lib/sha1.c (set_uint32): Mark function as static.
41377
41378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41379
41380         md2: clarify comments to say that alignment is not required.
41381         * lib/md2.h: Remove warning about alignment in comment.
41382         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41383         never been required.
41384
41385 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41386
41387         md4: adapt alignment constraint fix from sha1.
41388         * lib/md4.c (set_uint32): New function, from sha1.c
41389         (md4_read_ctx): Use it.
41390         (md4_finish_ctx): Doc fix.
41391         * lib/md4.h: Doc fix.
41392
41393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41394
41395         md5: adapt alignment constraint fix from sha1.
41396         * lib/md5.c (set_uint32): New function, from sha1.c
41397         (md5_read_ctx): Use it.
41398         (md5_finish_ctx): Doc fix.
41399         * lib/md5.h: Doc fix.
41400
41401 2008-01-30  Peter Palfrader  <weasel@debian.org>
41402
41403         sha1: remove the result buffer alignment constraint
41404         * lib/sha1.c (set_uint32): New function.
41405         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41406         constraint.
41407         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41408         * lib/sha1.h: Likewise.
41409
41410 2008-01-30  Andreas Schwab  <schwab@suse.de>
41411             Bruno Haible  <bruno@clisp.org>
41412
41413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41414         correct definition of LDBL_MIN_EXP.
41415
41416 2008-01-30  Karl Berry  <karl@gnu.org>
41417
41418         * config/srclist-update: try to preserve x bit on updates.
41419         * config/srclistvars.sh: update for karl.
41420
41421 2008-01-29  Jim Meyering  <meyering@redhat.com>
41422
41423         vasnprintf.c: Avoid warning about unused label
41424         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41425         "overflow" label definition and associated code with the
41426         same cpp condition that guards the sole use of that label.
41427
41428 2008-01-26  Bruno Haible  <bruno@clisp.org>
41429
41430         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41431         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41432         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41433         * lib/isnanl-nolibm.h (isnanl): Likewise.
41434         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41435
41436 2008-01-26  Bruno Haible  <bruno@clisp.org>
41437
41438         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41439         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41440
41441 2008-01-26  Bruno Haible  <bruno@clisp.org>
41442
41443         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41444         GCC >= 4.0 built-in.
41445         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41446
41447 2008-01-26  Bruno Haible  <bruno@clisp.org>
41448
41449         Rename isnan, applicable to 'double' only, to isnand.
41450         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41451         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41452         (configure.ac): Update.
41453         (Include): Replace "isnan.h" with "isnand.h".
41454         * m4/isnand.m4: Renamed from m4/isnan.m4.
41455         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41456         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41457         instead of isnan.c.
41458         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41459         instead of HAVE_ISNAN_IN_LIBC.
41460         (isnand): Renamed from isnan.
41461         * lib/isnand.c: New file.
41462         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41463         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41464         (Makefile.am): Update.
41465         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41466         Include isnand.h instead of isnan.h.
41467         (main): Test isnand instead of isnan.
41468         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41469         isnan-nolibm.
41470         * modules/frexp (Depends-on): Likewise.
41471         * modules/frexp-tests (Depends-on): Likewise.
41472         * modules/frexp-nolibm (Depends-on): Likewise.
41473         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41474         * modules/isfinite (Depends-on): Likewise.
41475         * modules/round-tests (Depends-on): Likewise.
41476         * modules/signbit (Depends-on): Likewise.
41477         * modules/signbit-tests (Depends-on): Likewise.
41478         * modules/snprintf-posix (Depends-on): Likewise.
41479         * modules/sprintf-posix (Depends-on): Likewise.
41480         * modules/trunc-tests (Depends-on): Likewise.
41481         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41482         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41483         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41484         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41485         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41486         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41487         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41488         * modules/vasnprintf-posix (Depends-on): Likewise.
41489         * modules/vasprintf-posix (Depends-on): Likewise.
41490         * modules/vfprintf-posix (Depends-on): Likewise.
41491         * modules/vsnprintf-posix (Depends-on): Likewise.
41492         * modules/vsprintf-posix (Depends-on): Likewise.
41493         * lib/frexp.c: Include isnand.h instead of isnan.h.
41494         (ISNAN): Set to isnand instead of isnan.
41495         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41496         (gl_isfinited): Use isnand instead of isnan.
41497         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41498         (gl_signbitd): Use isnand instead of isnan.
41499         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41500         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41501         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41502         (main): Use isnand instead of isnan.
41503         * tests/test-round1.c: Include isnand.h.
41504         (main): Use isnand instead of isnan.
41505         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41506         (ISNAN): Set to isnand instead of isnan.
41507         * tests/test-trunc1.c: Include isnand.h.
41508         (main): Use isnand instead of isnan.
41509         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41510         (equal): Use isnand instead of isnan.
41511         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41512         isnand-nolibm.
41513         * NEWS: Mention the change.
41514
41515 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41516             Bruno Haible  <bruno@clisp.org>
41517
41518         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41519         the GCC builtins for signbits are present and set
41520         REPLACE_SIGNBIT_USING_GCC if so.
41521         * lib/math.in.h (signbit): Define using GCC builtins if
41522         REPLACE_SIGNBIT_USING_GCC is set.
41523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41524         REPLACE_SIGNBIT_USING_GCC.
41525         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41526
41527 2008-01-25  Jim Meyering  <meyering@redhat.com>
41528
41529         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41530         * lib/poll.c: Include <config.h>, not "config.h".
41531         * tests/test-getaddrinfo.c: Likewise.
41532
41533 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41534
41535         * modules/sockets-tests: New file.
41536
41537 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41538
41539         * modules/sockets: New module, can be used to call WSA_Startup and
41540         WSA_Cleanup when needed.
41541
41542         * lib/sockets.h, lib/sockets.c: New files.
41543
41544         * m4/sockets.m4: New file.
41545
41546         * tests/test-sockets.c: New file.
41547
41548 2008-01-19  Bruno Haible  <bruno@clisp.org>
41549
41550         * doc/posix-headers: Renamed from doc/headers.
41551         * doc/posix-functions: Renamed from doc/functions.
41552         * doc/gnulib.texi: Update.
41553
41554 2008-01-19  Bruno Haible  <bruno@clisp.org>
41555
41556         * doc/glibc-functions/strcasestr.texi: Include contents of
41557         doc/functions/strcasestr.texi, fixing the list of platforms.
41558         * doc/functions/strcasestr.texi: Remove file.
41559
41560 2008-01-19  Bruno Haible  <bruno@clisp.org>
41561
41562         * doc/glibc-functions/memmem.texi: Include contents of
41563         doc/functions/memmem.texi.
41564         * doc/functions/memmem.texi: Remove file.
41565
41566 2008-01-18  Bruno Haible  <bruno@clisp.org>
41567
41568         * doc/glibc-functions/*.texi: New files.
41569         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41570         to use the new files.
41571
41572 2008-01-17  Bruno Haible  <bruno@clisp.org>
41573
41574         * tests/test-gethostname.c (main): Fix printf statement.
41575
41576 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41577
41578         * modules/gethostname-tests: New file.
41579
41580         * tests/test-gethostname.c: New file.
41581
41582 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41583
41584         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41585         used by the UNAME case.  Reported by Bruno Haible
41586         <bruno@clisp.org>.
41587
41588 2008-01-17  Eric Blake  <ebb9@byu.net>
41589
41590         Convert c-strcasestr to be more efficient.
41591         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41592         (Depends-on): Add c-strcase, remove malloca, strnlen.
41593         * tests/test-c-strcasestr.c (main): Enhance test.
41594         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41595
41596 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41597
41598         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41599         Use it in creating po/Makevars.
41600
41601 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41602
41603         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41604         Applications that requires it should initialize libgcrypt
41605         manually.
41606
41607 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41608
41609         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41610
41611 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41612
41613         Fix problem with getdate on mingw32 reported by Simon Josefsson
41614         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41615         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41616         tzname", when deciding whether to declare tzname.
41617         * lib/strftime.c (tzname): Likewise.
41618
41619 2008-01-15  Bruno Haible  <bruno@clisp.org>
41620
41621         Work around a MacOS X 10.5 bug in frexpl().
41622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41623         * doc/functions/frexpl.texi: Document the bug.
41624         Reported by Elias Pipping <pipping@gentoo.org>.
41625
41626 2008-01-14  Eric Blake  <ebb9@byu.net>
41627
41628         Touch up previous patch.
41629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41630         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41631
41632         Convert strcasestr module to use Two-Way algorithm.
41633         * modules/strcasestr-simple: New module, based on the old
41634         strcasestr, but with Two-Way rather than KMP.
41635         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41636         * lib/string.in.h (rpl_strcasestr): Declare.
41637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41638         performance.
41639         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41640         * modules/string (Makefile.am): Support strcasestr.
41641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41642         * modules/strcasestr-tests (Depends-on): Check for alarm.
41643         * tests/test-strcasestr.c: Augment test.
41644         * lib/str-two-way.h: Clean up stray macro.
41645         * NEWS: Document new module.
41646         * MODULES.html.sh (string handling): Likewise.
41647         * doc/functions/strcasestr.texi: New file.
41648         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41649         here, since it is not a POSIX function.
41650
41651 2008-01-14  Colin Watson  <cjwatson@debian.org>
41652             Bruno Haible  <bruno@clisp.org>
41653
41654         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41655         works fine; if not, set REPLACE_STRSIGNAL.
41656         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41658         REPLACE_STRSIGNAL.
41659         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41660         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41661         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41662
41663 2008-01-14  Bruno Haible  <bruno@clisp.org>
41664
41665         * modules/strsignal (Include): Change to <string.h>.
41666
41667 2008-01-14  Colin Watson  <cjwatson@debian.org>
41668
41669         * modules/argp (Notice): Add a notice recommending to change
41670         XGETTEXT_OPTIONS.
41671         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41672
41673 2008-01-13  Colin Watson  <cjwatson@debian.org>
41674
41675         * modules/strsignal-tests: New file.
41676         * tests/test-strsignal.c: New file.
41677
41678         * lib/strsignal.c: New file, from glibc with modifications.
41679         * lib/siglist.h: New file, from glibc with modifications.
41680         * lib/string.in.h (strsignal): New declaration.
41681         * m4/strsignal.m4: New file.
41682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41683         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41684         * modules/strsignal: New file.
41685         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41686         HAVE_DECL_STRSIGNAL.
41687
41688 2008-01-13  Bruno Haible  <bruno@clisp.org>
41689
41690         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41691         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41692         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41693         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41694
41695 2008-01-13  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41698         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41699         * lib/argp.h (__attribute__): Likewise.
41700         * lib/c-stack.c (__attribute__): Likewise.
41701         * lib/error.h (__attribute__): Likewise.
41702         * lib/fts.c (__attribute__): Likewise.
41703         * lib/openat.h (__attribute__): Likewise.
41704         * lib/stdio.in.h (__attribute__): Likewise.
41705         * lib/string.in.h (__attribute__): Likewise.
41706         * lib/utimens.c (__attribute__): Likewise.
41707         * lib/vasnprintf.h (__attribute__): Likewise.
41708         * lib/xalloc.h (__attribute__): Likewise.
41709         * lib/xprintf.h (__attribute__): Likewise.
41710         * lib/xstrtol.h (__attribute__): Likewise.
41711         * lib/xvasprintf.h (__attribute__): Likewise.
41712
41713 2008-01-12  Bruno Haible  <bruno@clisp.org>
41714
41715         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41716         * doc/glibc-headers/a.out.texi: New file.
41717         * doc/glibc-headers/aliases.texi: New file.
41718         * doc/glibc-headers/alloca.texi: New file.
41719         * doc/glibc-headers/ar.texi: New file.
41720         * doc/glibc-headers/argp.texi: New file.
41721         * doc/glibc-headers/argz.texi: New file.
41722         * doc/glibc-headers/byteswap.texi: New file.
41723         * doc/glibc-headers/crypt.texi: New file.
41724         * doc/glibc-headers/endian.texi: New file.
41725         * doc/glibc-headers/envz.texi: New file.
41726         * doc/glibc-headers/err.texi: New file.
41727         * doc/glibc-headers/error.texi: New file.
41728         * doc/glibc-headers/execinfo.texi: New file.
41729         * doc/glibc-headers/fpu_control.texi: New file.
41730         * doc/glibc-headers/fstab.texi: New file.
41731         * doc/glibc-headers/fts.texi: New file.
41732         * doc/glibc-headers/getopt.texi: New file.
41733         * doc/glibc-headers/ieee754.texi: New file.
41734         * doc/glibc-headers/ifaddrs.texi: New file.
41735         * doc/glibc-headers/libintl.texi: New file.
41736         * doc/glibc-headers/mcheck.texi: New file.
41737         * doc/glibc-headers/mntent.texi: New file.
41738         * doc/glibc-headers/obstack.texi: New file.
41739         * doc/glibc-headers/paths.texi: New file.
41740         * doc/glibc-headers/printf.texi: New file.
41741         * doc/glibc-headers/pty.texi: New file.
41742         * doc/glibc-headers/resolv.texi: New file.
41743         * doc/glibc-headers/shadow.texi: New file.
41744         * doc/glibc-headers/sysexits.texi: New file.
41745         * doc/glibc-headers/ttyent.texi: New file.
41746
41747 2008-01-12  Jim Meyering  <meyering@redhat.com>
41748
41749         announce-gen: emit Gnulib's git-based version string.
41750         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41751         New option --gnulib-version=V, where V is expected to be
41752         the output of running git describe in the gnulib directory.
41753         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41754         not useful, and plan to stop publishing an xdelta file with each
41755         coreutils release.
41756
41757         * build-aux/announce-gen: Also check for lzma-compressed files.
41758
41759 2008-01-11  Bruno Haible  <bruno@clisp.org>
41760
41761         * tests/test-memmem.c (main): Increase maximum allowed time.
41762         * tests/test-strstr.c (main): Likewise.
41763
41764 2008-01-11  Bruno Haible  <bruno@clisp.org>
41765
41766         * doc/functions/memmem.texi: Add more precisions about platforms.
41767         * doc/functions/strstr.texi: Likewise.
41768
41769 2008-01-10  Eric Blake  <ebb9@byu.net>
41770
41771         * m4/strstr.m4: Delete cruft from copy-n-paste.
41772         Reported by Bruno Haible.
41773
41774 2008-01-10  Bruno Haible  <bruno@clisp.org>
41775
41776         Make c-strstr rely on strstr.
41777         * lib/c-strstr.c: Don't include str-kmp.h.
41778         (c_strstr): Define in terms of strstr.
41779         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41780         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41781
41782 2008-01-10  Bruno Haible  <bruno@clisp.org>
41783
41784         * doc/gnulib.texi (String Functions in C Locale): New section.
41785         * doc/c-ctype.texi: New file.
41786         * doc/c-strcase.texi: New file.
41787         * doc/c-strcaseeq.texi: New file.
41788         * doc/c-strcasestr.texi: New file.
41789         * doc/c-strstr.texi: New file.
41790         * doc/c-strtod.texi: New file.
41791         * doc/c-strtold.texi: New file.
41792
41793 2008-01-10  Eric Blake  <ebb9@byu.net>
41794
41795         * lib/relocatable.h: Fix a comment.
41796
41797 2008-01-10  Eric Blake  <ebb9@byu.net>
41798
41799         Share two-way algorithm.
41800         * lib/str-two-way.h: New file, merged from...
41801         * lib/memmem.c: ...here...
41802         * lib/strstr.c: ...and here.
41803         * modules/memmem (Files): Use it.
41804         * modules/strstr (Files): Likewise.
41805
41806         Avoid quadratic strstr implementations.
41807         * lib/strstr.c: New file.
41808         * m4/strstr.m4: Likewise.
41809         * modules/strstr: Likewise.
41810         * modules/strstr-tests: Likewise.
41811         * tests/test-strstr.c: Likewise.
41812         * lib/string.in.h (rpl_strstr): Declare.
41813         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41815         * modules/string (Makefile.am): Likewise.
41816         * MODULES.html.sh (string handling): Mention new module.
41817         * doc/functions/strstr.texi (strstr): Document the bug.
41818
41819 2008-01-10  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/relocatable.h (relocate): State whether result is freshly
41822         allocated or not.
41823         * lib/relocatable.c (relocate): Return a freshly allocated string
41824         instead of a pointer to a privately held string.
41825         Reported by Sylvain Beucler <beuc@gnu.org>.
41826
41827 2008-01-10  Colin Watson  <cjwatson@debian.org>
41828
41829         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41830         s/S_ISNLK/S_ISLNK/.
41831
41832 2008-01-09  Bruno Haible  <bruno@clisp.org>
41833
41834         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41835         and other files.
41836         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41837         if it's only a guess.
41838         * modules/memmem: Simplify by depending on memmem-simple.
41839
41840 2008-01-09  Bruno Haible  <bruno@clisp.org>
41841
41842         Work around OpenBSD 4.0 tdelete() bug.
41843         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41844         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41845         macros and don't redefine the enum values.
41846         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41847         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41848         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41849
41850 2008-01-09  Bruno Haible  <bruno@clisp.org>
41851
41852         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41853         (main): Don't perform the tests if setlocale did not install a UTF-8
41854         locale. Needed on OpenBSD 4.0.
41855         * modules/wcwidth-tests (Depends-on): Add localcharset.
41856
41857 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41858
41859         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41860         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41861         * NEWS: announce this.
41862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41863
41864 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41865         and Eric Blake  <ebb9@byu.net>
41866
41867         Add memmem-simple module.
41868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41869         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41870         * modules/memmem-simple: New file.
41871         * modules/memmem (Description): Tweak.
41872         * MODULES.html.sh (string handling): Mention new module.
41873         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41874         addressed by memmem-simple.
41875         * NEWS: Document the difference.
41876
41877 2008-01-09  Eric Blake  <ebb9@byu.net>
41878
41879         Give gcc some memmem optimization hints.
41880         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41881         (strcasestr): Declare as pure.
41882         * modules/memmem (Maintainer): Claim my implementation.
41883
41884 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41885
41886         Support AIX 6.1 and higher.
41887         * build-aux/config.libpath: Likewise.
41888         * build-aux/config.rpath: Likewise.
41889
41890 2008-01-08  Jim Meyering  <meyering@redhat.com>
41891             Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41894         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41895         Reported by Peter Fales in
41896         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41897
41898 2008-01-08  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/unictype/category-of (Depends-on): Add
41901         unictype/category-none.
41902         * modules/unictype/category-and-tests (Depends-on): Add
41903         unictype/category-{L,N,Lu,Nd}.
41904         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41905         * modules/unictype/category-or-tests (Depends-on): Add
41906         unictype/category-{L,N}.
41907         * modules/unictype/category-name-tests (Depends-on): Add
41908         unictype/category-{Z,Nl}.
41909         Reported by Simon Josefsson.
41910
41911 2008-01-08  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41914         convention better.
41915         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41916         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41917         Reported by Peter Miller <millerp@canb.auug.org.au>.
41918
41919 2008-01-08  Eric Blake  <ebb9@byu.net>
41920
41921         Rewrite memmem to guarantee linear complexity without malloc.
41922         * lib/memmem.c (memmem): Use Two-Way rather than
41923         Knuth-Morris-Pratt, to allow O(1) space usage.
41924         (critical_factorization, two_way_short_needle)
41925         (two_way_long_needle): New functions.
41926         (knuth_morris_pratt): Delete.
41927         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41928         Add stdint.
41929         * tests/test-memmem.c (main): Add tests for periodic needle and
41930         sublinear performance.
41931         * doc/functions/memmem.texi (memmem): Document other deficiencies
41932         in cygwin and older glibc.
41933
41934 2008-01-08  Bruno Haible  <bruno@clisp.org>
41935
41936         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41937         augmentation.
41938
41939 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41940
41941         Add a configure time option: --disable-acl.
41942         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41943         AC_ARG_ENABLE(acl).
41944
41945 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41946
41947         * tests/test-localename.c: Don't include obsolete "setenv.h".
41948
41949         * modules/localename-tests (Depends-on): Need unsetenv.
41950
41951 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41952
41953         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41954
41955 2008-01-06  Colin Watson  <cjwatson@debian.org>
41956
41957         * users.txt: Add man-db.
41958
41959 2008-01-07  Bruno Haible  <bruno@clisp.org>
41960
41961         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41962         previous section name.
41963
41964 2008-01-07  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/progname.c (set_program_name): Don't strip off a leading
41967         "lt-" prefix outside a .libs directory.
41968         Suggested by Paul Eggert.
41969
41970 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41971             Bruno Haible  <bruno@clisp.org>
41972
41973         Improve memory cleanup in 'relocatable' module.
41974         * lib/relocatable.h (compute_curr_prefix): Change return type to
41975         'char *'.
41976         * lib/relocatable.c (compute_curr_prefix): Change return type to
41977         'char *'. Free curr_installdir after use.
41978         (relocate): Free curr_prefix_better after use.
41979         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41980
41981 2008-01-01  Bruno Haible  <bruno@clisp.org>
41982
41983         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41984         failure on older glibc systems.
41985         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41986
41987 2008-01-05  Eric Blake  <ebb9@byu.net>
41988
41989         Avoid quadratic system memmem.
41990         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41991         Reported by Ralf Wildenhues.
41992
41993         Fix memmem test for mingw.
41994         * modules/memmem-tests (configure.ac): Check for alarm.
41995         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41996         it.
41997         * doc/functions/memmem.texi: New file.
41998         * doc/gnulib.texi (Function Substitutes): Add memmem.
41999         Reported by Bruno Haible.
42000
42001 2008-01-04  Bruno Haible  <bruno@clisp.org>
42002
42003         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42004         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42005         gl_HEADER_STRING_H_DEFAULTS.
42006
42007 2008-01-04  Eric Blake  <ebb9@byu.net>
42008
42009         Shorten duration of memmem test.
42010         * tests/test-memmem.c (main): Use alarm to declare failure if test
42011         is taking too long.
42012         Reported by Ralf Wildenhues.
42013
42014 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42015
42016         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42017         string, needed by strerror.
42018
42019 2008-01-03  Colin Watson  <cjwatson@debian.org>
42020             Bruno Haible  <bruno@clisp.org>
42021
42022         * doc/gnulib-tool.texi (Localization): New section.
42023
42024 2008-01-02  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42027         variables to 'unsigned char *' type.
42028         Reported by Paul Eggert.
42029
42030 2008-01-02  Jim Meyering  <jim@meyering.net>
42031
42032         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42033
42034 2007-12-31  Jim Meyering  <jim@meyering.net>
42035
42036         Avoid use of private FTS type name.
42037         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42038
42039 2007-12-30  Karl Berry  <karl@gnu.org>
42040
42041         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42042         work around defect in Texinfo and/or the standalone Info browser.
42043
42044 2007-12-30  Bruno Haible  <bruno@clisp.org>
42045
42046         Unify 5 copies of the KMP code.
42047         * lib/str-kmp.h: New file.
42048         * lib/c-strcasestr.c: Include str-kmp.h.
42049         (knuth_morris_pratt): Remove function.
42050         (c_strcasestr): Update.
42051         * lib/c-strstr.c: Include str-kmp.h.
42052         (knuth_morris_pratt): Remove function.
42053         (c_strcasestr): Update.
42054         * lib/mbscasestr.c: Include str-kmp.h.
42055         (knuth_morris_pratt_unibyte): Remove function.
42056         * lib/mbsstr.c: Include str-kmp.h.
42057         (knuth_morris_pratt_unibyte): Remove function.
42058         * lib/strcasestr.c: Include str-kmp.h.
42059         (knuth_morris_pratt): Remove function.
42060         (strcasestr): Update.
42061         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42062         * modules/c-strstr (Files): Likewise.
42063         * modules/mbscasestr (Files): Likewise.
42064         * modules/mbsstr (Files): Likewise.
42065         * modules/strcasestr (Files): Likewise.
42066         Suggested by Paul Eggert.
42067
42068 2007-12-30  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42071         defined.
42072
42073 2007-12-30  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/xmalloca.h: Include xalloc.h.
42076         (xnmalloca): New macro.
42077
42078 2007-12-30  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/malloca.h (nmalloca): New macro.
42081         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42082         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42083         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42084         knuth_morris_pratt_multibyte): Likewise.
42085         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42086         knuth_morris_pratt_multibyte): Likewise.
42087         * lib/memmem.c (knuth_morris_pratt): Likewise.
42088         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42089
42090 2007-12-25  Bruno Haible  <bruno@clisp.org>
42091
42092         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42093         * lib/glob.c: Don't include openat.h.
42094         (link_exists2_p): Add back the code that deals with the
42095         !GLOB_ALTDIRFUNC case.
42096         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42097         let it do the filename concatenation.
42098         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42099         * modules/glob (Depends-on): Remove openat.
42100
42101 2007-12-31  Bruno Haible  <bruno@clisp.org>
42102
42103         * modules/dirfd (License): Change to LGPLv2+.
42104         Approved by Jim Meyering.
42105
42106 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42107
42108         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42109         when multiplying M by sizeof (size_t).
42110
42111 2007-12-10  Martin Lambers  <marlam@marlam.de>
42112
42113         Override getpagesize on mingw.
42114         * lib/getpagesize.c: New file.
42115         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42116         * modules/getpagesize (Files): Add lib/getpagesize.c.
42117         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42119         REPLACE_GETPAGESIZE.
42120         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42121
42122 2007-12-25  Bruno Haible  <bruno@clisp.org>
42123
42124         * modules/localcharset (Notice): New field.
42125         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42126         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42127
42128 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42129             Bruno Haible  <bruno@clisp.org>
42130
42131         Avoid using the syntax symbol() in formatted documentation.
42132         * MODULES.html.sh (func_module): When replacing symbol() with a
42133         hyperlink, remove the parentheses. Show an error if some remain.
42134         Recognize and render the '...' syntax.
42135         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42136         Rework. Add paragraph about GCC's inlining.
42137         * doc/alloca.texi: Likewise.
42138         * doc/error.texi: Remove parentheses from symbol reference.
42139         * doc/gnulib-intro.texi: Likewise.
42140         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42141         * modules/fnmatch (Description): Reword to say "the ... function".
42142         * modules/full-read (Description): Likewise.
42143         * modules/full-write (Description): Likewise.
42144         * modules/safe-read (Description): Likewise.
42145         * modules/safe-write (Description): Likewise.
42146         * modules/strchrnul (Description): Likewise.
42147         * modules/trim (Description): Likewise.
42148         * modules/error (Description): Remove parentheses from symbol
42149         references.
42150         * modules/verror (Description): Likewise.
42151         Reported by Karl Berry.
42152
42153 2007-12-25  Bruno Haible  <bruno@clisp.org>
42154
42155         Fixup after 2007-10-16 commit.
42156         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42157
42158 2007-12-24  Bruno Haible  <bruno@clisp.org>
42159
42160         Make --enable-relocatable work with DESTDIR.
42161         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42162         to compute installdir from destprog.
42163         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42164         also set the RELOC_DESTDIR variable.
42165         Reported by Левашев Иван <octagram@bluebottle.com>.
42166
42167 2007-12-24  Bruno Haible  <bruno@clisp.org>
42168
42169         Fix link error due to xalloc_die().
42170         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42171         of xreadlink.
42172         * lib/relocwrapper.c: Update comments.
42173         * build-aux/install-reloc: Remove xreadlink.c from file list.
42174         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42175         xreadlink.c.
42176         Reported by Левашев Иван <octagram@bluebottle.com>.
42177
42178 2007-12-24  Bruno Haible  <bruno@clisp.org>
42179
42180         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42181         * lib/setenv.h: Remove file.
42182         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42183         lib/setenv.h.
42184         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42185         (Depends-on): Add stdlib.
42186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42187         gl_FUNC_UNSETENV.
42188         (Include): Replace setenv.h with <stdlib.h>.
42189         * modules/unsetenv: New file.
42190         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42191         * lib/unsetenv.c: Include <stdlib.h> first.
42192         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42193         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42194         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42195         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42196         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42197         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42199         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42200         * doc/functions/unsetenv.texi: Update.
42201         * modules/xsetenv (Depends-on): Add unsetenv.
42202         * modules/getdate (Depends-on): Likewise.
42203         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42204         * lib/xsetenv.c: Don't include setenv.h.
42205         * lib/getdate.y: Likewise.
42206         * lib/relocwrapper.c: Likewise.
42207         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42208         (Depends-on): Add stdlib.
42209         * NEWS: Mention the changes.
42210         Reported by Левашев Иван <octagram@bluebottle.com>.
42211
42212 2007-12-23  Bruno Haible  <bruno@clisp.org>
42213
42214         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42215         indentation.
42216
42217 2007-12-23  Bruno Haible  <bruno@clisp.org>
42218
42219         * lib/c-strcasestr.c: Add more comments.
42220         * lib/c-strstr.c: Likewise.
42221         * lib/mbscasestr.c: Likewise.
42222         * lib/mbsstr.c: Likewise.
42223         * lib/strcasestr.c: Likewise.
42224         * lib/memmem.c: Likewise.
42225
42226 2007-12-23  Bruno Haible  <bruno@clisp.org>
42227
42228         * tests/test-memmem.c: Include <string.h> first.
42229
42230 2007-12-22  Bruno Haible  <bruno@clisp.org>
42231
42232         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42233         the contents of $testsbase.
42234         Reported by Ralf Wildenhues.
42235
42236 2007-12-22  Bruno Haible  <bruno@clisp.org>
42237
42238         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42239         two variables local_ldadd_before, local_ldadd_last.
42240
42241 2007-12-20  Eric Blake  <ebb9@byu.net>
42242
42243         Work around circular library issue when cross-compiling.
42244         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42245         that progname.o does not need to pull in rpl_memcmp.
42246
42247 2007-12-19  Eric Blake  <ebb9@byu.net>
42248
42249         Fix memmem to avoid O(n^2) worst-case complexity.
42250         * lib/memmem.c (knuth_morris_pratt): New function.
42251         (memmem): Use it if first few naive iterations fail.
42252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42253         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42254         * modules/memchr (License): Likewise.
42255         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42256         malloca.
42257         * tests/test-memmem.c: Rewrite, borrowing ideas from
42258         test-mbsstr1.c; the old version wouldn't even compile!
42259         * modules/memmem-tests: New file.
42260         * lib/string.in.h (rpl_memmem): Add declaration.
42261         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42263         REPLACE_MEMMEM.
42264
42265 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42266
42267         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42268         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42269         before any system include files, and undef after them all.  This
42270         should fix a problem on VMS reported by John E. Malmberg in
42271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42272
42273 2007-12-17  Eric Blake  <ebb9@byu.net>
42274
42275         Revert addition of verify, for BSD/OS.
42276         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42277         can't handle large files, for the sake of obsolete platforms.
42278         * modules/fseeko (Depends-on): Remove verify.
42279         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42280         * doc/functions/ftello.texi (ftello): Likewise.
42281         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42282         Reported by Larry Jones.
42283
42284 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42285
42286         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42287         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42288
42289 2007-12-17  Jim Meyering  <meyering@redhat.com>
42290
42291         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42292         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42293         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42294         * modules/getcwd (Depends-on): Add openat.
42295         Reported by Petr Salinger.
42296
42297 2007-12-17  Bruno Haible  <bruno@clisp.org>
42298
42299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42300         avoid a segmentation fault of the configure test on x86_64 systems.
42301
42302 2007-12-15  Jim Meyering  <meyering@redhat.com>
42303
42304         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42305
42306 2007-12-13  Eric Blake  <ebb9@byu.net>
42307
42308         Another fseek test.
42309         * tests/test-fseek.c (main): Also test ungetc handling.
42310         * tests/test-fseeko.c (main): Likewise.
42311         * modules/fseeko (Depends-on): Add verify.
42312         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42313         large.
42314         Reported by Larry Jones.
42315
42316         Fix fseeko on mingw.
42317         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42318         seek.
42319
42320         Beef up fseek tests.
42321         * tests/test-fseek.c (main): Also test eof handling.
42322         * tests/test-fseeko.c (main): Likewise.
42323         Reported by Larry Jones.
42324
42325 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42326
42327         Fix fseeko on BSD-based platforms.
42328         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42329         successful seek.
42330
42331 2007-12-12  Eric Blake  <ebb9@byu.net>
42332
42333         Allow circular dependency of separate libtests.a
42334         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42335         when use_libtests.
42336
42337 2007-12-11  Eric Blake  <ebb9@byu.net>
42338
42339         Fix bug with -0.0L in previous patch.
42340         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42341         * tests/test-isnan.c (main): Also test on zeroes.
42342         * tests/test-isnanf.c (main): Likewise.
42343         * tests/test-isnanl.h (main): Likewise.
42344
42345         Detect pseudo-denormals on x86 even when cross-compiling.
42346         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42347         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42348         invalid bit patterns that happen to satisfy ==.
42349
42350         Avoid link failures with separate libtests.a.
42351         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42352         last, to satisfy circular dependencies.
42353
42354 2007-12-11  Eric Blake  <ebb9@byu.net>
42355         and Bruno Haible  <bruno@clisp.org>
42356
42357         Fix OpenBSD 4.0 <float.h> handling of long double.
42358         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42359         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42360         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42361
42362 2007-12-11  Jim Meyering  <meyering@redhat.com>
42363
42364         * users.txt: Add libvirt.
42365
42366         Support versions of autoconf prior to 2.59c.
42367         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42368         if it is not already defined.
42369
42370 2007-12-09  Bruno Haible  <bruno@clisp.org>
42371
42372         Let 'gnulib-tool --import' collect sources needed for the tests in
42373         tests/ rather than in lib/.
42374         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42375         argument. If true, add rules to generate libtests.a, and put libtests.a
42376         into $(LDADD). Consider source files in subdirectories and set
42377         uses_subdirs.
42378         (func_emit_initmacro_start, func_emit_initmacro_end,
42379         func_emit_initmacro_done): Pass all arguments explicitly.
42380         (func_import): Determine two module lists main_modules,
42381         testsrelated_modules. Determine use_libtests. Determine two variables
42382         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42383         instead of just sed_transform_lib_file. Determine two variables
42384         main_files and testsrelated_files. Compute 'files' as the union of
42385         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42386         func_add_or_update. In the generated gnulib-comp.m4, collect the
42387         object files for tests/ in different variables than those for lib/.
42388         Substitute LIBTESTS_LIBDEPS.
42389         (func_create_testdir): Combine the uses_subdirs results from
42390         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42391
42392 2007-12-09  Bruno Haible  <bruno@clisp.org>
42393
42394         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42395         the build-aux directory.
42396
42397 2007-12-09  Bruno Haible  <bruno@clisp.org>
42398
42399         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42400         introduced on 2006-09-09.
42401
42402 2007-12-07  Jim Meyering  <meyering@redhat.com>
42403
42404         Let these macros work also with autoconf-2.59.
42405         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42406         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42408
42409 2007-12-06  Jim Meyering  <meyering@redhat.com>
42410
42411         Avoid a configure-time syntax error in gl_FUNC_ACL.
42412         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42413         function in each branch, before testing the cache variable.
42414
42415 2007-12-04  Eric Blake  <ebb9@byu.net>
42416
42417         Make scripts executable.
42418         * build-aux/config.guess: Add execute permissions.
42419         * build-aux/config.sub: Likewise.
42420         * build-aux/gendocs.sh: Likewise.
42421
42422         Fix frexp on mingw.
42423         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42424         cross-compiling.
42425         * doc/functions/frexp.texi (frexp): Document the bug.
42426
42427         Make cygwin fseeko check more reliable.
42428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42429         version numbers, rather than unrelated feature check.
42430         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42431         * doc/functions/ftello.texi (ftello): Likewise.
42432         Reported by Bruno Haible.
42433
42434         * m4/strerror.m4: Bump version number.
42435
42436 2007-12-03  Bruno Haible  <bruno@clisp.org>
42437
42438         * doc/functions/mprotect.texi: Mention the mingw problem.
42439
42440 2007-12-03  Eric Blake  <ebb9@byu.net>
42441
42442         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42443         REPLACE_STRERROR is initialized before this macro.
42444
42445 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42446
42447         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42448         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42449         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42450         put -lsec in even for programs other than 'ls'.  This fixes a problem
42451         for gettext reported by Bruno Haible in
42452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42453         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42454         Add support for Solaris 10.  This isn't efficient, but should get the
42455         job done for now.
42456
42457 2007-12-03  James Youngman  <jay@gnu.org>
42458
42459         * doc/regexprops-generic.texi: change "an close-group" to "a
42460         close-group" and "illegal" to "not allowed".
42461
42462 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42463
42464         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42465         pr_byname.h. Needed for the rare case when the maintainer has done
42466         "make maintainer-clean" in the source directory and then attempts a
42467         build outside the source directory.
42468         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42469         scripts_byname.h.
42470
42471 2007-12-02  Martin Lambers <marlam@marlam.de>
42472             Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/getpagesize.h: Remove file.
42475         * lib/unistd.in.h: Include declaration of getpagesize here.
42476         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42477         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42478         HAVE_SYS_PARAM_H.
42479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42480         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42481         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42482         (Depends-on): Add unistd.
42483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42484         (Include): Use <unistd.h> instead of getpagesize.h.
42485         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42486         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42487         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42488         gl_GETPAGESIZE invocation, already handled by module dependency.
42489         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42490
42491 2007-12-02  Bruno Haible  <bruno@clisp.org>
42492
42493         * modules/strings-tests: New file.
42494         * tests/test-strings.c: New file.
42495
42496         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42497         * lib/strings.in.h: New file.
42498         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42499         * m4/strings_h.m4: New file.
42500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42501         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42502         * modules/strings: New file.
42503         * modules/string (Makefile.am): Update.
42504         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42505         Reported by Karl Berry.
42506
42507 2007-12-01  Eric Blake  <ebb9@byu.net>
42508
42509         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42510         accomodate fix in cygwin 1.5.25.
42511
42512 2007-12-01  Jim Meyering  <meyering@redhat.com>
42513
42514         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42515         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42516         that would inhibit utf8-optimization of a regexp containing line-
42517         or buffer-anchors, e.g., `^', `$'.
42518
42519 2007-11-30  Bruno Haible  <bruno@clisp.org>
42520
42521         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42522         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42523         glthread_recursive_lock_init.
42524         * lib/lock.c (glthread_recursive_lock_init)
42525         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42527
42528 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42529
42530         New function qset_acl, like set_acl but with syscall semantics.
42531         * lib/acl.h (qset_acl): New decl.
42532         * lib/acl.c (qset_acl): New function.
42533         (set_acl): Use new function.  Use more-consistent diagnostics.
42534
42535 2007-11-28  Jim Meyering  <meyering@redhat.com>
42536
42537         * modules/physmem (License): Change from GPL to LGPLv2+.
42538
42539 2007-11-26  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42542         'long double' type has excess precision.
42543         Reported by Jim Meyering in
42544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42545
42546 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42547
42548         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42549         Sync from <http://gnu.org/licenses>.
42550         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42551         with license text from same location.
42552         * doc/maintain.texi, doc/standards.texi:  Sync from
42553         <http://savannah.gnu.org/projects/gnustandards>.
42554
42555 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
42556         and Jim Meyering  <meyering@redhat.com>
42557
42558         Adjust getdate' grammar to accept a slightly more regular language.
42559         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42560         Before, the former was rejected.
42561         * lib/getdate.y (digits_to_date_time): New function, factored
42562         out of ...
42563         (number): ...here.  Just call digits_to_date_time.
42564         (hybrid): New non-terminal to handle an <unsigned number,
42565         signed relative offset> sequence consistently.
42566
42567 2007-11-18  Jim Meyering  <meyering@redhat.com>
42568
42569         Pull my changes from coreutils:
42570         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42571         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42572         use of $gnulib_tool_option_extras, so that it's separated from the
42573         preceding argument.
42574
42575         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42576         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42577         parent destination directories before copying a file into place.
42578
42579 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42580
42581         bootstrap: work also with 4-argument variant of AC_INIT
42582         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42583
42584 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42585
42586         Port test-getaddrinfo to Solaris.
42587         Problem reported by Bruno Haible in
42588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42589         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42590         explanation of setting 'hints'.
42591         Don't reject an implementation merely because it returns EAI_SERVICE.
42592         (EAI_SERVICE): Define to 0 if not defined.
42593
42594 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42595
42596         The license of gnu-make and posix-shell is now "GPLed build tool".
42597         * modules/gnu-make (License): Likewise.
42598         * modules/posix-shell (License): Likewise.
42599
42600         New module posix-shell, for determining a POSIX shell
42601         or perhaps something that is close enough to a POSIX shell.
42602         * m4/posix-shell.m4: New file.
42603         * modules/posix-shell: New file.
42604
42605         * MODULES.html.sh: Mention new module.
42606
42607         New module gnu-make, for determining whether we're using GNU Make.
42608         * m4/gnu-make.m4: New file.
42609         * modules/gnu-make: New file.
42610         * MODULES.html.sh: Mention new module.
42611
42612 2007-11-14  Jim Meyering  <meyering@redhat.com>
42613
42614         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42615         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42616         use this macro to create a function _definition_.
42617         Remove useless "#undef ARGMATCH_DIE".
42618
42619 2007-11-14  Bruno Haible  <bruno@clisp.org>
42620
42621         * lib/config.charset: Update for OpenBSD 4.1.
42622         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42623
42624 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42625
42626         Document 64-bit #if problems in stdint.texi.
42627         * doc/headers/stdint.texi (stdint.h): Mention problems with
42628         64-bit-#if, and how to work around them.
42629
42630         Don't insist on 'long long int' support in the preprocessor.  It
42631         breaks too many things.  For example, PRIdMAX still uses a 'long
42632         long int' format with the latest Sun compiler, even though
42633         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42634         preprocessor problem.  This causes the latest coreutils to dump
42635         core on Solaris 10 sparc with the Sun C compiler.
42636         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42637         the troublesome expressions at configure-time, not at #if-time.
42638         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42639         preprocessor.
42640         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42641         compile-time C checks, done at 'configure'-time.
42642         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42643         * modules/inttypes (Makefile): Substitute the new symbols that
42644         gl_INTTYPES_H now generates.
42645         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42646
42647 2007-11-12  Bruno Haible  <bruno@clisp.org>
42648
42649         Tests for Unicode character classification functions.
42650
42651         * modules/unictype/bidicategory-byname-tests: New file.
42652         * modules/unictype/bidicategory-name-tests: New file.
42653         * modules/unictype/bidicategory-of-tests: New file.
42654         * modules/unictype/bidicategory-test-tests: New file.
42655         * modules/unictype/block-list-tests: New file.
42656         * modules/unictype/block-of-tests: New file.
42657         * modules/unictype/block-test-tests: New file.
42658         * modules/unictype/category-C-tests: New file.
42659         * modules/unictype/category-Cc-tests: New file.
42660         * modules/unictype/category-Cf-tests: New file.
42661         * modules/unictype/category-Cn-tests: New file.
42662         * modules/unictype/category-Co-tests: New file.
42663         * modules/unictype/category-Cs-tests: New file.
42664         * modules/unictype/category-L-tests: New file.
42665         * modules/unictype/category-Ll-tests: New file.
42666         * modules/unictype/category-Lm-tests: New file.
42667         * modules/unictype/category-Lo-tests: New file.
42668         * modules/unictype/category-Lt-tests: New file.
42669         * modules/unictype/category-Lu-tests: New file.
42670         * modules/unictype/category-M-tests: New file.
42671         * modules/unictype/category-Mc-tests: New file.
42672         * modules/unictype/category-Me-tests: New file.
42673         * modules/unictype/category-Mn-tests: New file.
42674         * modules/unictype/category-N-tests: New file.
42675         * modules/unictype/category-Nd-tests: New file.
42676         * modules/unictype/category-Nl-tests: New file.
42677         * modules/unictype/category-No-tests: New file.
42678         * modules/unictype/category-P-tests: New file.
42679         * modules/unictype/category-Pc-tests: New file.
42680         * modules/unictype/category-Pd-tests: New file.
42681         * modules/unictype/category-Pe-tests: New file.
42682         * modules/unictype/category-Pf-tests: New file.
42683         * modules/unictype/category-Pi-tests: New file.
42684         * modules/unictype/category-Po-tests: New file.
42685         * modules/unictype/category-Ps-tests: New file.
42686         * modules/unictype/category-S-tests: New file.
42687         * modules/unictype/category-Sc-tests: New file.
42688         * modules/unictype/category-Sk-tests: New file.
42689         * modules/unictype/category-Sm-tests: New file.
42690         * modules/unictype/category-So-tests: New file.
42691         * modules/unictype/category-Z-tests: New file.
42692         * modules/unictype/category-Zl-tests: New file.
42693         * modules/unictype/category-Zp-tests: New file.
42694         * modules/unictype/category-Zs-tests: New file.
42695         * modules/unictype/category-and-not-tests: New file.
42696         * modules/unictype/category-and-tests: New file.
42697         * modules/unictype/category-byname-tests: New file.
42698         * modules/unictype/category-name-tests: New file.
42699         * modules/unictype/category-none-tests: New file.
42700         * modules/unictype/category-of-tests: New file.
42701         * modules/unictype/category-or-tests: New file.
42702         * modules/unictype/category-test-withtable-tests: New file.
42703         * modules/unictype/combining-class-tests: New file.
42704         * modules/unictype/ctype-alnum-tests: New file.
42705         * modules/unictype/ctype-alpha-tests: New file.
42706         * modules/unictype/ctype-blank-tests: New file.
42707         * modules/unictype/ctype-cntrl-tests: New file.
42708         * modules/unictype/ctype-digit-tests: New file.
42709         * modules/unictype/ctype-graph-tests: New file.
42710         * modules/unictype/ctype-lower-tests: New file.
42711         * modules/unictype/ctype-print-tests: New file.
42712         * modules/unictype/ctype-punct-tests: New file.
42713         * modules/unictype/ctype-space-tests: New file.
42714         * modules/unictype/ctype-upper-tests: New file.
42715         * modules/unictype/ctype-xdigit-tests: New file.
42716         * modules/unictype/decimal-digit-tests: New file.
42717         * modules/unictype/digit-tests: New file.
42718         * modules/unictype/mirror-tests: New file.
42719         * modules/unictype/numeric-tests: New file.
42720         * modules/unictype/property-alphabetic-tests: New file.
42721         * modules/unictype/property-ascii-hex-digit-tests: New file.
42722         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42723         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42724         * modules/unictype/property-bidi-block-separator-tests: New file.
42725         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42726         * modules/unictype/property-bidi-common-separator-tests: New file.
42727         * modules/unictype/property-bidi-control-tests: New file.
42728         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42729         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42730         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42731         * modules/unictype/property-bidi-european-digit-tests: New file.
42732         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42733         * modules/unictype/property-bidi-left-to-right-tests: New file.
42734         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42735         * modules/unictype/property-bidi-other-neutral-tests: New file.
42736         * modules/unictype/property-bidi-pdf-tests: New file.
42737         * modules/unictype/property-bidi-segment-separator-tests: New file.
42738         * modules/unictype/property-bidi-whitespace-tests: New file.
42739         * modules/unictype/property-byname-tests: New file.
42740         * modules/unictype/property-combining-tests: New file.
42741         * modules/unictype/property-composite-tests: New file.
42742         * modules/unictype/property-currency-symbol-tests: New file.
42743         * modules/unictype/property-dash-tests: New file.
42744         * modules/unictype/property-decimal-digit-tests: New file.
42745         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42746         * modules/unictype/property-deprecated-tests: New file.
42747         * modules/unictype/property-diacritic-tests: New file.
42748         * modules/unictype/property-extender-tests: New file.
42749         * modules/unictype/property-format-control-tests: New file.
42750         * modules/unictype/property-grapheme-base-tests: New file.
42751         * modules/unictype/property-grapheme-extend-tests: New file.
42752         * modules/unictype/property-grapheme-link-tests: New file.
42753         * modules/unictype/property-hex-digit-tests: New file.
42754         * modules/unictype/property-hyphen-tests: New file.
42755         * modules/unictype/property-id-continue-tests: New file.
42756         * modules/unictype/property-id-start-tests: New file.
42757         * modules/unictype/property-ideographic-tests: New file.
42758         * modules/unictype/property-ids-binary-operator-tests: New file.
42759         * modules/unictype/property-ids-trinary-operator-tests: New file.
42760         * modules/unictype/property-ignorable-control-tests: New file.
42761         * modules/unictype/property-iso-control-tests: New file.
42762         * modules/unictype/property-join-control-tests: New file.
42763         * modules/unictype/property-left-of-pair-tests: New file.
42764         * modules/unictype/property-line-separator-tests: New file.
42765         * modules/unictype/property-logical-order-exception-tests: New file.
42766         * modules/unictype/property-lowercase-tests: New file.
42767         * modules/unictype/property-math-tests: New file.
42768         * modules/unictype/property-non-break-tests: New file.
42769         * modules/unictype/property-not-a-character-tests: New file.
42770         * modules/unictype/property-numeric-tests: New file.
42771         * modules/unictype/property-other-alphabetic-tests: New file.
42772         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42773         * modules/unictype/property-other-grapheme-extend-tests: New file.
42774         * modules/unictype/property-other-id-continue-tests: New file.
42775         * modules/unictype/property-other-id-start-tests: New file.
42776         * modules/unictype/property-other-lowercase-tests: New file.
42777         * modules/unictype/property-other-math-tests: New file.
42778         * modules/unictype/property-other-uppercase-tests: New file.
42779         * modules/unictype/property-paired-punctuation-tests: New file.
42780         * modules/unictype/property-paragraph-separator-tests: New file.
42781         * modules/unictype/property-pattern-syntax-tests: New file.
42782         * modules/unictype/property-pattern-white-space-tests: New file.
42783         * modules/unictype/property-private-use-tests: New file.
42784         * modules/unictype/property-punctuation-tests: New file.
42785         * modules/unictype/property-quotation-mark-tests: New file.
42786         * modules/unictype/property-radical-tests: New file.
42787         * modules/unictype/property-sentence-terminal-tests: New file.
42788         * modules/unictype/property-soft-dotted-tests: New file.
42789         * modules/unictype/property-space-tests: New file.
42790         * modules/unictype/property-terminal-punctuation-tests: New file.
42791         * modules/unictype/property-test-tests: New file.
42792         * modules/unictype/property-titlecase-tests: New file.
42793         * modules/unictype/property-unassigned-code-value-tests: New file.
42794         * modules/unictype/property-unified-ideograph-tests: New file.
42795         * modules/unictype/property-uppercase-tests: New file.
42796         * modules/unictype/property-variation-selector-tests: New file.
42797         * modules/unictype/property-white-space-tests: New file.
42798         * modules/unictype/property-xid-continue-tests: New file.
42799         * modules/unictype/property-xid-start-tests: New file.
42800         * modules/unictype/property-zero-width-tests: New file.
42801         * modules/unictype/scripts-tests: New file.
42802         * modules/unictype/syntax-c-ident-tests: New file.
42803         * modules/unictype/syntax-c-whitespace-tests: New file.
42804         * modules/unictype/syntax-java-ident-tests: New file.
42805         * modules/unictype/syntax-java-whitespace-tests: New file.
42806         * tests/unictype/test-bidi_byname.c: New file.
42807         * tests/unictype/test-bidi_name.c: New file.
42808         * tests/unictype/test-bidi_of.c: New file.
42809         * tests/unictype/test-bidi_test.c: New file.
42810         * tests/unictype/test-block_list.c: New file.
42811         * tests/unictype/test-block_of.c: New file.
42812         * tests/unictype/test-block_test.c: New file.
42813         * tests/unictype/test-categ_and.c: New file.
42814         * tests/unictype/test-categ_and_not.c: New file.
42815         * tests/unictype/test-categ_byname.c: New file.
42816         * tests/unictype/test-categ_name.c: New file.
42817         * tests/unictype/test-categ_none.c: New file.
42818         * tests/unictype/test-categ_of.c: New file.
42819         * tests/unictype/test-categ_or.c: New file.
42820         * tests/unictype/test-categ_test_withtable.c: New file.
42821         * tests/unictype/test-combining.c: New file.
42822         * tests/unictype/test-decdigit.c: New file.
42823         * tests/unictype/test-digit.c: New file.
42824         * tests/unictype/test-mirror.c: New file.
42825         * tests/unictype/test-numeric.c: New file.
42826         * tests/unictype/test-pr_byname.c: New file.
42827         * tests/unictype/test-pr_test.c: New file.
42828         * tests/unictype/test-predicate-part1.h: New file.
42829         * tests/unictype/test-predicate-part2.h: New file.
42830         * tests/unictype/test-scripts.c: New file.
42831         * tests/unictype/test-sy_c_ident.c: New file.
42832         * tests/unictype/test-sy_java_ident.c: New file.
42833
42834         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42835         for Unicode 5.0.0.
42836         * tests/unictype/test-categ_Cc.c: Likewise.
42837         * tests/unictype/test-categ_Cf.c: Likewise.
42838         * tests/unictype/test-categ_Cn.c: Likewise.
42839         * tests/unictype/test-categ_Co.c: Likewise.
42840         * tests/unictype/test-categ_Cs.c: Likewise.
42841         * tests/unictype/test-categ_L.c: Likewise.
42842         * tests/unictype/test-categ_Ll.c: Likewise.
42843         * tests/unictype/test-categ_Lm.c: Likewise.
42844         * tests/unictype/test-categ_Lo.c: Likewise.
42845         * tests/unictype/test-categ_Lt.c: Likewise.
42846         * tests/unictype/test-categ_Lu.c: Likewise.
42847         * tests/unictype/test-categ_M.c: Likewise.
42848         * tests/unictype/test-categ_Mc.c: Likewise.
42849         * tests/unictype/test-categ_Me.c: Likewise.
42850         * tests/unictype/test-categ_Mn.c: Likewise.
42851         * tests/unictype/test-categ_N.c: Likewise.
42852         * tests/unictype/test-categ_Nd.c: Likewise.
42853         * tests/unictype/test-categ_Nl.c: Likewise.
42854         * tests/unictype/test-categ_No.c: Likewise.
42855         * tests/unictype/test-categ_P.c: Likewise.
42856         * tests/unictype/test-categ_Pc.c: Likewise.
42857         * tests/unictype/test-categ_Pd.c: Likewise.
42858         * tests/unictype/test-categ_Pe.c: Likewise.
42859         * tests/unictype/test-categ_Pf.c: Likewise.
42860         * tests/unictype/test-categ_Pi.c: Likewise.
42861         * tests/unictype/test-categ_Po.c: Likewise.
42862         * tests/unictype/test-categ_Ps.c: Likewise.
42863         * tests/unictype/test-categ_S.c: Likewise.
42864         * tests/unictype/test-categ_Sc.c: Likewise.
42865         * tests/unictype/test-categ_Sk.c: Likewise.
42866         * tests/unictype/test-categ_Sm.c: Likewise.
42867         * tests/unictype/test-categ_So.c: Likewise.
42868         * tests/unictype/test-categ_Z.c: Likewise.
42869         * tests/unictype/test-categ_Zl.c: Likewise.
42870         * tests/unictype/test-categ_Zp.c: Likewise.
42871         * tests/unictype/test-categ_Zs.c: Likewise.
42872         * tests/unictype/test-ctype_alnum.c: Likewise.
42873         * tests/unictype/test-ctype_alpha.c: Likewise.
42874         * tests/unictype/test-ctype_blank.c: Likewise.
42875         * tests/unictype/test-ctype_cntrl.c: Likewise.
42876         * tests/unictype/test-ctype_digit.c: Likewise.
42877         * tests/unictype/test-ctype_graph.c: Likewise.
42878         * tests/unictype/test-ctype_lower.c: Likewise.
42879         * tests/unictype/test-ctype_print.c: Likewise.
42880         * tests/unictype/test-ctype_punct.c: Likewise.
42881         * tests/unictype/test-ctype_space.c: Likewise.
42882         * tests/unictype/test-ctype_upper.c: Likewise.
42883         * tests/unictype/test-ctype_xdigit.c: Likewise.
42884         * tests/unictype/test-decdigit.h: Likewise.
42885         * tests/unictype/test-digit.h: Likewise.
42886         * tests/unictype/test-numeric.h: Likewise.
42887         * tests/unictype/test-pr_alphabetic.c: Likewise.
42888         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42889         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42890         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42891         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42892         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42893         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42894         * tests/unictype/test-pr_bidi_control.c: Likewise.
42895         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42896         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42897         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42898         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42899         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42900         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42901         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42902         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42903         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42904         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42905         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42906         * tests/unictype/test-pr_combining.c: Likewise.
42907         * tests/unictype/test-pr_composite.c: Likewise.
42908         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42909         * tests/unictype/test-pr_dash.c: Likewise.
42910         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42911         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42912         * tests/unictype/test-pr_deprecated.c: Likewise.
42913         * tests/unictype/test-pr_diacritic.c: Likewise.
42914         * tests/unictype/test-pr_extender.c: Likewise.
42915         * tests/unictype/test-pr_format_control.c: Likewise.
42916         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42917         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42918         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42919         * tests/unictype/test-pr_hex_digit.c: Likewise.
42920         * tests/unictype/test-pr_hyphen.c: Likewise.
42921         * tests/unictype/test-pr_id_continue.c: Likewise.
42922         * tests/unictype/test-pr_id_start.c: Likewise.
42923         * tests/unictype/test-pr_ideographic.c: Likewise.
42924         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42925         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42926         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42927         * tests/unictype/test-pr_iso_control.c: Likewise.
42928         * tests/unictype/test-pr_join_control.c: Likewise.
42929         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42930         * tests/unictype/test-pr_line_separator.c: Likewise.
42931         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42932         * tests/unictype/test-pr_lowercase.c: Likewise.
42933         * tests/unictype/test-pr_math.c: Likewise.
42934         * tests/unictype/test-pr_non_break.c: Likewise.
42935         * tests/unictype/test-pr_not_a_character.c: Likewise.
42936         * tests/unictype/test-pr_numeric.c: Likewise.
42937         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42938         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42939         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42940         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42941         * tests/unictype/test-pr_other_id_start.c: Likewise.
42942         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42943         * tests/unictype/test-pr_other_math.c: Likewise.
42944         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42945         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42946         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42947         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42948         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42949         * tests/unictype/test-pr_private_use.c: Likewise.
42950         * tests/unictype/test-pr_punctuation.c: Likewise.
42951         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42952         * tests/unictype/test-pr_radical.c: Likewise.
42953         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42954         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42955         * tests/unictype/test-pr_space.c: Likewise.
42956         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42957         * tests/unictype/test-pr_titlecase.c: Likewise.
42958         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42959         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42960         * tests/unictype/test-pr_uppercase.c: Likewise.
42961         * tests/unictype/test-pr_variation_selector.c: Likewise.
42962         * tests/unictype/test-pr_white_space.c: Likewise.
42963         * tests/unictype/test-pr_xid_continue.c: Likewise.
42964         * tests/unictype/test-pr_xid_start.c: Likewise.
42965         * tests/unictype/test-pr_zero_width.c: Likewise.
42966         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42967         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42968
42969 2007-11-12  Bruno Haible  <bruno@clisp.org>
42970
42971         Unicode character classification functions.
42972         * lib/unictype.h: New file.
42973         * modules/unictype/base: New file.
42974         * modules/unictype/category-L: New file.
42975         * modules/unictype/category-Lu: New file.
42976         * modules/unictype/category-Ll: New file.
42977         * modules/unictype/category-Lt: New file.
42978         * modules/unictype/category-Lm: New file.
42979         * modules/unictype/category-Lo: New file.
42980         * modules/unictype/category-M: New file.
42981         * modules/unictype/category-Mn: New file.
42982         * modules/unictype/category-Mc: New file.
42983         * modules/unictype/category-Me: New file.
42984         * modules/unictype/category-N: New file.
42985         * modules/unictype/category-Nd: New file.
42986         * modules/unictype/category-Nl: New file.
42987         * modules/unictype/category-No: New file.
42988         * modules/unictype/category-P: New file.
42989         * modules/unictype/category-Pc: New file.
42990         * modules/unictype/category-Pd: New file.
42991         * modules/unictype/category-Ps: New file.
42992         * modules/unictype/category-Pe: New file.
42993         * modules/unictype/category-Pi: New file.
42994         * modules/unictype/category-Pf: New file.
42995         * modules/unictype/category-Po: New file.
42996         * modules/unictype/category-S: New file.
42997         * modules/unictype/category-Sm: New file.
42998         * modules/unictype/category-Sc: New file.
42999         * modules/unictype/category-Sk: New file.
43000         * modules/unictype/category-So: New file.
43001         * modules/unictype/category-Z: New file.
43002         * modules/unictype/category-Zs: New file.
43003         * modules/unictype/category-Zl: New file.
43004         * modules/unictype/category-Zp: New file.
43005         * modules/unictype/category-C: New file.
43006         * modules/unictype/category-Cc: New file.
43007         * modules/unictype/category-Cf: New file.
43008         * modules/unictype/category-Cs: New file.
43009         * modules/unictype/category-Co: New file.
43010         * modules/unictype/category-Cn: New file.
43011         * modules/unictype/category-or: New file.
43012         * modules/unictype/category-of: New file.
43013         * modules/unictype/category-test: New file.
43014         * modules/unictype/category-test-withtable: New file.
43015         * modules/unictype/category-byname: New file.
43016         * modules/unictype/category-none: New file.
43017         * modules/unictype/category-and: New file.
43018         * modules/unictype/category-and-not: New file.
43019         * modules/unictype/category-name: New file.
43020         * modules/unictype/combining-class: New file.
43021         * modules/unictype/category-all: New file.
43022         * modules/unictype/bidicategory-all: New file.
43023         * modules/unictype/bidicategory-byname: New file.
43024         * modules/unictype/bidicategory-name: New file.
43025         * modules/unictype/bidicategory-of: New file.
43026         * modules/unictype/bidicategory-test: New file.
43027         * modules/unictype/decimal-digit: New file.
43028         * modules/unictype/digit: New file.
43029         * modules/unictype/numeric: New file.
43030         * modules/unictype/mirror: New file.
43031         * modules/unictype/property-white-space: New file.
43032         * modules/unictype/property-alphabetic: New file.
43033         * modules/unictype/property-other-alphabetic: New file.
43034         * modules/unictype/property-not-a-character: New file.
43035         * modules/unictype/property-default-ignorable-code-point: New file.
43036         * modules/unictype/property-other-default-ignorable-code-point: New
43037         file.
43038         * modules/unictype/property-deprecated: New file.
43039         * modules/unictype/property-logical-order-exception: New file.
43040         * modules/unictype/property-variation-selector: New file.
43041         * modules/unictype/property-private-use: New file.
43042         * modules/unictype/property-unassigned-code-value: New file.
43043         * modules/unictype/property-uppercase: New file.
43044         * modules/unictype/property-other-uppercase: New file.
43045         * modules/unictype/property-lowercase: New file.
43046         * modules/unictype/property-other-lowercase: New file.
43047         * modules/unictype/property-titlecase: New file.
43048         * modules/unictype/property-soft-dotted: New file.
43049         * modules/unictype/property-id-start: New file.
43050         * modules/unictype/property-other-id-start: New file.
43051         * modules/unictype/property-id-continue: New file.
43052         * modules/unictype/property-other-id-continue: New file.
43053         * modules/unictype/property-xid-start: New file.
43054         * modules/unictype/property-xid-continue: New file.
43055         * modules/unictype/property-pattern-white-space: New file.
43056         * modules/unictype/property-pattern-syntax: New file.
43057         * modules/unictype/property-join-control: New file.
43058         * modules/unictype/property-grapheme-base: New file.
43059         * modules/unictype/property-grapheme-extend: New file.
43060         * modules/unictype/property-other-grapheme-extend: New file.
43061         * modules/unictype/property-grapheme-link: New file.
43062         * modules/unictype/property-bidi-control: New file.
43063         * modules/unictype/property-bidi-left-to-right: New file.
43064         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43065         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43066         * modules/unictype/property-bidi-european-digit: New file.
43067         * modules/unictype/property-bidi-eur-num-separator: New file.
43068         * modules/unictype/property-bidi-eur-num-terminator: New file.
43069         * modules/unictype/property-bidi-arabic-digit: New file.
43070         * modules/unictype/property-bidi-common-separator: New file.
43071         * modules/unictype/property-bidi-block-separator: New file.
43072         * modules/unictype/property-bidi-segment-separator: New file.
43073         * modules/unictype/property-bidi-whitespace: New file.
43074         * modules/unictype/property-bidi-non-spacing-mark: New file.
43075         * modules/unictype/property-bidi-boundary-neutral: New file.
43076         * modules/unictype/property-bidi-pdf: New file.
43077         * modules/unictype/property-bidi-embedding-or-override: New file.
43078         * modules/unictype/property-bidi-other-neutral: New file.
43079         * modules/unictype/property-hex-digit: New file.
43080         * modules/unictype/property-ascii-hex-digit: New file.
43081         * modules/unictype/property-ideographic: New file.
43082         * modules/unictype/property-unified-ideograph: New file.
43083         * modules/unictype/property-radical: New file.
43084         * modules/unictype/property-ids-binary-operator: New file.
43085         * modules/unictype/property-ids-trinary-operator: New file.
43086         * modules/unictype/property-zero-width: New file.
43087         * modules/unictype/property-space: New file.
43088         * modules/unictype/property-non-break: New file.
43089         * modules/unictype/property-iso-control: New file.
43090         * modules/unictype/property-format-control: New file.
43091         * modules/unictype/property-dash: New file.
43092         * modules/unictype/property-hyphen: New file.
43093         * modules/unictype/property-punctuation: New file.
43094         * modules/unictype/property-line-separator: New file.
43095         * modules/unictype/property-paragraph-separator: New file.
43096         * modules/unictype/property-quotation-mark: New file.
43097         * modules/unictype/property-sentence-terminal: New file.
43098         * modules/unictype/property-terminal-punctuation: New file.
43099         * modules/unictype/property-currency-symbol: New file.
43100         * modules/unictype/property-math: New file.
43101         * modules/unictype/property-other-math: New file.
43102         * modules/unictype/property-paired-punctuation: New file.
43103         * modules/unictype/property-left-of-pair: New file.
43104         * modules/unictype/property-combining: New file.
43105         * modules/unictype/property-composite: New file.
43106         * modules/unictype/property-decimal-digit: New file.
43107         * modules/unictype/property-numeric: New file.
43108         * modules/unictype/property-diacritic: New file.
43109         * modules/unictype/property-extender: New file.
43110         * modules/unictype/property-ignorable-control: New file.
43111         * modules/unictype/property-test: New file.
43112         * modules/unictype/property-byname: New file.
43113         * modules/unictype/property-all: New file.
43114         * modules/unictype/scripts: New file.
43115         * modules/unictype/scripts-all: New file.
43116         * modules/unictype/block-of: New file.
43117         * modules/unictype/block-test: New file.
43118         * modules/unictype/block-list: New file.
43119         * modules/unictype/block-all: New file.
43120         * modules/unictype/syntax-c-whitespace: New file.
43121         * modules/unictype/syntax-java-whitespace: New file.
43122         * modules/unictype/syntax-c-ident: New file.
43123         * modules/unictype/syntax-java-ident: New file.
43124         * modules/unictype/ctype-alnum: New file.
43125         * modules/unictype/ctype-alpha: New file.
43126         * modules/unictype/ctype-cntrl: New file.
43127         * modules/unictype/ctype-digit: New file.
43128         * modules/unictype/ctype-graph: New file.
43129         * modules/unictype/ctype-lower: New file.
43130         * modules/unictype/ctype-print: New file.
43131         * modules/unictype/ctype-punct: New file.
43132         * modules/unictype/ctype-space: New file.
43133         * modules/unictype/ctype-upper: New file.
43134         * modules/unictype/ctype-xdigit: New file.
43135         * modules/unictype/ctype-blank: New file.
43136         * lib/unictype/bidi_byname.c: New file.
43137         * lib/unictype/bidi_name.c: New file.
43138         * lib/unictype/bidi_of.c: New file.
43139         * lib/unictype/bidi_test.c: New file.
43140         * lib/unictype/bitmap.h: New file.
43141         * lib/unictype/block_test.c: New file.
43142         * lib/unictype/blocks.c: New file.
43143         * lib/unictype/categ_C.c: New file.
43144         * lib/unictype/categ_Cc.c: New file.
43145         * lib/unictype/categ_Cf.c: New file.
43146         * lib/unictype/categ_Cn.c: New file.
43147         * lib/unictype/categ_Co.c: New file.
43148         * lib/unictype/categ_Cs.c: New file.
43149         * lib/unictype/categ_L.c: New file.
43150         * lib/unictype/categ_Ll.c: New file.
43151         * lib/unictype/categ_Lm.c: New file.
43152         * lib/unictype/categ_Lo.c: New file.
43153         * lib/unictype/categ_Lt.c: New file.
43154         * lib/unictype/categ_Lu.c: New file.
43155         * lib/unictype/categ_M.c: New file.
43156         * lib/unictype/categ_Mc.c: New file.
43157         * lib/unictype/categ_Me.c: New file.
43158         * lib/unictype/categ_Mn.c: New file.
43159         * lib/unictype/categ_N.c: New file.
43160         * lib/unictype/categ_Nd.c: New file.
43161         * lib/unictype/categ_Nl.c: New file.
43162         * lib/unictype/categ_No.c: New file.
43163         * lib/unictype/categ_P.c: New file.
43164         * lib/unictype/categ_Pc.c: New file.
43165         * lib/unictype/categ_Pd.c: New file.
43166         * lib/unictype/categ_Pe.c: New file.
43167         * lib/unictype/categ_Pf.c: New file.
43168         * lib/unictype/categ_Pi.c: New file.
43169         * lib/unictype/categ_Po.c: New file.
43170         * lib/unictype/categ_Ps.c: New file.
43171         * lib/unictype/categ_S.c: New file.
43172         * lib/unictype/categ_Sc.c: New file.
43173         * lib/unictype/categ_Sk.c: New file.
43174         * lib/unictype/categ_Sm.c: New file.
43175         * lib/unictype/categ_So.c: New file.
43176         * lib/unictype/categ_Z.c: New file.
43177         * lib/unictype/categ_Zl.c: New file.
43178         * lib/unictype/categ_Zp.c: New file.
43179         * lib/unictype/categ_Zs.c: New file.
43180         * lib/unictype/categ_and.c: New file.
43181         * lib/unictype/categ_and_not.c: New file.
43182         * lib/unictype/categ_byname.c: New file.
43183         * lib/unictype/categ_name.c: New file.
43184         * lib/unictype/categ_none.c: New file.
43185         * lib/unictype/categ_of.c: New file.
43186         * lib/unictype/categ_or.c: New file.
43187         * lib/unictype/categ_test.c: New file.
43188         * lib/unictype/combining.c: New file.
43189         * lib/unictype/ctype_alnum.c: New file.
43190         * lib/unictype/ctype_alpha.c: New file.
43191         * lib/unictype/ctype_blank.c: New file.
43192         * lib/unictype/ctype_cntrl.c: New file.
43193         * lib/unictype/ctype_digit.c: New file.
43194         * lib/unictype/ctype_graph.c: New file.
43195         * lib/unictype/ctype_lower.c: New file.
43196         * lib/unictype/ctype_print.c: New file.
43197         * lib/unictype/ctype_punct.c: New file.
43198         * lib/unictype/ctype_space.c: New file.
43199         * lib/unictype/ctype_upper.c: New file.
43200         * lib/unictype/ctype_xdigit.c: New file.
43201         * lib/unictype/decdigit.c: New file.
43202         * lib/unictype/digit.c: New file.
43203         * lib/unictype/identsyntaxmap.h: New file.
43204         * lib/unictype/mirror.c: New file.
43205         * lib/unictype/numeric.c: New file.
43206         * lib/unictype/pr_alphabetic.c: New file.
43207         * lib/unictype/pr_ascii_hex_digit.c: New file.
43208         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43209         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43210         * lib/unictype/pr_bidi_block_separator.c: New file.
43211         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43212         * lib/unictype/pr_bidi_common_separator.c: New file.
43213         * lib/unictype/pr_bidi_control.c: New file.
43214         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43215         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43216         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43217         * lib/unictype/pr_bidi_european_digit.c: New file.
43218         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43219         * lib/unictype/pr_bidi_left_to_right.c: New file.
43220         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43221         * lib/unictype/pr_bidi_other_neutral.c: New file.
43222         * lib/unictype/pr_bidi_pdf.c: New file.
43223         * lib/unictype/pr_bidi_segment_separator.c: New file.
43224         * lib/unictype/pr_bidi_whitespace.c: New file.
43225         * lib/unictype/pr_byname.c: New file.
43226         * lib/unictype/pr_byname.gperf: New file.
43227         * lib/unictype/pr_combining.c: New file.
43228         * lib/unictype/pr_composite.c: New file.
43229         * lib/unictype/pr_currency_symbol.c: New file.
43230         * lib/unictype/pr_dash.c: New file.
43231         * lib/unictype/pr_decimal_digit.c: New file.
43232         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43233         * lib/unictype/pr_deprecated.c: New file.
43234         * lib/unictype/pr_diacritic.c: New file.
43235         * lib/unictype/pr_extender.c: New file.
43236         * lib/unictype/pr_format_control.c: New file.
43237         * lib/unictype/pr_grapheme_base.c: New file.
43238         * lib/unictype/pr_grapheme_extend.c: New file.
43239         * lib/unictype/pr_grapheme_link.c: New file.
43240         * lib/unictype/pr_hex_digit.c: New file.
43241         * lib/unictype/pr_hyphen.c: New file.
43242         * lib/unictype/pr_id_continue.c: New file.
43243         * lib/unictype/pr_id_start.c: New file.
43244         * lib/unictype/pr_ideographic.c: New file.
43245         * lib/unictype/pr_ids_binary_operator.c: New file.
43246         * lib/unictype/pr_ids_trinary_operator.c: New file.
43247         * lib/unictype/pr_ignorable_control.c: New file.
43248         * lib/unictype/pr_iso_control.c: New file.
43249         * lib/unictype/pr_join_control.c: New file.
43250         * lib/unictype/pr_left_of_pair.c: New file.
43251         * lib/unictype/pr_line_separator.c: New file.
43252         * lib/unictype/pr_logical_order_exception.c: New file.
43253         * lib/unictype/pr_lowercase.c: New file.
43254         * lib/unictype/pr_math.c: New file.
43255         * lib/unictype/pr_non_break.c: New file.
43256         * lib/unictype/pr_not_a_character.c: New file.
43257         * lib/unictype/pr_numeric.c: New file.
43258         * lib/unictype/pr_other_alphabetic.c: New file.
43259         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43260         * lib/unictype/pr_other_grapheme_extend.c: New file.
43261         * lib/unictype/pr_other_id_continue.c: New file.
43262         * lib/unictype/pr_other_id_start.c: New file.
43263         * lib/unictype/pr_other_lowercase.c: New file.
43264         * lib/unictype/pr_other_math.c: New file.
43265         * lib/unictype/pr_other_uppercase.c: New file.
43266         * lib/unictype/pr_paired_punctuation.c: New file.
43267         * lib/unictype/pr_paragraph_separator.c: New file.
43268         * lib/unictype/pr_pattern_syntax.c: New file.
43269         * lib/unictype/pr_pattern_white_space.c: New file.
43270         * lib/unictype/pr_private_use.c: New file.
43271         * lib/unictype/pr_punctuation.c: New file.
43272         * lib/unictype/pr_quotation_mark.c: New file.
43273         * lib/unictype/pr_radical.c: New file.
43274         * lib/unictype/pr_sentence_terminal.c: New file.
43275         * lib/unictype/pr_soft_dotted.c: New file.
43276         * lib/unictype/pr_space.c: New file.
43277         * lib/unictype/pr_terminal_punctuation.c: New file.
43278         * lib/unictype/pr_test.c: New file.
43279         * lib/unictype/pr_titlecase.c: New file.
43280         * lib/unictype/pr_unassigned_code_value.c: New file.
43281         * lib/unictype/pr_unified_ideograph.c: New file.
43282         * lib/unictype/pr_uppercase.c: New file.
43283         * lib/unictype/pr_variation_selector.c: New file.
43284         * lib/unictype/pr_white_space.c: New file.
43285         * lib/unictype/pr_xid_continue.c: New file.
43286         * lib/unictype/pr_xid_start.c: New file.
43287         * lib/unictype/pr_zero_width.c: New file.
43288         * lib/unictype/scripts.c: New file.
43289         * lib/unictype/sy_c_ident.c: New file.
43290         * lib/unictype/sy_c_whitespace.c: New file.
43291         * lib/unictype/sy_java_ident.c: New file.
43292         * lib/unictype/sy_java_whitespace.c: New file.
43293
43294         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43295         Unicode 5.0.0.
43296         * lib/unictype/blocks.h: Likewise.
43297         * lib/unictype/categ_C.h: Likewise.
43298         * lib/unictype/categ_Cc.h: Likewise.
43299         * lib/unictype/categ_Cf.h: Likewise.
43300         * lib/unictype/categ_Cn.h: Likewise.
43301         * lib/unictype/categ_Co.h: Likewise.
43302         * lib/unictype/categ_Cs.h: Likewise.
43303         * lib/unictype/categ_L.h: Likewise.
43304         * lib/unictype/categ_Ll.h: Likewise.
43305         * lib/unictype/categ_Lm.h: Likewise.
43306         * lib/unictype/categ_Lo.h: Likewise.
43307         * lib/unictype/categ_Lt.h: Likewise.
43308         * lib/unictype/categ_Lu.h: Likewise.
43309         * lib/unictype/categ_M.h: Likewise.
43310         * lib/unictype/categ_Mc.h: Likewise.
43311         * lib/unictype/categ_Me.h: Likewise.
43312         * lib/unictype/categ_Mn.h: Likewise.
43313         * lib/unictype/categ_N.h: Likewise.
43314         * lib/unictype/categ_Nd.h: Likewise.
43315         * lib/unictype/categ_Nl.h: Likewise.
43316         * lib/unictype/categ_No.h: Likewise.
43317         * lib/unictype/categ_P.h: Likewise.
43318         * lib/unictype/categ_Pc.h: Likewise.
43319         * lib/unictype/categ_Pd.h: Likewise.
43320         * lib/unictype/categ_Pe.h: Likewise.
43321         * lib/unictype/categ_Pf.h: Likewise.
43322         * lib/unictype/categ_Pi.h: Likewise.
43323         * lib/unictype/categ_Po.h: Likewise.
43324         * lib/unictype/categ_Ps.h: Likewise.
43325         * lib/unictype/categ_S.h: Likewise.
43326         * lib/unictype/categ_Sc.h: Likewise.
43327         * lib/unictype/categ_Sk.h: Likewise.
43328         * lib/unictype/categ_Sm.h: Likewise.
43329         * lib/unictype/categ_So.h: Likewise.
43330         * lib/unictype/categ_Z.h: Likewise.
43331         * lib/unictype/categ_Zl.h: Likewise.
43332         * lib/unictype/categ_Zp.h: Likewise.
43333         * lib/unictype/categ_Zs.h: Likewise.
43334         * lib/unictype/categ_of.h: Likewise.
43335         * lib/unictype/combining.h: Likewise.
43336         * lib/unictype/ctype_alnum.h: Likewise.
43337         * lib/unictype/ctype_alpha.h: Likewise.
43338         * lib/unictype/ctype_blank.h: Likewise.
43339         * lib/unictype/ctype_cntrl.h: Likewise.
43340         * lib/unictype/ctype_digit.h: Likewise.
43341         * lib/unictype/ctype_graph.h: Likewise.
43342         * lib/unictype/ctype_lower.h: Likewise.
43343         * lib/unictype/ctype_print.h: Likewise.
43344         * lib/unictype/ctype_punct.h: Likewise.
43345         * lib/unictype/ctype_space.h: Likewise.
43346         * lib/unictype/ctype_upper.h: Likewise.
43347         * lib/unictype/ctype_xdigit.h: Likewise.
43348         * lib/unictype/decdigit.h: Likewise.
43349         * lib/unictype/digit.h: Likewise.
43350         * lib/unictype/mirror.h: Likewise.
43351         * lib/unictype/numeric.h: Likewise.
43352         * lib/unictype/pr_alphabetic.h: Likewise.
43353         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43354         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43355         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43356         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43357         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43358         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43359         * lib/unictype/pr_bidi_control.h: Likewise.
43360         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43361         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43362         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43363         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43364         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43365         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43366         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43367         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43368         * lib/unictype/pr_bidi_pdf.h: Likewise.
43369         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43370         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43371         * lib/unictype/pr_combining.h: Likewise.
43372         * lib/unictype/pr_composite.h: Likewise.
43373         * lib/unictype/pr_currency_symbol.h: Likewise.
43374         * lib/unictype/pr_dash.h: Likewise.
43375         * lib/unictype/pr_decimal_digit.h: Likewise.
43376         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43377         * lib/unictype/pr_deprecated.h: Likewise.
43378         * lib/unictype/pr_diacritic.h: Likewise.
43379         * lib/unictype/pr_extender.h: Likewise.
43380         * lib/unictype/pr_format_control.h: Likewise.
43381         * lib/unictype/pr_grapheme_base.h: Likewise.
43382         * lib/unictype/pr_grapheme_extend.h: Likewise.
43383         * lib/unictype/pr_grapheme_link.h: Likewise.
43384         * lib/unictype/pr_hex_digit.h: Likewise.
43385         * lib/unictype/pr_hyphen.h: Likewise.
43386         * lib/unictype/pr_id_continue.h: Likewise.
43387         * lib/unictype/pr_id_start.h: Likewise.
43388         * lib/unictype/pr_ideographic.h: Likewise.
43389         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43390         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43391         * lib/unictype/pr_ignorable_control.h: Likewise.
43392         * lib/unictype/pr_iso_control.h: Likewise.
43393         * lib/unictype/pr_join_control.h: Likewise.
43394         * lib/unictype/pr_left_of_pair.h: Likewise.
43395         * lib/unictype/pr_line_separator.h: Likewise.
43396         * lib/unictype/pr_logical_order_exception.h: Likewise.
43397         * lib/unictype/pr_lowercase.h: Likewise.
43398         * lib/unictype/pr_math.h: Likewise.
43399         * lib/unictype/pr_non_break.h: Likewise.
43400         * lib/unictype/pr_not_a_character.h: Likewise.
43401         * lib/unictype/pr_numeric.h: Likewise.
43402         * lib/unictype/pr_other_alphabetic.h: Likewise.
43403         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43404         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43405         * lib/unictype/pr_other_id_continue.h: Likewise.
43406         * lib/unictype/pr_other_id_start.h: Likewise.
43407         * lib/unictype/pr_other_lowercase.h: Likewise.
43408         * lib/unictype/pr_other_math.h: Likewise.
43409         * lib/unictype/pr_other_uppercase.h: Likewise.
43410         * lib/unictype/pr_paired_punctuation.h: Likewise.
43411         * lib/unictype/pr_paragraph_separator.h: Likewise.
43412         * lib/unictype/pr_pattern_syntax.h: Likewise.
43413         * lib/unictype/pr_pattern_white_space.h: Likewise.
43414         * lib/unictype/pr_private_use.h: Likewise.
43415         * lib/unictype/pr_punctuation.h: Likewise.
43416         * lib/unictype/pr_quotation_mark.h: Likewise.
43417         * lib/unictype/pr_radical.h: Likewise.
43418         * lib/unictype/pr_sentence_terminal.h: Likewise.
43419         * lib/unictype/pr_soft_dotted.h: Likewise.
43420         * lib/unictype/pr_space.h: Likewise.
43421         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43422         * lib/unictype/pr_titlecase.h: Likewise.
43423         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43424         * lib/unictype/pr_unified_ideograph.h: Likewise.
43425         * lib/unictype/pr_uppercase.h: Likewise.
43426         * lib/unictype/pr_variation_selector.h: Likewise.
43427         * lib/unictype/pr_white_space.h: Likewise.
43428         * lib/unictype/pr_xid_continue.h: Likewise.
43429         * lib/unictype/pr_xid_start.h: Likewise.
43430         * lib/unictype/pr_zero_width.h: Likewise.
43431         * lib/unictype/scripts.h: Likewise.
43432         * lib/unictype/scripts_byname.gperf: Likewise.
43433         * lib/unictype/sy_c_ident.h: Likewise.
43434         * lib/unictype/sy_c_whitespace.h: Likewise.
43435         * lib/unictype/sy_java_ident.h: Likewise.
43436         * lib/unictype/sy_java_whitespace.h: Likewise.
43437
43438         * lib/unictype/Makefile: New file.
43439         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43440         glibc.
43441         * lib/unictype/3level.h: New file, copied from glibc.
43442         * lib/unictype/3levelbit.h: New file.
43443
43444 2007-11-11  Bruno Haible  <bruno@clisp.org>
43445
43446         * modules/gperf: New file.
43447         * modules/iconv_open (Depends-on): Add it.
43448         (Makefile.am): Remove the GPERF definition.
43449
43450 2007-11-11  Bruno Haible  <bruno@clisp.org>
43451
43452         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43453         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43454
43455 2007-11-11  Bruno Haible  <bruno@clisp.org>
43456
43457         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43458         (usage): Remove function.
43459
43460 2007-11-11  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43463         gl_FUNC_CEILF_LIBS.
43464         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43465         gl_FUNC_CEIL_LIBS.
43466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43467         gl_FUNC_CEILL_LIBS.
43468         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43469         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43470         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43471
43472 2007-11-11  Bruno Haible  <bruno@clisp.org>
43473
43474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43475         roundf were declared but do not exist on functions.
43476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43477         roundl were declared but do not exist on functions.
43478         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43479         HAVE_FLOORL_AND_CEILL, respectively.
43480         Needed for Sun C on Solaris 10.
43481
43482 2007-11-11  Bruno Haible  <bruno@clisp.org>
43483
43484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43485         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43486         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43487         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43489         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43490         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43491         HAVE_DECL_ROUNDF.
43492         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43493         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43495         of HAVE_DECL_ROUND*.
43496         * modules/math (Makefile.am): Update.
43497
43498 2007-11-10  Bruno Haible  <bruno@clisp.org>
43499
43500         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43501         ptrdiff_t as m4/intl.m4.
43502
43503 2007-11-10  Jim Meyering  <meyering@redhat.com>
43504
43505         Avoid link failure for the argmatch test.
43506         * tests/test-argmatch.c (usage): Define function to avoid a link
43507         failure: argmatch_die requires a usage function.
43508
43509 2007-11-09  Bruno Haible  <bruno@clisp.org>
43510
43511         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43512         * doc/functions/vsnprintf.texi: Likewise.
43513         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43514         with a size argument < 2.
43515
43516 2007-11-09  Bruno Haible  <bruno@clisp.org>
43517
43518         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43519         buffer. Fixes an inefficiency introduced on 2007-11-03.
43520
43521 2007-11-09  Bruno Haible  <bruno@clisp.org>
43522
43523         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43524         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43525
43526 2007-11-08  Jim Meyering  <meyering@redhat.com>
43527
43528         Change cache variable name prefix "jm_" to "gl_" everywhere.
43529         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43530         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43531         * m4/uptime.m4: s/gl_/jm_/
43532
43533 2007-11-07  Bruno Haible  <bruno@clisp.org>
43534
43535         Update to GNU gettext 0.17.
43536         * m4/intl.m4: Update to GNU gettext 0.17.
43537         * m4/po.m4: Likewise.
43538         * modules/gettext (Files): Remove m4/ulonglong.m4.
43539         (configure.ac): Require gettext infrastructure from version 0.17.
43540
43541 2007-11-06  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43544         symbolic values are not defined in a public header.
43545         * lib/freadable.c (freadable) [QNX]: Likewise.
43546         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43547         * lib/freading.c (freading) [QNX]: Likewise.
43548         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43549         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43550         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43551         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43552         Reported by Alain Magloire.
43553
43554         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43555
43556 2007-11-05  Bruno Haible  <bruno@clisp.org>
43557
43558         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43559         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43560         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43561         Reported by Eric Blake.
43562
43563 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43564             Bruno Haible  <bruno@clisp.org>
43565
43566         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43567         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43568         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43569         (malloc): Undefine also before including <stdlib.h>.
43570         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43571         Needed on OSF/1 4.0.
43572
43573 2007-11-05  Jim Meyering  <meyering@redhat.com>
43574
43575         git-version-gen: sync from coreutils.
43576         * build-aux/git-version-gen: Add comments.
43577         Change the first '-' to '.' in the snapshot version string,
43578         e.g., 6.9-377-08144 -> 6.9.377-08144
43579         Remove first parameter.
43580         Don't declare a version "-dirty" merely because a time
43581         stamp has changed.
43582
43583 2007-11-04  Bruno Haible  <bruno@clisp.org>
43584
43585         * lib/lock.h: Protect all macro definitions containing an 'if'
43586         statement through a "do { ... } while (0)".
43587         * lib/tls.h: Likewise.
43588
43589 2007-11-04  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43592
43593 2007-11-04  Bruno Haible  <bruno@clisp.org>
43594
43595         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43596         * modules/fprintf-posix (Depends-on): Add nocrash.
43597         * modules/snprintf-posix (Depends-on): Likewise.
43598         * modules/sprintf-posix (Depends-on): Likewise.
43599         * modules/vasnprintf-posix (Depends-on): Likewise.
43600         * modules/vasprintf-posix (Depends-on): Likewise.
43601         * modules/vfprintf-posix (Depends-on): Likewise.
43602         * modules/vsnprintf-posix (Depends-on): Likewise.
43603         * modules/vsprintf-posix (Depends-on): Likewise.
43604         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43605         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43606         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43607         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43608         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43609         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43610         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43611
43612 2007-11-04  Bruno Haible  <bruno@clisp.org>
43613
43614         * modules/nocrash: New file.
43615         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43616         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43617
43618 2007-11-04  Bruno Haible  <bruno@clisp.org>
43619
43620         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43621         precision handling.
43622         * tests/test-vasprintf-posix.c (test_function): Likewise.
43623         * tests/test-snprintf-posix.h (test_function): Likewise.
43624         * tests/test-sprintf-posix.h (test_function): Likewise.
43625
43626         Fix *printf behaviour for large precisions on mingw and BeOS.
43627         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43628         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43630         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43632         gl_PRINTF_PRECISION and test its result. Invoke
43633         gl_PREREQ_VASNPRINTF_PRECISION.
43634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43641         * doc/functions/fprintf.texi: Update.
43642         * doc/functions/printf.texi: Update.
43643         * doc/functions/snprintf.texi: Update.
43644         * doc/functions/sprintf.texi: Update.
43645         * doc/functions/vfprintf.texi: Update.
43646         * doc/functions/vprintf.texi: Update.
43647         * doc/functions/vsnprintf.texi: Update.
43648         * doc/functions/vsprintf.texi: Update.
43649
43650 2007-11-04  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43653
43654 2007-11-04  Bruno Haible  <bruno@clisp.org>
43655
43656         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43657         Reported by Sylvain Beucler <beuc@gnu.org>.
43658
43659 2007-11-03  Bruno Haible  <bruno@clisp.org>
43660
43661         * tests/test-fprintf-posix2.sh: New file.
43662         * tests/test-fprintf-posix2.c: New file.
43663         * modules/fprintf-posix-tests (Files): Add them.
43664         (TESTS): Add test-fprintf-posix2.sh.
43665         (configure.ac): Check for getrlimit and setrlimit.
43666         (check_PROGRAMS): Add test-fprintf-posix2.
43667
43668         * tests/test-printf-posix2.sh: New file.
43669         * tests/test-printf-posix2.c: New file.
43670         * modules/printf-posix-tests (Files): Add them.
43671         (TESTS): Add test-printf-posix2.sh.
43672         (configure.ac): Check for getrlimit and setrlimit.
43673         (check_PROGRAMS): Add test-printf-posix2.
43674
43675         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43676         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43677         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43678         (decode_double): New function, copied from decode_long_double.
43679         (scale10_round_decimal_decoded): New function, extracted from
43680         scale10_round_decimal_long_double.
43681         (scale10_round_decimal_long_double): Use it.
43682         (scale10_round_decimal_double): New function.
43683         (floorlog10): New function.
43684         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43686         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43688         gl_PRINTF_ENOMEM and test its result. Invoke
43689         gl_PREREQ_VASNPRINTF_ENOMEM.
43690         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43691         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43693         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43694         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43696         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43697         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43698         * modules/snprintf-posix (Depends-on): Likewise.
43699         * modules/sprintf-posix (Depends-on): Likewise.
43700         * modules/vasnprintf-posix (Depends-on): Likewise.
43701         * modules/vasprintf-posix (Depends-on): Likewise.
43702         * modules/vfprintf-posix (Depends-on): Likewise.
43703         * modules/vsnprintf-posix (Depends-on): Likewise.
43704         * modules/vsprintf-posix (Depends-on): Likewise.
43705         * doc/functions/fprintf.texi: Update.
43706         * doc/functions/printf.texi: Update.
43707         * doc/functions/snprintf.texi: Update.
43708         * doc/functions/sprintf.texi: Update.
43709         * doc/functions/vfprintf.texi: Update.
43710         * doc/functions/vprintf.texi: Update.
43711         * doc/functions/vsnprintf.texi: Update.
43712         * doc/functions/vsprintf.texi: Update.
43713
43714 2007-11-03  Bruno Haible  <bruno@clisp.org>
43715
43716         * modules/frexp-nolibm-tests: New file.
43717
43718         * modules/frexp-nolibm: New file.
43719         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43720
43721 2007-11-03  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43724         value is C99 compliant.
43725         Needed for OSF/1 5.1.
43726
43727 2007-11-03  Bruno Haible  <bruno@clisp.org>
43728
43729         Fix out-of-memory handling of vasnprintf.
43730         * lib/printf-parse.c: Include <errno.h>.
43731         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43732         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43733         is already set.
43734
43735 2007-11-02  Eric Blake  <ebb9@byu.net>
43736
43737         Fix tests on cygwin.
43738         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43739
43740 2007-11-01  Bruno Haible  <bruno@clisp.org>
43741
43742         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43743         warning.
43744         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43745         needed for POSIX compatibility.
43746
43747 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43748
43749         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43750         for compatibility with GNU.
43751
43752 2007-11-01  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43755         (putenv): Renamed from rpl_putenv. Change argument type from
43756         'const char *' to 'char *'.
43757         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43758         of defining putenv in config.h, just set REPLACE_PUTENV.
43759         * modules/putenv (Depends-on): Add stdlib.
43760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43761         (Include): Use <stdlib.h>.
43762         * lib/stdlib.in.h (putenv): New declaration.
43763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43764         REPLACE_PUTENV.
43765         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43766         REPLACE_PUTENV.
43767         Needed for MacOS X 10.5.0.
43768         Reported by Peter O'Gorman <peter@pogma.com>.
43769
43770 2007-11-01  Jim Meyering  <meyering@redhat.com>
43771
43772         Treat an empty date string exactly like "0".
43773         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43774         if the remaining date string (to be parsed) is empty, use "0".
43775         Reported by Mischa Molhoek and discussed in this thread:
43776         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43777
43778 2007-10-31  Bruno Haible  <bruno@clisp.org>
43779
43780         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43781         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43782         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43783         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43784         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43785         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43786
43787 2007-10-31  Bruno Haible  <bruno@clisp.org>
43788
43789         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43790         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43791         (AC_TYPE_LONG_LONG_INT): Use it.
43792         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43793         it as well.
43794         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43795         to m4/longlong.m4.
43796         * modules/stdint (Files): Remove m4/ulonglong.m4.
43797         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43798         m4/ulonglong.m4.
43799         * modules/strtoumax (Files): Likewise.
43800
43801 2007-10-30  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/xvasprintf-posix: New file.
43804         Suggested by Eric Blake.
43805
43806 2007-10-30  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/xprintf-posix-tests: New file.
43809         * tests/test-xprintf-posix.sh: New file.
43810         * tests/test-xprintf-posix.c: New file.
43811         * tests/test-xfprintf-posix.c: New file.
43812
43813         * modules/xprintf-posix: New file.
43814
43815 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43816
43817         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43818         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43819         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43820
43821 2007-10-29  Bruno Haible  <bruno@clisp.org>
43822
43823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43824         contain the special marker '_cv_'.
43825         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43826         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43827         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43828         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43829         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43830         Reported by Ralf Wildenhues.
43831
43832 2007-10-29  Bruno Haible  <bruno@clisp.org>
43833
43834         * gnulib-tool (func_import): When --lgpl is not specified, set
43835         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43836         GPLv3.
43837         Reported by Simon Josefsson.
43838
43839 2007-10-28  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43842         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43843         HAVE_DECL_ISFINITE.
43844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43845         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43846         HAVE_DECL_ISFINITE.
43847
43848 2007-10-28  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43851         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43852
43853 2007-10-28  Bruno Haible  <bruno@clisp.org>
43854
43855         Fix link errors with Sun C 5.0 on Solaris 10.
43856         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43857         function is declared but not present in the compiler's libm.
43858         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43859         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43860         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43861         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43862         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43863         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43864         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43866         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43867         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43868         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43869         HAVE_DECL_FLOORL.
43870
43871 2007-10-28  Bruno Haible  <bruno@clisp.org>
43872
43873         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43874         gl_FUNC_FLOORL. Cache the result.
43875         (gl_FUNC_FLOORL): Use it.
43876         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43877         gl_FUNC_CEILL. Cache the result.
43878         (gl_FUNC_CEILL): Use it.
43879
43880         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43881         gl_FUNC_FLOOR. Cache the result.
43882         (gl_FUNC_FLOOR): Use it.
43883         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43884         gl_FUNC_CEIL. Cache the result.
43885         (gl_FUNC_CEIL): Use it.
43886
43887         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43888         gl_FUNC_FLOORF. Cache the result.
43889         (gl_FUNC_FLOORF): Use it.
43890         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43891         gl_FUNC_CEILF. Cache the result.
43892         (gl_FUNC_CEILF): Use it.
43893
43894 2007-10-28  Bruno Haible  <bruno@clisp.org>
43895
43896         * gnulib-tool: Allow specifying the LGPL version number through
43897         --lgpl=2 or --lgpl=3.
43898         (func_usage): Document --lgpl with argument.
43899         Handle --lgpl=... arguments.
43900         (func_import): Recognize also gl_LGPL calls with an argument. When
43901         --lgpl=2 is used and the module's license is just LGPL, report an
43902         error. Set sed_transform_lib_file according to the lgpl variable. In
43903         the generated files, use --lgpl or gl_LGPL invocations with argument,
43904         if necessary.
43905         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43906         an LGPv2+ license.
43907         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43908         gl_LGPL macro.
43909
43910 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43911             Bruno Haible  <bruno@clisp.org>
43912
43913         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43914         (u16_uctomb_aux): Likewise.
43915         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43916         !HAVE_INLINE.
43917         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43918
43919 2007-10-28  Bruno Haible  <bruno@clisp.org>
43920
43921         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43922         Invoke AM_GETTEXT_OPTION if it exists.
43923         * modules/vasprintf: Likewise.
43924         * modules/verror: Likewise.
43925         * modules/xprintf: Likewise.
43926         * modules/xvasprintf: Likewise.
43927
43928 2007-10-27  Ben Pfaff  <blp@gnu.org>
43929
43930         * lib/math.in.h: Define isfinite macro and prototypes for
43931         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43932         implementations.
43933         * m4/math_h.m4: New substitutions for isfinite module.
43934         * lib/isfinite.c: New file.
43935         * m4/isfinite.m4: New file.
43936         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43937         * modules/isfinite: New file.
43938         * modules/isfinite-tests: New file.
43939         * tests/tests-isfinite.c: New file.
43940         * doc/functions/isfinite.texi: Mention isfinite module.
43941         * MODULES.html.sh: Mention new module.
43942
43943 2007-10-27  Ben Pfaff  <blp@gnu.org>
43944
43945         Ralf Wildenhues reported that Tru64 4.0D declares the round
43946         functions but does not have definitions.
43947         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43948         cannot be found in any library, set the output variable to
43949         "missing" instead of "".
43950         * m4/round.m4: Also use our substitute if we cannot find round in
43951         any library, even if it is declared.
43952         * m4/roundf.m4: Likewise for roundf.
43953         * m4/roundl.m4: Likewise for roundl.
43954         * lib/math.in.h: Undefine roundf, round, roundl before defining
43955         their replacements, to allow for hypothetical systems where these
43956         may be defined as macros but not available in libraries.
43957
43958 2007-10-27  Bruno Haible  <bruno@clisp.org>
43959
43960         * doc/gnulib.texi: Invoke @firstparagraphindent.
43961         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43962         changes in gnulib.
43963         (Source changes): New section.
43964
43965 2007-10-26  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43968         borrowed from autoconf.
43969
43970 2007-10-26  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43973         strerror returned the empty string. Needed on HP-UX 11.00.
43974
43975 2007-10-24  Micah Cowan  <micah@cowan.name>
43976
43977         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43978         * build-aux/bootstrap: Remove support for now-unnecessary option,
43979         --cvs-user, and envvars CVS_USER, CVS_RSH.
43980
43981 2007-10-24  Jim Meyering  <meyering@redhat.com>
43982
43983         Avoid diagnostics from sha1sum when there is no cached checksum.
43984         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43985         if the po.s1 file hasn't been created yet.
43986
43987         * build-aux/bootstrap: Sync from coreutils:
43988         2007-10-24  Jim Meyering  <meyering@redhat.com>
43989         Get gnulib from the git repository, not from an obsolete cvs one.
43990         * build-aux/bootstrap: Suggestion from Micah Cowan.
43991         2007-10-04  Jim Meyering  <jim@meyering.net>
43992         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43993         (update_po_files): Work also when there are no .po files in po/.
43994
43995 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43996
43997         * README: Append ".git" to git and cg examples.
43998         Problem reported by Benoit Sigoure.
43999
44000 2007-10-23  Micah Cowan  <micah@cowan.name>
44001
44002         * users.txt: Add wget.
44003
44004 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44005
44006         Fix linking of some unistdio tests on FreeBSD.
44007         * modules/unistdio/u16-vsnprintf-tests
44008         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44009         * modules/unistdio/u16-vsprintf-tests
44010         (test_u16_vsnprintf1_LDADD): Likewise.
44011         * modules/unistdio/u32-vsnprintf-tests
44012         (test_u32_vsnprintf1_LDADD): Likewise.
44013         * modules/unistdio/u32-vsprintf-tests
44014         (test_u32_vsprintf1_LDADD): Likewise.
44015         * modules/unistdio/u8-vsnprintf-tests
44016         (test_u8_vsnprintf1_LDADD): Likewise.
44017         * modules/unistdio/u8-vsprintf-tests
44018         (test_u8_vsprintf1_LDADD): Likewise.
44019         * modules/unistdio/ulc-vsnprintf-tests
44020         (test_ulc_vsnprintf1_LDADD): Likewise.
44021         * modules/unistdio/ulc-vsprintf-tests
44022         (test_ulc_vsprintf1_LDADD): Likewise.
44023
44024         Fix linking of some uniconv tests on FreeBSD.
44025         * modules/uniconv/u16-conv-from-enc-tests
44026         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44027         * modules/uniconv/u16-conv-to-enc-tests
44028         (test_u16_conv_to_enc_LDADD): Likewise.
44029         * modules/uniconv/u16-strconv-from-enc-tests
44030         (test_u16_strconv_from_enc_LDADD): Likewise.
44031         * modules/uniconv/u16-strconv-to-enc-tests
44032         (test_u16_strconv_to_enc_LDADD): Likewise.
44033         * modules/uniconv/u32-conv-from-enc-tests
44034         (test_u32_conv_from_enc_LDADD): Likewise.
44035         * modules/uniconv/u32-conv-to-enc-tests
44036         (test_u32_conv_to_enc_LDADD): Likewise.
44037         * modules/uniconv/u32-strconv-from-enc-tests
44038         (test_u32_strconv_from_enc_LDADD): Likewise.
44039         * modules/uniconv/u32-strconv-to-enc-tests
44040         (test_u32_strconv_to_enc_LDADD): Likewise.
44041         * modules/uniconv/u8-conv-from-enc-tests
44042         (test_u8_conv_from_enc_LDADD): Likewise.
44043         * modules/uniconv/u8-conv-to-enc-tests
44044         (test_u8_conv_to_enc_LDADD): Likewise.
44045         * modules/uniconv/u8-strconv-from-enc-tests
44046         (test_u8_strconv_from_enc_LDADD): Likewise.
44047         * modules/uniconv/u8-strconv-to-enc-tests
44048         (test_u8_strconv_to_enc_LDADD): Likewise.
44049
44050 2007-10-22  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44053         size.
44054
44055 2007-10-22  Eric Blake  <ebb9@byu.net>
44056
44057         Tweak x*printf documentation.
44058         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44059         variable name and comments.
44060         Suggested by Bruno Haible.
44061
44062 2007-10-22  Bruno Haible  <bruno@clisp.org>
44063
44064         * lib/acl.c (copy_acl): Fix file name in comment.
44065
44066 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         Fix Tru64 problem with stdbool.h.
44069         * lib/stdbool.in.h (false, true):
44070         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44071         Don't declare as an enum in this situation; it runs afoul of Tru64.
44072         Problem reported by Steven M. Schweda in
44073         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44074
44075 2007-10-22  Eric Blake  <ebb9@byu.net>
44076
44077         Also wrap vf?printf.
44078         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44079         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44080         (xvprintf, xvfprintf): New functions.
44081
44082 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44083
44084         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44085         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44086
44087         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44088         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44089
44090 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44093         by Bruno Haible.
44094
44095 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44096
44097         * lib/getloadavg.c
44098         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44099         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44100
44101         * tests/test-i-ring.c: Work for C89.
44102
44103 2007-10-22  Bruno Haible  <bruno@clisp.org>
44104
44105         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44106         -1u, in preprocessor expression, so that we don't test for the bug
44107         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44109
44110 2007-10-22  Eric Blake  <ebb9@byu.net>
44111
44112         * tests/test-yesno.sh: Silence stderr during test.
44113
44114 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44115
44116         * modules/crypto/gc-camellia: New file.
44117
44118         * m4/gc-camellia.m4: New file.
44119
44120         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44121
44122         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44123
44124 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44125
44126         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44127         --help to stdout.  Reported by sms@antinode.org (Steven
44128         M. Schweda).
44129
44130 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44131
44132         * users.txt: Fix link to libksba.
44133
44134 2007-10-21  Ben Pfaff  <blp@gnu.org>
44135
44136         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44137         round.c roundf implementation that depends on floorf and ceilf to
44138         be tested unconditionally.
44139
44140 2007-10-21  Ben Pfaff  <blp@gnu.org>
44141
44142         * m4/check-libm-func.m4: Removed.
44143         * m4/check-math-lib.m4: New file.
44144         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44145         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44146         definition and lack of AC_LIBOBJ([roundf]).
44147         * m4/roundl.m4: Ditto, and similarly for roundl.
44148         * modules/round: Reference new m4 file.
44149         * modules/roundf: Ditto.
44150         * modules/roundl: Ditto.
44151         * tests/test-round2.c (main): Use ROUND instead of round.
44152         Bug report from Bruno Haible.
44153
44154 2007-10-21  Bruno Haible  <bruno@clisp.org>
44155
44156         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44157         context.
44158
44159 2007-10-21  Bruno Haible  <bruno@clisp.org>
44160
44161         * tests/test-wcwidth.c (main): Allow negative result for some control
44162         characters.
44163
44164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44165         Needed on OSF/1 5.1.
44166
44167 2007-10-21  Bruno Haible  <bruno@clisp.org>
44168
44169         * tests/test-floorf1.c: Include isnanf.h.
44170         (main): Use isnanf() instead of isnan().
44171         * tests/test-ceilf1.c: Include isnanf.h.
44172         (main): Use isnanf() instead of isnan().
44173         * tests/test-truncf1.c: Include isnanf.h.
44174         (main): Use isnanf() instead of isnan().
44175         * tests/test-roundf1.c: Include isnanf.h.
44176         (main): Use isnanf() instead of isnan().
44177
44178 2007-10-21  Eric Blake  <ebb9@byu.net>
44179
44180         * users.txt: Update URL for m4.
44181
44182 2007-10-21  Bruno Haible  <bruno@clisp.org>
44183
44184         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44185
44186 2007-10-21  Bruno Haible  <bruno@clisp.org>
44187
44188         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44189         Git's management files if the CVS files are not present.
44190
44191 2007-10-20  Bruno Haible  <bruno@clisp.org>
44192
44193         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44194         gcc-3.4.x.
44195
44196 2007-10-20  Ben Pfaff  <blp@gnu.org>
44197
44198         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44199         implementations.
44200         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44201         * lib/round.c: New file.
44202         * lib/roundf.c: New file.
44203         * lib/roundl.c: New file.
44204         * m4/round.m4: New file.
44205         * m4/roundf.m4: New file.
44206         * m4/roundl.m4: New file.
44207         * m4/check-libm-func-m4: New file.
44208         * modules/math: Replace round, roundf, roundl related @VARS@ in
44209         math.in.h.
44210         * modules/round: New file.
44211         * modules/round-tests: New file.
44212         * modules/roundf: New file.
44213         * modules/roundf-tests: New file.
44214         * modules/roundl: New file.
44215         * modules/roundl-tests: New file.
44216         * tests/test-round1.c: New file.
44217         * tests/test-round2.c: New file.
44218         * tests/test-roundf1.c: New file.
44219         * tests/test-roundf2.c: New file.
44220         * tests/test-roundl.c: New file.
44221         * doc/functions/round.texi: Mention round module.
44222         * doc/functions/roundf.texi: Mention roundf module.
44223         * doc/functions/roundl.texi: Mention roundl module.
44224         * MODULES.html.sh: Mention new modules.
44225         Thanks to Bruno Haible for suggestions.
44226
44227 2007-10-20  Jim Meyering  <meyering@redhat.com>
44228
44229         * lib/xprintf.c: Include <config.h> unconditionally.
44230
44231         Change xprintf's license to GPL.
44232         * modules/xprintf (License): s/LGPL/GPL/, since this module
44233         depends on modules (exit and exitfail) which are GPL.
44234         Suggestion from Bruno Haible.
44235
44236         xprintf fixes.
44237         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44238         Use a clearer diagnostic.
44239         Patch from Bruno Haible.
44240
44241 2007-10-20  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44244         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44245         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44246
44247 2007-10-20  Bruno Haible  <bruno@clisp.org>
44248
44249         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44250         precision in the comparison result > x - 1 or similar.
44251         * tests/test-ceilf2.c (correct_result_p): Likewise.
44252         * tests/test-truncf2.c (correct_result_p): Likewise.
44253         * tests/test-trunc2.c (correct_result_p): Likewise.
44254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44255
44256 2007-10-20  Bruno Haible  <bruno@clisp.org>
44257
44258         * modules/ceil: New file.
44259         * m4/ceil.m4: New file.
44260         * doc/functions/ceil.texi: Mention the 'ceil' module.
44261
44262 2007-10-20  Bruno Haible  <bruno@clisp.org>
44263
44264         * modules/floor: New file.
44265         * m4/floor.m4: New file.
44266         * doc/functions/floor.texi: Mention the 'floor' module.
44267
44268 2007-10-20  Bruno Haible  <bruno@clisp.org>
44269
44270         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44271         of %a.
44272         * modules/floorf-tests (Depends-on): Likewise.
44273         * modules/truncf-tests (Depends-on): Likewise.
44274         * modules/trunc-tests (Depends-on): Likewise.
44275         Reported by Ben Pfaff.
44276
44277 2007-10-19  Jim Meyering  <meyering@redhat.com>
44278
44279         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44280         Don't bother testing specific errno values.  Just test ferror.
44281
44282         New module: xprintf
44283         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44284
44285 2007-10-19  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44288         syntax.
44289         * modules/javaexec (Makefile.am): Likewise.
44290         * modules/relocatable-prog (Makefile.am): Likewise.
44291         Suggested by Jim Meyering.
44292
44293 2007-10-18  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44296         Reported by Jim Meyering.
44297
44298 2007-10-18  Eric Blake  <ebb9@byu.net>
44299
44300         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44301
44302 2007-10-18  Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44305         the format string into writable memory. Needed in Fortify conditions.
44306
44307 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44308             Bruno Haible  <bruno@clisp.org>
44309
44310         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44311         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44312         * modules/trim (Depends-on): Add mbchar.
44313         (configure.ac): Add gl_FUNC_MBRTOWC.
44314         (Makefile.am): Augment lib_SOURCES.
44315
44316 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44317
44318         Modify glob.c to use fstatat and dirfd, to simplify it.
44319         Suggested by Eric Blake.
44320         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44321         Don't include <stdbool.h>; not used.
44322         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44323         (link_exists_p): Simplify implementation, since we can now assume
44324         dirfd and fstatat.
44325         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44326
44327 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44328
44329         * gnulib-tool (func_get_dependencies): Fix sed script to
44330         match only tests.
44331
44332 2007-10-17  Bruno Haible  <bruno@clisp.org>
44333
44334         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44335         allow locale names without encoding suffix.
44336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44338
44339 2007-10-16  Bruno Haible  <bruno@clisp.org>
44340
44341         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44342         * lib/getgroups.c (getgroups): Likewise.
44343         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44344
44345 2007-10-16  Bruno Haible  <bruno@clisp.org>
44346
44347         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44348         * modules/malloc-posix (License): Likewise.
44349         * modules/realloc-posix (License): Likewise.
44350         * modules/calloc-posix (License): Likewise.
44351         * modules/intprops (License): Change from GPL to LGPL, with
44352         Paul Eggert's approval.
44353
44354 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44355
44356         Merge glibc changes into lib/glob.c.
44357
44358         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44359         2007-10-15 04:59:03 UTC.  Here are the changes:
44360
44361         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44362
44363         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44364
44365         * lib/glob.c: Add some branch prediction throughout.
44366
44367         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44368
44369         [BZ #5103]
44370         * lib/glob.c (glob): Recognize patterns starting \/.
44371
44372         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44373
44374         [BZ #3996]
44375         * lib/glob.c (attribute_hidden): Define if not defined.
44376         (glob): Unescape dirname, filename or username when needed and not
44377         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44378         is NULL.  Handle unescaped [ in pattern without closing ].
44379         Don't pass GLOB_CHECK down to recursive glob for directories.
44380         (__glob_pattern_type): New function.
44381         (__glob_pattern_p): Implement using __glob_pattern_type.
44382         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44383         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44384         Remove unreachable code.
44385
44386         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44387
44388         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44389         explain why there are no leaks.
44390
44391         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44392
44393         [BZ #3253]
44394         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44395         time, rather allocate increasingly bigger arrays of pointers, if
44396         possible with alloca, if too large with malloc.
44397
44398 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44399
44400         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44401         Problem reported by H.Merijn Brand in
44402         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44403         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44404         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44405
44406 2007-10-15  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44409         with explicit rpl_ prefix.
44410         * lib/fopen.c (fopen): Likewise.
44411         * lib/freopen.c (freopen): Likewise.
44412         * lib/iconv.c (iconv): Likewise.
44413         * lib/iconv_close.c (iconv_close): Likewise.
44414
44415 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44416
44417         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44418
44419 2007-10-15  Bruno Haible  <bruno@clisp.org>
44420
44421         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44422         <stddef.h> instead of <stdlib.h> since we only need NULL.
44423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44424
44425 2007-10-15  Bruno Haible  <bruno@clisp.org>
44426
44427         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44428         Replace paragraph talking about LIBOBJS.
44429         Reported by Colin Watson <cjwatson@debian.org>.
44430
44431 2007-10-15  Bruno Haible  <bruno@clisp.org>
44432
44433         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44434         <stdlib.h> before using NULL.
44435
44436 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44437
44438         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44439         Reported by Albert Chin <china@thewrittenword.com>.
44440
44441 2007-10-14  Bruno Haible  <bruno@clisp.org>
44442
44443         * modules/iconv_open-utf-tests: New file.
44444         * tests/test-iconv-utf.c: New file.
44445
44446         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44447         * modules/iconv_open-utf: New file.
44448         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44449         (iconv, iconv_close): New declarations.
44450         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44451         be defined.
44452         (iconv_open): Add special handling of conversion between UTF-8 and
44453         UTF-{16,32}{BE,LE}.
44454         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44455         * lib/iconv_close.c: New file.
44456         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44457         gl_FUNC_ICONV_OPEN.
44458         (gl_FUNC_ICONV_OPEN): Use it.
44459         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44460         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44461         and REPLACE_ICONV_UTF.
44462         * modules/iconv_open (Depends-on): Add c-strcase.
44463         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44464         ICONV_CONST.
44465         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44466
44467 2007-10-13  Albert Chin  <china@thewrittenword.com>
44468             Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44471         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44472
44473 2007-10-13  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44476         defined, use the ISO C99 inline semantics.
44477         * lib/argp.h (ARGP_EI): Likewise.
44478
44479 2007-10-13  Bruno Haible  <bruno@clisp.org>
44480
44481         Handle 'inline' change in gcc 4.3.0.
44482         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44483         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44484         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44485         argp_fmtstream_point): Disable 'extern' declaration if the function
44486         definition is going to be provided inline.
44487         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44488         semantics, not the ISO C99 inline semantics.
44489         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44490         'extern' declaration if the function definition is going to be provided
44491         inline.
44492         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44493         the GNU C inline semantics, not the ISO C99 inline semantics. With
44494         GCC 4.2, avoid a warning.
44495
44496 2007-10-13  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/freading.h (freading): Enable the use of __freading for
44499         glibc >= 2.7.
44500         * lib/freading.c (freading): Likewise.
44501
44502 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44505         "warning: C99 inline functions are not supported; using GNU89".
44506
44507 2007-10-12  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44510         of 2.
44511         * tests/test-ceilf2.c: New file.
44512         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44513
44514         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44515         * modules/ceilf-tests: Update.
44516
44517 2007-10-12  Bruno Haible  <bruno@clisp.org>
44518
44519         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44520         of 2.
44521         * tests/test-floorf2.c: New file.
44522         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44523
44524         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44525         * modules/floorf-tests: Update.
44526
44527 2007-10-12  Bruno Haible  <bruno@clisp.org>
44528
44529         * tests/test-trunc2.c: New file.
44530         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44531
44532         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44533         * modules/trunc-tests: Update.
44534
44535 2007-10-12  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44538         of 2.
44539         * tests/test-truncf2.c: New file.
44540         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44541
44542         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44543         * modules/truncf-tests: Update.
44544
44545 2007-10-11  Eric Blake  <ebb9@byu.net>
44546
44547         Don't claim strerror is broken on Interix.
44548         * doc/functions/strerror.texi (strerror): Known broken systems are
44549         now Solaris 8, and not Interix.
44550         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44551         Interix on cross-compile.
44552         Reported by Martin Koeppe in
44553         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44554
44555 2007-10-11  Bruno Haible  <bruno@clisp.org>
44556
44557         * modules/i-ring-tests: New file.
44558         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44559         instead of assert.
44560
44561 2007-10-11  Bruno Haible  <bruno@clisp.org>
44562
44563         * modules/filenamecat-tests: New file.
44564         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44565         * lib/filenamecat.c: Remove test code.
44566
44567 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44568
44569         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44570
44571         * lib/strerror.c: Include <string.h> always, to test interface,
44572         and to remove the need for the dummy.
44573         Include intprops.h to compute width instead of doing it ourselves
44574         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44575         (strerror): Define it to return NULL if there's no system strerror.
44576         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44577         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44578         ancient pre-strerror Unix systems well any more.  Saying "unknown
44579         system error" is enough.
44580         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44581         simpler strerror.c implementation.
44582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44583         Simplify the tests to reflect the simpler strerror implementation.
44584         * modules/strerror (Depends-on): Add intprops.
44585
44586 2007-10-09  Eric Blake  <ebb9@byu.net>
44587
44588         Silence test-fpending.
44589         * modules/fpending-tests (Files): Add wrapper script.
44590         * tests/test-fpending.sh: New file.
44591
44592 2007-10-09  Bruno Haible  <bruno@clisp.org>
44593
44594         * MODULES.html.sh (func_module): Don't create a hyperlink for
44595         function names like 'printf_frexp'.
44596         (Misc): Add crc, memxor.
44597         (Characteristics of floating types): New section.
44598         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44599         isnanf-nolibm, signbit, trunc, truncf, truncl.
44600         (Enhancements for ISO C 99 functions): New subsection Input/output.
44601         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44602         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44603         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44604         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44605         (Enhancements for POSIX:2001 functions): Add chdir-long.
44606         (File system functions): Add areadlink, chdir-safer, read-file.
44607         Remove cycle-check.
44608         (File system as inode set): New section.
44609         (Date and time): Add gethrxtime.
44610         (Multithreading): Add openmp.
44611         (Internationalization functions): Add localename.
44612         (Unicode string functions): Add unistr/u*-mbsnlen.
44613         (Support for maintaining and releasing projects): Add git-version-gen.
44614         (Lone files): Remove directories.
44615
44616 2007-10-08  Ben Pfaff  <blp@gnu.org>
44617
44618         * lib/xmalloca.h: Fix typo in comment.
44619
44620 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44621
44622         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44623         when avoiding problems with integer overflow.  Use a portable test
44624         instead.
44625
44626 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44627
44628         * modules/dummy (License): Change to LGPLv2+.
44629         * modules/float (License): Likewise
44630         * modules/realloc (License): Likewise
44631         * modules/stdlib (License): Likewise
44632
44633 2007-10-07  Bruno Haible  <bruno@clisp.org>
44634
44635         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44636         * floor.c (TWO_MANT_DIG): Likewise.
44637         * ceil.c (TWO_MANT_DIG): Likewise.
44638         Reported by Ben Pfaff.
44639
44640 2007-10-07  Bruno Haible  <bruno@clisp.org>
44641
44642         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44643         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44644         * lib/frexp.c (FUNC): Likewise.
44645         * lib/printf-frexp.h (printf_frexp): Likewise.
44646         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44647         * lib/printf-frexp.c (FUNC): Likewise.
44648         Suggested by Jim Meyering.
44649
44650 2007-10-07  Jim Meyering  <meyering@redhat.com>
44651
44652         Make xnanosleep's integer overflow test more robust.
44653         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44654         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44655
44656 2007-10-07  Bruno Haible  <bruno@clisp.org>
44657
44658         * NEWS: Mention the license change.
44659
44660         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44661         abbreviations in the modules files.
44662
44663         Change copyright notice from GPLv2+ to GPLv3+.
44664         * README: Change copyright notice.
44665         * MODULES.html.sh: Likewise.
44666         * build-aux/bootstrap.conf: Likewise.
44667         * build-aux/config.libpath: Likewise.
44668         * build-aux/csharpcomp.sh.in: Likewise.
44669         * build-aux/csharpexec.sh.in: Likewise.
44670         * build-aux/install-reloc: Likewise.
44671         * build-aux/javacomp.sh.in: Likewise.
44672         * build-aux/javaexec.sh.in: Likewise.
44673         * build-aux/ldd.sh.in: Likewise.
44674         * build-aux/reloc-ldflags: Likewise.
44675         * build-aux/relocatable.sh.in: Likewise.
44676         * build-aux/x-to-1.in: Likewise.
44677         * check-module: Likewise.
44678         * config/srclistvars.sh: Likewise.
44679         * gnulib-tool: Likewise.
44680         * lib/acl-internal.h: Likewise.
44681         * lib/acl.c: Likewise.
44682         * lib/acl.h: Likewise.
44683         * lib/acl_entries.c: Likewise.
44684         * lib/areadlink-with-size.c: Likewise.
44685         * lib/areadlink.c: Likewise.
44686         * lib/areadlink.h: Likewise.
44687         * lib/argmatch.c: Likewise.
44688         * lib/argmatch.h: Likewise.
44689         * lib/argp-ba.c: Likewise.
44690         * lib/argp-eexst.c: Likewise.
44691         * lib/argp-fmtstream.c: Likewise.
44692         * lib/argp-fmtstream.h: Likewise.
44693         * lib/argp-fs-xinl.c: Likewise.
44694         * lib/argp-help.c: Likewise.
44695         * lib/argp-namefrob.h: Likewise.
44696         * lib/argp-parse.c: Likewise.
44697         * lib/argp-pin.c: Likewise.
44698         * lib/argp-pv.c: Likewise.
44699         * lib/argp-pvh.c: Likewise.
44700         * lib/argp-xinl.c: Likewise.
44701         * lib/argp.h: Likewise.
44702         * lib/at-func.c: Likewise.
44703         * lib/atanl.c: Likewise.
44704         * lib/backupfile.c: Likewise.
44705         * lib/backupfile.h: Likewise.
44706         * lib/basename.c: Likewise.
44707         * lib/binary-io.h: Likewise.
44708         * lib/byteswap.in.h: Likewise.
44709         * lib/c-stack.c: Likewise.
44710         * lib/c-stack.h: Likewise.
44711         * lib/c-strcasestr.c: Likewise.
44712         * lib/c-strcasestr.h: Likewise.
44713         * lib/c-strstr.c: Likewise.
44714         * lib/c-strstr.h: Likewise.
44715         * lib/c-strtod.c: Likewise.
44716         * lib/calloc.c: Likewise.
44717         * lib/canon-host.c: Likewise.
44718         * lib/canon-host.h: Likewise.
44719         * lib/canonicalize-lgpl.c: Likewise.
44720         * lib/canonicalize.c: Likewise.
44721         * lib/canonicalize.h: Likewise.
44722         * lib/ceil.c: Likewise.
44723         * lib/ceilf.c: Likewise.
44724         * lib/ceill.c: Likewise.
44725         * lib/chdir-long.c: Likewise.
44726         * lib/chdir-long.h: Likewise.
44727         * lib/chdir-safer.c: Likewise.
44728         * lib/chdir-safer.h: Likewise.
44729         * lib/chown.c: Likewise.
44730         * lib/classpath.c: Likewise.
44731         * lib/classpath.h: Likewise.
44732         * lib/clean-temp.c: Likewise.
44733         * lib/clean-temp.h: Likewise.
44734         * lib/cloexec.c: Likewise.
44735         * lib/close-stream.c: Likewise.
44736         * lib/closein.c: Likewise.
44737         * lib/closein.h: Likewise.
44738         * lib/closeout.c: Likewise.
44739         * lib/closeout.h: Likewise.
44740         * lib/concat-filename.c: Likewise.
44741         * lib/copy-file.c: Likewise.
44742         * lib/copy-file.h: Likewise.
44743         * lib/count-one-bits.h: Likewise.
44744         * lib/crc.c: Likewise.
44745         * lib/crc.h: Likewise.
44746         * lib/creat-safer.c: Likewise.
44747         * lib/csharpcomp.c: Likewise.
44748         * lib/csharpcomp.h: Likewise.
44749         * lib/csharpexec.c: Likewise.
44750         * lib/csharpexec.h: Likewise.
44751         * lib/cycle-check.c: Likewise.
44752         * lib/cycle-check.h: Likewise.
44753         * lib/diacrit.c: Likewise.
44754         * lib/diacrit.h: Likewise.
44755         * lib/diffseq.h: Likewise.
44756         * lib/dirchownmod.c: Likewise.
44757         * lib/dirent.in.h: Likewise.
44758         * lib/dirfd.c: Likewise.
44759         * lib/dirfd.h: Likewise.
44760         * lib/dirname.c: Likewise.
44761         * lib/dirname.h: Likewise.
44762         * lib/dummy.c: Likewise.
44763         * lib/dup-safer.c: Likewise.
44764         * lib/dup2.c: Likewise.
44765         * lib/eealloc.h: Likewise.
44766         * lib/error.c: Likewise.
44767         * lib/error.h: Likewise.
44768         * lib/euidaccess.c: Likewise.
44769         * lib/exclude.c: Likewise.
44770         * lib/exclude.h: Likewise.
44771         * lib/execute.c: Likewise.
44772         * lib/execute.h: Likewise.
44773         * lib/exitfail.c: Likewise.
44774         * lib/exitfail.h: Likewise.
44775         * lib/expl.c: Likewise.
44776         * lib/fatal-signal.c: Likewise.
44777         * lib/fatal-signal.h: Likewise.
44778         * lib/fbufmode.c: Likewise.
44779         * lib/fbufmode.h: Likewise.
44780         * lib/fchdir.c: Likewise.
44781         * lib/fchmodat.c: Likewise.
44782         * lib/fchownat.c: Likewise.
44783         * lib/fcntl--.h: Likewise.
44784         * lib/fcntl-safer.h: Likewise.
44785         * lib/fcntl.in.h: Likewise.
44786         * lib/fd-safer.c: Likewise.
44787         * lib/fflush.c: Likewise.
44788         * lib/file-has-acl.c: Likewise.
44789         * lib/file-set.c: Likewise.
44790         * lib/file-type.c: Likewise.
44791         * lib/file-type.h: Likewise.
44792         * lib/fileblocks.c: Likewise.
44793         * lib/filemode.c: Likewise.
44794         * lib/filemode.h: Likewise.
44795         * lib/filename.h: Likewise.
44796         * lib/filenamecat.c: Likewise.
44797         * lib/filenamecat.h: Likewise.
44798         * lib/findprog.c: Likewise.
44799         * lib/findprog.h: Likewise.
44800         * lib/float.in.h: Likewise.
44801         * lib/floor.c: Likewise.
44802         * lib/floorf.c: Likewise.
44803         * lib/floorl.c: Likewise.
44804         * lib/fopen-safer.c: Likewise.
44805         * lib/fopen.c: Likewise.
44806         * lib/fpending.c: Likewise.
44807         * lib/fpending.h: Likewise.
44808         * lib/fprintf.c: Likewise.
44809         * lib/fprintftime.h: Likewise.
44810         * lib/fpucw.h: Likewise.
44811         * lib/fpurge.c: Likewise.
44812         * lib/fpurge.h: Likewise.
44813         * lib/freadable.c: Likewise.
44814         * lib/freadable.h: Likewise.
44815         * lib/freadahead.c: Likewise.
44816         * lib/freadahead.h: Likewise.
44817         * lib/freading.c: Likewise.
44818         * lib/freading.h: Likewise.
44819         * lib/free.c: Likewise.
44820         * lib/freopen.c: Likewise.
44821         * lib/frexp.c: Likewise.
44822         * lib/frexpl.c: Likewise.
44823         * lib/fseek.c: Likewise.
44824         * lib/fseterr.c: Likewise.
44825         * lib/fseterr.h: Likewise.
44826         * lib/fstatat.c: Likewise.
44827         * lib/fstrcmp.c: Likewise.
44828         * lib/fstrcmp.h: Likewise.
44829         * lib/fsusage.c: Likewise.
44830         * lib/fsusage.h: Likewise.
44831         * lib/ftell.c: Likewise.
44832         * lib/ftello.c: Likewise.
44833         * lib/fts-cycle.c: Likewise.
44834         * lib/fts.c: Likewise.
44835         * lib/fts_.h: Likewise.
44836         * lib/full-read.c: Likewise.
44837         * lib/full-read.h: Likewise.
44838         * lib/full-write.c: Likewise.
44839         * lib/full-write.h: Likewise.
44840         * lib/fwritable.c: Likewise.
44841         * lib/fwritable.h: Likewise.
44842         * lib/fwriteerror.c: Likewise.
44843         * lib/fwriteerror.h: Likewise.
44844         * lib/fwriting.c: Likewise.
44845         * lib/fwriting.h: Likewise.
44846         * lib/gcd.c: Likewise.
44847         * lib/gcd.h: Likewise.
44848         * lib/getcwd.c: Likewise.
44849         * lib/getdate.h: Likewise.
44850         * lib/getdate.y: Likewise.
44851         * lib/getdomainname.c: Likewise.
44852         * lib/getdomainname.h: Likewise.
44853         * lib/getgroups.c: Likewise.
44854         * lib/gethostname.c: Likewise.
44855         * lib/gethrxtime.c: Likewise.
44856         * lib/gethrxtime.h: Likewise.
44857         * lib/getloadavg.c: Likewise.
44858         * lib/getndelim2.c: Likewise.
44859         * lib/getndelim2.h: Likewise.
44860         * lib/getnline.c: Likewise.
44861         * lib/getnline.h: Likewise.
44862         * lib/getopt.c: Likewise.
44863         * lib/getopt.in.h: Likewise.
44864         * lib/getopt1.c: Likewise.
44865         * lib/getopt_int.h: Likewise.
44866         * lib/getpagesize.h: Likewise.
44867         * lib/getsubopt.c: Likewise.
44868         * lib/gettime.c: Likewise.
44869         * lib/getugroups.c: Likewise.
44870         * lib/getugroups.h: Likewise.
44871         * lib/getusershell.c: Likewise.
44872         * lib/gl_anyavltree_list1.h: Likewise.
44873         * lib/gl_anyavltree_list2.h: Likewise.
44874         * lib/gl_anyhash_list1.h: Likewise.
44875         * lib/gl_anyhash_list2.h: Likewise.
44876         * lib/gl_anylinked_list1.h: Likewise.
44877         * lib/gl_anylinked_list2.h: Likewise.
44878         * lib/gl_anyrbtree_list1.h: Likewise.
44879         * lib/gl_anyrbtree_list2.h: Likewise.
44880         * lib/gl_anytree_list1.h: Likewise.
44881         * lib/gl_anytree_list2.h: Likewise.
44882         * lib/gl_anytree_oset.h: Likewise.
44883         * lib/gl_anytreehash_list1.h: Likewise.
44884         * lib/gl_anytreehash_list2.h: Likewise.
44885         * lib/gl_array_list.c: Likewise.
44886         * lib/gl_array_list.h: Likewise.
44887         * lib/gl_array_oset.c: Likewise.
44888         * lib/gl_array_oset.h: Likewise.
44889         * lib/gl_avltree_list.c: Likewise.
44890         * lib/gl_avltree_list.h: Likewise.
44891         * lib/gl_avltree_oset.c: Likewise.
44892         * lib/gl_avltree_oset.h: Likewise.
44893         * lib/gl_avltreehash_list.c: Likewise.
44894         * lib/gl_avltreehash_list.h: Likewise.
44895         * lib/gl_carray_list.c: Likewise.
44896         * lib/gl_carray_list.h: Likewise.
44897         * lib/gl_linked_list.c: Likewise.
44898         * lib/gl_linked_list.h: Likewise.
44899         * lib/gl_linkedhash_list.c: Likewise.
44900         * lib/gl_linkedhash_list.h: Likewise.
44901         * lib/gl_list.c: Likewise.
44902         * lib/gl_list.h: Likewise.
44903         * lib/gl_oset.c: Likewise.
44904         * lib/gl_oset.h: Likewise.
44905         * lib/gl_rbtree_list.c: Likewise.
44906         * lib/gl_rbtree_list.h: Likewise.
44907         * lib/gl_rbtree_oset.c: Likewise.
44908         * lib/gl_rbtree_oset.h: Likewise.
44909         * lib/gl_rbtreehash_list.c: Likewise.
44910         * lib/gl_rbtreehash_list.h: Likewise.
44911         * lib/gl_sublist.c: Likewise.
44912         * lib/gl_sublist.h: Likewise.
44913         * lib/group-member.c: Likewise.
44914         * lib/group-member.h: Likewise.
44915         * lib/hard-locale.c: Likewise.
44916         * lib/hard-locale.h: Likewise.
44917         * lib/hash-pjw.c: Likewise.
44918         * lib/hash-pjw.h: Likewise.
44919         * lib/hash-triple.c: Likewise.
44920         * lib/hash.c: Likewise.
44921         * lib/hash.h: Likewise.
44922         * lib/human.c: Likewise.
44923         * lib/human.h: Likewise.
44924         * lib/i-ring.c: Likewise.
44925         * lib/i-ring.h: Likewise.
44926         * lib/idcache.c: Likewise.
44927         * lib/imaxabs.c: Likewise.
44928         * lib/imaxdiv.c: Likewise.
44929         * lib/inet_pton.c: Likewise.
44930         * lib/inet_pton.h: Likewise.
44931         * lib/intprops.h: Likewise.
44932         * lib/inttostr.c: Likewise.
44933         * lib/inttostr.h: Likewise.
44934         * lib/inttypes.in.h: Likewise.
44935         * lib/isapipe.c: Likewise.
44936         * lib/isdir.c: Likewise.
44937         * lib/isnan.c: Likewise.
44938         * lib/isnan.h: Likewise.
44939         * lib/isnanf.c: Likewise.
44940         * lib/isnanf.h: Likewise.
44941         * lib/isnanl-nolibm.h: Likewise.
44942         * lib/isnanl.c: Likewise.
44943         * lib/isnanl.h: Likewise.
44944         * lib/javacomp.c: Likewise.
44945         * lib/javacomp.h: Likewise.
44946         * lib/javaexec.c: Likewise.
44947         * lib/javaexec.h: Likewise.
44948         * lib/javaversion.c: Likewise.
44949         * lib/javaversion.h: Likewise.
44950         * lib/javaversion.java: Likewise.
44951         * lib/lbrkprop.h: Likewise.
44952         * lib/lchmod.h: Likewise.
44953         * lib/lchown.c: Likewise.
44954         * lib/ldexpl.c: Likewise.
44955         * lib/linebreak.c: Likewise.
44956         * lib/linebreak.h: Likewise.
44957         * lib/linebuffer.c: Likewise.
44958         * lib/linebuffer.h: Likewise.
44959         * lib/locale.in.h: Likewise.
44960         * lib/logl.c: Likewise.
44961         * lib/long-options.c: Likewise.
44962         * lib/long-options.h: Likewise.
44963         * lib/lstat.c: Likewise.
44964         * lib/lstat.h: Likewise.
44965         * lib/math.in.h: Likewise.
44966         * lib/mbchar.c: Likewise.
44967         * lib/mbchar.h: Likewise.
44968         * lib/mbfile.h: Likewise.
44969         * lib/mbiter.h: Likewise.
44970         * lib/mbscasecmp.c: Likewise.
44971         * lib/mbscasestr.c: Likewise.
44972         * lib/mbschr.c: Likewise.
44973         * lib/mbscspn.c: Likewise.
44974         * lib/mbslen.c: Likewise.
44975         * lib/mbsncasecmp.c: Likewise.
44976         * lib/mbsnlen.c: Likewise.
44977         * lib/mbspbrk.c: Likewise.
44978         * lib/mbspcasecmp.c: Likewise.
44979         * lib/mbsrchr.c: Likewise.
44980         * lib/mbssep.c: Likewise.
44981         * lib/mbsspn.c: Likewise.
44982         * lib/mbsstr.c: Likewise.
44983         * lib/mbstok_r.c: Likewise.
44984         * lib/mbswidth.c: Likewise.
44985         * lib/mbswidth.h: Likewise.
44986         * lib/mbuiter.h: Likewise.
44987         * lib/memcasecmp.c: Likewise.
44988         * lib/memcasecmp.h: Likewise.
44989         * lib/memchr.c: Likewise.
44990         * lib/memcmp.c: Likewise.
44991         * lib/memcoll.c: Likewise.
44992         * lib/memcoll.h: Likewise.
44993         * lib/memcpy.c: Likewise.
44994         * lib/memrchr.c: Likewise.
44995         * lib/mkancesdirs.c: Likewise.
44996         * lib/mkdir-p.c: Likewise.
44997         * lib/mkdir-p.h: Likewise.
44998         * lib/mkdir.c: Likewise.
44999         * lib/mkdirat.c: Likewise.
45000         * lib/mkdtemp.c: Likewise.
45001         * lib/mkstemp-safer.c: Likewise.
45002         * lib/mkstemp.c: Likewise.
45003         * lib/modechange.c: Likewise.
45004         * lib/modechange.h: Likewise.
45005         * lib/mountlist.c: Likewise.
45006         * lib/mountlist.h: Likewise.
45007         * lib/mpsort.c: Likewise.
45008         * lib/nanosleep.c: Likewise.
45009         * lib/obstack.c: Likewise.
45010         * lib/obstack.h: Likewise.
45011         * lib/open-safer.c: Likewise.
45012         * lib/open.c: Likewise.
45013         * lib/openat-die.c: Likewise.
45014         * lib/openat-priv.h: Likewise.
45015         * lib/openat-proc.c: Likewise.
45016         * lib/openat.c: Likewise.
45017         * lib/openat.h: Likewise.
45018         * lib/pagealign_alloc.c: Likewise.
45019         * lib/pagealign_alloc.h: Likewise.
45020         * lib/physmem.c: Likewise.
45021         * lib/physmem.h: Likewise.
45022         * lib/pipe-safer.c: Likewise.
45023         * lib/pipe.c: Likewise.
45024         * lib/pipe.h: Likewise.
45025         * lib/posixtm.c: Likewise.
45026         * lib/posixtm.h: Likewise.
45027         * lib/posixver.c: Likewise.
45028         * lib/printf-frexp.c: Likewise.
45029         * lib/printf-frexp.h: Likewise.
45030         * lib/printf-frexpl.c: Likewise.
45031         * lib/printf-frexpl.h: Likewise.
45032         * lib/printf.c: Likewise.
45033         * lib/progname.c: Likewise.
45034         * lib/progname.h: Likewise.
45035         * lib/progreloc.c: Likewise.
45036         * lib/putenv.c: Likewise.
45037         * lib/quote.c: Likewise.
45038         * lib/quote.h: Likewise.
45039         * lib/quotearg.c: Likewise.
45040         * lib/quotearg.h: Likewise.
45041         * lib/raise.c: Likewise.
45042         * lib/readline.c: Likewise.
45043         * lib/readline.h: Likewise.
45044         * lib/readlink.c: Likewise.
45045         * lib/readtokens.c: Likewise.
45046         * lib/readtokens.h: Likewise.
45047         * lib/readtokens0.c: Likewise.
45048         * lib/readtokens0.h: Likewise.
45049         * lib/readutmp.c: Likewise.
45050         * lib/readutmp.h: Likewise.
45051         * lib/realloc.c: Likewise.
45052         * lib/relocwrapper.c: Likewise.
45053         * lib/rename-dest-slash.c: Likewise.
45054         * lib/rename.c: Likewise.
45055         * lib/rmdir.c: Likewise.
45056         * lib/rpmatch.c: Likewise.
45057         * lib/safe-read.c: Likewise.
45058         * lib/safe-read.h: Likewise.
45059         * lib/safe-write.c: Likewise.
45060         * lib/safe-write.h: Likewise.
45061         * lib/same-inode.h: Likewise.
45062         * lib/same.c: Likewise.
45063         * lib/same.h: Likewise.
45064         * lib/save-cwd.c: Likewise.
45065         * lib/save-cwd.h: Likewise.
45066         * lib/savedir.c: Likewise.
45067         * lib/savedir.h: Likewise.
45068         * lib/savewd.c: Likewise.
45069         * lib/savewd.h: Likewise.
45070         * lib/search.in.h: Likewise.
45071         * lib/setenv.c: Likewise.
45072         * lib/setenv.h: Likewise.
45073         * lib/settime.c: Likewise.
45074         * lib/sh-quote.c: Likewise.
45075         * lib/sh-quote.h: Likewise.
45076         * lib/sig2str.c: Likewise.
45077         * lib/sig2str.h: Likewise.
45078         * lib/signal.in.h: Likewise.
45079         * lib/signbitd.c: Likewise.
45080         * lib/signbitf.c: Likewise.
45081         * lib/signbitl.c: Likewise.
45082         * lib/sigprocmask.c: Likewise.
45083         * lib/sincosl.c: Likewise.
45084         * lib/sleep.c: Likewise.
45085         * lib/sprintf.c: Likewise.
45086         * lib/sqrtl.c: Likewise.
45087         * lib/stat-time.h: Likewise.
45088         * lib/stdio--.h: Likewise.
45089         * lib/stdio-safer.h: Likewise.
45090         * lib/stdlib--.h: Likewise.
45091         * lib/stdlib-safer.h: Likewise.
45092         * lib/stdlib.in.h: Likewise.
45093         * lib/stpcpy.c: Likewise.
45094         * lib/stpncpy.c: Likewise.
45095         * lib/strchrnul.c: Likewise.
45096         * lib/strcspn.c: Likewise.
45097         * lib/strerror.c: Likewise.
45098         * lib/strftime.c: Likewise.
45099         * lib/strftime.h: Likewise.
45100         * lib/striconveh.c: Likewise.
45101         * lib/striconveh.h: Likewise.
45102         * lib/striconveha.c: Likewise.
45103         * lib/striconveha.h: Likewise.
45104         * lib/stripslash.c: Likewise.
45105         * lib/strnlen1.c: Likewise.
45106         * lib/strnlen1.h: Likewise.
45107         * lib/strtod.c: Likewise.
45108         * lib/strtoimax.c: Likewise.
45109         * lib/strtok_r.c: Likewise.
45110         * lib/strtol.c: Likewise.
45111         * lib/strtoll.c: Likewise.
45112         * lib/strtoul.c: Likewise.
45113         * lib/strtoull.c: Likewise.
45114         * lib/sysexits.in.h: Likewise.
45115         * lib/tempname.c: Likewise.
45116         * lib/tempname.h: Likewise.
45117         * lib/timespec.h: Likewise.
45118         * lib/tls.c: Likewise.
45119         * lib/tls.h: Likewise.
45120         * lib/tmpdir.c: Likewise.
45121         * lib/tmpdir.h: Likewise.
45122         * lib/tmpfile-safer.c: Likewise.
45123         * lib/tmpfile.c: Likewise.
45124         * lib/trigl.c: Likewise.
45125         * lib/trigl.h: Likewise.
45126         * lib/trim.c: Likewise.
45127         * lib/trim.h: Likewise.
45128         * lib/trunc.c: Likewise.
45129         * lib/truncf.c: Likewise.
45130         * lib/truncl.c: Likewise.
45131         * lib/tsearch.c: Likewise.
45132         * lib/unicodeio.c: Likewise.
45133         * lib/unicodeio.h: Likewise.
45134         * lib/unistd--.h: Likewise.
45135         * lib/unistd-safer.h: Likewise.
45136         * lib/unistdio/ulc-fprintf.c: Likewise.
45137         * lib/unistdio/ulc-vfprintf.c: Likewise.
45138         * lib/unlinkdir.c: Likewise.
45139         * lib/unlinkdir.h: Likewise.
45140         * lib/unlocked-io.h: Likewise.
45141         * lib/unsetenv.c: Likewise.
45142         * lib/userspec.c: Likewise.
45143         * lib/utime.c: Likewise.
45144         * lib/utimecmp.c: Likewise.
45145         * lib/utimecmp.h: Likewise.
45146         * lib/utimens.c: Likewise.
45147         * lib/verify.h: Likewise.
45148         * lib/verror.c: Likewise.
45149         * lib/verror.h: Likewise.
45150         * lib/version-etc-fsf.c: Likewise.
45151         * lib/version-etc.c: Likewise.
45152         * lib/version-etc.h: Likewise.
45153         * lib/vfprintf.c: Likewise.
45154         * lib/vprintf.c: Likewise.
45155         * lib/vsprintf.c: Likewise.
45156         * lib/w32spawn.h: Likewise.
45157         * lib/wait-process.c: Likewise.
45158         * lib/wait-process.h: Likewise.
45159         * lib/wcwidth.c: Likewise.
45160         * lib/write-any-file.c: Likewise.
45161         * lib/xalloc-die.c: Likewise.
45162         * lib/xalloc.h: Likewise.
45163         * lib/xasprintf.c: Likewise.
45164         * lib/xgetcwd.c: Likewise.
45165         * lib/xgetcwd.h: Likewise.
45166         * lib/xgetdomainname.c: Likewise.
45167         * lib/xgetdomainname.h: Likewise.
45168         * lib/xgethostname.c: Likewise.
45169         * lib/xmalloc.c: Likewise.
45170         * lib/xmalloca.c: Likewise.
45171         * lib/xmalloca.h: Likewise.
45172         * lib/xmemcoll.c: Likewise.
45173         * lib/xnanosleep.c: Likewise.
45174         * lib/xreadlink.c: Likewise.
45175         * lib/xreadlink.h: Likewise.
45176         * lib/xsetenv.c: Likewise.
45177         * lib/xsetenv.h: Likewise.
45178         * lib/xstriconv.c: Likewise.
45179         * lib/xstriconv.h: Likewise.
45180         * lib/xstrndup.c: Likewise.
45181         * lib/xstrndup.h: Likewise.
45182         * lib/xstrtod.c: Likewise.
45183         * lib/xstrtod.h: Likewise.
45184         * lib/xstrtol-error.c: Likewise.
45185         * lib/xstrtol.c: Likewise.
45186         * lib/xstrtol.h: Likewise.
45187         * lib/xtime.h: Likewise.
45188         * lib/xvasprintf.c: Likewise.
45189         * lib/xvasprintf.h: Likewise.
45190         * lib/yesno.c: Likewise.
45191         * lib/yesno.h: Likewise.
45192         * posix-modules: Likewise.
45193         * tests/test-alloca-opt.c: Likewise.
45194         * tests/test-arcfour.c: Likewise.
45195         * tests/test-arctwo.c: Likewise.
45196         * tests/test-argmatch.c: Likewise.
45197         * tests/test-argp-2.sh: Likewise.
45198         * tests/test-argp.c: Likewise.
45199         * tests/test-arpa_inet.c: Likewise.
45200         * tests/test-array_list.c: Likewise.
45201         * tests/test-array_oset.c: Likewise.
45202         * tests/test-atexit.c: Likewise.
45203         * tests/test-avltree_list.c: Likewise.
45204         * tests/test-avltree_oset.c: Likewise.
45205         * tests/test-avltreehash_list.c: Likewise.
45206         * tests/test-base64.c: Likewise.
45207         * tests/test-binary-io.c: Likewise.
45208         * tests/test-byteswap.c: Likewise.
45209         * tests/test-c-ctype.c: Likewise.
45210         * tests/test-c-strcasecmp.c: Likewise.
45211         * tests/test-c-strcasestr.c: Likewise.
45212         * tests/test-c-strncasecmp.c: Likewise.
45213         * tests/test-c-strstr.c: Likewise.
45214         * tests/test-canonicalize-lgpl.c: Likewise.
45215         * tests/test-canonicalize.c: Likewise.
45216         * tests/test-carray_list.c: Likewise.
45217         * tests/test-ceilf.c: Likewise.
45218         * tests/test-ceill.c: Likewise.
45219         * tests/test-count-one-bits.c: Likewise.
45220         * tests/test-crc.c: Likewise.
45221         * tests/test-dirname.c: Likewise.
45222         * tests/test-fbufmode.c: Likewise.
45223         * tests/test-fcntl.c: Likewise.
45224         * tests/test-fflush.c: Likewise.
45225         * tests/test-floorf.c: Likewise.
45226         * tests/test-floorl.c: Likewise.
45227         * tests/test-fopen.c: Likewise.
45228         * tests/test-fprintf-posix.c: Likewise.
45229         * tests/test-fprintf-posix.h: Likewise.
45230         * tests/test-fpurge.c: Likewise.
45231         * tests/test-freadable.c: Likewise.
45232         * tests/test-freadahead.c: Likewise.
45233         * tests/test-freading.c: Likewise.
45234         * tests/test-freopen.c: Likewise.
45235         * tests/test-frexp.c: Likewise.
45236         * tests/test-frexpl.c: Likewise.
45237         * tests/test-fseek.c: Likewise.
45238         * tests/test-fseeko.c: Likewise.
45239         * tests/test-fseterr.c: Likewise.
45240         * tests/test-fstrcmp.c: Likewise.
45241         * tests/test-ftell.c: Likewise.
45242         * tests/test-ftello.c: Likewise.
45243         * tests/test-fwritable.c: Likewise.
45244         * tests/test-fwriting.c: Likewise.
45245         * tests/test-getaddrinfo.c: Likewise.
45246         * tests/test-getpass.c: Likewise.
45247         * tests/test-gettimeofday.c: Likewise.
45248         * tests/test-hmac-md5.c: Likewise.
45249         * tests/test-hmac-sha1.c: Likewise.
45250         * tests/test-iconv.c: Likewise.
45251         * tests/test-iconvme.c: Likewise.
45252         * tests/test-inttypes.c: Likewise.
45253         * tests/test-isnan.c: Likewise.
45254         * tests/test-isnanf.c: Likewise.
45255         * tests/test-isnanl-nolibm.c: Likewise.
45256         * tests/test-isnanl.c: Likewise.
45257         * tests/test-isnanl.h: Likewise.
45258         * tests/test-ldexpl.c: Likewise.
45259         * tests/test-linked_list.c: Likewise.
45260         * tests/test-linkedhash_list.c: Likewise.
45261         * tests/test-locale.c: Likewise.
45262         * tests/test-localename.c: Likewise.
45263         * tests/test-lock.c: Likewise.
45264         * tests/test-lseek.c: Likewise.
45265         * tests/test-malloca.c: Likewise.
45266         * tests/test-math.c: Likewise.
45267         * tests/test-mbscasecmp.c: Likewise.
45268         * tests/test-mbscasestr1.c: Likewise.
45269         * tests/test-mbscasestr2.c: Likewise.
45270         * tests/test-mbscasestr3.c: Likewise.
45271         * tests/test-mbscasestr4.c: Likewise.
45272         * tests/test-mbschr.c: Likewise.
45273         * tests/test-mbscspn.c: Likewise.
45274         * tests/test-mbsncasecmp.c: Likewise.
45275         * tests/test-mbspbrk.c: Likewise.
45276         * tests/test-mbspcasecmp.c: Likewise.
45277         * tests/test-mbsrchr.c: Likewise.
45278         * tests/test-mbsspn.c: Likewise.
45279         * tests/test-mbsstr1.c: Likewise.
45280         * tests/test-mbsstr2.c: Likewise.
45281         * tests/test-mbsstr3.c: Likewise.
45282         * tests/test-md5.c: Likewise.
45283         * tests/test-memmem.c: Likewise.
45284         * tests/test-netinet_in.c: Likewise.
45285         * tests/test-open.c: Likewise.
45286         * tests/test-printf-frexp.c: Likewise.
45287         * tests/test-printf-frexpl.c: Likewise.
45288         * tests/test-printf-posix.c: Likewise.
45289         * tests/test-printf-posix.h: Likewise.
45290         * tests/test-rbtree_list.c: Likewise.
45291         * tests/test-rbtree_oset.c: Likewise.
45292         * tests/test-rbtreehash_list.c: Likewise.
45293         * tests/test-read-file.c: Likewise.
45294         * tests/test-rijndael.c: Likewise.
45295         * tests/test-search.c: Likewise.
45296         * tests/test-signbit.c: Likewise.
45297         * tests/test-sleep.c: Likewise.
45298         * tests/test-snprintf-posix.c: Likewise.
45299         * tests/test-snprintf-posix.h: Likewise.
45300         * tests/test-snprintf.c: Likewise.
45301         * tests/test-sprintf-posix.c: Likewise.
45302         * tests/test-sprintf-posix.h: Likewise.
45303         * tests/test-stat-time.c: Likewise.
45304         * tests/test-stdbool.c: Likewise.
45305         * tests/test-stdint.c: Likewise.
45306         * tests/test-stdio.c: Likewise.
45307         * tests/test-stdlib.c: Likewise.
45308         * tests/test-stpncpy.c: Likewise.
45309         * tests/test-strcasestr.c: Likewise.
45310         * tests/test-striconv.c: Likewise.
45311         * tests/test-striconveh.c: Likewise.
45312         * tests/test-striconveha.c: Likewise.
45313         * tests/test-string.c: Likewise.
45314         * tests/test-sys_select.c: Likewise.
45315         * tests/test-sys_socket.c: Likewise.
45316         * tests/test-sys_stat.c: Likewise.
45317         * tests/test-sys_time.c: Likewise.
45318         * tests/test-sysexits.c: Likewise.
45319         * tests/test-time.c: Likewise.
45320         * tests/test-tls.c: Likewise.
45321         * tests/test-trunc.c: Likewise.
45322         * tests/test-truncf.c: Likewise.
45323         * tests/test-truncl.c: Likewise.
45324         * tests/test-unistd.c: Likewise.
45325         * tests/test-vasnprintf-posix.c: Likewise.
45326         * tests/test-vasnprintf-posix2.c: Likewise.
45327         * tests/test-vasnprintf.c: Likewise.
45328         * tests/test-vasprintf-posix.c: Likewise.
45329         * tests/test-vasprintf.c: Likewise.
45330         * tests/test-verify.c: Likewise.
45331         * tests/test-vfprintf-posix.c: Likewise.
45332         * tests/test-vprintf-posix.c: Likewise.
45333         * tests/test-vsnprintf-posix.c: Likewise.
45334         * tests/test-vsnprintf.c: Likewise.
45335         * tests/test-vsprintf-posix.c: Likewise.
45336         * tests/test-wchar.c: Likewise.
45337         * tests/test-wctype.c: Likewise.
45338         * tests/test-wcwidth.c: Likewise.
45339         * tests/test-xstrtol.c: Likewise.
45340         * tests/test-xvasprintf.c: Likewise.
45341         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45342         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45343         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45344         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45345         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45346         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45347         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45348         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45349         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45350         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45351         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45352         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45353         * tests/uniname/test-uninames.c: Likewise.
45354         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45355         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45356         * tests/unistdio/test-u16-printf1.h: Likewise.
45357         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45358         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45359         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45360         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45361         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45362         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45363         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45364         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45365         * tests/unistdio/test-u32-printf1.h: Likewise.
45366         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45367         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45368         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45369         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45370         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45371         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45372         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45373         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45374         * tests/unistdio/test-u8-printf1.h: Likewise.
45375         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45376         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45377         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45378         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45379         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45380         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45381         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45382         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45383         * tests/unistdio/test-ulc-printf1.h: Likewise.
45384         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45385         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45386         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45387         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45388         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45389         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45390         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45391         * tests/uniwidth/test-u16-width.c: Likewise.
45392         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45393         * tests/uniwidth/test-u32-width.c: Likewise.
45394         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45395         * tests/uniwidth/test-u8-width.c: Likewise.
45396         * tests/uniwidth/test-uc_width.c: Likewise.
45397         * config/srclist-update: Likewise.
45398         (fixlicense): Update to GPLv3+.
45399
45400         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45401         * tests/test-tsearch.c: Change copyright notice.
45402
45403         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45404         * lib/c-strcaseeq.h: Change copyright notice.
45405         * lib/streq.h: Likewise.
45406         * lib/uniconv.h: Likewise.
45407         * lib/uniconv/u-conv-from-enc.h: Likewise.
45408         * lib/uniconv/u-conv-to-enc.h: Likewise.
45409         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45410         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45411         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45412         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45413         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45414         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45415         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45416         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45417         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45418         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45419         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45420         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45421         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45422         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45423         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45424         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45425         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45426         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45427         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45428         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45429         * lib/uniname.h: Likewise.
45430         * lib/uniname/uniname.c: Likewise.
45431         * lib/unistdio.h: Likewise.
45432         * lib/unistdio/u-asnprintf.h: Likewise.
45433         * lib/unistdio/u-asprintf.h: Likewise.
45434         * lib/unistdio/u-printf-args.c: Likewise.
45435         * lib/unistdio/u-printf-args.h: Likewise.
45436         * lib/unistdio/u-printf-parse.h: Likewise.
45437         * lib/unistdio/u-snprintf.h: Likewise.
45438         * lib/unistdio/u-sprintf.h: Likewise.
45439         * lib/unistdio/u-vasprintf.h: Likewise.
45440         * lib/unistdio/u-vsnprintf.h: Likewise.
45441         * lib/unistdio/u-vsprintf.h: Likewise.
45442         * lib/unistdio/u16-asnprintf.c: Likewise.
45443         * lib/unistdio/u16-asprintf.c: Likewise.
45444         * lib/unistdio/u16-printf-parse.c: Likewise.
45445         * lib/unistdio/u16-snprintf.c: Likewise.
45446         * lib/unistdio/u16-sprintf.c: Likewise.
45447         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45448         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45449         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45450         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45451         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45452         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45453         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45454         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45455         * lib/unistdio/u16-vasnprintf.c: Likewise.
45456         * lib/unistdio/u16-vasprintf.c: Likewise.
45457         * lib/unistdio/u16-vsnprintf.c: Likewise.
45458         * lib/unistdio/u16-vsprintf.c: Likewise.
45459         * lib/unistdio/u32-asnprintf.c: Likewise.
45460         * lib/unistdio/u32-asprintf.c: Likewise.
45461         * lib/unistdio/u32-printf-parse.c: Likewise.
45462         * lib/unistdio/u32-snprintf.c: Likewise.
45463         * lib/unistdio/u32-sprintf.c: Likewise.
45464         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45465         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45466         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45467         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45468         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45469         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45470         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45471         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45472         * lib/unistdio/u32-vasnprintf.c: Likewise.
45473         * lib/unistdio/u32-vasprintf.c: Likewise.
45474         * lib/unistdio/u32-vsnprintf.c: Likewise.
45475         * lib/unistdio/u32-vsprintf.c: Likewise.
45476         * lib/unistdio/u8-asnprintf.c: Likewise.
45477         * lib/unistdio/u8-asprintf.c: Likewise.
45478         * lib/unistdio/u8-printf-parse.c: Likewise.
45479         * lib/unistdio/u8-snprintf.c: Likewise.
45480         * lib/unistdio/u8-sprintf.c: Likewise.
45481         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45482         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45483         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45484         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45485         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45486         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45487         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45488         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45489         * lib/unistdio/u8-vasnprintf.c: Likewise.
45490         * lib/unistdio/u8-vasprintf.c: Likewise.
45491         * lib/unistdio/u8-vsnprintf.c: Likewise.
45492         * lib/unistdio/u8-vsprintf.c: Likewise.
45493         * lib/unistdio/ulc-asnprintf.c: Likewise.
45494         * lib/unistdio/ulc-asprintf.c: Likewise.
45495         * lib/unistdio/ulc-printf-parse.c: Likewise.
45496         * lib/unistdio/ulc-snprintf.c: Likewise.
45497         * lib/unistdio/ulc-sprintf.c: Likewise.
45498         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45499         * lib/unistdio/ulc-vasprintf.c: Likewise.
45500         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45501         * lib/unistdio/ulc-vsprintf.c: Likewise.
45502         * lib/unistr.h: Likewise.
45503         * lib/unistr/u-cpy-alloc.h: Likewise.
45504         * lib/unistr/u-cpy.h: Likewise.
45505         * lib/unistr/u-endswith.h: Likewise.
45506         * lib/unistr/u-move.h: Likewise.
45507         * lib/unistr/u-set.h: Likewise.
45508         * lib/unistr/u-startswith.h: Likewise.
45509         * lib/unistr/u-stpcpy.h: Likewise.
45510         * lib/unistr/u-stpncpy.h: Likewise.
45511         * lib/unistr/u-strcat.h: Likewise.
45512         * lib/unistr/u-strcpy.h: Likewise.
45513         * lib/unistr/u-strcspn.h: Likewise.
45514         * lib/unistr/u-strdup.h: Likewise.
45515         * lib/unistr/u-strlen.h: Likewise.
45516         * lib/unistr/u-strncat.h: Likewise.
45517         * lib/unistr/u-strncpy.h: Likewise.
45518         * lib/unistr/u-strnlen.h: Likewise.
45519         * lib/unistr/u-strpbrk.h: Likewise.
45520         * lib/unistr/u-strspn.h: Likewise.
45521         * lib/unistr/u-strstr.h: Likewise.
45522         * lib/unistr/u-strtok.h: Likewise.
45523         * lib/unistr/u16-check.c: Likewise.
45524         * lib/unistr/u16-chr.c: Likewise.
45525         * lib/unistr/u16-cmp.c: Likewise.
45526         * lib/unistr/u16-cpy-alloc.c: Likewise.
45527         * lib/unistr/u16-cpy.c: Likewise.
45528         * lib/unistr/u16-endswith.c: Likewise.
45529         * lib/unistr/u16-mblen.c: Likewise.
45530         * lib/unistr/u16-mbsnlen.c: Likewise.
45531         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45532         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45533         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45534         * lib/unistr/u16-mbtouc.c: Likewise.
45535         * lib/unistr/u16-mbtoucr.c: Likewise.
45536         * lib/unistr/u16-move.c: Likewise.
45537         * lib/unistr/u16-next.c: Likewise.
45538         * lib/unistr/u16-prev.c: Likewise.
45539         * lib/unistr/u16-set.c: Likewise.
45540         * lib/unistr/u16-startswith.c: Likewise.
45541         * lib/unistr/u16-stpcpy.c: Likewise.
45542         * lib/unistr/u16-stpncpy.c: Likewise.
45543         * lib/unistr/u16-strcat.c: Likewise.
45544         * lib/unistr/u16-strchr.c: Likewise.
45545         * lib/unistr/u16-strcmp.c: Likewise.
45546         * lib/unistr/u16-strcpy.c: Likewise.
45547         * lib/unistr/u16-strcspn.c: Likewise.
45548         * lib/unistr/u16-strdup.c: Likewise.
45549         * lib/unistr/u16-strlen.c: Likewise.
45550         * lib/unistr/u16-strmblen.c: Likewise.
45551         * lib/unistr/u16-strmbtouc.c: Likewise.
45552         * lib/unistr/u16-strncat.c: Likewise.
45553         * lib/unistr/u16-strncmp.c: Likewise.
45554         * lib/unistr/u16-strncpy.c: Likewise.
45555         * lib/unistr/u16-strnlen.c: Likewise.
45556         * lib/unistr/u16-strpbrk.c: Likewise.
45557         * lib/unistr/u16-strrchr.c: Likewise.
45558         * lib/unistr/u16-strspn.c: Likewise.
45559         * lib/unistr/u16-strstr.c: Likewise.
45560         * lib/unistr/u16-strtok.c: Likewise.
45561         * lib/unistr/u16-to-u32.c: Likewise.
45562         * lib/unistr/u16-to-u8.c: Likewise.
45563         * lib/unistr/u16-uctomb-aux.c: Likewise.
45564         * lib/unistr/u16-uctomb.c: Likewise.
45565         * lib/unistr/u32-check.c: Likewise.
45566         * lib/unistr/u32-chr.c: Likewise.
45567         * lib/unistr/u32-cmp.c: Likewise.
45568         * lib/unistr/u32-cpy-alloc.c: Likewise.
45569         * lib/unistr/u32-cpy.c: Likewise.
45570         * lib/unistr/u32-endswith.c: Likewise.
45571         * lib/unistr/u32-mblen.c: Likewise.
45572         * lib/unistr/u32-mbsnlen.c: Likewise.
45573         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45574         * lib/unistr/u32-mbtouc.c: Likewise.
45575         * lib/unistr/u32-mbtoucr.c: Likewise.
45576         * lib/unistr/u32-move.c: Likewise.
45577         * lib/unistr/u32-next.c: Likewise.
45578         * lib/unistr/u32-prev.c: Likewise.
45579         * lib/unistr/u32-set.c: Likewise.
45580         * lib/unistr/u32-startswith.c: Likewise.
45581         * lib/unistr/u32-stpcpy.c: Likewise.
45582         * lib/unistr/u32-stpncpy.c: Likewise.
45583         * lib/unistr/u32-strcat.c: Likewise.
45584         * lib/unistr/u32-strchr.c: Likewise.
45585         * lib/unistr/u32-strcmp.c: Likewise.
45586         * lib/unistr/u32-strcpy.c: Likewise.
45587         * lib/unistr/u32-strcspn.c: Likewise.
45588         * lib/unistr/u32-strdup.c: Likewise.
45589         * lib/unistr/u32-strlen.c: Likewise.
45590         * lib/unistr/u32-strmblen.c: Likewise.
45591         * lib/unistr/u32-strmbtouc.c: Likewise.
45592         * lib/unistr/u32-strncat.c: Likewise.
45593         * lib/unistr/u32-strncmp.c: Likewise.
45594         * lib/unistr/u32-strncpy.c: Likewise.
45595         * lib/unistr/u32-strnlen.c: Likewise.
45596         * lib/unistr/u32-strpbrk.c: Likewise.
45597         * lib/unistr/u32-strrchr.c: Likewise.
45598         * lib/unistr/u32-strspn.c: Likewise.
45599         * lib/unistr/u32-strstr.c: Likewise.
45600         * lib/unistr/u32-strtok.c: Likewise.
45601         * lib/unistr/u32-to-u16.c: Likewise.
45602         * lib/unistr/u32-to-u8.c: Likewise.
45603         * lib/unistr/u32-uctomb.c: Likewise.
45604         * lib/unistr/u8-check.c: Likewise.
45605         * lib/unistr/u8-chr.c: Likewise.
45606         * lib/unistr/u8-cmp.c: Likewise.
45607         * lib/unistr/u8-cpy-alloc.c: Likewise.
45608         * lib/unistr/u8-cpy.c: Likewise.
45609         * lib/unistr/u8-endswith.c: Likewise.
45610         * lib/unistr/u8-mblen.c: Likewise.
45611         * lib/unistr/u8-mbsnlen.c: Likewise.
45612         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45613         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45614         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45615         * lib/unistr/u8-mbtouc.c: Likewise.
45616         * lib/unistr/u8-mbtoucr.c: Likewise.
45617         * lib/unistr/u8-move.c: Likewise.
45618         * lib/unistr/u8-next.c: Likewise.
45619         * lib/unistr/u8-prev.c: Likewise.
45620         * lib/unistr/u8-set.c: Likewise.
45621         * lib/unistr/u8-startswith.c: Likewise.
45622         * lib/unistr/u8-stpcpy.c: Likewise.
45623         * lib/unistr/u8-stpncpy.c: Likewise.
45624         * lib/unistr/u8-strcat.c: Likewise.
45625         * lib/unistr/u8-strchr.c: Likewise.
45626         * lib/unistr/u8-strcmp.c: Likewise.
45627         * lib/unistr/u8-strcpy.c: Likewise.
45628         * lib/unistr/u8-strcspn.c: Likewise.
45629         * lib/unistr/u8-strdup.c: Likewise.
45630         * lib/unistr/u8-strlen.c: Likewise.
45631         * lib/unistr/u8-strmblen.c: Likewise.
45632         * lib/unistr/u8-strmbtouc.c: Likewise.
45633         * lib/unistr/u8-strncat.c: Likewise.
45634         * lib/unistr/u8-strncmp.c: Likewise.
45635         * lib/unistr/u8-strncpy.c: Likewise.
45636         * lib/unistr/u8-strnlen.c: Likewise.
45637         * lib/unistr/u8-strpbrk.c: Likewise.
45638         * lib/unistr/u8-strrchr.c: Likewise.
45639         * lib/unistr/u8-strspn.c: Likewise.
45640         * lib/unistr/u8-strstr.c: Likewise.
45641         * lib/unistr/u8-strtok.c: Likewise.
45642         * lib/unistr/u8-to-u16.c: Likewise.
45643         * lib/unistr/u8-to-u32.c: Likewise.
45644         * lib/unistr/u8-uctomb-aux.c: Likewise.
45645         * lib/unistr/u8-uctomb.c: Likewise.
45646         * lib/unitypes.h: Likewise.
45647         * lib/uniwidth.h: Likewise.
45648         * lib/uniwidth/cjk.h: Likewise.
45649         * lib/uniwidth/u16-strwidth.c: Likewise.
45650         * lib/uniwidth/u16-width.c: Likewise.
45651         * lib/uniwidth/u32-strwidth.c: Likewise.
45652         * lib/uniwidth/u32-width.c: Likewise.
45653         * lib/uniwidth/u8-strwidth.c: Likewise.
45654         * lib/uniwidth/u8-width.c: Likewise.
45655         * lib/uniwidth/width.c: Likewise.
45656
45657 2007-10-07  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45660         The file is still under LGPL (see modules/inttypes).
45661
45662 2007-10-06  Bruno Haible  <bruno@clisp.org>
45663
45664         * modules/trunc (Dependencies): Add 'extensions'.
45665         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45666         Reported by Ben Pfaff <blp@gnu.org>.
45667
45668 2007-10-06  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/freopen-tests: New file.
45671         * tests/test-freopen.c: New file.
45672
45673         * modules/fopen-tests: New file.
45674         * tests/test-fopen.c: New file.
45675
45676         * modules/fopen: New file.
45677         * lib/fopen.c: New file.
45678         * m4/fopen.m4: New file.
45679         * modules/freopen: New file.
45680         * lib/freopen.c: New file.
45681         * m4/freopen.m4: New file.
45682         * lib/stdio.in.h (fopen, freopen): New declarations.
45683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45684         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45685         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45686         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45687         * doc/functions/fopen.texi: Mention the 'fopen' module.
45688         * doc/functions/freopen.texi: Mention the 'freopen' module.
45689
45690 2007-10-06  Bruno Haible  <bruno@clisp.org>
45691
45692         * modules/open-tests: New file.
45693         * tests/test-open.c: New file.
45694
45695         * modules/open: New file.
45696         * lib/open.c: New file.
45697         * m4/open.m4: New file.
45698         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45699         lib/open.c does.
45700         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45701         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45702         macros.
45703         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45704         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45705         REPLACE_OPEN.
45706         * doc/functions/open.texi: Mention the 'open' module.
45707
45708 2007-10-04  Bruno Haible  <bruno@clisp.org>
45709
45710         * modules/ceill-tests: New file.
45711         * tests/test-ceill.c: New file.
45712
45713         * modules/ceill: New file.
45714         * lib/ceill.c: Replace entire file.
45715         * m4/ceill.m4: New file.
45716         * lib/math.in.h (ceill): Replace declaration.
45717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45718         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45719         * doc/functions/ceill.texi: Mention the 'ceill' module.
45720         * modules/mathl (Files): Remove lib/ceill.c.
45721         (Depends-on): Add ceill.
45722
45723 2007-10-04  Bruno Haible  <bruno@clisp.org>
45724
45725         * modules/ceilf-tests: New file.
45726         * tests/test-ceilf.c: New file.
45727
45728         * modules/ceilf: New file.
45729         * lib/ceil.c: New file.
45730         * lib/ceilf.c: New file.
45731         * m4/ceilf.m4: New file.
45732         * lib/math.in.h (ceilf): New declaration.
45733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45734         HAVE_DECL_CEILF.
45735         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45736         HAVE_DECL_CEILF.
45737         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45738
45739 2007-10-04  Bruno Haible  <bruno@clisp.org>
45740
45741         * modules/floorl-tests: New file.
45742         * tests/test-floorl.c: New file.
45743
45744         * modules/floorl: New file.
45745         * lib/floorl.c: Replace entire file.
45746         * m4/floorl.m4: New file.
45747         * lib/math.in.h (floorl): Replace declaration.
45748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45749         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45750         * doc/functions/floorl.texi: Mention the 'floorl' module.
45751         * modules/mathl (Files): Remove lib/floorl.c.
45752         (Depends-on): Add floorl.
45753
45754 2007-10-04  Bruno Haible  <bruno@clisp.org>
45755
45756         * modules/floorf-tests: New file.
45757         * tests/test-floorf.c: New file.
45758
45759         * modules/floorf: New file.
45760         * lib/floor.c: New file.
45761         * lib/floorf.c: New file.
45762         * m4/floorf.m4: New file.
45763         * lib/math.in.h (floorf): New declaration.
45764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45765         HAVE_DECL_FLOORF.
45766         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45767         HAVE_DECL_FLOORF.
45768         * doc/functions/floorf.texi: Mention the 'floorf' module.
45769
45770 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45771             Bruno Haible  <bruno@clisp.org>
45772
45773         Advertise for the Git server instead of the CVS server.
45774         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45775         repository instead of the CVS one.
45776         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45777         about all VCS systems generically.
45778         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45779
45780 2007-10-04  Bruno Haible  <bruno@clisp.org>
45781
45782         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45783         means.
45784         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45785
45786 2007-10-04  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/truncl-tests: New file.
45789         * tests/test-truncl.c: New file.
45790
45791         * modules/truncl: New file.
45792         * lib/truncl.c: New file.
45793         * m4/truncl.m4: New file.
45794         * lib/math.in.h (truncl): New declaration.
45795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45796         HAVE_DECL_TRUNCL.
45797         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45798         HAVE_DECL_TRUNCL.
45799         * doc/functions/truncl.texi: Mention the 'truncl' module.
45800
45801 2007-10-04  Bruno Haible  <bruno@clisp.org>
45802
45803         * modules/truncf-tests: New file.
45804         * tests/test-truncf.c: New file.
45805
45806         * modules/truncf: New file.
45807         * lib/trunc.c: Make paramerizable through USE_* macros.
45808         * lib/truncf.c: New file.
45809         * m4/truncf.m4: New file.
45810         * lib/math.in.h (truncf): New declaration.
45811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45812         HAVE_DECL_TRUNCF.
45813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45814         HAVE_DECL_TRUNCF.
45815         * doc/functions/truncf.texi: Mention the 'truncf' module.
45816
45817 2007-10-03  Bruno Haible  <bruno@clisp.org>
45818
45819         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45820         augmentation also for tests modules.
45821         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45822         * modules/atexit-tests (Makefile.am): Likewise.
45823         * modules/binary-io-tests (Makefile.am): Likewise.
45824         * modules/c-strcase-tests (Makefile.am): Likewise.
45825         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45826         * modules/canonicalize-tests (Makefile.am): Likewise.
45827         * modules/closein-tests (Makefile.am): Likewise.
45828         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45829         * modules/freadahead-tests (Makefile.am): Likewise.
45830         * modules/fseek-tests (Makefile.am): Likewise.
45831         * modules/fseeko-tests (Makefile.am): Likewise.
45832         * modules/ftell-tests (Makefile.am): Likewise.
45833         * modules/ftello-tests (Makefile.am): Likewise.
45834         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45835         * modules/isnanl-tests (Makefile.am): Likewise.
45836         * modules/lseek-tests (Makefile.am): Likewise.
45837         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45838         * modules/mbscasestr-tests (Makefile.am): Likewise.
45839         * modules/mbschr-tests (Makefile.am): Likewise.
45840         * modules/mbscspn-tests (Makefile.am): Likewise.
45841         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45842         * modules/mbspbrk-tests (Makefile.am): Likewise.
45843         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45844         * modules/mbsrchr-tests (Makefile.am): Likewise.
45845         * modules/mbsspn-tests (Makefile.am): Likewise.
45846         * modules/mbsstr-tests (Makefile.am): Likewise.
45847         * modules/printf-posix-tests (Makefile.am): Likewise.
45848         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45849         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45850         * modules/tsearch-tests (Makefile.am): Likewise.
45851         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45852         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45853         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45854         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45855         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45856         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45857         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45858         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45859         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45860         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45861         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45862         * modules/xstrtol-tests (Makefile.am): Likewise.
45863         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45864         * modules/yesno-tests (Makefile.am): Likewise.
45865
45866 2007-10-03  Bruno Haible  <bruno@clisp.org>
45867
45868         * modules/trunc-tests: New file.
45869         * tests/test-trunc.c: New file.
45870
45871         * modules/trunc: New file.
45872         * lib/trunc.c: New file.
45873         * m4/trunc.m4: New file.
45874         * lib/math.in.h (trunc): New declaration.
45875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45876         HAVE_DECL_TRUNC.
45877         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45878         HAVE_DECL_TRUNC.
45879         * doc/functions/trunc.texi: Mention the 'trunc' module.
45880
45881 2007-10-03  Bruno Haible  <bruno@clisp.org>
45882
45883         * tests/test-fpending.c: New file, mostly copied
45884         from coreutils/lib/t-fpending.c.
45885         * modules/fpending-tests: New file.
45886
45887 2007-10-03  Bruno Haible  <bruno@clisp.org>
45888
45889         Port the stdio extensions to QNX (untested).
45890         * lib/fseterr.c (fseterr): Add support for QNX.
45891         * lib/fbufmode.c (fbufmode): Likewise.
45892         * lib/freadable.c (freadable): Likewise.
45893         * lib/fwritable.c (fwritable): Likewise.
45894         * lib/freading.c (freading): Likewise.
45895         * lib/fwriting.c (fwriting): Likewise.
45896         * lib/freadahead.c (freadahed): Likewise.
45897         * lib/fpurge.c (fpurge): Likewise.
45898         * lib/fseeko.c (rpl_fseeko): Likewise.
45899
45900 2007-10-03  Bruno Haible  <bruno@clisp.org>
45901             Jim Meyering  <jim@meyering.net>
45902             Eric Blake  <ebb9@byu.net>
45903
45904         * doc/relocatable.texi: Use @command instead of @program.
45905
45906 2007-10-02  Jim Meyering  <jim@meyering.net>
45907
45908         Perform one more "_.h" -> ".in.h" substitution.
45909         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45910         instead of unistd_.h here, too.
45911
45912 2007-10-01  Bruno Haible  <bruno@clisp.org>
45913
45914         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45915         Needed for the alloca-opt module.
45916
45917 2007-09-30  Bruno Haible  <bruno@clisp.org>
45918
45919         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45920         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45921         alloca_.h.
45922         * lib/argz.in.h: Renamed from lib/argz_.h.
45923         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45924         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45925         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45926         byteswap_.h.
45927         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45928         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45929         dirent_.h.
45930         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45931         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45932         fcntl_.h.
45933         * lib/float.in.h: Renamed from lib/float_.h.
45934         * modules/float (Files, Makefile.am): Use float.in.h instead of
45935         float_.h.
45936         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45937         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45938         fnmatch_.h.
45939         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45940         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45941         getopt_.h.
45942         * lib/glob.in.h: Renamed from lib/glob_.h.
45943         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45944         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45945         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45946         iconv_.h.
45947         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45948         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45949         inttypes_.h.
45950         * lib/locale.in.h: Renamed from lib/locale_.h.
45951         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45952         locale_.h.
45953         * lib/math.in.h: Renamed from lib/math_.h.
45954         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45955         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45956         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45957         of netinet_in_.h. Add dependency.
45958         * lib/poll.in.h: Renamed from lib/poll_.h.
45959         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45960         * lib/search.in.h: Renamed from lib/search_.h.
45961         * modules/search (Files, Makefile.am): Use search.in.h instead of
45962         search_.h.
45963         * lib/signal.in.h: Renamed from lib/signal_.h.
45964         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45965         _signal.h.
45966         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45967         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45968         stdbool_.h.
45969         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45970         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45971         stdint_.h.
45972         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45973         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45974         stdio_.h.
45975         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45976         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45977         stdlib_.h.
45978         * lib/string.in.h: Renamed from lib/string_.h.
45979         * modules/string (Files, Makefile.am): Use string.in.h instead of
45980         string_.h.
45981         * doc/gnulib-tool.texi (Initial import): Update.
45982         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45983         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45984         of sys_select_.h. Add dependency.
45985         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45986         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45987         of sys_socket_.h.
45988         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45989         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45990         sys_stat_.h.
45991         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45992         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45993         sys_time_.h.
45994         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45995         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45996         sysexits_.h.
45997         * lib/time.in.h: Renamed from lib/time_.h.
45998         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45999         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46000         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46001         unistd_.h.
46002         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46003         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46004         wchar_.h.
46005         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46006         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46007         wctype_.h.
46008         * build-aux/bootstrap (slurp): Update.
46009         * lib/.cppi-disable: Update.
46010
46011 2007-09-30  Bruno Haible  <bruno@clisp.org>
46012
46013         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46014         Needed on BeOS.
46015
46016 2007-09-30  Bruno Haible  <bruno@clisp.org>
46017
46018         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46019
46020 2007-09-29  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46023
46024 2007-09-29  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46027         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46028         * build-aux/install-reloc: Compile also areadlink.c.
46029         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46030
46031 2007-09-29  Bruno Haible  <bruno@clisp.org>
46032
46033         * gnulib-tool (func_emit_initmacro_done): Indentation.
46034
46035 2007-09-29  Bruno Haible  <bruno@clisp.org>
46036
46037         * README: Add CVS checkout update instructions.
46038         Info from Bob Proulx <bob@proulx.com>.
46039
46040 2007-09-28  Eric Blake  <ebb9@byu.net>
46041
46042         Provide move-if-change.
46043         * build-aux/move-if-change: New file, based on best practice
46044         rather than any canonical upstream location.
46045
46046 2007-09-28  Jim Meyering  <jim@meyering.net>
46047
46048         Fix canonicalize loop-detection corner case.
46049         Do not attempt to stat the symlink values stored via seen_triple.
46050         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46051         on linux-2.6.18, (but not 2.6.22).
46052         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46053         triple_compare.  The former compares dev,ino,filename, while the latter
46054         would actually stat dirname(filename) when dev and ino were equal.
46055         * lib/hash-triple.c: Install <string.h>.
46056         (STREQ): Define.
46057         (triple_compare_ino_str): New function.
46058         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46059
46060 2007-09-28  Eric Blake  <ebb9@byu.net>
46061
46062         Enforce that AC_REPLACE_FUNCS files exist.
46063         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46064         override check for typos.
46065
46066         Fix test-closein on Solaris 10.
46067         * tests/test-closein.c (main): Don't assume stdin can be inherited
46068         closed on all systems.
46069         * tests/test-closein.sh: Likewise.
46070         Reported by Piotr Tarnowski.
46071
46072 2007-09-28  Jim Meyering  <jim@meyering.net>
46073
46074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46075
46076 2007-09-27  Jim Meyering  <jim@meyering.net>
46077
46078         canonicalize: Avoid a false-positive cycle failure.
46079         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46080         Sort.  Remove cycle-check.
46081         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46082         not cycle-check.h.
46083         (seen_triple): New function.
46084         (canonicalize_filename_mode): Use it instead of cycle-check.
46085         * tests/test-canonicalize.c: Add a test for this bug.
46086         * tests/test-canonicalize.sh: Set up and run the test.
46087
46088         New module, file-set, from coreutils.
46089         * modules/file-set: Define it.
46090         * lib/file-set.c, lib/file-set.h: Implement.
46091
46092         New module, hash-triple, from coreutils.
46093         * modules/hash-triple: Define it.
46094         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46095
46096 2007-09-25  Eric Blake  <ebb9@byu.net>
46097
46098         Fix strerror on Interix.
46099         * lib/string_.h (strerror): Declare replacement.
46100         * doc/functions/strerror.texi (strerror): Document the Interix
46101         shortcoming.
46102         * modules/string (Makefile.am): Support new hooks.
46103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46104         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46105         gl_FUNC_STRERROR_SEPARATE.
46106         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46107         * lib/strerror.c (rpl_strerror): Provide replacement.
46108         * modules/strerror (Depends-on): Add string.
46109         (configure.ac): Detect use of module.
46110         * tests/test-strerror.c: New file.
46111         * modules/strerror-tests: New test module.
46112         * modules/argp (Depends-on): Add strerror.
46113         * modules/error (Depends-on): Likewise.
46114         Reported by Martin Koeppe.
46115
46116 2007-09-24  Bruno Haible  <bruno@clisp.org>
46117
46118         * README: Update git instructions.
46119
46120 2007-09-24  Eric Blake  <ebb9@byu.net>
46121
46122         Revert fpending breakage from 2007-09-08.
46123         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46124         __fpending.c.
46125
46126 2007-09-24  Jim Meyering  <jim@meyering.net>
46127
46128         filenamecat.c: Add a test.
46129         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46130         showing how the function works when DIR is the empty string.
46131
46132 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46133
46134         * tests/test-canonicalize.sh: Turn on executable bit.
46135
46136 2007-09-19  Eric Blake  <ebb9@byu.net>
46137
46138         * README: Update CVS instructions.
46139
46140 2007-09-18  Bruno Haible  <bruno@clisp.org>
46141
46142         * modules/areadlink: New file.
46143         * lib/areadlink.h (areadlink): New declaration.
46144         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46145
46146 2007-09-17  Jim Meyering  <jim@meyering.net>
46147
46148         * lib/savewd.c (ESTALE) [!defined]: Define.
46149         Reported to be required on Interix by Martin Koeppe.
46150
46151 2007-09-17  Bruno Haible  <bruno@clisp.org>
46152
46153         * gnulib-tool (func_version): Use $version.
46154
46155 2007-09-16  Bruno Haible  <bruno@clisp.org>
46156
46157         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46158         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46159         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46160         Reported by Greg Schafer <gschafer@zip.com.au>.
46161
46162 2007-09-15  Bruno Haible  <bruno@clisp.org>
46163
46164         * gnulib-tool (sed): Try a little harder to make bash understand the
46165         alias.
46166         Reported by Bruce Korb <bruce.korb@gmail.com>.
46167
46168 2007-09-13  Eric Blake  <ebb9@byu.net>
46169
46170         * ChangeLog: Remove conflict markers.
46171
46172 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46173
46174         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46175         Reported by Bruno Haible <bruno@clisp.org>.
46176
46177 2007-09-12  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46180         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46181         is not defined.
46182
46183 2007-09-12  Eric Blake  <ebb9@byu.net>
46184
46185         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46186         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46187         Autoconf definition.
46188         * modules/euidaccess (Depends-on): Add extensions, for
46189         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46190         * modules/fnmatch (Depends-on): Likewise.
46191         * modules/getaddrinfo (Depends-on): Likewise.
46192         * modules/getdelim (Depends-on): Likewise.
46193         * modules/getline (Depends-on): Likewise.
46194         * modules/getsubopt (Depends-on): Likewise.
46195         * modules/gettext (Depends-on): Likewise.
46196         * modules/group-member (Depends-on): Likewise.
46197         * modules/mbchar (Depends-on): Likewise.
46198         * modules/memmem (Depends-on): Likewise.
46199         * modules/mempcpy (Depends-on): Likewise.
46200         * modules/memrchr (Depends-on): Likewise.
46201         * modules/pagealign_alloc (Depends-on): Likewise.
46202         * modules/readutmp (Depends-on): Likewise.
46203         * modules/stpcpy (Depends-on): Likewise.
46204         * modules/stpncpy (Depends-on): Likewise.
46205         * modules/strchrnul (Depends-on): Likewise.
46206         * modules/strndup (Depends-on): Likewise.
46207         * modules/strsep (Depends-on): Likewise.
46208         * modules/strverscmp (Depends-on): Likewise.
46209         * modules/vasprintf (Depends-on): Likewise.
46210         * modules/wcwidth (Depends-on): Likewise.
46211         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46212         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46217         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46218         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46219         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46220         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46224         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46225         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46226         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46227         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46228         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46230         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46232         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46233         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46234         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46235         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46237         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46238         so that lock.m4 can be used in gettext without extensions module.
46239
46240 2007-09-11  Bruno Haible  <bruno@clisp.org>
46241
46242         * m4/isc-posix.m4: Remove file.
46243         Suggested by Eric Blake.
46244
46245 2007-09-11  Eric Blake  <ebb9@byu.net>
46246
46247         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46248
46249 2007-09-10  Bruno Haible  <bruno@clisp.org>
46250
46251         * posix-modules: Fix typo in error message.
46252         Reported by Matt <mkraai@beckman.com>.
46253
46254 2007-09-09  Bruno Haible  <bruno@clisp.org>
46255
46256         * doc/functions/getdelim.texi: Update list of platforms lacking the
46257         function.
46258         * doc/functions/getline.texi: Likewise.
46259
46260 2007-09-09  Jim Meyering  <jim@meyering.net>
46261
46262         * lib/hash.c (hash_initialize): Detect calloc failure.
46263         Reported by Bruno Haible.
46264
46265 2007-09-09  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46268         malloc or realloc fails.
46269
46270 2007-09-09  Bruno Haible  <bruno@clisp.org>
46271
46272         * modules/getcwd (Depends-on): Add malloc-posix.
46273         * modules/glob (Depends-on): Likewise.
46274         * modules/putenv (Depends-on): Likewise.
46275         * modules/strdup (Depends-on): Likewise.
46276         * modules/getdelim (Depends-on): Add realloc-posix.
46277         * modules/read-file (Depends-on): Likewise.
46278
46279 2007-09-09  Bruno Haible  <bruno@clisp.org>
46280
46281         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46282         (gl_FUNC_MALLOC_POSIX): Require it.
46283         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46284         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46285         * modules/realloc (Files): Add m4/malloc.m4.
46286         * modules/calloc (Files): Likewise.
46287
46288 2007-09-09  Bruno Haible  <bruno@clisp.org>
46289
46290         * modules/malloc-posix: New file.
46291         * modules/malloc (Depends-on): Add malloc-posix.
46292         * lib/malloc.c: Include errno.h.
46293         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46294         and a POSIX-compatible malloc into a single function. Set ENOMEM
46295         when returning NULL.
46296         * m4/malloc.m4: New file.
46297         * doc/functions/malloc.texi: Mention the malloc-posix module.
46298         * lib/stdlib_.h (malloc): New declaration.
46299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46300         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46301         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46302         and HAVE_MALLOC_POSIX.
46303
46304 2007-09-09  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/realloc-posix: New file.
46307         * modules/realloc (Depends-on): Add realloc-posix.
46308         * lib/realloc.c: Include errno.h.
46309         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46310         and a POSIX-compatible realloc into a single function. Set ENOMEM
46311         when returning NULL.
46312         * m4/realloc.m4: New file.
46313         * doc/functions/realloc.texi: Mention the realloc-posix module.
46314         * lib/stdlib_.h (realloc): New declaration.
46315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46316         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46317         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46318         and HAVE_REALLOC_POSIX.
46319
46320 2007-09-09  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/calloc-posix: New file.
46323         * modules/calloc (Depends-on): Add calloc-posix.
46324         * lib/calloc.c: Include errno.h.
46325         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46326         and a POSIX-compatible calloc into a single function. Set ENOMEM
46327         when returning NULL.
46328         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46329         * doc/functions/calloc.texi: Mention the calloc-posix module.
46330         * lib/stdlib_.h (calloc): New declaration.
46331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46332         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46333         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46334         and HAVE_CALLOC_POSIX.
46335
46336 2007-09-09  Bruno Haible  <bruno@clisp.org>
46337
46338         Allow for modules to show an arbitrary notice.
46339         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46340         * gnulib-tool: New option --extract-notice.
46341         (func_usage): Document it.
46342         (sed_extract_prog): Update.
46343         (func_get_notice): New function.
46344         (func_modules_notice): New function.
46345         (func_import, func_create_testdir): Invoke it.
46346         Suggested by Jim Meyering.
46347
46348 2007-09-09  Bruno Haible  <bruno@clisp.org>
46349
46350         * gnulib-tool: New options --verbose, --quiet.
46351         (func_usage): Document them.
46352         (verbose): New variable.
46353         (func_execute_command): New function.
46354         (func_import): Don't show the module list and the file list if
46355         $verbose < 0.
46356         (func_create_testdir): Likewise. Use func_execute_command.
46357         (func_create_megatestdir): Use func_execute_command.
46358
46359 2007-09-08  Bruno Haible  <bruno@clisp.org>
46360
46361         * gnulib-tool (func_import): Prefer rsync over wget when available,
46362         for fetching the PO files.
46363
46364 2007-09-08  Bruno Haible  <bruno@clisp.org>
46365
46366         * posix-modules: New file. Portions copied from gnulib-tool.
46367         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46368
46369 2007-09-08  Jim Meyering  <jim@meyering.net>
46370
46371         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46372         * lib/fpending.h: Rename from __fpending.h.
46373         * lib/fpending.c: Rename from __fpending.c.
46374         Include "fpending.h", not "__fpending.h".
46375         * lib/__fpending.h, lib/__fpending.c: Remove files.
46376         * modules/fpending (Files): Reflect new file names.
46377         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46378
46379 2007-09-08  Bruno Haible  <bruno@clisp.org>
46380
46381         * m4/inttypes-h.m4: Remove stub file.
46382
46383 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46384
46385         * doc/headers/stdint.texi: Discuss #include_next issue.
46386
46387 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46390
46391 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46392
46393         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46394         in variable name.
46395
46396 2007-09-03  Jim Meyering  <jim@meyering.net>
46397
46398         New module: git-version-gen.
46399         * modules/git-version-gen: New file.
46400
46401         Import changes from coreutils for bootstrap script.
46402
46403         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46404
46405         bootstrap: uses rsync to download the .po files
46406         * build-aux/bootstrap (po_download_command_format): New global.
46407         (download_po_files): Use rsync.
46408         (update_po_files): Don't remove .po files after download,
46409         so future rsync runs can take advantage of the copies.
46410
46411         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46412
46413         Solve the unnecessary-.po-file-regeneration problem once and for all.
46414         * build-aux/bootstrap (download_po_files): New function, renamed from
46415         get_translations.  Now, downloads, but doesn't update LINGUAS.
46416         (update_po_files): New function.
46417
46418         bootstrap: Ignore more.
46419         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46420         uniwidth to e.g., lib/.gitignore.
46421         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46422
46423         * build-aux/bootstrap: New setting: vc_ignore.
46424         (insert_sorted_if_absent): Create $file if absent.
46425         Adapt to new, possibly empty, list: $vc_ignore.
46426
46427         bootstrap: generate more ignorable names
46428         * build-aux/bootstrap (slurp): When generating ignorable names,
46429         also map .sin to .sed, .gperf to .c, and .y to .c.
46430
46431 2007-09-03  Jim Meyering  <jim@meyering.net>
46432
46433         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46434         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46435
46436 2007-09-02  Bruno Haible  <bruno@clisp.org>
46437
46438         Fix mis-recognition of 'mcs' on QNX 6.
46439         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46440         output contains the string "Mono".
46441         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46442         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46443
46444 2007-09-01  Bruno Haible  <bruno@clisp.org>
46445
46446         Fix collision between uniwidth/* and linebreak modules.
46447         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46448         u32_width): Remove declarations.
46449         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46450         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46451         streq3, streq2, streq1, streq0): Remove functions.
46452         (STREQ): Remove macro.
46453         (is_cjk_encoding): Remove function.
46454         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46455         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46456         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46457         * NEWS: Document the change.
46458
46459 2007-09-01  Bruno Haible  <bruno@clisp.org>
46460
46461         * lib/streq.h: Add double-inclusion guard.
46462
46463 2007-09-01  Karl Berry  <karl@gnu.org>
46464
46465         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46466
46467 2007-08-28  Jim Meyering  <jim@meyering.net>
46468
46469         Rename mreadlink_with_size to areadlink_with_size.
46470         * NEWS: Document the change.
46471         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46472         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46473         * lib/mreadlink.h: Rename this to...
46474         * lib/areadlink.h: ...this.
46475         * modules/mreadlink-with-size: Rename this to...
46476         * modules/areadlink-with-size: ...this.
46477         * lib/canonicalize.c: Reflect the renaming.
46478         * modules/canonicalize: Likewise.
46479
46480 2007-08-26  Bruno Haible  <bruno@clisp.org>
46481
46482         * gnulib-tool (func_import): When deciding which files to remove,
46483         consider also dangling symbolic links.
46484         Reported by Eric Blake.
46485
46486 2007-08-26  Bruno Haible  <bruno@clisp.org>
46487
46488         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46489
46490 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46491
46492         * lib/readline.c: Don't include getline.h, the prototype is now
46493         found in stdio.h.
46494
46495 2007-08-23  Jim Meyering  <jim@meyering.net>
46496
46497         Getdelim touchup.
46498         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46499         around the funlockfile call, since funlockfile never sets errno.
46500         Don't set errno upon failed realloc.
46501
46502 2007-08-22  Eric Blake  <ebb9@byu.net>
46503
46504         Getline touchups.
46505         * lib/getdelim.c (getdelim): Revert regression that required *n to
46506         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46508         getdelim, rather than whether implementation is missing.
46509         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46510         * lib/stdio_.h (getline): Also declare if replacement is
46511         required.
46512         * doc/functions/getdelim.texi: New file.
46513         * doc/functions/getline.texi: Likewise.
46514         * doc/gnulib.texi (Function Substitutes): Add new files.
46515         Reported by Bruno Haible.
46516
46517 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46518
46519         * users.txt: Add Guile.
46520
46521 2007-08-22  Eric Blake  <ebb9@byu.net>
46522
46523         * tests/test-getdelim.c (main): Use remove, not unlink.
46524         * tests/test-getline.c (main): Likewise.
46525
46526         Move getline and getdelim into stdio.h, per POSIX 200x.
46527         * modules/getline (Files): Remove getline.h.
46528         (Depends-on): Add stdio.
46529         (configure.ac): Add module indicator.
46530         * modules/getdelim (Files): Remove getdelim.h.
46531         (Depends-on): Add stdio.
46532         (configure.ac): Add module indicator.
46533         * modules/stdio (Makefile.am): Work with new indicators.
46534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46537         * lib/getdelim.h: Delete.
46538         * lib/getline.h: Delete.
46539         * lib/stdio_.h (getdelim, getline): Declare.
46540         * modules/getdelim-tests: New module.
46541         * modules/getline-tests: Likewise.
46542         * tests/test-getdelim.c: New file.
46543         * tests/test-getline.c: Likewise.
46544         * NEWS: Document the change.
46545         * lib/getline.c: Update choice of header.
46546         * lib/csharpcomp.c: Likewise.
46547         * lib/getpass.c: Likewise.
46548         * lib/javacomp.c: Likewise.
46549         * lib/javaversion.c: Likewise.
46550         * lib/yesno.c: Likewise.
46551         * lib/getdelim.c: Likewise.
46552         (getdelim): Set errno on failure, and avoid memory leak.
46553
46554 2007-08-19  Bruno Haible  <bruno@clisp.org>
46555
46556         * modules/closein (Depends-on): Add freadahead.
46557         * lib/closein.c: Include freadahead.h.
46558         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46559         is zero.
46560
46561 2007-08-19  Bruno Haible  <bruno@clisp.org>
46562
46563         * modules/freadahead-tests: New file.
46564         * tests/test-freadahead.sh: New file.
46565         * tests/test-freadahead.c: New file.
46566
46567         * modules/freadahead: New file.
46568         * lib/freadahead.h: New file.
46569         * lib/freadahead.c: New file.
46570         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46571         fbufmode, fpurge, freadable, fwritable.
46572
46573 2007-08-19  Eric Blake  <ebb9@byu.net>
46574
46575         Test yesno in combination with closein.
46576         * lib/yesno.c (yesno): Document use of stdin.
46577         * modules/yesno-tests (Files): New module.
46578         * tests/test-yesno.c (main): New file.
46579         * tests/test-yesno.sh: Likewise.
46580
46581 2007-08-19  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46584         * lib/fseeko.c (rpl_fseeko): Likewise.
46585         * lib/fseterr.c (fseterr): Likewise.
46586
46587 2007-08-19  Bruno Haible  <bruno@clisp.org>
46588
46589         * tests/test-lseek.c (main): Disable a test for BeOS.
46590         * doc/functions/lseek.texi: Document the BeOS bug.
46591
46592 2007-08-19  Bruno Haible  <bruno@clisp.org>
46593             Eric Blake  <ebb9@byu.net>
46594
46595         * lib/lseek.c: Include <sys/stat.h>.
46596         (rpl_lseek): Add workaround code also for Unix platforms.
46597         Needed for BeOS.
46598         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46599         * doc/functions/lseek.texi: Document BeOS definiency.
46600
46601 2007-08-18  Bruno Haible  <bruno@clisp.org>
46602
46603         * modules/fstrcmp-tests: New file.
46604         * tests/test-fstrcmp.c: New file.
46605
46606 2007-08-18  Bruno Haible  <bruno@clisp.org>
46607
46608         * modules/fstrcmp: New file, from GNU gettext with modifications.
46609         * lib/fstrcmp.h: New file, from GNU gettext.
46610         * lib/fstrcmp.c: New file, from GNU gettext.
46611         * MODULES.html.sh (String handling): Add fstrcmp.
46612
46613 2007-08-18  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46616         'bool'.
46617         (diag, compareseq): Remove const from the ctxt argument.
46618         (USE_HEURISTIC): Undefine at the end.
46619
46620 2007-08-18  Jim Meyering  <jim@meyering.net>
46621
46622         New file: lib/idcache.h
46623         * NEWS: Mention the addition.
46624         * modules/idcache (Files): Add lib/idcache.h
46625         * lib/idcache.c: Include "idcache.h".
46626         Don't include <sys/types.h>.
46627         Add a FIXME comment.
46628         Move file-scoped "static" declarations to the top.
46629         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46630
46631 2007-08-17  Bruno Haible  <bruno@clisp.org>
46632         and Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * MODULES.html.sh: Add diffseq.
46635         * modules/diffseq: New file.
46636         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46637         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46638
46639 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46640
46641         Import changes from coreutils for bootstrap script.
46642
46643         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * build-aux/bootstrap (slurp): Work even in environments where
46646         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46647         current code does not slurp files whose names start with ".", and
46648         this looks like it might be a troublesome area.
46649
46650         2007-07-11  Jim Meyering  <jim@meyering.net>
46651
46652         If there's a GPL vN copyright comment, require that N == 3.
46653
46654         2007-07-08  Jim Meyering  <jim@meyering.net>
46655
46656         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46657         * build-aux/bootstrap (mam_template): Move definition out of loop.
46658
46659         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46660
46661         * build-aux/bootstrap (symlink_to_dir): Rename function from
46662         symlink_to_gnulib.  Add a directory parameter.  Update all
46663         callers.
46664         (cp_mark_as_generated): Also check for -- and link to -- files in
46665         gl/.
46666
46667         2007-07-08  Jim Meyering  <jim@meyering.net>
46668
46669         Adapt to deeper hierarchy in gnulib.
46670         * build-aux/bootstrap (symlink_to_dir): If the destination
46671         directory doesn't exist, create it. This is required at least for
46672         "lib/uniwidth/cjk.h".
46673
46674         2007-05-15  Jim Meyering  <jim@meyering.net>
46675
46676         * build-aux/bootstrap: Now that generated Makefile.am files
46677         are no longer under version control, they must be created at
46678         bootstrap time.
46679
46680 2007-08-14  Ben Pfaff  <blp@gnu.org>
46681
46682         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46683
46684 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46685
46686         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46687         given the changes below.
46688         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46689         even on hosts that have padding bits beyond the supported 64.
46690
46691 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46694         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46695         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46696         depends on it.
46697         (xstrtol_error): Remove.
46698         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46699         but with a different signature.
46700         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46701         * lib/xstrtol-error.c: Include exitfail.h.
46702         (xstrtol_fatal): New function, with a different signature from the
46703         old xstrtol_error, so that the caller need not worry about passing
46704         in an exit status, or about storage management of the option argument.
46705         (xstrtol_error): Now a static function.  Redo signature to
46706         implement xstrtol_fatal.  Output the correct number of hyphens in
46707         front of the option so that the caller need not worry about
46708         storage management.
46709         (N_): New macro.
46710         (_): Remove; not used now.
46711         * modules/xstrtol: Depend on getopt.
46712         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46713         of old STRTOL_FATAL_ERROR macro.
46714         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46715         of test program.
46716         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46717         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46718
46719 2007-08-08  Eric Blake  <ebb9@byu.net>
46720
46721         * lib/xstrtol-error.c: Add missing include.
46722
46723         Move xstrtol messages into gnulib domain, when --pobase is used.
46724         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46725         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46726         * modules/xstrtol (Files): Distribute new file.
46727         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46728         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46729         * tests/test-xstrtol.c: ...into new file.
46730         * tests/test-xstrtoul.c: Also test xstrtoul.
46731         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46732         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46733         * tests/test-xstrtol.sh: Drive the tests.
46734         * tests/test-xstrtoimax.sh: Likewise.
46735         * tests/test-xstrtoumax.sh: Likewise.
46736         * modules/xstrtol-tests: New module.
46737         * modules/xstrtoimax-tests: Likewise.
46738         * modules/xstrtoumax-tests: Likewise.
46739
46740 2007-08-08  Jim Meyering  <jim@meyering.net>
46741
46742         New function: mfile_name_concat.
46743         * lib/filenamecat.c (mfile_name_concat): New function, just like
46744         file_name_concat, but return NULL upon failure rather than exiting
46745         with a diagnostic.
46746         * lib/filenamecat.h: Declare it.
46747
46748 2007-08-07  Bruno Haible  <bruno@clisp.org>
46749
46750         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46751         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46752         warning from gcc.
46753         Reported by Eric Blake.
46754
46755 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46756
46757         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46758         * modules/crypto/arcfour (License): Likewise.
46759         * modules/crypto/des-tests (License): Likewise.
46760         * modules/crypto/gc-arctwo-tests (License): Likewise.
46761         * modules/crypto/gc-des-tests (License): Likewise.
46762         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46763         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46764         * modules/crypto/gc-md2-tests (License): Likewise.
46765         * modules/crypto/gc-md4-tests (License): Likewise.
46766         * modules/crypto/gc-md5-tests (License): Likewise.
46767         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46768         * modules/crypto/gc-rijndael-tests (License): Likewise.
46769         * modules/crypto/gc-sha1-tests (License): Likewise.
46770         * modules/crypto/gc-tests (License): Likewise.
46771         * modules/crypto/hmac-md5 (License): Likewise.
46772         * modules/crypto/hmac-sha1 (License): Likewise.
46773         * modules/crypto/md2-tests (License): Likewise.
46774         * modules/crypto/md4-tests (License): Likewise.
46775         * modules/crypto/md5 (License): Likewise.
46776         * modules/crypto/rijndael (License): Likewise.
46777         * modules/crypto/sha1 (License): Likewise.
46778         * modules/memxor (License): Likewise.
46779
46780 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46781         and Bruno Haible  <bruno@clisp.org>
46782
46783         * NEWS: Describe interface changes to human, xstrtol.
46784         * lib/human.h: Include <xstrtol.h>.
46785         (human_options): Return enum strtol_error, not int.  Remove
46786         bool arg; take int * instead.
46787         * lib/human.c: Don't include "gettext.h".
46788         (_): Remove; no longer used.
46789         Don't include <xstrtol.h>, since human.h does it.
46790         (human_options): Adjust to abovementioned interface changes.
46791         Do not report error to stderr; that's now the caller's
46792         responsibility.
46793         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46794         interface change.
46795         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46796         Str, Argument_type_string.  All uses changed.  Put " argument"
46797         in diagnostics to make them clearer.  Change wording of suffix
46798         message for clarity.
46799         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46800         Argument_type_string.
46801         (STRTOL_FATAL_WARN): Remove; no longer used.
46802         * modules/human (Depends-on): Remove gettext-h.
46803
46804 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46805
46806         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46807
46808 2007-07-31  Bruno Haible  <bruno@clisp.org>
46809
46810         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46811         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46812         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46813
46814 2007-07-31  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46817         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46818
46819 2007-07-30  Bruno Haible  <bruno@clisp.org>
46820
46821         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46822         * modules/c-ctype (License): Likewise.
46823         * modules/c-strcase (License): Likewise.
46824         * modules/check-version (License): Likewise.
46825         * modules/iconv (License): Likewise.
46826         * modules/iconv_open (License): Likewise.
46827         * modules/read-file (License): Likewise.
46828         * modules/striconv (License): Likewise.
46829         * modules/strverscmp (License): Likewise.
46830         * modules/vasprintf (License): Likewise.
46831         * modules/crypto/des (License): Likewise.
46832         * modules/crypto/gc (License): Likewise.
46833         * modules/crypto/gc-arcfour (License): Likewise.
46834         * modules/crypto/gc-arctwo (License): Likewise.
46835         * modules/crypto/gc-des (License): Likewise.
46836         * modules/crypto/gc-hmac-md5 (License): Likewise.
46837         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46838         * modules/crypto/gc-md2 (License): Likewise.
46839         * modules/crypto/gc-md4 (License): Likewise.
46840         * modules/crypto/gc-md5 (License): Likewise.
46841         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46842         * modules/crypto/gc-random (License): Likewise.
46843         * modules/crypto/gc-rijndael (License): Likewise.
46844         * modules/crypto/gc-sha1 (License): Likewise.
46845         * modules/crypto/md2 (License): Likewise.
46846         * modules/crypto/md4 (License): Likewise.
46847
46848 2007-07-30  Jim Meyering  <jim@meyering.net>
46849
46850         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46851         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46852         it has valid stat data.  This bug would cause du not to count the
46853         sizes of inaccessible directories.
46854         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46855         in <http://bugzilla.redhat.com/250077>.
46856
46857 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46858             Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46861         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46862         #include_next, gives a diagnostic about it, but reports no error in
46863         the exit code.
46864         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46865
46866 2007-07-24  Ben Pfaff  <blp@gnu.org>
46867
46868         Improve name: "count-one-bits" is better than "popcount".
46869         * MODULES.html.sh: Update name.
46870         * lib/popcount.h: Renamed lib/count-one-bits.h.
46871         (popcount): Renamed count_one_bits.
46872         (popcountl): Renamed count_one_bits_l.
46873         (popcountll): Renamed count_one_bits_ll.
46874         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46875         * modules/popcount: Renamed module/count-one-bits.
46876         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46877         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46878
46879 2007-07-23  Ben Pfaff  <blp@gnu.org>
46880
46881         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46882         better code generation, and add U to large constants to avoid
46883         warnings, in non-GCC case.
46884         Suggested by Bruno Haible.
46885
46886 2007-07-23  Ben Pfaff  <blp@gnu.org>
46887
46888         * lib/popcount.h: Use verify_true instead of if...abort.
46889         * modules/popcount: Depend on verify module.
46890         Suggested by Jim Meyering.
46891
46892 2007-07-23  Bruno Haible  <bruno@clisp.org>
46893
46894         * gnulib-tool (func_import): Create a .cvsignore file also when the
46895         directory is not yet in CVS but the toplevel directory is. When
46896         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46897         Reported by Karl Berry.
46898
46899 2007-07-22  Ben Pfaff  <blp@gnu.org>
46900
46901         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46902         case.
46903         Suggested by Eric Blake.
46904
46905 2007-07-22  Ben Pfaff  <blp@gnu.org>
46906
46907         New module: popcount.
46908         * MODULES.html.sh: Add popcount.
46909         * modules/popcount: New file.
46910         * modules/popcount-tests: New file.
46911         * tests/test-popcount.c: New file.
46912         * lib/popcount.h: New file.
46913         * m4/popcount.m4: New file.
46914
46915 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46916
46917         * build-aux/announce-gen: Update to GPLv3.
46918
46919         * build-aux/config.guess: Update from config.
46920
46921 2007-07-21  Bruno Haible  <bruno@clisp.org>
46922
46923         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46924         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46925
46926 2007-07-20  Jim Meyering  <jim@meyering.net>
46927
46928         * check-module: Diagnose a self-dependency.
46929
46930 2007-07-19  Bruno Haible  <bruno@clisp.org>
46931
46932         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46933         empty.
46934         Reported by Eric Blake.
46935
46936 2007-07-18  Bruno Haible  <bruno@clisp.org>
46937
46938         * gnulib-tool: New options --po-base, --po-domain.
46939         (func_usage): Document them.
46940         (pobase, po_domain): New variables.
46941         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46942         DEFAULT_TEXT_DOMAIN.
46943         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46944         (func_import): Consider pobase and po_domain. Create a po/ directory.
46945         (func_create_testdir): Set pobase and po_domain to empty.
46946         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46947         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46948
46949 2007-07-18  Bruno Haible  <bruno@clisp.org>
46950
46951         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46952         EXTRA_DIST augmentation for files in build-aux/.
46953
46954 2007-07-16  Bruno Haible  <bruno@clisp.org>
46955
46956         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46957         * modules/getdelim (License): Likewise.
46958
46959 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46960
46961         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46962         * modules/d-type (License): Likewise.
46963         * modules/extensions (License): Likewise.
46964         * modules/fnmatch (License): Likewise.
46965         * modules/fseeko (License): Likewise.
46966         * modules/getaddrinfo (License): Likewise.
46967         * modules/getline (License): Likewise.
46968         * modules/getlogin_r (License): Likewise.
46969         * modules/getpass (License): Likewise.
46970         * modules/gettimeofday (License): Likewise.
46971         * modules/glob (License): Likewise.
46972         * modules/inet_ntop (License): Likewise.
46973         * modules/malloc (License): Likewise.
46974         * modules/malloca (License): Likewise.
46975         * modules/memmem (License): Likewise.
46976         * modules/mempcpy (License): Likewise.
46977         * modules/memset (License): Likewise.
46978         * modules/minmax (License): Likewise.
46979         * modules/mktime (License): Likewise.
46980         * modules/netinet_in (License): Likewise.
46981         * modules/pathmax (License): Likewise.
46982         * modules/poll (License): Likewise.
46983         * modules/regex (License): Likewise.
46984         * modules/snprintf (License): Likewise.
46985         * modules/stdbool (License): Likewise.
46986         * modules/stdint (License): Likewise.
46987         * modules/stdio (License): Likewise.
46988         * modules/strcase (License): Likewise.
46989         * modules/strcasestr (License): Likewise.
46990         * modules/strdup (License): Likewise.
46991         * modules/string (License): Likewise.
46992         * modules/strndup (License): Likewise.
46993         * modules/strnlen (License): Likewise.
46994         * modules/strpbrk (License): Likewise.
46995         * modules/strptime (License): Likewise.
46996         * modules/strsep (License): Likewise.
46997         * modules/sys_select (License): Likewise.
46998         * modules/sys_socket (License): Likewise.
46999         * modules/sys_stat (License): Likewise.
47000         * modules/sys_time (License): Likewise.
47001         * modules/time (License): Likewise.
47002         * modules/time_r (License): Likewise.
47003         * modules/timegm (License): Likewise.
47004         * modules/unistd (License): Likewise.
47005         * modules/vsnprintf (License): Likewise.
47006         * modules/wctype (License): Likewise.
47007
47008 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47009
47010         * modules/argz (License): LGPLv2+.
47011
47012 2007-07-15  Karl Berry  <karl@gnu.org>
47013
47014         * doc/gnulib.texi: revise node structure per new fdl.texi.
47015
47016 2007-07-14  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47019         the output file.
47020         * lib/uniname/uninames.h: Regenerated.
47021
47022 2007-07-14  Karl Berry  <karl@gnu.org>
47023
47024         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47025         omitting sectioning and index commands.
47026
47027 2007-07-13  Bruno Haible  <bruno@clisp.org>
47028
47029         New gnulib-tool option --more-symlinks.
47030         * gnulib-tool (func_usage): Document --more-symlinks.
47031         (do_copyrights): New variable.
47032         Recognize option --more-symlinks.
47033         (func_import): Don't add a copyright notice transform to
47034         sed_transform_lib_file if do_copyrights is empty.
47035
47036 2007-07-13  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/vasnprintf.c (decimal_point_char): Define also if
47039         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47040         && !NEED_PRINTF_DIRECTIVE_A.
47041         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47042         Gary V. Vaughan <gary@gnu.org>.
47043
47044 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * lib/inttypes_.h: Undo previous change, since it was fixed
47047         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47048
47049 2007-07-13  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47052         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47053
47054 2007-07-13  Jim Meyering  <jim@meyering.net>
47055
47056         df: Don't fail for Tru64's "file-on-file mount".
47057         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47058         so we fall through and use statfs instead.  Details here:
47059         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47060         Reported by Albert Chin.
47061
47062 2007-07-13  Bruno Haible  <bruno@clisp.org>
47063
47064         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47065         * modules/configmake (License): Likewise.
47066         * modules/gettext (License): Likewise.
47067         * modules/gettext-h (License): Likewise.
47068         * modules/include_next (License): Likewise.
47069         * modules/link-warning (License): Likewise.
47070         * modules/localcharset (License): Likewise.
47071         * modules/localename (License): Likewise.
47072         * modules/lock (License): Likewise.
47073         * modules/relocatable-lib-lgpl (License): Likewise.
47074         * modules/size_max (License): Likewise.
47075         * modules/vasnprintf (License): Likewise.
47076         * modules/wchar (License): Likewise.
47077         * modules/xsize (License): Likewise.
47078
47079 2007-07-13  Bruno Haible  <bruno@clisp.org>
47080
47081         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47082         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47083
47084 2007-07-12  Bruno Haible  <bruno@clisp.org>
47085
47086         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47087         in the modules files.
47088
47089 2007-07-11  Karl Berry  <karl@gnu.org>
47090
47091         * MODULES.html.sh (func_module): use
47092          sed -e '\|^'"${includefile}"'$|d'
47093          instead of /.../d, to avoid errors on $includefile's containing /.
47094
47095 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47096
47097         * gnulib-tool (func_import): Avoid duplication of --avoid
47098         statements
47099         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47100         names to `_' in variable names.
47101
47102 2007-07-10  Eric Blake  <ebb9@byu.net>
47103
47104         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47105         * NEWS: Document this change.
47106
47107 2007-07-08  Bruno Haible  <bruno@clisp.org>
47108
47109         Update to Unicode 5.0.
47110         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47111         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47112         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47113         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47114         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47115         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47116         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47117         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47118         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47119         U+10A3F, U+1D242..U+1D244.
47120         (nonspacing_table_ind): Update.
47121         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47122         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47123
47124 2007-07-08  Bruno Haible  <bruno@clisp.org>
47125
47126         Update to Unicode 5.0.
47127         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47128         code transform. Extend the name index field of unicode_name_to_code and
47129         unicode_code_to_name from 16 to 24 bits.
47130         * lib/uniname/uniname.c (unicode_character_name,
47131         unicode_name_character): Add the range 0x12xxx to the code transform.
47132         * lib/uniname/uninames.h: Regenerated.
47133         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47134
47135 2007-07-07  Bruno Haible  <bruno@clisp.org>
47136
47137         * modules/wcwidth-tests: New file.
47138         * tests/test-wcwidth.c: New file.
47139
47140         Work around MacOS X wcwidth() bug.
47141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47142         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47143         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47144         original wcwidth in non-UTF-8 locales.
47145         * modules/wcwidth (Depends-on): Add localcharset, streq,
47146         uniwidth/width.
47147         * doc/functions/wcwidth.texi: Update.
47148
47149 2007-07-07  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47152         (wcwidth): New declaration.
47153         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47154         macros.
47155         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47156         here. Prepare for creating <wchar.h> unconditionally.
47157         * modules/wchar (Depends-on): Add link-warning.
47158         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47159         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47160         * lib/wcwidth.h: Remove file.
47161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47162         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47163         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47164         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47165         (Include): Replace wcwidth.h with <wchar.h>.
47166         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47167         * lib/mbchar.h: Don't include wcwidth.h.
47168         * lib/mbswidth.c: Likewise.
47169         * NEWS: Mention the change.
47170
47171 2007-07-07  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47174         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47175         definition with an external declaration.
47176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47177         defined as a function. Remove AC_C_INLINE requirement.
47178         * modules/wcwidth (Files): Add lib/wcwidth.c.
47179         (Makefile.am): Remove redundant statement.
47180
47181 2007-07-07  Bruno Haible  <bruno@clisp.org>
47182
47183         * MODULES.html.sh (Unicode string functions): Add the new modules.
47184
47185         * tests/uniwidth/test-u32-strwidth.c: New file.
47186         * modules/uniwidth/u32-strwidth-tests: New file.
47187
47188         * lib/uniwidth/u32-strwidth.c: New file.
47189         * modules/uniwidth/u32-strwidth: New file.
47190
47191         * tests/uniwidth/test-u16-strwidth.c: New file.
47192         * modules/uniwidth/u16-strwidth-tests: New file.
47193
47194         * lib/uniwidth/u16-strwidth.c: New file.
47195         * modules/uniwidth/u16-strwidth: New file.
47196
47197         * tests/uniwidth/test-u8-strwidth.c: New file.
47198         * modules/uniwidth/u8-strwidth-tests: New file.
47199
47200         * lib/uniwidth/u8-strwidth.c: New file.
47201         * modules/uniwidth/u8-strwidth: New file.
47202
47203         * tests/uniwidth/test-u32-width.c: New file.
47204         * modules/uniwidth/u32-width-tests: New file.
47205
47206         * lib/uniwidth/u32-width.c: New file.
47207         * modules/uniwidth/u32-width: New file.
47208
47209         * tests/uniwidth/test-u16-width.c: New file.
47210         * modules/uniwidth/u16-width-tests: New file.
47211
47212         * lib/uniwidth/u16-width.c: New file.
47213         * modules/uniwidth/u16-width: New file.
47214
47215         * tests/uniwidth/test-u8-width.c: New file.
47216         * modules/uniwidth/u8-width-tests: New file.
47217
47218         * lib/uniwidth/u8-width.c: New file.
47219         * modules/uniwidth/u8-width: New file.
47220
47221         * tests/uniwidth/test-uc_width.c: New file.
47222         * modules/uniwidth/width-tests: New file.
47223
47224         * lib/uniwidth/width.c: New file, from GNU libiconv.
47225         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47226         * modules/uniwidth/width: New file.
47227
47228         * lib/uniwidth.h: New file, from GNU libiconv.
47229         * modules/uniwidth/base: New file.
47230
47231 2007-07-07  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/uniname.h: New file, from GNU gettext.
47234         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47235         * lib/uniname/uninames.h: New file, from GNU gettext.
47236         * lib/uniname/uniname.c: New file, from GNU gettext.
47237         * tests/uniname/test-uninames.sh: New file.
47238         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47239         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47240         * modules/uniname/base: New file.
47241         * modules/uniname/uniname: New file.
47242         * modules/uniname/uniname-tests: New file.
47243         * MODULES.html.sh (Unicode string functions): Add the new modules.
47244
47245 2007-07-06  Bruno Haible  <bruno@clisp.org>
47246
47247         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47248
47249 2007-07-06  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47252         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47253         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47254         include <sys/time.h>.
47255         Reported by Eric Blake.
47256
47257 2007-07-06  Eric Blake  <ebb9@byu.net>
47258
47259         Fix testing canonicalize on cygwin.
47260         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47261         Revert patch from 2007-06-19.
47262         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47263         canonicalize module is also in use.
47264         * tests/test-canonicalize.c: New file.
47265         * tests/test-canonicalize.sh: Likewise.
47266         * modules/canonicalize-tests: Likewise.
47267
47268 2007-07-06  Jim Meyering  <jim@meyering.net>
47269
47270         * lib/getugroups.c (getugroups): Detect getgrent failure.
47271         Adjust comment to reflect reality: this function may return -1.
47272
47273 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47274
47275         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47276         the new TP address.
47277         (usage): Fix typo
47278         (gnulib_mk): New variable.
47279
47280 2007-07-05  Jim Meyering  <jim@meyering.net>
47281
47282         Don't let endgrent clobber errno, no matter how improbable.
47283         * lib/getugroups.c (getugroups): Save and restore errno around
47284         endgrent call.
47285
47286         Close the group DB even when failing with 2^31 or more members.
47287         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47288
47289 2007-07-04  Jim Meyering  <jim@meyering.net>
47290
47291         * lib/getugroups.h: New file.
47292         * lib/getugroups.c: Include "getugroups.h".
47293         Remove uses of "register" keyword.
47294         Move local variable, "cp", down into scope where used.
47295         Give "username" parameter the "const" attribute.
47296         * modules/getugroups (Files): Add lib/getugroups.h
47297
47298 2007-07-04  Karl Berry  <karl@gnu.org>
47299
47300         * MODULES.html.sh (func_all_modules): Complete rename of
47301         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47302
47303 2007-07-02  Bruno Haible  <bruno@clisp.org>
47304
47305         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47306         mode, when inttypes.h comes from gnulib.
47307         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47308
47309 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47310
47311         * NEWS: Mention lgpl module name change.
47312
47313         * modules/lgpl-2.1: Renamed from lgpl.
47314
47315         * NEWS: Mention gpl module name change.
47316
47317         * modules/gpl-3.0: New file, based on gpl-2.0.
47318
47319         * modules/gpl-2.0: Renamed from gpl.
47320
47321         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47322         doc/gpl-2.0.texi.
47323
47324 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47325
47326         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47327         #define __STDC_LIMIT_MACROS temporarily while including
47328         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47329         Problem reported by Joel E. Denny in
47330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47331
47332 2007-07-01  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/unistdio.h: New file.
47335         * lib/unistdio/u-asnprintf.h: New file.
47336         * lib/unistdio/u-asprintf.h: New file.
47337         * lib/unistdio/u-printf-args.c: New file.
47338         * lib/unistdio/u-printf-args.h: New file.
47339         * lib/unistdio/u-printf-parse.h: New file.
47340         * lib/unistdio/u-snprintf.h: New file.
47341         * lib/unistdio/u-sprintf.h: New file.
47342         * lib/unistdio/u-vasprintf.h: New file.
47343         * lib/unistdio/u-vsnprintf.h: New file.
47344         * lib/unistdio/u-vsprintf.h: New file.
47345         * lib/unistdio/ulc-asnprintf.c: New file.
47346         * lib/unistdio/ulc-asprintf.c: New file.
47347         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47348         * lib/unistdio/ulc-printf-parse.c: New file.
47349         * lib/unistdio/ulc-snprintf.c: New file.
47350         * lib/unistdio/ulc-sprintf.c: New file.
47351         * lib/unistdio/ulc-vasnprintf.c: New file.
47352         * lib/unistdio/ulc-vasprintf.c: New file.
47353         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47354         * lib/unistdio/ulc-vsnprintf.c: New file.
47355         * lib/unistdio/ulc-vsprintf.c: New file.
47356         * lib/unistdio/u8-asnprintf.c: New file.
47357         * lib/unistdio/u8-asprintf.c: New file.
47358         * lib/unistdio/u8-printf-parse.c: New file.
47359         * lib/unistdio/u8-snprintf.c: New file.
47360         * lib/unistdio/u8-sprintf.c: New file.
47361         * lib/unistdio/u8-vasnprintf.c: New file.
47362         * lib/unistdio/u8-vasprintf.c: New file.
47363         * lib/unistdio/u8-vsnprintf.c: New file.
47364         * lib/unistdio/u8-vsprintf.c: New file.
47365         * lib/unistdio/u8-u8-asnprintf.c: New file.
47366         * lib/unistdio/u8-u8-asprintf.c: New file.
47367         * lib/unistdio/u8-u8-snprintf.c: New file.
47368         * lib/unistdio/u8-u8-sprintf.c: New file.
47369         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47370         * lib/unistdio/u8-u8-vasprintf.c: New file.
47371         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47372         * lib/unistdio/u8-u8-vsprintf.c: New file.
47373         * lib/unistdio/u16-asnprintf.c: New file.
47374         * lib/unistdio/u16-asprintf.c: New file.
47375         * lib/unistdio/u16-printf-parse.c: New file.
47376         * lib/unistdio/u16-snprintf.c: New file.
47377         * lib/unistdio/u16-sprintf.c: New file.
47378         * lib/unistdio/u16-vasnprintf.c: New file.
47379         * lib/unistdio/u16-vasprintf.c: New file.
47380         * lib/unistdio/u16-vsnprintf.c: New file.
47381         * lib/unistdio/u16-vsprintf.c: New file.
47382         * lib/unistdio/u16-u16-asnprintf.c: New file.
47383         * lib/unistdio/u16-u16-asprintf.c: New file.
47384         * lib/unistdio/u16-u16-snprintf.c: New file.
47385         * lib/unistdio/u16-u16-sprintf.c: New file.
47386         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47387         * lib/unistdio/u16-u16-vasprintf.c: New file.
47388         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47389         * lib/unistdio/u16-u16-vsprintf.c: New file.
47390         * lib/unistdio/u32-asnprintf.c: New file.
47391         * lib/unistdio/u32-asprintf.c: New file.
47392         * lib/unistdio/u32-printf-parse.c: New file.
47393         * lib/unistdio/u32-snprintf.c: New file.
47394         * lib/unistdio/u32-sprintf.c: New file.
47395         * lib/unistdio/u32-vasnprintf.c: New file.
47396         * lib/unistdio/u32-vasprintf.c: New file.
47397         * lib/unistdio/u32-vsnprintf.c: New file.
47398         * lib/unistdio/u32-vsprintf.c: New file.
47399         * lib/unistdio/u32-u32-asnprintf.c: New file.
47400         * lib/unistdio/u32-u32-asprintf.c: New file.
47401         * lib/unistdio/u32-u32-snprintf.c: New file.
47402         * lib/unistdio/u32-u32-sprintf.c: New file.
47403         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47404         * lib/unistdio/u32-u32-vasprintf.c: New file.
47405         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47406         * lib/unistdio/u32-u32-vsprintf.c: New file.
47407         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47408         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47409         * tests/unistdio/test-ulc-printf1.h: New file.
47410         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47411         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47412         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47413         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47414         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47415         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47416         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47417         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47418         * tests/unistdio/test-u8-asnprintf1.c: New file.
47419         * tests/unistdio/test-u8-asnprintf1.h: New file.
47420         * tests/unistdio/test-u8-printf1.h: New file.
47421         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47422         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47423         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47424         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47425         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47426         * tests/unistdio/test-u8-vasprintf1.c: New file.
47427         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47428         * tests/unistdio/test-u8-vsprintf1.c: New file.
47429         * tests/unistdio/test-u16-asnprintf1.c: New file.
47430         * tests/unistdio/test-u16-asnprintf1.h: New file.
47431         * tests/unistdio/test-u16-printf1.h: New file.
47432         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47433         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47434         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47435         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47436         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47437         * tests/unistdio/test-u16-vasprintf1.c: New file.
47438         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47439         * tests/unistdio/test-u16-vsprintf1.c: New file.
47440         * tests/unistdio/test-u32-asnprintf1.c: New file.
47441         * tests/unistdio/test-u32-asnprintf1.h: New file.
47442         * tests/unistdio/test-u32-printf1.h: New file.
47443         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47444         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47445         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47446         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47447         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47448         * tests/unistdio/test-u32-vasprintf1.c: New file.
47449         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47450         * tests/unistdio/test-u32-vsprintf1.c: New file.
47451         * modules/unistdio/base: New file.
47452         * modules/unistdio/u-printf-args: New file.
47453         * modules/unistdio/ulc-asnprintf: New file.
47454         * modules/unistdio/ulc-asprintf: New file.
47455         * modules/unistdio/ulc-fprintf: New file.
47456         * modules/unistdio/ulc-printf-parse: New file.
47457         * modules/unistdio/ulc-snprintf: New file.
47458         * modules/unistdio/ulc-sprintf: New file.
47459         * modules/unistdio/ulc-vasnprintf: New file.
47460         * modules/unistdio/ulc-vasprintf: New file.
47461         * modules/unistdio/ulc-vfprintf: New file.
47462         * modules/unistdio/ulc-vsnprintf: New file.
47463         * modules/unistdio/ulc-vsprintf: New file.
47464         * modules/unistdio/u8-asnprintf: New file.
47465         * modules/unistdio/u8-asprintf: New file.
47466         * modules/unistdio/u8-printf-parse: New file.
47467         * modules/unistdio/u8-snprintf: New file.
47468         * modules/unistdio/u8-sprintf: New file.
47469         * modules/unistdio/u8-vasnprintf: New file.
47470         * modules/unistdio/u8-vasprintf: New file.
47471         * modules/unistdio/u8-vsnprintf: New file.
47472         * modules/unistdio/u8-vsprintf: New file.
47473         * modules/unistdio/u8-u8-asnprintf: New file.
47474         * modules/unistdio/u8-u8-asprintf: New file.
47475         * modules/unistdio/u8-u8-snprintf: New file.
47476         * modules/unistdio/u8-u8-sprintf: New file.
47477         * modules/unistdio/u8-u8-vasnprintf: New file.
47478         * modules/unistdio/u8-u8-vasprintf: New file.
47479         * modules/unistdio/u8-u8-vsnprintf: New file.
47480         * modules/unistdio/u8-u8-vsprintf: New file.
47481         * modules/unistdio/u16-asnprintf: New file.
47482         * modules/unistdio/u16-asprintf: New file.
47483         * modules/unistdio/u16-printf-parse: New file.
47484         * modules/unistdio/u16-snprintf: New file.
47485         * modules/unistdio/u16-sprintf: New file.
47486         * modules/unistdio/u16-vasnprintf: New file.
47487         * modules/unistdio/u16-vasprintf: New file.
47488         * modules/unistdio/u16-vsnprintf: New file.
47489         * modules/unistdio/u16-vsprintf: New file.
47490         * modules/unistdio/u16-u16-asnprintf: New file.
47491         * modules/unistdio/u16-u16-asprintf: New file.
47492         * modules/unistdio/u16-u16-snprintf: New file.
47493         * modules/unistdio/u16-u16-sprintf: New file.
47494         * modules/unistdio/u16-u16-vasnprintf: New file.
47495         * modules/unistdio/u16-u16-vasprintf: New file.
47496         * modules/unistdio/u16-u16-vsnprintf: New file.
47497         * modules/unistdio/u16-u16-vsprintf: New file.
47498         * modules/unistdio/u32-asnprintf: New file.
47499         * modules/unistdio/u32-asprintf: New file.
47500         * modules/unistdio/u32-printf-parse: New file.
47501         * modules/unistdio/u32-snprintf: New file.
47502         * modules/unistdio/u32-sprintf: New file.
47503         * modules/unistdio/u32-vasnprintf: New file.
47504         * modules/unistdio/u32-vasprintf: New file.
47505         * modules/unistdio/u32-vsnprintf: New file.
47506         * modules/unistdio/u32-vsprintf: New file.
47507         * modules/unistdio/u32-u32-asnprintf: New file.
47508         * modules/unistdio/u32-u32-asprintf: New file.
47509         * modules/unistdio/u32-u32-snprintf: New file.
47510         * modules/unistdio/u32-u32-sprintf: New file.
47511         * modules/unistdio/u32-u32-vasnprintf: New file.
47512         * modules/unistdio/u32-u32-vasprintf: New file.
47513         * modules/unistdio/u32-u32-vsnprintf: New file.
47514         * modules/unistdio/u32-u32-vsprintf: New file.
47515         * modules/unistdio/ulc-asnprintf-tests: New file.
47516         * modules/unistdio/ulc-vasnprintf-tests: New file.
47517         * modules/unistdio/ulc-vasprintf-tests: New file.
47518         * modules/unistdio/ulc-vsnprintf-tests: New file.
47519         * modules/unistdio/ulc-vsprintf-tests: New file.
47520         * modules/unistdio/u8-asnprintf-tests: New file.
47521         * modules/unistdio/u8-vasnprintf-tests: New file.
47522         * modules/unistdio/u8-vasprintf-tests: New file.
47523         * modules/unistdio/u8-vsnprintf-tests: New file.
47524         * modules/unistdio/u8-vsprintf-tests: New file.
47525         * modules/unistdio/u16-asnprintf-tests: New file.
47526         * modules/unistdio/u16-vasnprintf-tests: New file.
47527         * modules/unistdio/u16-vasprintf-tests: New file.
47528         * modules/unistdio/u16-vsnprintf-tests: New file.
47529         * modules/unistdio/u16-vsprintf-tests: New file.
47530         * modules/unistdio/u32-asnprintf-tests: New file.
47531         * modules/unistdio/u32-vasnprintf-tests: New file.
47532         * modules/unistdio/u32-vasprintf-tests: New file.
47533         * modules/unistdio/u32-vsnprintf-tests: New file.
47534         * modules/unistdio/u32-vsprintf-tests: New file.
47535         * MODULES.html.sh (Unicode string functions): Add the new modules.
47536
47537 2007-07-01  Bruno Haible  <bruno@clisp.org>
47538
47539         * lib/sprintf.c (sprintf): Limit the available length estimation,
47540         to avoid address wraparound.
47541         * lib/vsprintf.c (vsprintf): Likewise.
47542         * modules/sprintf-posix (Dependencies): Add stdint.
47543         * modules/vsprintf-posix (Dependencies): Likewise.
47544
47545 2007-07-01  Bruno Haible  <bruno@clisp.org>
47546
47547         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47548         Windows PATH as well. Conservative double-quoting. Comments.
47549
47550 2007-07-01  Bruno Haible  <bruno@clisp.org>
47551             Eric Blake  <ebb9@byu.net>
47552             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47553
47554         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47555         empty components in $PATH, denoting '.'.
47556
47557 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47558
47559         * gnulib-tool: Fix indentation.
47560         (func_create_megatestdir): Likewise.
47561         Report by Bruno Haible.
47562
47563 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47564
47565         Sync from Automake.
47566         * build-aux/gnupload: Fix shell portability issues with for loops.
47567         Report by Karl Berry.
47568
47569 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47570
47571         * build-aux/maint.mk (POURL): Use translationproject.org.
47572
47573 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47574             Bruno Haible  <bruno@clisp.org>
47575
47576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47577         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47578         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47579         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47580         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47581
47582 2007-06-27  Bruno Haible  <bruno@clisp.org>
47583
47584         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47585         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47586
47587 2007-06-26  Karl Berry  <karl@gnu.org>
47588
47589         * MODULES.html.sh: remove xreadlink-with-size.
47590
47591 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47594         method that I hope also handles the double-include problem noted
47595         by Bruno Haible in
47596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47597
47598 2007-06-23  Bruno Haible  <bruno@clisp.org>
47599
47600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47601         Don't let the 'mostlyclean' target fail if the last subdirectory could
47602         not be removed.
47603         Reported by Karl Berry.
47604
47605 2007-06-23  Bruno Haible  <bruno@clisp.org>
47606
47607         * gnulib-tool (echo): Add a speedier workaround for ksh.
47608         * tests/test-echo.sh: Likewise.
47609
47610 2007-06-23  Bruno Haible  <bruno@clisp.org>
47611
47612         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47613         * tests/test-echo.sh: Likewise.
47614
47615 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47616
47617         * gnulib-tool (IFS): Initialize early, so we don't set it to
47618         empty later.
47619         (self_abspathname): Rewrite algorithm to set it, reindent.
47620         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47621         (func_create_megatestdir): Merge some sed scripts.
47622
47623 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47624
47625         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47626         exposed by Sun Studio 11 cc on Solaris 8.
47627
47628 2007-06-22  Bruno Haible  <bruno@clisp.org>
47629
47630         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47631         backslashes.
47632         * tests/test-echo.sh: New file.
47633
47634 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47635
47636         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47637         simplify `sed_replace_build_aux' scripts, they are portable but
47638         echoing them with `echo' is not.
47639         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47640
47641 2007-06-21  Karl Berry  <karl@gnu.org>
47642
47643         * config/srclist.txt: guess we can't handle the licenses via
47644         srclist at the moment.
47645
47646 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47647
47648         * MODULES.html.sh: Add include_next.
47649         * modules/include_next: New file.
47650
47651 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47652
47653         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47654         INCLUDE_NEXT.
47655         (gl_CHECK_NEXT_HEADERS): New macro.
47656         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47657         the obsolescent gl_ABSOLUTE_HEADER.
47658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47659         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47660         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47661         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47662         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47663         * m4/math_h.m4 (gl_MATH_H): Likewise.
47664         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47665         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47666         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47667         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47668         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47669         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47675         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47676         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47677         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47678         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47679         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47680         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47681         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47682         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47683         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47684         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47685         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47686         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47687         * lib/float_.h: Likewise.
47688         * lib/inttypes_.h: Likewise.
47689         * lib/math_.h: Likewise.
47690         * lib/search_.h: Likewise.
47691         * lib/signal_.h: Likewise.
47692         * lib/stdint_.h: Likewise.
47693         * lib/stdio_.h: Likewise.
47694         * lib/stdlib_.h: Likewise.
47695         * lib/string_.h: Likewise.
47696         * lib/sys_stat_.h: Likewise.
47697         * lib/sys_time_.h: Likewise.
47698         * lib/time_.h: Likewise.
47699         * lib/unistd_.h: Likewise.
47700         * lib/wchar_.h: Likewise.
47701         * lib/wctype_.h: Likewise.
47702         * lib/dirent_.h: Likewise.
47703         * lib/iconv_.h: Likewise.
47704         * lib/locale_.h: Likewise.
47705         * lib/netinet_in_.h: Likewise.
47706         * lib/sys_select_.h: Likewise.
47707         * lib/sys_socket_.h: Likewise.
47708         * lib/sysexits_.h: Likewise.
47709         * modules/fcntl (Depends-on): Depend on include_next, not
47710         absolute_header.
47711         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47712         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47713         * modules/fchdir: Likewise.
47714         * modules/float: Likewise.
47715         * modules/iconv_open: Likewise.
47716         * modules/inttypes: Likewise.
47717         * modules/locale: Likewise.
47718         * modules/math: Likewise.
47719         * modules/netinet_in: Likewise.
47720         * modules/search: Likewise.
47721         * modules/signal: Likewise.
47722         * modules/stdint: Likewise.
47723         * modules/stdio: Likewise.
47724         * modules/stdlib: Likewise.
47725         * modules/string: Likewise.
47726         * modules/sys_select: Likewise.
47727         * modules/sys_socket: Likewise.
47728         * modules/sys_stat: Likewise.
47729         * modules/sys_time: Likewise.
47730         * modules/sysexits: Likewise.
47731         * modules/time: Likewise.
47732         * modules/unistd: Likewise.
47733         * modules/wchar: Likewise.
47734         * modules/wctype: Likewise.
47735         * modules/sys_stat: Change maintainer to "all".
47736         * modules/unistd: Likewise.
47737
47738 2007-06-20  Karl Berry  <karl@gnu.org>
47739
47740         * config/srclist.txt: track www changes in license files.
47741
47742 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47743
47744         * build-aux/bootstrap: Remove stray dot.
47745         Make sure build_aux settings are honored when linking
47746         gnulib_extra_files.
47747
47748 2007-06-19  Eric Blake  <ebb9@byu.net>
47749
47750         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47751         Allow compilation on cygwin.
47752
47753 2007-06-19  Jim Meyering  <jim@meyering.net>
47754
47755         xreadlink-with-size: Remove module.  No longer used.
47756         Ex-callers now use xreadlink or mreadlink-with-size.
47757         * modules/xreadlink-with-size: Remove module.
47758         * lib/xreadlink-with-size.c: Remove file.
47759         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47760         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47761         just before the function definition *is* accurate.
47762
47763         Eliminate one way canonicalize_filename_mode could exit.
47764         * lib/canonicalize.c (canonicalize_filename_mode):
47765         Use mreadlink_with_size, not xreadlink_with_size.
47766
47767 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47768
47769         Detect porting problems to FreeBSD/arm, which has time_t wider than
47770         long int.  Original problem reported for GNU diff by Xin Li in
47771         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47772         * modules/getdate (Depends-on): Add intprops, verify.
47773         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47774         is an integer type no wider than long int.
47775
47776 2007-06-18  Jim Meyering  <jim@meyering.net>
47777
47778         New module: mreadlink-with-size.
47779         * MODULES.html.sh: Add mreadlink-with-size.
47780         * modules/mreadlink-with-size: New module
47781         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47782         not xreadlink-with-size.
47783         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47784
47785 2007-06-16  Bruno Haible  <bruno@clisp.org>
47786
47787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47788         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47789         Reported by Gary V. Vaughan <gary@gnu.org>.
47790
47791 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47792
47793         Revamp lchown so that it lives in unistd.h where it belongs.
47794         * lib/lchown.h: Remove.
47795         * lib/dirchownmod.c: Don't include lib/lchown.h.
47796         * lib/fchownat.c: Likewise.
47797         * lib/openat.c: Likewise.
47798         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47799         does not follow symlinks.
47800         (EOPNOTSUPP): Define if not defined.
47801         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47802         is defined to 0.
47803         (lchown): New decl.
47804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47805         Do not check for lchown decl.
47806         Set REPLACE_LCHOWN.
47807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47808         REPLACE_LCHOWN.
47809         * modules/chown: Make it clear it follows symlinks.
47810         * modules/lchown: Make it clear it doesn't follow symlinks.
47811         (Files): Remove lib/lchown.h
47812         (Depends-on): Add unistd.
47813         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47814         (Include): Include <unistd.h>, not "lchown.h".
47815         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47816         REPLACE_LCHOWN.
47817
47818 2007-06-15  Jim Meyering  <jim@meyering.net>
47819
47820         Change license (GPL to LGPL) of fsusage and dependents.
47821         * modules/fsusage (License): Change to LGPL.
47822         * modules/full-read (License): Likewise.
47823         * modules/full-write (License): Likewise.
47824         * modules/safe-read (License): Likewise.
47825         * modules/safe-write (License): Likewise.
47826
47827 2007-06-14  Ben Pfaff  <blp@gnu.org>
47828
47829         Missing part of allocsa -> malloca transition.
47830         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47831         gl_MALLOCA.
47832
47833 2007-06-12  Bruno Haible  <bruno@clisp.org>
47834
47835         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47836         to ia64, x86_64, i386.
47837         Reported by Eric Blake.
47838
47839 2007-06-12  Bruno Haible  <bruno@clisp.org>
47840
47841         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47842         cross-compiling to x86_64.
47843
47844 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47847         glitch reported by Ralf Wildenhues in
47848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47849
47850         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47851         Vin Shelton.
47852
47853 2007-06-11  Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47856         replacement string.
47857         Reported by Eric Blake.
47858
47859 2007-06-10  Bruno Haible  <bruno@clisp.org>
47860
47861         Prepare vasnprintf code for use with Unicode strings.
47862         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47863         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47864         TYPE_U32_STRING.
47865         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47866         a_u32_string variants.
47867         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47868         * lib/printf-args.c: Don't include config.h and the specification
47869         header if PRINTF_FETCHARGS is already defined.
47870         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47871         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47872         TYPE_U16_STRING, TYPE_U32_STRING.
47873         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47874         u16_directive, u16_directives, u32_directive, u32_directives): New
47875         types.
47876         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47877         New declarations.
47878         * lib/printf-parse.c: Don't include config.h and the specification
47879         header if PRINTF_PARSE is already defined. Eliminate the set of
47880         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47881         them now. Include c-ctype.h.
47882         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47883         directive and CHAR_T_ONLY_ASCII.
47884         * lib/vasnprintf.c: Don't include config.h and the specification header
47885         if VASNPRINTF is already defined.
47886         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47887         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47888         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47889         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47890         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47891         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47892         code accordingly.
47893         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47894         pad_ourselves also in this case, with the 'c' and 's' directives, and
47895         with a different notion of "width".
47896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47897
47898 2007-06-10  Bruno Haible  <bruno@clisp.org>
47899
47900         * modules/unistr/u32-mbsnlen: New file.
47901         * lib/unistr/u32-mbsnlen.c: New file.
47902
47903         * modules/unistr/u16-mbsnlen: New file.
47904         * lib/unistr/u16-mbsnlen.c: New file.
47905
47906         * modules/unistr/u8-mbsnlen: New file.
47907         * lib/unistr/u8-mbsnlen.c: New file.
47908
47909         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47910         declarations.
47911
47912 2007-06-10  Bruno Haible  <bruno@clisp.org>
47913
47914         * lib/string_.h (mbsnlen): New declaration.
47915         * lib/mbsnlen.c: New file.
47916         * m4/mbsnlen.m4: New file.
47917         * modules/mbsnlen: New file.
47918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47919         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47920         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47921
47922 2007-06-10  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47925
47926 2007-06-10  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47929         * lib/mbuiter.h: Likewise.
47930
47931 2007-06-10  Bruno Haible  <bruno@clisp.org>
47932
47933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47934         declaration.
47935
47936 2007-06-10  Karl Berry  <karl@gnu.org>
47937
47938         * config/srclist.txt: remove gettext entries, Bruno prefers
47939         to update individually.
47940
47941 2007-06-10  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47944         'maxlen'. Ensure only length + width bytes are allocated, not
47945         length + 1 + width.
47946
47947 2007-06-09  Bruno Haible  <bruno@clisp.org>
47948
47949         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47950         (CHAR_T): Remove macro.
47951         (VASNPRINTF): Update.
47952
47953 2007-06-09  Bruno Haible  <bruno@clisp.org>
47954
47955         * MODULES.html.sh (Unicode string functions): Add the new modules.
47956
47957         * modules/uniconv/u32-conv-to-enc: New file.
47958         * lib/uniconv/u32-conv-to-enc.c: New file.
47959         * modules/uniconv/u32-conv-to-enc-tests: New file.
47960         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47961
47962         * modules/uniconv/u16-conv-to-enc: New file.
47963         * lib/uniconv/u16-conv-to-enc.c: New file.
47964         * lib/uniconv/u-conv-to-enc.h: New file.
47965         * modules/uniconv/u16-conv-to-enc-tests: New file.
47966         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47967
47968         * modules/uniconv/u8-conv-to-enc: New file.
47969         * lib/uniconv/u8-conv-to-enc.c: New file.
47970         * modules/uniconv/u8-conv-to-enc-tests: New file.
47971         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47972
47973         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47974         u32_conv_to_encoding): New declarations.
47975
47976 2007-06-09  Bruno Haible  <bruno@clisp.org>
47977
47978         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47979
47980 2007-06-09  Bruno Haible  <bruno@clisp.org>
47981
47982         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47983         * modules/malloca: Renamed from modules/allocsa, updated.
47984         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47985         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47986         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47987         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47988         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47989         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47990         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47991         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47992         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47993         * modules/c-strcasestr (Depends-on): Update.
47994         * lib/c-strcasestr.c: Update.
47995         * modules/c-strstr (Depends-on): Update.
47996         * lib/c-strstr.c: Update.
47997         * modules/canonicalize-lgpl (Depends-on): Update.
47998         * lib/canonicalize-lgpl.c: Update.
47999         * modules/clean-temp (Depends-on): Update.
48000         * lib/clean-temp.c: Update.
48001         * modules/csharpcomp (Depends-on): Update.
48002         * lib/csharpcomp.c: Update.
48003         * modules/csharpexec (Depends-on): Update.
48004         * lib/csharpexec.c: Update.
48005         * modules/javacomp (Depends-on): Update.
48006         * lib/javacomp.c: Update.
48007         * modules/javaexec (Depends-on): Update.
48008         * lib/javaexec.c: Update.
48009         * modules/mbscasestr (Depends-on): Update.
48010         * lib/mbscasestr.c: Update.
48011         * modules/mbsstr (Depends-on): Update.
48012         * lib/mbsstr.c: Update.
48013         * modules/setenv (Depends-on): Update.
48014         * lib/setenv.c: Update.
48015         * modules/strcasestr (Depends-on): Update.
48016         * lib/strcasestr.c: Update.
48017         * modules/striconveha (Depends-on): Update.
48018         * lib/striconveha.c: Update.
48019         * modules/relocatable-prog-wrapper (Files): Update.
48020         * lib/relocwrapper.c: Update.
48021         * build-aux/install-reloc: Update.
48022         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48023
48024 2007-06-08  Bruno Haible  <bruno@clisp.org>
48025
48026         Port to uClibc.
48027         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48028         * lib/fpurge.c (fpurge): Likewise.
48029         * lib/freading.c (freading): Likewise.
48030         * lib/fseeko.c (rpl_fseeko): Likewise.
48031         * lib/fseterr.c (fseterr): Likewise.
48032         * lib/fwriting.c (fwriting): Likewise.
48033         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48034
48035 2007-06-08  Bruno Haible  <bruno@clisp.org>
48036
48037         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48038         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48039         * modules/gettext (Files): Add m4/intlmacosx.m4.
48040
48041 2007-06-07  Bruno Haible  <bruno@clisp.org>
48042
48043         * modules/localename-tests: New file.
48044         * tests/test-localename.c: New file.
48045
48046         New module 'localename'.
48047         * lib/localename.h: New file.
48048         * lib/localename.c: New file, from GNU gettext.
48049         * m4/localename.m4: New file.
48050         * modules/localename: New file.
48051
48052 2007-06-07  Bruno Haible  <bruno@clisp.org>
48053
48054         Work around the lack of <wchar.h> on some builds of uClibc.
48055         * doc/headers/wchar.texi: Update.
48056         * lib/wchar_.h: Include <wchar.h> only if it exists.
48057         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48058         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48059         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48060         doesn't exist.
48061         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48062         * modules/mbfile (Depends-on): Add wchar.
48063         * modules/mbiter (Depends-on): Likewise.
48064         * modules/mbuiter (Depends-on): Likewise.
48065         Reported by Simon Josefsson.
48066
48067 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48068
48069         Work around problem reported by Steven M. Schweda in
48070         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48071         Tru64 5.1B with the Compaq compiler environment installed declares
48072         an 'isblank' function but does not define it in the C library.
48073         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48074         * lib/regex_internal.h (isblank): Likewise.
48075         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48076         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48077
48078 2007-06-05  Bruno Haible  <bruno@clisp.org>
48079
48080         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48081         ia64.
48082         * modules/printf-safe: New file.
48083         * modules/fprintf-posix (Depends-on): Add printf-safe.
48084         * modules/printf-posix (Depends-on): Likewise.
48085         * modules/snprintf-posix (Depends-on): Likewise.
48086         * modules/sprintf-posix (Depends-on): Likewise.
48087         * modules/vasnprintf-posix (Depends-on): Likewise.
48088         * modules/vasprintf-posix (Depends-on): Likewise.
48089         * modules/vfprintf-posix (Depends-on): Likewise.
48090         * modules/vprintf-posix (Depends-on): Likewise.
48091         * modules/vsnprintf-posix (Depends-on): Likewise.
48092         * modules/vsprintf-posix (Depends-on): Likewise.
48093         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48094         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48095         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48096         "no" on i386, x86_64, ia64.
48097         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48098         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48099         on i386, x86_64, ia64.
48100         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48101         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48102         on i386, x86_64, ia64.
48103         * tests/test-vasnprintf-posix.c: Include float.h.
48104         (LDBL80_WORDS): New macro.
48105         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48106         on i386, x86_64, ia64.
48107         * tests/test-vasprintf-posix.c: Include float.h.
48108         (LDBL80_WORDS): New macro.
48109         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48110         on i386, x86_64, ia64.
48111         * tests/test-snprintf-posix.c: Include float.h.
48112         * tests/test-sprintf-posix.c: Likewise.
48113         * tests/test-vsnprintf-posix.c: Likewise.
48114         * tests/test-vsprintf-posix.c: Likewise.
48115
48116 2007-06-05  Bruno Haible  <bruno@clisp.org>
48117
48118         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48120         non-IEEE numbers on i386, x86_64, ia64.
48121         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48122         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48123         * tests/test-isnanl.h: Include float.h.
48124         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48125
48126 2007-06-05  Bruno Haible  <bruno@clisp.org>
48127
48128         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48129         also the %a / %A. Handle the %a / %A code before this extra handling.
48130
48131 2007-06-05  Bruno Haible  <bruno@clisp.org>
48132
48133         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48134         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48135
48136 2007-06-05  Bruno Haible  <bruno@clisp.org>
48137
48138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48139         typo in variable name.
48140
48141 2007-06-05  Eric Blake  <ebb9@byu.net>
48142
48143         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48144         Reported by Simon Josefsson.
48145
48146 2007-06-04  Bruno Haible  <bruno@clisp.org>
48147
48148         Avoid test failures on some PowerPC platforms.
48149         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48150         Define differently for PowerPC.
48151         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48152         Reported by Gary V. Vaughan <gary@gnu.org>.
48153
48154 2007-06-02  Bruno Haible  <bruno@clisp.org>
48155
48156         Fix test-stdint failure on FreeBSD/ia64.
48157         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48158         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48159         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48160         * doc/headers/stdint.texi: Update.
48161
48162 2007-06-01  Bruno Haible  <bruno@clisp.org>
48163
48164         * tests/test-binary-io.c (main): Pass a third argument to open().
48165         Reported by Gary V. Vaughan <gary@gnu.org>.
48166
48167 2007-06-01  Bruno Haible  <bruno@clisp.org>
48168
48169         * doc/functions/frexpl.texi: Update for mingw.
48170
48171 2007-06-01  Bruno Haible  <bruno@clisp.org>
48172
48173         * tests/test-lseek.c (main): Disable test of errno for invalid third
48174         argument.
48175         * doc/functions/lseek.texi: Update.
48176         Reported by Gary V. Vaughan <gary@gnu.org>.
48177
48178 2007-05-28  Bruno Haible  <bruno@clisp.org>
48179
48180         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48181
48182 2007-05-31  Eric Blake  <ebb9@byu.net>
48183
48184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48185         cross compiling.
48186
48187 2007-05-30  Eric Blake  <ebb9@byu.net>
48188         and Bruno Haible  <bruno@clisp.org>
48189
48190         Work around mingw test failures exposed by m4-1.4.9b.
48191         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48192         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48193         moment.
48194
48195 2007-05-30  Bruno Haible  <bruno@clisp.org>
48196
48197         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48198         assuming that they are closed. Needed on HP-UX 11.
48199
48200 2007-05-29  Bruno Haible  <bruno@clisp.org>
48201
48202         Fix a problem with #include_next.
48203         * lib/dirent_.h: Split the double-inclusion guard.
48204         * lib/fcntl_.h: Likewise.
48205         * lib/float_.h: Likewise.
48206         * lib/iconv_.h: Likewise.
48207         * lib/inttypes_.h: Likewise.
48208         * lib/locale_.h: Likewise.
48209         * lib/math_.h: Likewise.
48210         * lib/netinet_in_.h: Likewise.
48211         * lib/search_.h: Likewise.
48212         * lib/signal_.h: Likewise.
48213         * lib/stdint_.h: Likewise.
48214         * lib/stdio_.h: Likewise.
48215         * lib/stdlib_.h: Likewise.
48216         * lib/string_.h: Likewise.
48217         * lib/sys_select_.h: Likewise.
48218         * lib/sys_socket_.h: Likewise.
48219         * lib/sys_stat_.h: Likewise.
48220         * lib/sys_time_.h: Likewise.
48221         * lib/sysexits_.h: Likewise.
48222         * lib/time_.h: Likewise.
48223         * lib/unistd_.h: Likewise.
48224         * lib/wchar_.h: Likewise.
48225         * lib/wctype_.h: Likewise.
48226
48227 2007-05-29  Bruno Haible  <bruno@clisp.org>
48228
48229         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48230         for the moment.
48231
48232 2007-05-29  Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48235         invocation.
48236         Reported by Eric Blake.
48237
48238 2007-05-29  Bruno Haible  <bruno@clisp.org>
48239
48240         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48241         compiling case.
48242
48243 2007-05-29  Eric Blake  <ebb9@byu.net>
48244             Bruno Haible  <bruno@clisp.org>
48245
48246         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48247         cross compiles.
48248
48249 2007-05-28  Eric Blake  <ebb9@byu.net>
48250
48251         * modules/closein-tests (test_closein_LDADD): Support test on
48252         cygwin with libtool.
48253
48254 2007-05-28  Bruno Haible  <bruno@clisp.org>
48255
48256         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48257         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48258         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48259         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48260         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48261         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48262         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48263         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48264         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48265
48266 2007-05-28  Eric Blake  <ebb9@byu.net>
48267
48268         Unconditionally include <config.h> in unit tests.
48269         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48270         * tests/test-allocsa.c, tests/test-arcfour.c,
48271         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48272         tests/test-array_list.c, tests/test-array_oset.c,
48273         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48274         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48275         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48276         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48277         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48278         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48279         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48280         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48281         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48282         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48283         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48284         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48285         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48286         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48287         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48288         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48289         test-md5.c, test-memmem.c, test-printf-posix.c,
48290         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48291         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48292         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48293         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48294         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48295         test-vasnprintf-posix2.c, test-vasnprintf.c,
48296         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48297         test-vfprintf-posix.c, test-vprintf-posix.c,
48298         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48299         test-xvasprintf.c: Likewise.
48300
48301 2007-05-28  Bruno Haible  <bruno@clisp.org>
48302
48303         * gnulib-tool (func_import): Remember the --with-tests command-line
48304         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48305         Reported by Eric Blake.
48306
48307 2007-05-28  Bruno Haible  <bruno@clisp.org>
48308
48309         * modules/ftell-tests: New file.
48310         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48311         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48312
48313         * lib/ftell.c: New file.
48314         * modules/ftell: New file.
48315         * m4/ftell.m4: New file.
48316         * doc/functions/ftell.texi: Update.
48317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48318         REPLACE_FTELL.
48319         * lib/stdio_.h (rpl_ftell): New declaration.
48320         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48321         REPLACE_FTELL.
48322
48323 2007-05-28  Eric Blake  <ebb9@byu.net>
48324
48325         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48326
48327 2007-05-28  Bruno Haible  <bruno@clisp.org>
48328
48329         * modules/fseek-tests: New file.
48330         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48331         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48332
48333         * lib/fseek.c: New file.
48334         * modules/fseek: New file.
48335         * m4/fseek.m4: New file.
48336         * doc/functions/fseek.texi: Update.
48337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48338         REPLACE_FSEEK.
48339         * lib/stdio_.h (rpl_fseek): New declaration.
48340         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48341         REPLACE_FSEEK.
48342
48343 2007-05-28  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/stdio_.h (fflush): More comments.
48346
48347 2007-05-28  Bruno Haible  <bruno@clisp.org>
48348
48349         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48350         runtime test.
48351
48352 2007-05-28  Eric Blake  <ebb9@byu.net>
48353
48354         Improve lseek module.
48355         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48356         * lib/unistd_.h (lseek): Scale back link warning message.
48357         * tests/test-lseek.c: Beef up test.
48358         * tests/test-lseek.sh: Exercise more facets of lseek.
48359         Reported by Bruno Haible.
48360
48361 2007-05-28  Bruno Haible  <bruno@clisp.org>
48362
48363         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48364         to define.
48365
48366 2007-05-27  Bruno Haible  <bruno@clisp.org>
48367
48368         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48369
48370 2007-05-27  Bruno Haible  <bruno@clisp.org>
48371
48372         * modules/openmp: New file.
48373         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48374         Noah Misch.
48375
48376 2007-05-26  Bruno Haible  <bruno@clisp.org>
48377
48378         * modules/chdir-long (Depends-on): Add fchdir.
48379         * modules/chdir-safer (Depends-on): Likewise.
48380         * modules/fts (Depends-on): Likewise.
48381         * modules/fts-lgpl (Depends-on): Likewise.
48382         * modules/openat (Depends-on): Likewise.
48383         * modules/savewd (Depends-on): Likewise.
48384
48385 2007-05-24  Eric Blake  <ebb9@byu.net>
48386
48387         Fix lseek on mingw.
48388         * modules/lseek: New module.
48389         * m4/lseek.m4: New file.
48390         * lib/lseek.c: New file.
48391         * modules/lseek-tests: New file.
48392         * tests/test-lseek.c: New file.
48393         * tests/test-lseek.sh: New file.
48394         * MODULES.html.sh: Document lseek module.
48395         * modules/fflush (Depends-on): Add lseek, fseeko.
48396         * modules/fseeko (Depends-on): Likewise.
48397         * modules/ftello (Depends-on): Likewise.
48398         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48399         broken.
48400         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48401         broken.
48402         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48403         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48404         * lib/ftello.c (rpl_ftello): Likewise.
48405         * tests/test-fseeko.c (main): Test this.
48406         * tests/test-fseeko.sh: Likewise.
48407         * tests/test-ftello.c (main): Likewise.
48408         * tests/test-ftello.sh: Likewise.
48409         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48410         implies replacing fseek.
48411         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48412         HAVE_FTELLO.
48413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48414         * modules/unistd (Makefile.am): Likewise.
48415         * lib/unistd_.h (lseek): Declare a replacement.
48416         * doc/functions/lseek.texi (lseek): Document this fix.
48417         * doc/functions/fseek.texi (fseek): Likewise.
48418         * doc/functions/ftell.texi (ftell): Likewise.
48419
48420 2007-05-24  Bruno Haible  <bruno@clisp.org>
48421
48422         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48423         in the printed representation of a NaN.
48424         * tests/test-vasprintf-posix.c (test_function): Likewise.
48425         * tests/test-snprintf-posix.h (test_function): Likewise.
48426         * tests/test-sprintf-posix.h (test_function): Likewise.
48427         Reported by Eric Blake.
48428
48429 2007-05-23  Eric Blake  <ebb9@byu.net>
48430
48431         Fix fseeko/ftello on cygwin 1.5.24.
48432         * doc/functions/fseeko.texi (fseeko): Document the fix.
48433         * doc/functions/ftello.texi (ftello): Document the fix.
48434         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48435         * doc/functions/stdout.text (stdout): New file.
48436         * doc/functions/stderr.text (stderr): New file.
48437         * doc/gnulib.texi (Function Substitutes): Use new files.
48438         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48439         prior to 1.7.0.
48440         * tests/test-ftello.c (main): Likewise for ftello.
48441         * tests/test-fseeko.sh: New file.
48442         * tests/test-ftello.sh: New file.
48443         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48444         with seekable stdin.
48445         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48447         (gl_REPLACE_FSEEKO): New macro.
48448         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48449         * modules/fseeko (Files): Distribute fseeko.c.
48450         * modules/ftello (Files): Distribute ftello.c.
48451         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48452         mode.
48453         * lib/ftello.c (rpl_ftello): New file.
48454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48455         fseeko, ftello.
48456         (gl_STDIN_LARGE_OFFSET): New macro.
48457         * modules/stdio (Makefile.am): Perform the replacement.
48458         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48459
48460 2007-05-23  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48463         GNULIB_POSIXCHECK is defined.
48464
48465 2007-05-21  Bruno Haible  <bruno@clisp.org>
48466
48467         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48468         Check also the output for NaN arguments. When cross-compiling, guess
48469         no on IRIX.
48470         * lib/vasnprintf.c: Update comments.
48471         * tests/test-vasnprintf-posix.c (strisnan): New function.
48472         (test_function): Use it.
48473         * tests/test-vasprintf-posix.c (strisnan): New function.
48474         (test_function): Use it.
48475         * tests/test-snprintf-posix.h (strisnan): New function.
48476         (test_function): Use it.
48477         * tests/test-sprintf-posix.h (strisnan): New function.
48478         (test_function): Use it.
48479         Reported by Eric Blake.
48480
48481 2007-05-20  Bruno Haible  <bruno@clisp.org>
48482
48483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48484         numbers that fails on BeOS.
48485         * doc/functions/frexpl.texi: Update.
48486
48487 2007-05-20  Jim Meyering  <jim@meyering.net>
48488
48489         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48490         forced upon us by glibc-2.6.
48491
48492 2007-05-20  Bruno Haible  <bruno@clisp.org>
48493
48494         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48495         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48496         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48497         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48498         NEED_PRINTF_INFINITE.
48499         (is_infinitel): New function.
48500         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48502         gl_PREREQ_VASNPRINTF_INFINITE.
48503         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48505         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48506         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48507         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48508         gl_PREREQ_VASNPRINTF_INFINITE.
48509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48516         * doc/functions/fprintf.texi: Update.
48517         * doc/functions/printf.texi: Update.
48518         * doc/functions/snprintf.texi: Update.
48519         * doc/functions/sprintf.texi: Update.
48520         * doc/functions/vfprintf.texi: Update.
48521         * doc/functions/vprintf.texi: Update.
48522         * doc/functions/vsnprintf.texi: Update.
48523         * doc/functions/vsprintf.texi: Update.
48524
48525 2007-05-20  Bruno Haible  <bruno@clisp.org>
48526
48527         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48528         was not found in libc.
48529         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48530
48531 2007-05-20  Bruno Haible  <bruno@clisp.org>
48532
48533         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48534         printed as "-nan" instead of "nan".
48535         * tests/test-vasprintf-posix.c (test_function): Likewise.
48536         * tests/test-snprintf-posix.h (test_function): Likewise.
48537         * tests/test-sprintf-posix.h (test_function): Likewise.
48538         Needed for HP-UX 11.
48539
48540 2007-05-20  Jim Meyering  <jim@meyering.net>
48541
48542         Fix buggy test for the fchownat-deref bug.
48543         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48544         symlink required for the run-test.  Without it, this test would
48545         always declare that fchownat doesn't work, and client code would
48546         unnecessarily use the replacement function with fixed libc.
48547         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48548         Reported by Greg Schafer.
48549
48550 2007-05-19  Bruno Haible  <bruno@clisp.org>
48551
48552         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48553         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48554         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48555         Needed for IRIX 6.5 and Solaris 2.5.1.
48556
48557 2007-05-19  Bruno Haible  <bruno@clisp.org>
48558
48559         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48560         (test_function): Skip tests involving -0.0 on platforms where
48561         -0.0 = 0.0.
48562         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48563         (test_function): Skip tests involving -0.0 on platforms where
48564         -0.0 = 0.0.
48565         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48566         (test_function): Skip tests involving -0.0 on platforms where
48567         -0.0 = 0.0.
48568         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48569         (test_function): Skip tests involving -0.0 on platforms where
48570         -0.0 = 0.0.
48571         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48572         tests.
48573         * tests/test-printf-posix.h (test_function): Likewise.
48574         * tests/test-printf-posix.output: Remove all -0.0 related results.
48575         Needed for IRIX 6.5.
48576
48577 2007-05-19  Bruno Haible  <bruno@clisp.org>
48578
48579         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48580         printed as "nan0x7fffffff" instead of "nan".
48581         * tests/test-vasprintf-posix.c (test_function): Likewise.
48582         * tests/test-snprintf-posix.h (test_function): Likewise.
48583         * tests/test-sprintf-posix.h (test_function): Likewise.
48584         * tests/test-fprintf-posix.h (NaN): Remove macro.
48585         (test_function): Remove all NaN related tests.
48586         * tests/test-printf-posix.h (NaN): Remove macro.
48587         (test_function): Remove all NaN related tests.
48588         * tests/test-printf-posix.output: Remove all NaN related results.
48589         Needed for IRIX 6.5.
48590
48591 2007-05-19  Bruno Haible  <bruno@clisp.org>
48592
48593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48595
48596 2007-05-19  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/float_.h: New file.
48599         * m4/float_h.m4: New file.
48600         * modules/float: New file.
48601         * modules/isnanl (Dependencies): Add float.
48602         * modules/isnanl-nolibm (Dependencies): Likewise.
48603         * modules/mathl (Dependencies): Likewise.
48604         * modules/printf-frexpl (Dependencies): Likewise.
48605         * modules/signbit (Dependencies): Likewise.
48606         * modules/vasnprintf (Dependencies): Likewise.
48607         * doc/headers/float.texi: Update.
48608
48609 2007-05-19  Jim Meyering  <jim@meyering.net>
48610
48611         * lib/utimens.c (gl_futimens): Rename from futimens,
48612         now that glibc-2.6 declares futimens.
48613         * lib/utimens.h: Likewise.
48614
48615 2007-05-19  Bruno Haible  <bruno@clisp.org>
48616
48617         Avoid test failures on mingw.
48618         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48619         * tests/test-printf-posix.sh: Likewise.
48620         * tests/test-vfprintf-posix.sh: Likewise.
48621         * tests/test-vprintf-posix.sh: Likewise.
48622
48623 2007-05-19  Bruno Haible  <bruno@clisp.org>
48624
48625         Fix *printf result for NaN, Inf, -0.0 on mingw.
48626         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48627         * lib/vasnprintf.c: Include math.h and isnan.h.
48628         (is_infinite_or_zero): New function.
48629         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48630         values in the %f, %F, %e, %E, %g, %G directives.
48631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48633         gl_PRINTF_INFINITE and test its result. Invoke
48634         gl_PREREQ_VASNPRINTF_INFINITE.
48635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48642         * doc/functions/fprintf.texi: Update.
48643         * doc/functions/printf.texi: Update.
48644         * doc/functions/snprintf.texi: Update.
48645         * doc/functions/sprintf.texi: Update.
48646         * doc/functions/vfprintf.texi: Update.
48647         * doc/functions/vprintf.texi: Update.
48648         * doc/functions/vsnprintf.texi: Update.
48649         * doc/functions/vsprintf.texi: Update.
48650
48651 2007-05-19  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48654         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48655         Instead of multiplying with 10^k, set extra_zeroes to k.
48656         (scale10_round_long_double): Remove function.
48657
48658 2007-05-18  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48661         introduced on 2007-05-06.
48662
48663 2007-05-18  Bruno Haible  <bruno@clisp.org>
48664
48665         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48666         %g directives.
48667         * tests/test-vasprintf-posix.c (test_function): Likewise.
48668         * tests/test-snprintf-posix.h (test_function): Likewise.
48669         * tests/test-sprintf-posix.h (test_function): Likewise.
48670
48671 2007-05-18  Bruno Haible  <bruno@clisp.org>
48672
48673         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48674         (strmatch): New function.
48675         (test_function): Test the %f directive on numbers of various exponents.
48676         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48677         (strmatch): New function.
48678         (test_function): Test the %f directive on numbers of various exponents.
48679         * tests/test-snprintf-posix.h (strmatch): New function.
48680         (test_function): Test the %f directive on numbers of various exponents.
48681         * tests/test-sprintf-posix.h (strmatch): New function.
48682         (test_function): Test the %f directive on numbers of various exponents.
48683         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48684         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48685         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48686         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48687
48688 2007-05-18  Bruno Haible  <bruno@clisp.org>
48689
48690         Add support for 'long double' number output.
48691         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48692         * lib/vasnprintf.c: Include math.h and float+.h.
48693         (mp_limb_t): New type.
48694         (GMP_LIMB_BITS): New macro.
48695         (mp_twolimb_t): New type.
48696         (GMP_TWOLIMB_BITS): New macro.
48697         (mpn_t): New type.
48698         (multiply, divide, convert_to_decimal, decode_long_double,
48699         scale10_round_long_double, scale10_round_decimal_long_double,
48700         floorlog10l): New functions.
48701         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48702         for the %f, %F, %e, %E, %g, %G directives.
48703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48705         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48706         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48713         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48714         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48715         * modules/snprintf-posix (Depends-on): Likewise.
48716         * modules/sprintf-posix (Depends-on): Likewise.
48717         * modules/vasnprintf-posix (Depends-on): Likewise.
48718         * modules/vasprintf-posix (Depends-on): Likewise.
48719         * modules/vfprintf-posix (Depends-on): Likewise.
48720         * modules/vsnprintf-posix (Depends-on): Likewise.
48721         * modules/vsprintf-posix (Depends-on): Likewise.
48722         * modules/vasnprintf (Files): Add lib/float+.h.
48723         * doc/functions/fprintf.texi: Update.
48724         * doc/functions/printf.texi: Update.
48725         * doc/functions/snprintf.texi: Update.
48726         * doc/functions/sprintf.texi: Update.
48727         * doc/functions/vfprintf.texi: Update.
48728         * doc/functions/vprintf.texi: Update.
48729         * doc/functions/vsnprintf.texi: Update.
48730         * doc/functions/vsprintf.texi: Update.
48731
48732 2007-05-18  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48735
48736 2007-05-18  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48739         for printing 64-bit integers. Needed for mingw.
48740
48741 2007-05-18  Bruno Haible  <bruno@clisp.org>
48742
48743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48744         gl_FUNC_FREXPL_WORKS.
48745         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48746
48747 2007-05-18  Bruno Haible  <bruno@clisp.org>
48748
48749         * modules/frexpl-nolibm-tests: New file.
48750
48751         * modules/frexpl-nolibm: New file.
48752         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48753
48754 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48755
48756         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48757         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48758         GCC 4.2, which otherwise issues a lot of warnings.
48759         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48760         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48761         Likewise.
48762         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48763         * modules/iconv_open (iconv.h): Likewise.
48764         * modules/locale (locale.h): Likewise.
48765         * modules/netinet_in (netinet/in.h): Likewise.
48766         * modules/sys_select (sys_select.h): Likewise.
48767         * modules/sys_socket (sys/socket.h): Likewise.
48768         * modules/sys_stat (sys/stat.h): Likewise.
48769         * modules/sysexits (sysexits.h): Likewise.
48770         * modules/unistd (unistd.h): Likewise.
48771
48772 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48773
48774         * modules/closein-tests (Makefile.am): Distribute
48775         `test-closein.sh'.
48776
48777 2007-05-17  Bruno Haible  <bruno@clisp.org>
48778
48779         * tests/test-printf-posix.output: Renamed from
48780         tests/test-fprintf-posix.out.
48781         * modules/fprintf-posix-tests: Update.
48782         * modules/printf-posix-tests: Update.
48783         * modules/vfprintf-posix-tests: Update.
48784         * modules/vprintf-posix-tests: Update.
48785         * tests/test-fprintf-posix.sh: Update.
48786         * tests/test-printf-posix.sh: Update.
48787         * tests/test-vfprintf-posix.sh: Update.
48788         * tests/test-vprintf-posix.sh: Update.
48789         Reported by Ralf Wildenhues.
48790
48791 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48792
48793         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48794         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48795         GCC 4.2, which otherwise issues a lot of warnings.
48796         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48797         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48798         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48799         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48800         it should no longer be needed.
48801         * lib/string_.h: Likewise.
48802         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48803         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48804         * modules/inttypes (inttypes.h): Likewise.
48805         * modules/math (math.h): Likewise.
48806         * modules/search (search.h): Likewise.
48807         * modules/signal (signal.h): Likewise.
48808         * modules/stdint (stdint.h): Likewise.
48809         * modules/stdio (stdio.h): Likewise.
48810         * modules/stdlib (stdlib.h): Likewise.
48811         * modules/string (string.h): Likewise.
48812         * modules/sys_time (sys/time.h): Likewise.
48813         * modules/time (time.h): Likewise.
48814         * modules/wchar (wchar.h): Likewise.
48815         * modules/wctype (wtype.h): Likewise.
48816
48817 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48818
48819         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48820
48821 2007-05-13  Bruno Haible  <bruno@clisp.org>
48822
48823         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48824         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48825         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48826         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48827         (gl_PREREQ_STRTOK_R): Don't require it here.
48828
48829 2007-05-13  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48832         when used in C++ mode.
48833
48834 2007-05-12  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/linebuffer.h: Tweak doc.
48837         * lib/linebuffer.c: Likewise.
48838
48839 2007-05-12  James Youngman  <jay@gnu.org>
48840
48841         * lib/linebuffer.c (readlinebuffer_delim): New function,
48842         like readlinebuffer, but use a caller-specified delimiter.
48843         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48844         as the delimiter.
48845         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48846
48847 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48848
48849         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48850         * modules/openat (Files): Remove openat-die.c.
48851         (Depends-on): Add openat-die.
48852         * modules/openat-die: New module.
48853
48854 2007-05-06  Bruno Haible  <bruno@clisp.org>
48855
48856         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48857         Update with info about Cygwin.
48858         * doc/functions/fprintf.texi: Update.
48859         * doc/functions/printf.texi: Update.
48860         * doc/functions/snprintf.texi: Update.
48861         * doc/functions/sprintf.texi: Update.
48862         * doc/functions/vfprintf.texi: Update.
48863         * doc/functions/vprintf.texi: Update.
48864         * doc/functions/vsnprintf.texi: Update.
48865         * doc/functions/vsprintf.texi: Update.
48866         Reported by Eric Blake.
48867
48868 2007-05-06  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48871         padding ourselves for the floating-point directives.
48872         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48875         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48876         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48884         * tests/test-snprintf-posix.h (test_function): Also check the width
48885         and some flags in the %f directive.
48886         * tests/test-sprintf-posix.h (test_function): Likewise.
48887         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48888         * tests/test-vasprintf-posix.c (test_function): Likewise.
48889         * doc/functions/fprintf.texi: Update.
48890         * doc/functions/printf.texi: Update.
48891         * doc/functions/snprintf.texi: Update.
48892         * doc/functions/sprintf.texi: Update.
48893         * doc/functions/vfprintf.texi: Update.
48894         * doc/functions/vprintf.texi: Update.
48895         * doc/functions/vsnprintf.texi: Update.
48896         * doc/functions/vsprintf.texi: Update.
48897
48898 2007-05-06  Bruno Haible  <bruno@clisp.org>
48899
48900         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48901         pass the ' flag character to sprintf or snprintf.
48902         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48905         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48906         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48914         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48915         flag.
48916         * tests/test-sprintf-posix.h (test_function): Likewise.
48917         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48918         * tests/test-vasprintf-posix.c (test_function): Likewise.
48919         * doc/functions/fprintf.texi: Update.
48920         * doc/functions/printf.texi: Update.
48921         * doc/functions/snprintf.texi: Update.
48922         * doc/functions/sprintf.texi: Update.
48923         * doc/functions/vfprintf.texi: Update.
48924         * doc/functions/vprintf.texi: Update.
48925         * doc/functions/vsnprintf.texi: Update.
48926         * doc/functions/vsprintf.texi: Update.
48927
48928 2007-05-01  Bruno Haible  <bruno@clisp.org>
48929
48930         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48931
48932 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48933
48934         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48935         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48936
48937 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48938
48939         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48940         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48942
48943 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48944
48945         * lib/argp-help.c (struct hol_entry): New member `ord'.
48946         (HOL_ENTRY_PTRCMP): Use ord for comparison
48947         (hol_sort): Initialize ord.
48948
48949 2007-05-01  Bruno Haible  <bruno@clisp.org>
48950
48951         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48952         Reported by Eric Blake.
48953         * doc/gnulib.texi (Function Substitutes): Update.
48954
48955 2007-05-01  Bruno Haible  <bruno@clisp.org>
48956
48957         * doc/functions.texi: Remove file, now redundant through
48958         doc/functions/*.texi.
48959
48960 2007-05-01  Bruno Haible  <bruno@clisp.org>
48961
48962         * modules/argp (Depends-on): Add sleep.
48963
48964 2007-05-01  Bruno Haible  <bruno@clisp.org>
48965
48966         * modules/sleep-tests: New file.
48967         * tests/test-sleep.c: New file.
48968
48969         * modules/sleep: New file.
48970         * lib/sleep.c: New file.
48971         * m4/sleep.m4: New file.
48972         * lib/unistd_.h (sleep): New declaration.
48973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48974         HAVE_SLEEP.
48975         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48976         * doc/functions/sleep.texi: Document the sleep module.
48977
48978 2007-05-01  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/sigprocmask.h: Remove file.
48981         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48982         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48984         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48985         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48986         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48987         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48988         HAVE_SIGSET_T as a shell variable.
48989         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48990         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48991         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48992         (Depends-on): Add signal. Remove verify.
48993         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48994         (Include): Mention <signal.h> instead of sigprocmask.h.
48995         * NEWS: Mention the change.
48996         * lib/fatal-signal.c: Don't include sigprocmask.h.
48997
48998 2007-05-01  Bruno Haible  <bruno@clisp.org>
48999
49000         * modules/signal: New file.
49001         * lib/signal_.h: New file.
49002         * m4/signal_h.m4: New file.
49003
49004 2007-05-01  Bruno Haible  <bruno@clisp.org>
49005
49006         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49007         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49008         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49009         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49010
49011 2007-05-01  Bruno Haible  <bruno@clisp.org>
49012
49013         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49014         configure time.
49015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49016         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49017         * modules/sys_stat (Makefile.am): Substitute their values into
49018         sys/stat.h.
49019
49020 2007-05-01  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49023         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49024         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49025
49026 2007-05-01  Bruno Haible  <bruno@clisp.org>
49027
49028         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49029         'assert' module here.
49030
49031 2007-05-01  Bruno Haible  <bruno@clisp.org>
49032
49033         * doc/functions/*.texi: New files.
49034         * doc/functions/google-ranking.txt: New file.
49035         * doc/gnulib.texi (Function Substitutes): New chapter.
49036         (ctime, inet_ntoa): Remove sections.
49037         * doc/ctime.texi: Remove file.
49038         * doc/inet_ntoa.texi: Remove file.
49039         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49040         dependencies.
49041         (%.info): New rule, specifying a --reference-limit.
49042
49043 2007-05-01  Bruno Haible  <bruno@clisp.org>
49044
49045         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49046
49047 2007-05-01  Bruno Haible  <bruno@clisp.org>
49048
49049         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49050         the portability of 'mkdir' to mingw systems.
49051
49052 2007-05-01  Bruno Haible  <bruno@clisp.org>
49053
49054         * doc/headers/google-ranking.txt: New file.
49055
49056 2007-04-30  Eric Blake  <ebb9@byu.net>
49057
49058         Prefer fseeko to fseek.
49059         * modules/getpass (Depends-on): Add fseeko.
49060         * lib/getpass.c (getpass): Use fseeko, not fseek.
49061
49062 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49063
49064         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49065         assumes the sorting is stable, while most qsort implementations
49066         are not.  Use argument addresses to ensure they never compare as
49067         equal.
49068
49069         * tests/test-argp-2.sh (usage-indent test): Fix output
49070         (func_compare): Restore diff options
49071         * tests/test-argp.c: Restore #include "progname.h"
49072
49073 2007-04-29  Bruno Haible  <bruno@clisp.org>
49074
49075         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49077         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49079         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49080         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49081         (TESTS, check_PROGRAMS): Add test-snprintf.
49082         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49083         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49084         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49085         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49086         assertions that fail on HP-UX, OSF/1, or IRIX.
49087         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49088
49089 2007-04-29  Bruno Haible  <bruno@clisp.org>
49090
49091         * MODULES.html.sh (posix_functions): Remove 'contents'.
49092
49093 2007-04-29  Karl Berry  <karl@gnu.org>
49094
49095         * config/srclist.txt (gendocs_template_min): new entry.
49096
49097 2007-04-29  Bruno Haible  <bruno@clisp.org>
49098
49099         Work around fpurge bug on BSD systems.
49100         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49101         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49102         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49103         fpurge to rpl_fpurge if the system already has this function.
49104         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49105         the case where the system already has this function. Correct invariants
49106         on BSD systems.
49107         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49108         BSD systems.
49109
49110 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49111
49112         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49113         proposed by Sven Verdoolaege.
49114
49115         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49116         options.
49117         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49118         (usage and help tests): Update
49119
49120 2007-04-29  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49123         Print more information in case of failure. Disable a test on BeOS.
49124
49125 2007-04-29  Bruno Haible  <bruno@clisp.org>
49126
49127         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49128         This helps debugging on systems on which no gdb is available.
49129
49130 2007-04-29  Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/freading.h: Improve comments.
49133         * lib/fwriting.h: Likewise.
49134         * tests/test-freading.c (main): Don't check freading immediately after
49135         repositioning. Needed for glibc.
49136
49137 2007-04-29  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/freading.c (freading): Trivial simplification.
49140
49141 2007-04-28  Bruno Haible  <bruno@clisp.org>
49142
49143         * tests/test-fwriting.c (main): Also test the interaction between
49144         fflush and fwriting.
49145         * modules/fwriting-tests (Depends-on): Add fflush.
49146
49147         * tests/test-freading.c (main): Also test the interaction between
49148         fflush and freading.
49149         * modules/freading-tests (Depends-on): Add fflush.
49150
49151 2007-04-28  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49154         fseeko and ftello.
49155         Suggested by Eric Blake.
49156
49157 2007-04-28  Jim Meyering  <jim@meyering.net>
49158
49159         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49160         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49161         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49162
49163 2007-04-27  Eric Blake  <ebb9@byu.net>
49164
49165         * doc/headers/assert.texi (assert.h): Document assert module use.
49166
49167 2007-04-27  Bruno Haible  <bruno@clisp.org>
49168
49169         * doc/headers/*.texi: New files.
49170         * doc/gnulib.texi (Header File Substitutes): New chapter.
49171         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49172         dependencies.
49173         (standards.info ,standards.html, standards.dvi): Update dependencies.
49174         (mostlyclean, clean): New targets.
49175
49176 2007-04-27  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49179         * modules/sysexits (Files, Makefile.am): Update.
49180
49181         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49182         * modules/sys_socket (Files, Makefile.am): Update.
49183
49184         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49185         * modules/sys_stat (Files, Makefile.am): Update.
49186
49187 2007-04-27  Eric Blake  <ebb9@byu.net>
49188
49189         * lib/freading.h: Improve comments.
49190         * lib/fwriting.h: Likewise.
49191         * lib/fflush.c: Likewise.
49192
49193         Fix closein for mingw.
49194         * modules/closein-tests: Add tests for closein.
49195         * tests/test-closein.c: New file.
49196         * tests/test-closein.sh: Likewise.
49197         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49198         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49199
49200 2007-04-27  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49203         version is < 6.
49204         * lib/math_.h [__DECC]: Likewise.
49205         * lib/stdio_.h [__DECC]: Likewise.
49206         * lib/stdlib_.h [__DECC]: Likewise.
49207         * lib/string_.h [__DECC]: Likewise.
49208         * lib/time_.h [__DECC]: Likewise.
49209         * lib/wchar_.h [__DECC]: Likewise.
49210         * lib/wctype_.h [__DECC]: Likewise.
49211
49212 2007-04-27  Bruno Haible  <bruno@clisp.org>
49213
49214         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49215
49216 2007-04-27  Bruno Haible  <bruno@clisp.org>
49217
49218         * lib/fflush.c: Add comments.
49219         * modules/fpurge-tests (Depends-on): Add fflush.
49220         * modules/freadable-tests (Depends-on): Likewise.
49221         * modules/fwritable-tests (Depends-on): Likewise.
49222
49223 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49224
49225         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49226         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49227         Report by Bruno Haible <bruno@clisp.org>.
49228
49229 2007-04-26  Eric Blake  <ebb9@byu.net>
49230
49231         Fix fflush on mingw.
49232         * modules/fflush (Depends-on): Add freading.
49233         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49234         but unread data.
49235
49236 2007-04-26  Eric Blake  <ebb9@byu.net>
49237         and Bruno Haible  <bruno@clisp.org>
49238
49239         Implement freading and fwriting.
49240         * lib/freading.c: New file.
49241         * lib/freading.h: Likewise.
49242         * m4/freading.m4: Likewise.
49243         * modules/freading: Likewise.
49244         * modules/freading-tests: Likewise.
49245         * tests/test-freading.c: Likewise.
49246         * lib/fwriting.c: New file.
49247         * lib/fwriting.h: Likewise.
49248         * m4/fwriting.m4: Likewise.
49249         * modules/fwriting: Likewise.
49250         * modules/fwriting-tests: Likewise.
49251         * tests/test-fwriting.c: Likewise.
49252         * MODULES.html.sh (File stream based Input/Output): Mention them.
49253
49254 2007-04-26  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49257         'long' when we assume it.
49258         Suggested by Eric Blake.
49259
49260 2007-04-26  Bruno Haible  <bruno@clisp.org>
49261
49262         Ensure fseeko, ftello are declared on glibc systems.
49263         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49264         * modules/fseeko (configure.ac-early): Likewise.
49265         * modules/ftello (configure.ac-early): Likewise.
49266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49267         AC_FUNC_FSEEKO for this.
49268         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49269         (gl_CHECK_FSEEKO): Remove macro.
49270
49271 2007-04-26  Bruno Haible  <bruno@clisp.org>
49272
49273         * tests/test-fflush.c (main): Also check the ftell result after
49274         fflush and fseek/fseeko.
49275         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49276         file descriptor position cache in the stream.
49277         * lib/fseeko.c (rpl_fseeko): Likewise.
49278
49279 2007-04-26  Bruno Haible  <bruno@clisp.org>
49280
49281         * modules/fflush-tests (Depends-on): Add fseeko.
49282
49283 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49285
49286         * lib/argz_.h: ensure error_t definition is obtained in same
49287         mechanism system argz.h would have.
49288         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49289         argz facilities are known bad.  Err on the side of caution if
49290         cross-compiling.
49291
49292 2007-04-25  Eric Blake  <ebb9@byu.net>
49293
49294         * lib/fpurge.c (includes): Use stdlib.h for free.
49295         * tests/test-fflush.c (main): Also test fflush-fseeko.
49296
49297 2007-04-25  Bruno Haible  <bruno@clisp.org>
49298
49299         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49300         * lib/fseeko.c: New file.
49301         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49302         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49303         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49304         gl_FUNC_FSEEKO.
49305         (gl_FUNC_FSEEKO): Invoke it.
49306         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49307         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49308         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49309
49310 2007-04-25  Bruno Haible  <bruno@clisp.org>
49311
49312         * modules/fflush (Depends-on): Add ftello.
49313
49314 2007-04-25  Bruno Haible  <bruno@clisp.org>
49315
49316         * modules/ftello-tests: New file.
49317         * tests/test-ftello.c: New file.
49318
49319         * modules/ftello: New file.
49320         * m4/ftello.m4: New file.
49321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49322         HAVE_FTELLO.
49323         * lib/stdio_.h (ftello): New declaration.
49324         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49325         HAVE_FTELLO.
49326
49327 2007-04-25  Bruno Haible  <bruno@clisp.org>
49328
49329         * modules/fseeko-tests: New file.
49330         * tests/test-fseeko.c: New file.
49331
49332         * modules/fseeko: New file.
49333         * m4/fseeko.m4: New file.
49334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49335         HAVE_FSEEKO.
49336         * lib/stdio_.h (fseeko): New declaration.
49337         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49338         HAVE_FSEEKO.
49339
49340 2007-04-25  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49343
49344 2007-04-25  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49347         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49348         * tests/test-unistd.c: Likewise.
49349         * tests/test-fcntl.c: Likewise.
49350
49351 2007-04-23  Eric Blake  <ebb9@byu.net>
49352
49353         * lib/fflush.c: Fix missing include.
49354         Reported by Bruno Haible.
49355
49356 2007-04-23  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49359         Reported by Eric Blake.
49360
49361 2007-04-23  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49364
49365 2007-04-23  Bruno Haible  <bruno@clisp.org>
49366
49367         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49368
49369 2007-04-23  Bruno Haible  <bruno@clisp.org>
49370
49371         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49372         Needed on HP-UX 11.
49373
49374 2007-04-16  Eric Blake  <ebb9@byu.net>
49375
49376         Make fflush rely on fpurge.
49377         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49378         open coding all variants.
49379         * modules/fflush (Depends-on): Add fpurge and unistd.
49380         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49382
49383         Fix --with-tests compilation on cygwin.
49384         * modules/argmatch-tests (Makefile.am): List gnulib library first
49385         in LDADD.
49386         * modules/argp-tests (Makefile.am): Likewise.
49387         * modules/array-list-tests (Makefile.am): Likewise.
49388         * modules/array-oset-tests (Makefile.am): Likewise.
49389         * modules/avltree-list-tests (Makefile.am): Likewise.
49390         * modules/avltree-oset-tests (Makefile.am): Likewise.
49391         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49392         * modules/carray-list-tests (Makefile.am): Likewise.
49393         * modules/dirname-tests (Makefile.am): Likewise.
49394         * modules/frexp-tests (Makefile.am): Likewise.
49395         * modules/isnanl-tests (Makefile.am): Likewise.
49396         * modules/linked-list-tests (Makefile.am): Likewise.
49397         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49398         * modules/lock-tests (Makefile.am): Likewise.
49399         * modules/rbtree-list-tests (Makefile.am): Likewise.
49400         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49401         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49402         * modules/tls-tests (Makefile.am): Likewise.
49403         * modules/tsearch-tests (Makefile.am): Likewise.
49404         * modules/xvasprintf-tests (Makefile.am): Likewise.
49405
49406         Fix fpurge for cygwin.
49407         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49408         value.
49409         * modules/fpurge-tests (Depends-on): Clean up trash.
49410
49411 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49412
49413         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49414
49415         * m4/autobuild.m4: Re-indent.
49416
49417 2007-04-13  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/fpurge-tests: New file.
49420         * tests/test-fpurge.c: New file.
49421
49422         * modules/fpurge: New file.
49423         * lib/fpurge.h: New file.
49424         * lib/fpurge.c: New file.
49425         * m4/fpurge.m4: New file.
49426
49427 2007-04-13  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/fbufmode-tests: New file.
49430         * tests/test-fbufmode.c: New file.
49431
49432         * modules/fbufmode: New file.
49433         * lib/fbufmode.h: New file.
49434         * lib/fbufmode.c: New file.
49435         * m4/fbufmode.m4: New file.
49436
49437 2007-04-13  Bruno Haible  <bruno@clisp.org>
49438
49439         * modules/fwritable-tests: New file.
49440         * tests/test-fwritable.c: New file.
49441
49442         * modules/fwritable: New file.
49443         * lib/fwritable.h: New file.
49444         * lib/fwritable.c: New file.
49445         * m4/fwritable.m4: New file.
49446
49447 2007-04-13  Bruno Haible  <bruno@clisp.org>
49448
49449         * modules/freadable-tests: New file.
49450         * tests/test-freadable.c: New file.
49451
49452         * modules/freadable: New file.
49453         * lib/freadable.h: New file.
49454         * lib/freadable.c: New file.
49455         * m4/freadable.m4: New file.
49456
49457 2007-04-13  Bruno Haible  <bruno@clisp.org>
49458
49459         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49460         MOSTLYCLEANFILES.
49461
49462 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49463
49464         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49465         gzip bootstrap.conf to avoid dragging in i18n machinery.
49466         (gnulib_tool_option): Use it.
49467
49468 2007-04-13  Bruno Haible  <bruno@clisp.org>
49469
49470         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49471         %F directives.
49472         * tests/test-vasprintf-posix.c (test_function): Likewise.
49473         * tests/test-snprintf-posix.h (test_function): Likewise.
49474         * tests/test-sprintf-posix.h (test_function): Likewise.
49475         * tests/test-fprintf-posix.h (test_function): Likewise.
49476         * tests/test-printf-posix.h (test_function): Likewise.
49477         * tests/test-fprintf-posix.out: Likewise.
49478
49479 2007-04-13  Bruno Haible  <bruno@clisp.org>
49480
49481         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49482         * modules/tls-tests (configure.ac): Likewise.
49483         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49484
49485 2007-04-13  Bruno Haible  <bruno@clisp.org>
49486
49487         * lib/tls.c (glthread_tls_get): Fix return type.
49488         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49489
49490 2007-04-12  Eric Blake  <ebb9@byu.net>
49491
49492         * modules/gettime (Depends-on): Remove gettime.
49493         Reported by Dmitry V. Levin.
49494
49495 2007-04-12  Bruno Haible  <bruno@clisp.org>
49496
49497         * modules/fflush (Include): Mention <stdio.h>.
49498         * modules/strtoimax (Include): Mention <inttypes.h>.
49499         * modules/strtoumax (Include): Likewise.
49500
49501 2007-04-12  Eric Blake  <ebb9@byu.net>
49502
49503         * .cvsignore: New file.
49504         * .gitignore: Likewise.
49505
49506 2007-04-12  Bruno Haible  <bruno@clisp.org>
49507
49508         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49509         not before, since $(LDADD) often contains libgnu.a.
49510         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49511         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49512         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49513         Needed on Cygwin.
49514
49515 2007-04-12  Eric Blake  <ebb9@byu.net>
49516
49517         Work around glibc's failure to flush stdin on fclose.
49518         * lib/closein.c (close_stdin): Flush stdin before closing.
49519
49520         Work around glibc's failure to reset seekable stdin on exit.
49521         * modules/closein: New module.
49522         * lib/closein.c: New file.
49523         * lib/closein.h: Likewise.
49524         * m4/closein.m4: Likewise.
49525         * MODULES.html.sh (File stream based Input/Output): Document it.
49526
49527 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49528
49529         * gnulib-tool: Rename generated 'autobuild' script to
49530         'do-autobuild' in --create-megatestdir output.
49531
49532         * doc/gnulib.texi (Build robot for gnulib): Fix.
49533
49534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49535
49536         * modules/sysexits (Depends-on): Add absolute-header.
49537
49538 2007-04-12  Eric Blake  <ebb9@byu.net>
49539
49540         No need to preserve errno on success.
49541         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49542         Reported by Bruno Haible.
49543
49544 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49545
49546         * MODULES.html.sh (Support for maintaining and releasing
49547         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49548
49549 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49550
49551         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49552
49553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49554
49555         * modules/autobuild: New module.
49556
49557         * m4/autobuild.m4: New file.
49558
49559 2007-04-11  Bruno Haible  <bruno@clisp.org>
49560
49561         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49562         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49563         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49589         Reported by Eric Blake.
49590
49591 2007-04-11  Bruno Haible  <bruno@clisp.org>
49592
49593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49594
49595 2007-04-10  Bruno Haible  <bruno@clisp.org>
49596
49597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49598         for NaN and Infinity. Needed on FreeBSD 6.1.
49599         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49600         regarding results for "%010a" of Infinity and NaN.
49601         * tests/test-vasprintf-posix.c (test_function): Likewise.
49602         * tests/test-snprintf-posix.h (test_function): Likewise.
49603         * tests/test-sprintf-posix.h (test_function): Likewise.
49604         * tests/test-fprintf-posix.h (test_function): Likewise.
49605         * tests/test-printf-posix.h (test_function): Likewise.
49606         * tests/test-fprintf-posix.out: Likewise.
49607
49608 2007-04-10  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/locale-tests: New file.
49611         * tests/test-locale.c: New file.
49612
49613         * modules/locale: New file.
49614         * lib/locale_.h: New file.
49615         * m4/locale_h.m4: New file.
49616
49617 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49618             Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49621         be determined, test for availability of the copysignf, copysign,
49622         copysignl functions.
49623         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49624         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49625         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49626
49627 2007-04-09  Eric Blake  <ebb9@byu.net>
49628
49629         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49630         * modules/stdio (Makefile.am): Support fflush.
49631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49632         * modules/fflush: New file.
49633         * lib/fflush.c: Likewise.
49634         * m4/fflush.m4: Likewise.
49635         * modules/fflush-tests: New test.
49636         * tests/test-fflush.c: Likewise.
49637         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49638
49639 2007-04-06  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49642         (VASNPRINTF): Use signbit for faster determination whether to print a
49643         minus sign.
49644         * modules/vasnprintf (Files): Remove lib/float+.h.
49645         * modules/fprintf-posix (Depends-on): Add signbit.
49646         * modules/snprintf-posix (Depends-on): Likewise.
49647         * modules/sprintf-posix (Depends-on): Likewise.
49648         * modules/vasnprintf-posix (Depends-on): Likewise.
49649         * modules/vasprintf-posix (Depends-on): Likewise.
49650         * modules/vfprintf-posix (Depends-on): Likewise.
49651         * modules/vsnprintf-posix (Depends-on): Likewise.
49652         * modules/vsprintf-posix (Depends-on): Likewise.
49653
49654 2007-04-06  Bruno Haible  <bruno@clisp.org>
49655
49656         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49657         * tests/test-frexpl.c (main): Likewise.
49658         * tests/test-ldexpl.c (main): Likewise.
49659         * modules/frexp-tests (Depends-on): Add signbit.
49660         * modules/frexpl-tests (Depdends-on): Likewise.
49661         * modules/ldexpl-tests (Depdends-on): Likewise.
49662
49663 2007-04-06  Bruno Haible  <bruno@clisp.org>
49664
49665         * modules/signbit-tests: New file.
49666         * tests/test-signbit.c: New file.
49667
49668         * modules/signbit: New file.
49669         * lib/signbitf.c: New file.
49670         * lib/signbitd.c: New file.
49671         * lib/signbitl.c: New file.
49672         * m4/signbit.m4: New file.
49673         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49674         (signbit): New macro.
49675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49676         REPLACE_SIGNBIT.
49677         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49678         REPLACE_FREXPL into math.h.
49679
49680 2007-04-06  Bruno Haible  <bruno@clisp.org>
49681
49682         * modules/isnanf-nolibm-tests: New file.
49683         * tests/test-isnanf.c: New file.
49684
49685         * modules/isnanf-nolibm: New file.
49686         * lib/isnanf.h: New file.
49687         * lib/isnanf.c: New file.
49688         * lib/isnan.c: Consider the USE_FLOAT macro.
49689         * m4/isnanf.m4: New file.
49690
49691 2007-04-06  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49694         (Link): New section.
49695
49696         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49697
49698 2007-04-06  Bruno Haible  <bruno@clisp.org>
49699
49700         Assume the 'long double' type.
49701         * m4/longdouble.m4: Remove file.
49702         * config/srclist.txt: Don't mention longdouble.m4.
49703         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49704         * lib/float+.h: Likewise.
49705         * lib/frexp.c: Likewise.
49706         * lib/printf-args.h: Likewise.
49707         * lib/printf-args.c: Likewise.
49708         * lib/printf-frexp.c: Likewise.
49709         * lib/printf-parse.c: Likewise.
49710         * lib/vasnprintf.c: Likewise.
49711         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49712         * m4/intl.m4: Likewise.
49713         * m4/isnanl.m4: Likewise.
49714         * m4/printf.m4: Likewise.
49715         * m4/printf-frexpl.m4: Likewise.
49716         * m4/vasnprintf.m4: Likewise.
49717         * modules/allocsa (Files): Remove m4/longdouble.m4.
49718         * modules/gettext (Files): Likewise.
49719         * modules/relocatable-prog-wrapper (Files): Likewise.
49720         * modules/vasnprintf (Files): Likewise.
49721         * modules/isnanl (Files): Likewise.
49722         (Include): Simplify.
49723         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49724         (Include): Simplify.
49725         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49726         (Include): Simplify.
49727         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49729         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49730         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49731         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49733         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49735         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49737         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49739         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49740         * tests/test-isnanl.c: Likewise.
49741         * tests/test-snprintf-posix.h: Likewise.
49742         * tests/test-sprintf-posix.h: Likewise.
49743         * tests/test-vasnprintf-posix.c: Likewise.
49744         * tests/test-vasnprintf-posix2.c: Likewise.
49745         * tests/test-vasprintf-posix.c: Likewise.
49746
49747 2007-04-06  Bruno Haible  <bruno@clisp.org>
49748
49749         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49750         * lib/math_.h [__DECC]: Include the overridden include file through
49751         #include_next, outside the double-inclusion guard.
49752         * lib/stdio_.h [__DECC]: Likewise.
49753         * lib/stdlib_.h [__DECC]: Likewise.
49754         * lib/string_.h [__DECC]: Likewise.
49755         * lib/time_.h [__DECC]: Likewise.
49756         * lib/wchar_.h [__DECC]: Likewise.
49757         * lib/wctype_.h [__DECC]: Likewise.
49758         * lib/inttypes_.h [__DECC]: Likewise.
49759         Reported by Albert Chin <china@thewrittenword.com> in
49760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49761
49762 2007-04-04  Eric Blake  <ebb9@byu.net>
49763
49764         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49765         1.5.x.
49766
49767 2007-04-04  Bruno Haible  <bruno@clisp.org>
49768
49769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49770         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49771
49772 2007-04-04  Bruno Haible  <bruno@clisp.org>
49773
49774         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49775         results for "%010a" of Infinity and NaN.
49776         * tests/test-vasprintf-posix.c (test_function): Likewise.
49777         * tests/test-snprintf-posix.h (test_function): Likewise.
49778         * tests/test-sprintf-posix.h (test_function): Likewise.
49779         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49780         * tests/test-printf-posix.h (test_function): Likewise.
49781         * tests/test-fprintf-posix.out: Update.
49782         Needed for FreeBSD 6.1.
49783
49784 2007-04-04  Bruno Haible  <bruno@clisp.org>
49785
49786         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49787         directly used by the gnulib modules nor by gnulib-tool.
49788
49789 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49790
49791         * DEPENDENCIES: Give overall description of version dependency
49792         desirability.  Use more-typical names for apps.
49793         Add shell, coreutils, diffutils, grep, tar, gzip.
49794
49795 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49796
49797         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49798
49799 2007-04-04  Karl Berry  <karl@gnu.org>
49800
49801         * MODULES.html.sh (func_module): missing '.
49802
49803 2007-04-03  Bruno Haible  <bruno@clisp.org>
49804
49805         * modules/argmatch-tests (Makefile.am): New variable
49806         test_argmatch_LDADD.
49807         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49808         * modules/array-list-tests (Makefile.am): New variable
49809         test_array_list_LDADD.
49810         * modules/array-oset-tests (Makefile.am): New variable
49811         test_array_oset_LDADD.
49812         * modules/avltree-list-tests (Makefile.am): New variable
49813         test_avltree_list_LDADD.
49814         * modules/avltree-oset-tests (Makefile.am): New variable
49815         test_avltree_oset_LDADD.
49816         * modules/avltreehash-list-tests (Makefile.am): New variable
49817         test_avltreehash_list_LDADD.
49818         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49819         test_canonicalize_lgpl_LDADD.
49820         * modules/carray-list-tests (Makefile.am): New variable
49821         test_carray_list_LDADD.
49822         * modules/dirname-tests (Makefile.am): New variable
49823         test_dirname_LDADD.
49824         * modules/linked-list-tests (Makefile.am): New variable
49825         test_linked_list_LDADD.
49826         * modules/linkedhash-list-tests (Makefile.am): New variable
49827         test_linkedhash_list_LDADD.
49828         * modules/rbtree-list-tests (Makefile.am): New variable
49829         test_rbtree_list_LDADD.
49830         * modules/rbtree-oset-tests (Makefile.am): New variable
49831         test_rbtree_oset_LDADD.
49832         * modules/rbtreehash-list-tests (Makefile.am): New variable
49833         test_rbtreehash_list_LDADD.
49834         * modules/xvasprintf-tests (Makefile.am): New variable
49835         test_xvasprintf_LDADD.
49836         Reported by Eric Blake.
49837
49838 2007-04-03  Eric Blake  <ebb9@byu.net>
49839
49840         * DEPENDENCIES: Weaken m4 requirements.
49841
49842 2007-04-03  Bruno Haible  <bruno@clisp.org>
49843
49844         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49845         * modules/isnanl-tests (configure.ac): Likewise.
49846
49847 2007-04-03  Ben Pfaff  <blp@gnu.org>
49848
49849         * modules/iconv_open: Add $(srcdir)/ to source directory
49850         references in Makefile fragments that call gperf, to fix VPATH
49851         builds.
49852
49853 2007-04-03  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49856         * lib/ldexpl.c: Undo last change.
49857
49858 2007-04-03  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/printf-frexpl (Depends-on): Undo last change.
49861         (Files): Add m4/ldexpl.m4.
49862
49863 2007-04-03  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49866         * modules/isnanl (Link): New section.
49867
49868         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49869         * modules/frexp (Link): New section.
49870
49871         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49872         * modules/frexpl (Link): New section.
49873
49874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49875         * modules/ldexpl (Link): New section.
49876
49877 2007-04-03  Bruno Haible  <bruno@clisp.org>
49878
49879         * modules/TEMPLATE-EXTENDED: New file.
49880         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49881
49882 2007-04-03  Bruno Haible  <bruno@clisp.org>
49883
49884         * DEPENDENCIES: New file.
49885         Suggested by Simon Josefsson.
49886
49887 2007-04-03  Bruno Haible  <bruno@clisp.org>
49888
49889         * doc/gnulib.texi: Escape @.
49890
49891 2007-04-03  James Youngman  <jay@gnu.org>
49892         and Paul Eggert  <eggert@cs.ucla.edu>
49893
49894         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49895         birthtime on all systems that have birthtime, not just those which
49896         use st_birthtimensec rather than st_birthtim.  Putting zero in
49897         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49898         that the birth time is not available for files on an NFS mount.
49899
49900 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49901
49902         * modules/memxor: Move back from crypto/, suggested by Bruno.
49903         * modules/crypto/hmac-sha1: Fix memxor dependency.
49904
49905         * modules/crypto/gc: Moved from ../.
49906
49907 2007-04-02  Eric Blake  <ebb9@byu.net>
49908
49909         * lib/ldexpl.c (includes): Avoid libm.
49910
49911         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49912
49913 2007-04-02  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49916         on IRIX.
49917
49918 2007-04-02  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49921         x86 or x86_64 platforms running MacOS X.
49922         Reported by Ryan Schmidt <@ryandesign.com>.
49923
49924 2007-04-02  Bruno Haible  <bruno@clisp.org>
49925
49926         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49927         i386.
49928
49929 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49930
49931         * modules/crypto/arcfour: Moved from ../.
49932         * modules/crypto/arcfour-tests: Moved from ../.
49933         * modules/crypto/arctwo: Moved from ../.
49934         * modules/crypto/arctwo-tests: Moved from ../.
49935         * modules/crypto/des: Moved from ../.
49936         * modules/crypto/des-tests: Moved from ../.
49937         * modules/crypto/gc-arcfour: Moved from ../.
49938         * modules/crypto/gc-arcfour-tests: Moved from ../.
49939         * modules/crypto/gc-arctwo: Moved from ../.
49940         * modules/crypto/gc-arctwo-tests: Moved from ../.
49941         * modules/crypto/gc-des: Moved from ../.
49942         * modules/crypto/gc-des-tests: Moved from ../.
49943         * modules/crypto/gc-hmac-md5: Moved from ../.
49944         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49945         * modules/crypto/gc-hmac-sha1: Moved from ../.
49946         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49947         * modules/crypto/gc-md2: Moved from ../.
49948         * modules/crypto/gc-md2-tests: Moved from ../.
49949         * modules/crypto/gc-md4: Moved from ../.
49950         * modules/crypto/gc-md4-tests: Moved from ../.
49951         * modules/crypto/gc-md5: Moved from ../.
49952         * modules/crypto/gc-md5-tests: Moved from ../.
49953         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49954         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49955         * modules/crypto/gc-random: Moved from ../.
49956         * modules/crypto/gc-rijndael: Moved from ../.
49957         * modules/crypto/gc-rijndael-tests: Moved from ../.
49958         * modules/crypto/gc-sha1: Moved from ../.
49959         * modules/crypto/gc-sha1-tests: Moved from ../.
49960         * modules/crypto/gc-tests: Moved from ../.
49961         * modules/crypto/hmac-md5: Moved from ../.
49962         * modules/crypto/hmac-md5-tests: Moved from ../.
49963         * modules/crypto/hmac-sha1: Moved from ../.
49964         * modules/crypto/hmac-sha1-tests: Moved from ../.
49965         * modules/crypto/md2: Moved from ../.
49966         * modules/crypto/md2-tests: Moved from ../.
49967         * modules/crypto/md4: Moved from ../.
49968         * modules/crypto/md4-tests: Moved from ../.
49969         * modules/crypto/md5: Moved from ../.
49970         * modules/crypto/md5-tests: Moved from ../.
49971         * modules/crypto/memxor: Moved from ../.
49972         * modules/crypto/rijndael: Moved from ../.
49973         * modules/crypto/rijndael-tests: Moved from ../.
49974         * modules/crypto/sha1: Moved from ../.
49975
49976 2007-03-30  James Youngman  <jay@gnu.org>
49977
49978         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49979         rename() to change the ctime of a file (because ctime is unaffected
49980         by rename on jfs2 on AIX 5.1).
49981         (main): Start by doing cleanup, in case a previous run failed leaving
49982         test files behind.
49983
49984 2007-03-31  Bruno Haible  <bruno@clisp.org>
49985
49986         Support old proprietary implementations of iconv.
49987         * modules/iconv_open: New file.
49988         * lib/iconv_.h: New file.
49989         * m4/iconv_h.m4: New file.
49990         * lib/iconv_open.c: New file.
49991         * lib/iconv_open-aix.gperf: New file.
49992         * lib/iconv_open-hpux.gperf: New file.
49993         * lib/iconv_open-irix.gperf: New file.
49994         * lib/iconv_open-osf.gperf: New file.
49995         * m4/iconv_open.m4: New file.
49996         * modules/linebreak (Depends-on): Add iconv_open.
49997         * modules/striconv (Depends-on): Likewise.
49998         * modules/striconveh (Depends-on): Likewise.
49999         * modules/unicodeio (Depends-on): Likewise.
50000         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50001         (iconv_t)(-1).
50002         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50003         conversion if cd is (iconv_t)(-1).
50004         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50005         is not possible.
50006
50007 2007-03-31  Bruno Haible  <bruno@clisp.org>
50008
50009         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50010         work on Solaris either. Protect also second use of "autodetect_jp".
50011
50012 2007-03-31  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50015         the function is not present.
50016
50017 2007-03-31  Bruno Haible  <bruno@clisp.org>
50018
50019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50020         the function is not present.
50021
50022 2007-03-31  Bruno Haible  <bruno@clisp.org>
50023
50024         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50025         a bug in HP-UX iconv_open().
50026
50027 2007-03-31  Bruno Haible  <bruno@clisp.org>
50028
50029         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50030         (Mathematics <math.h>): New section, add fpieee.
50031         (Input/output <stdio.h>): Add fseterr.
50032         (Mathematics <math.h>): New section, add printf-frexp.
50033         (Container data structures): Add sublist.
50034         (Core language properties): Add fpucw, inline.
50035         (Functions for greatest-width integer types <inttypes.h>): Add
50036         imaxabs, imaxdiv, inttypes.
50037         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50038         isnanl-nolibm, ldexp.
50039         (Mathematics <math.h>): New section, add printf-frexpl.
50040         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50041         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50042         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50043         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50044         (Unicode string functions): Add unistr/u*-mbtoucr.
50045         (Java): Add javacomp-script, javaexec-script.
50046         (C#): Add csharpcomp-script, csharpexec-script.
50047         (Support for building libraries and executables): Add havelib,
50048         relocatable-*.
50049         (Support for maintaining and releasing projects): Renamed from
50050         'Support for maintaining and release projects'. Add announce-gen.
50051
50052 2007-03-31  Bruno Haible  <bruno@clisp.org>
50053
50054         * README: Talk primarily about git.
50055         (git and CVS): Renamed from CVS.
50056         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50057         gnulib is available through git.
50058         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50059
50060 2007-03-30  Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50063         * lib/poll_.h: Likewise.
50064         * lib/stat_.h: Likewise.
50065         * lib/sys_time_.h: Likewise.
50066         * lib/sysexit_.h: Likewise.
50067         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50068         * lib/stdbool_.h: Likewise.
50069         * lib/byteswap_.h: Add double-inclusion guard.
50070
50071 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50072
50073         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50074
50075 2007-03-30  Karl Berry  <karl@gnu.org>
50076
50077         * config/srclist-update: double space after USA in the license
50078         substitution, since that's how it's usually (?) written.
50079
50080 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50081
50082         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50083         reported by Bruno Haible.
50084
50085 2007-03-29  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50088         a bug in AIX iconv().
50089
50090 2007-03-29  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/ldexpl-tests: New file.
50093         * tests/test-ldexpl.c: New file.
50094
50095 2007-03-29  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/ldexpl.c: Include fpucw.h.
50098         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50099         multiplication.
50100         * modules/ldexpl (Depends-on): Add fpucw.
50101
50102 2007-03-29  Bruno Haible  <bruno@clisp.org>
50103
50104         * modules/ldexpl: New file.
50105         * m4/ldexpl.m4: New file.
50106         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50107         set.
50108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50109         REPLACE_LDEXPL.
50110         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50111         REPLACE_LDEXPL.
50112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50113         gl_FUNC_LDEXPL_WORKS.
50114         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50115         * modules/mathl (Files): Remove lib/ldexpl.c.
50116         (Depends-on): Add ldexpl.
50117
50118 2007-03-29  Bruno Haible  <bruno@clisp.org>
50119
50120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50121
50122 2007-03-29  Bruno Haible  <bruno@clisp.org>
50123
50124         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50125         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50126         and possibly also HP-UX.
50127         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50128         work on AIX, IRIX, HP-UX, OSF/1.
50129         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50130         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50131         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50132         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50133         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50134         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50135
50136 2007-03-29  Bruno Haible  <bruno@clisp.org>
50137
50138         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50139
50140 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50141
50142         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50143         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50144
50145 2007-03-29  Eric Blake  <ebb9@byu.net>
50146
50147         * lib/acl-internal.h: Remove redundant include.
50148         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50149         Cygwin when a file is locked.
50150
50151 2007-03-29  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50154         file.
50155         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50156
50157 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50158
50159         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50160         try to remove a parent directory if the child couldn't be removed
50161         (except for the first rmdir, which could fail because the child
50162         doesn't exist).  Problem reported by Jeff Blaine in
50163         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50164
50165 2007-03-28  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/striconveh.c (utf8conv_carefully): New function.
50168         (mem_cd_iconveh_internal): Invoke it.
50169
50170 2007-03-28  Bruno Haible  <bruno@clisp.org>
50171
50172         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50173         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50174         input.
50175         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50176         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50177         unistr/u8-uctomb.
50178
50179 2007-03-28  Bruno Haible  <bruno@clisp.org>
50180
50181         * modules/unistr/u8-mbtoucr: New file.
50182         * lib/unistr/u8-mbtoucr.c: New file.
50183         * modules/unistr/u16-mbtoucr: New file.
50184         * lib/unistr/u16-mbtoucr.c: New file.
50185         * modules/unistr/u16-mbtoucr: New file.
50186         * lib/unistr/u16-mbtoucr.c: New file.
50187         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50188
50189 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50190             Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50193         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50194         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50195
50196         * m4/stdio_h.m4: Add stubs for vasprintf too.
50197
50198         * modules/stdio: Support vasprintf in sed command.
50199
50200         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50201         vasprintf.h.  Add stdio module indicator.
50202
50203         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50204         vasprintf.h.
50205
50206         * lib/vasprintf.h: File removed.
50207
50208         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50209         * lib/vasprintf.c: Ditto.
50210         * lib/xvasprintf.c: Ditto.
50211         * tests/test-vasprintf-posix.c: Ditto.
50212         * tests/test-vasprintf.c: Ditto.
50213
50214 2007-03-27  Bruno Haible  <bruno@clisp.org>
50215
50216         Make vasnprintf multithread-safe.
50217         * lib/vasnprintf.c (decimal_point_char): New function.
50218         (VASNPRINTF): Use it.
50219         Suggested by Simon Josefsson.
50220
50221 2007-03-27  Eric Blake  <ebb9@byu.net>
50222
50223         Support sub-second birthtime on cygwin.
50224         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50225         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50226         (get_stat_birthtime): Also work with st_birthtim.
50227
50228 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50231         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50232         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50233         (get_stat_birthtime_ns): Simplify compile-time tests.
50234         (get_stat_birthtime): Change the API to look like
50235         get_stat_mtime etc., except return a negative tv_nsec on error.
50236         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50237         Don't check for "spare" fields.
50238         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50239         or for struct stat.st_birthtime, as these tests aren't used.
50240         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50241
50242 2007-03-27  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/stat-time.h: Include <sys/stat.h>.
50245
50246 2007-03-27  James Youngman  <jay@gnu.org>
50247
50248         * lib/stat-time.h (get_stat_birthtime): New function for
50249           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50250         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50251           and its variants.
50252         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50253         * modules/stat-time-test: New file.
50254         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50255
50256 2007-03-26  Bruno Haible  <bruno@clisp.org>
50257
50258         Better support of signalling NaNs.
50259         * lib/atanl.c: Include isnanl.h.
50260         (atanl): Perform test for NaN at the beginning of the function and
50261         through a call to isnanl.
50262         * lib/cosl.c: Include isnanl.h.
50263         (cosl): Perform test for NaN at the beginning of the function and
50264         through a call to isnanl.
50265         * lib/ldexpl.c: Include isnanl.h.
50266         (ldexpl): Perform test for NaN through a call to isnanl.
50267         * lib/logl.c: Include isnanl.h.
50268         (logl): Perform test for NaN at the beginning of the function and
50269         through a call to isnanl.
50270         * lib/sinl.c: Include isnanl.h.
50271         (sinl): Perform test for NaN at the beginning of the function and
50272         through a call to isnanl.
50273         * lib/sqrtl.c: Include isnanl.h.
50274         (sqrtl): Perform test for NaN at the beginning of the function and
50275         through a call to isnanl.
50276         * lib/tanl.c: Include isnanl.h.
50277         (tanl): Perform test for NaN at the beginning of the function and
50278         through a call to isnanl.
50279         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50280         * modules/mathl (Depends-on): Add isnanl.
50281
50282 2007-03-26  Eric Blake  <ebb9@byu.net>
50283
50284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50285         regression in logic sense of previous patch.
50286
50287 2007-03-26  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50290         unportable shell command "if ! ...".
50291         Reported by Ralf Wildenhues.
50292
50293 2007-03-25  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50296         <sysexits.h> file, and only add EX_CONFIG.
50297         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50298         absolute file name and whether it is sufficient. Substitute also
50299         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50300         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50301         ABSOLUTE_SYSEXITS_H into sysexits.h.
50302
50303 2007-03-25  Bruno Haible  <bruno@clisp.org>
50304
50305         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50306         hints is NULL.
50307
50308 2007-03-25  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50311         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50312
50313 2007-03-25  Bruno Haible  <bruno@clisp.org>
50314
50315         * lib/vasnprintf.c: Include langinfo.h.
50316         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50317         multithread-safe.
50318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50327         Reported by Simon Josefsson.
50328
50329 2007-03-25  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50332         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50333         * modules/vasnprintf (Depends-on): Add stdint.
50334
50335 2007-03-25  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/fpieee: New file.
50338         * m4/fpieee.m4: New file.
50339         * modules/isnan-nolibm (Depends-on): Add fpieee.
50340         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50341         * modules/isnanl (Depends-on): Add fpieee.
50342
50343 2007-03-25  Bruno Haible  <bruno@clisp.org>
50344
50345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50346
50347 2007-03-25  Bruno Haible  <bruno@clisp.org>
50348
50349         Avoid test failures on IRIX 6.5.
50350         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50351         (main): Use it.
50352         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50353         macros.
50354         (main): Use them.
50355
50356 2007-03-25  Bruno Haible  <bruno@clisp.org>
50357
50358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50359         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50360         exists but doesn't work.
50361         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50362         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50364         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50365
50366 2007-03-25  Bruno Haible  <bruno@clisp.org>
50367
50368         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50369         returns inf. Needed on IRIX 6.5.
50370
50371 2007-03-25  Bruno Haible  <bruno@clisp.org>
50372
50373         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50374         (main): Use isnanl instead of x != x idiom.
50375         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50376
50377         * tests/test-frexp.c: Include isnan.h.
50378         (main): Use isnan instead of x != x idiom.
50379         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50380
50381 2007-03-25  Bruno Haible  <bruno@clisp.org>
50382
50383         * tests/test-frexp.c (NaN): New function/macro.
50384         (main): Use it instead of 0.0 / 0.0.
50385         * tests/test-isnan.c (NaN): New function/macro.
50386         (main): Use it instead of 0.0 / 0.0.
50387         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50388         (test_function): Use it instead of 0.0 / 0.0.
50389         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50390         (test_function): Use it instead of 0.0 / 0.0.
50391         * tests/test-snprintf-posix.h (NaN): New function/macro.
50392         (test_function): Use it instead of 0.0 / 0.0.
50393         * tests/test-sprintf-posix.h (NaN): New function/macro.
50394         (test_function): Use it instead of 0.0 / 0.0.
50395         * tests/test-fprintf-posix.h (NaN): New function/macro.
50396         (test_function): Use it instead of 0.0 / 0.0.
50397         * tests/test-printf-posix.h (NaN): New function/macro.
50398         (test_function): Use it instead of 0.0 / 0.0.
50399
50400         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50401
50402 2007-03-25  Bruno Haible  <bruno@clisp.org>
50403
50404         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50405
50406 2007-03-25  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/regexec.c (merge_state_with_log): Make static.
50409
50410 2007-03-25  Bruno Haible  <bruno@clisp.org>
50411
50412         * lib/trigl.c (kernel_rem_pio2): Make static.
50413
50414 2007-03-25  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/sincosl.c (sincosl_table): Make static.
50417
50418 2007-03-25  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50421         if the compiler does not support C99.
50422
50423 2007-03-25  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/time (Makefile.am): Ensure all rule action lines start with a
50426         tab.
50427
50428 2007-03-24  Bruno Haible  <bruno@clisp.org>
50429
50430         * modules/tsearch-tests: New file.
50431         * tests/test-tsearch.sh: New file.
50432         * tests/test-tsearch.c: New file, mostly copied from glibc.
50433
50434         * modules/search-tests: New file.
50435         * tests/test-search.c: New file.
50436
50437         * modules/search: New file.
50438         * lib/search_.h: New file, incorporating lib/tsearch.h.
50439         * m4/search_h.m4: New file.
50440         * lib/tsearch.h: Remove file.
50441         * lib/tsearch.c: Include search.h instead of tsearch.h.
50442         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50443         HAVE_TSEARCH.
50444         * modules/tsearch (Files): Remove lib/tsearch.h.
50445         (Depends-on): Add search.
50446         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50447         (Include): Change tsearch.h into search.h.
50448
50449 2007-03-24  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/fpucw: New file.
50452         * lib/fpucw.h: New file.
50453         * lib/frexp.c: Include fpucw.h.
50454         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50455         (FUNC): Use them.
50456         * lib/printf-frexp.c: Include fpucw.h.
50457         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50458         (FUNC): Use them.
50459         * lib/vasnprintf.c: Include fpucw.h.
50460         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50461         'long double' calculations.
50462         * tests/test-frexpl.c: Include fpucw.h.
50463         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50464         * tests/test-printf-frexpl.c: Include fpucw.h.
50465         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50466         * modules/frexpl (Depends-on): Add fpucw.
50467         * modules/printf-frexpl (Depends-on): Likewise.
50468         * modules/fprintf-posix (Depends-on): Likewise.
50469         * modules/snprintf-posix (Depends-on): Likewise.
50470         * modules/sprintf-posix (Depends-on): Likewise.
50471         * modules/vasnprintf-posix (Depends-on): Likewise.
50472         * modules/vasprintf-posix (Depends-on): Likewise.
50473         * modules/vfprintf-posix (Depends-on): Likewise.
50474         * modules/vsnprintf-posix (Depends-on): Likewise.
50475         * modules/vsprintf-posix (Depends-on): Likewise.
50476         * modules/frexpl-tests (Depends-on): Likewise.
50477         * modules/printf-frexpl-tests (Depends-on): Likewise.
50478
50479 2007-03-24  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/float+.h: New file.
50482         * lib/isnan.c: Include float+.h.
50483         (SIZE): New macro.
50484         (FUNC): Compare only SIZE bytes of the value.
50485         * lib/vasnprintf.c: Include float+.h.
50486         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50487         SIZEOF_LDBL or SIZEOF_DBL bytes.
50488         * modules/isnan-nolibm (Files): Add lib/float+.h.
50489         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50490         * modules/isnanl (Files): Add lib/float+.h.
50491         * modules/vasnprintf (Files): Add lib/float+.h.
50492
50493 2007-03-24  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50496         include isnanl-nolibm.h.
50497
50498 2007-03-24  Bruno Haible  <bruno@clisp.org>
50499
50500         * tests/test-read-file.c (main): Don't produce spurious output for
50501         expected situations. Make the test fail if it encountered unexpected
50502         results.
50503
50504 2007-03-24  Bruno Haible  <bruno@clisp.org>
50505
50506         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50507         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50508
50509 2007-03-24  Bruno Haible  <bruno@clisp.org>
50510
50511         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50512
50513 2007-03-24  Bruno Haible  <bruno@clisp.org>
50514
50515         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50516         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50517
50518         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50519         * modules/utf8-ucs4: Turn into a symbolic link to module
50520         unistr/u8-mbtouc.
50521
50522         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50523         utf8-ucs4-unsafe.
50524         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50525         unistr/u8-mbtouc-unsafe.
50526
50527         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50528         * modules/utf16-ucs4: Turn into a symbolic link to module
50529         unistr/u16-mbtouc.
50530
50531         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50532         utf16-ucs4-unsafe.
50533         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50534         unistr/u16-mbtouc-unsafe.
50535
50536         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50537         * modules/ucs4-utf8: Turn into a symbolic link to module
50538         unistr/u8-ubtomb.
50539
50540         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50541         * modules/ucs4-utf16: Turn into a symbolic link to module
50542         unistr/u16-ubtomb.
50543
50544 2007-03-24  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50547         Enable the function only if HAVE_INLINE.
50548         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50549         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50550         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50551         Enable the function only if HAVE_INLINE.
50552         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50553         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50554         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50555         Enable the function only if HAVE_INLINE.
50556         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50557         Enable the function only if HAVE_INLINE.
50558         * modules/utf8-ucs4: Update.
50559         * modules/utf8-ucs4-unsafe: Update.
50560         * modules/utf16-ucs4: Update.
50561         * modules/utf16-ucs4-unsafe: Update.
50562         * modules/ucs4-utf8: Update.
50563         * modules/ucs4-utf16: Update.
50564
50565 2007-03-24  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/utf8-ucs4.h: Remove file.
50568         * lib/utf8-ucs4-unsafe.h: Remove file.
50569         * lib/utf16-ucs4.h: Remove file.
50570         * lib/utf16-ucs4-unsafe.h: Remove file.
50571         * lib/ucs4-utf8.h: Remove file.
50572         * lib/ucs4-utf16.h: Remove file.
50573         * lib/unistr.h: Include their previous contents.
50574         * m4/utf-ucs4.m4: Remove file.
50575         * m4/ucs4-utf.m4: Remove file.
50576         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50577         (Depends-on): Add unistr/base.
50578         (configure.ac): Remove gl_UTF_UCS4.
50579         (Makefile.am): Update.
50580         (Include): Change to unistr.h.
50581         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50582         (Depends-on): Add unistr/base.
50583         (configure.ac): Remove gl_UTF_UCS4.
50584         (Makefile.am): Update.
50585         (Include): Change to unistr.h.
50586         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50587         (Depends-on): Add unistr/base.
50588         (configure.ac): Remove gl_UTF_UCS4.
50589         (Makefile.am): Update.
50590         (Include): Change to unistr.h.
50591         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50592         (Depends-on): Add unistr/base.
50593         (configure.ac): Remove gl_UTF_UCS4.
50594         (Makefile.am): Update.
50595         (Include): Change to unistr.h.
50596         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50597         (Depends-on): Add unistr/base.
50598         (configure.ac): Remove gl_UCS4_UTF.
50599         (Makefile.am): Update.
50600         (Include): Change to unistr.h.
50601         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50602         (Depends-on): Add unistr/base.
50603         (configure.ac): Remove gl_UCS4_UTF.
50604         (Makefile.am): Update.
50605         (Include): Change to unistr.h.
50606         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50607         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50608         utf8-ucs4-unsafe.h.
50609         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50610         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50611         utf16-ucs4-unsafe.h.
50612         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50613         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50614         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50615         * lib/unistr/u8-strchr.c: Likewise.
50616         * lib/unistr/u8-strrchr.c: Likewise.
50617         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50618         * lib/unistr/u16-strchr.c: Likewise.
50619         * lib/unistr/u16-strrchr.c: Likewise.
50620         * lib/striconveh.c: Update.
50621         * lib/linebreak.c: Update.
50622
50623 2007-03-24  Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50626         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50627
50628 2007-03-22  Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50631
50632 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50633
50634         * MODULES.html.sh (File system functions): New module write-any-file.
50635         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50636         * m4/write-any-file.m4: New files.
50637
50638 2007-03-23  Eric Blake  <ebb9@byu.net>
50639
50640         * gnulib-tool: Rearrange space-tab sequences, since some editors
50641         like to eat them.
50642
50643 2007-03-23  Eric Blake  <ebb9@byu.net>
50644
50645         * lib/version-etc.c (version_etc_va): Update license wording to
50646         be more concise.  Recommended by Richard Stallman.
50647
50648 2007-03-22  Bruno Haible  <bruno@clisp.org>
50649
50650         * lib/poll.c (MSG_PEEK): New fallback definition.
50651
50652 2007-03-22  Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50655         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50656         (main): Update.
50657         Fixes a compilation error on BeOS.
50658
50659 2007-03-22  Bruno Haible  <bruno@clisp.org>
50660
50661         * modules/frexpl-tests: New file.
50662         * tests/test-frexpl.c: New file.
50663
50664         * modules/frexpl: New file.
50665         * m4/frexpl.m4: New file.
50666         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50667         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50669         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50670         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50671         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50672
50673 2007-03-22  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/frexpl.c: Share code with lib/frexp.c.
50676         * modules/mathl (Files): Add lib/frexp.c.
50677         (Depends-on): Add isnanl-nolibm.
50678
50679 2007-03-22  Bruno Haible  <bruno@clisp.org>
50680
50681         * modules/printf-frexp (Files): Add m4/frexp.m4.
50682         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50683         only if the found frexp function actually works.
50684
50685 2007-03-22  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/frexp.c: Remove older implementation that uses divisions.
50688
50689 2007-03-21  Bruno Haible  <bruno@clisp.org>
50690
50691         * modules/frexp-tests: New file.
50692         * tests/test-frexp.c: New file.
50693
50694         * modules/frexp: New file.
50695         * lib/frexp.c: New file.
50696         * m4/frexp.m4: New file.
50697         * lib/math_.h (frexp): New declaration.
50698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50699         REPLACE_FREXP.
50700         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50701
50702 2007-03-21  Bruno Haible  <bruno@clisp.org>
50703
50704         * modules/isnanl-tests: New file.
50705         * tests/test-isnanl.c: New file.
50706
50707         * modules/isnanl: New file.
50708         * lib/isnanl.h: New file.
50709         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50710         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50711         gl_FUNC_ISNANL_WORKS.
50712         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50713         New macros.
50714
50715 2007-03-21  Bruno Haible  <bruno@clisp.org>
50716
50717         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50718         lib/isnanl.h.
50719         (Include): Update.
50720         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50721         * lib/vasnprintf.c: Update.
50722         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50723         tests/test-isnanl.h, remove tests/test-isnanl.c.
50724         (Makefile.am): Update.
50725         * tests/test-isnanl-nolibm.c: New file.
50726         * tests/test-isnanl.h: New file.
50727         * tests/test-isnanl.c: Remove file.
50728
50729 2007-03-21  Jim Meyering  <jim@meyering.net>
50730
50731         When trying to open ".", treat ESTALE like EACCES.
50732         * lib/savewd.c (savewd_save): Resort to forking not just upon
50733         failure with EACCES, but also when errno is ESTALE.
50734
50735 2007-03-20  Bruno Haible  <bruno@clisp.org>
50736
50737         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50738         Needed on AIX 5.1. Reported by Matthew Woehlke.
50739
50740 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         Suggestions by Bruno Haible:
50743         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50744         our own.
50745         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50746         * modules/acl (Depends-on): Add gettext.
50747
50748 2007-03-19  Bruno Haible  <bruno@clisp.org>
50749
50750         * modules/iconvme: Remove file.
50751         * lib/iconvme.h: Remove file.
50752         * lib/iconvme.c: Remove file.
50753         * m4/iconvme.m4: Remove file.
50754
50755 2007-03-19  Bruno Haible  <bruno@clisp.org>
50756
50757         * doc/relocatable-maint.texi: Break long shell script line.
50758         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50759
50760 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50761
50762         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50763         handle file_has_acl.
50764         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50765         * lib/acl.c: Move header inclusions and related macro defns into
50766         lib/acl-internal.h.
50767         (S_ISLNK): Remove defn, since that's now done for us.
50768         (file_has_acl): Move to lib/file-has-acl.c.
50769         Call acl_trivial if available.  This is the crucial part of the fix.
50770         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50771         shared within the library.  Rewrite a bit, partly to make it compatible
50772         with the GNU coding style.
50773         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50774         Remove unnecessary double-quotes.
50775         Don't test for acl_to_text; the build will catch that.
50776         Replace acl_entries if it doesn't exist and it is needed.
50777         Check for -lsec and acl_trivial (as used on Solaris 10).
50778         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50779         lib/file-has-acl.c.
50780         (Depends-on): Add sys_stat, for S_ISLNK.
50781
50782 2007-03-19  Ben Pfaff  <blp@gnu.org>
50783
50784         * doc/gnulib.texi: Fix typos.
50785         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50786
50787 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50788
50789         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50790         If size is zero here, buf must be zero.
50791
50792 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50793
50794         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50795         <bruno@clisp.org>.
50796
50797 2007-03-18  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50800         Suggested by Eric Blake.
50801
50802 2007-03-18  Ben Pfaff  <blp@gnu.org>
50803
50804         * doc/relocatable.texi: Recommend using as prefix a directory
50805         that does not exist and will never be created.  Based on
50806         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50807         and others.
50808
50809 2007-03-17  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/fchownat.c: Include lchown.h.
50812
50813 2007-03-17  Bruno Haible  <bruno@clisp.org>
50814
50815         Fix endless loop when the given allocated size was > INT_MAX.
50816         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50817         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50818         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50819         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50820         * lib/sprintf.c (sprintf): Likewise.
50821
50822 2007-03-17  Bruno Haible  <bruno@clisp.org>
50823
50824         * tests/test-argp-2.sh (func_compare): Output a context diff.
50825
50826 2007-03-17  Bruno Haible  <bruno@clisp.org>
50827
50828         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50829         locale's decimal-point character.
50830
50831 2007-03-17  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50834         before comparing it. Needed because on some platforms (e.g. x86) a
50835         'long double' occupies less bytes than sizeof (long double).
50836
50837 2007-03-17  Bruno Haible  <bruno@clisp.org>
50838
50839         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50840         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50841         * tests/test-getaddrinfo.c (simple): Likewise.
50842         * tests/test-read-file.c (main): Likewise.
50843
50844 2007-03-17  Bruno Haible  <bruno@clisp.org>
50845
50846         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50847
50848 2007-03-17  Bruno Haible  <bruno@clisp.org>
50849
50850         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50851         unused variable.
50852
50853 2007-03-17  Bruno Haible  <bruno@clisp.org>
50854
50855         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50856         * tests/test-c-strncasecmp.c: Likewise.
50857
50858 2007-03-17  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/stdlib (Depends-on): Add unistd.
50861         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50862         Needed for MacOS X 10.3.
50863
50864 2007-03-17  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50867
50868 2007-03-17  Bruno Haible  <bruno@clisp.org>
50869
50870         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50871
50872 2007-03-17  Bruno Haible  <bruno@clisp.org>
50873
50874         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50875         to reflect files copied from gnulib (with or without modifications).
50876         Suggested by Jim Meyering.
50877
50878 2007-03-17  Eric Blake  <ebb9@byu.net>
50879
50880         * NEWS: Document stdlib change from 2007-02-18.
50881
50882 2007-03-17  Jim Meyering  <jim@meyering.net>
50883
50884         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50885         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50886         someone uses a name containing shell meta-characters.
50887         Reported by Alfred M. Szmidt.
50888
50889         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50890
50891 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50892
50893         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50894         and copy gettext configuration files only if configure.ac contains
50895         a use of AM_GNU_GETTEXT_VERSION.
50896
50897 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50898
50899         * build-aux/bootstrap (gnulib_name): New variable.
50900         (gnulib_tool_options): Use it.
50901
50902 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50903
50904         * tests/test-des.c: Use new namespace.
50905
50906 2007-03-15  Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50909         Reported by James Youngman <jay@gnu.org>.
50910
50911 2007-03-15  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50914         declared prototype. Needed with cc on OSF/1 5.1.
50915
50916 2007-03-15  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50919         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50920         (struct gl_list_implementation): Add dispose_fn argument to the
50921         'create_empty', 'create' methods.
50922         (struct gl_list_impl_base): Add field 'dispose_fn'.
50923         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50924         argument.
50925         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50926         dispose_fn argument.
50927         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50928         dispose_fn on the dropped values.
50929         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50930         dispose_fn argument.
50931         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50932         dropped values.
50933         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50934         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50935         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50936         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50937         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50938         argument.
50939         (gl_tree_list_free): Call dispose_fn on the dropped values.
50940         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50941         the dropped values.
50942         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50943         Add dispose_fn argument.
50944         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50945         Call dispose_fn on the dropped values.
50946         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50947         Add dispose_fn argument.
50948         (gl_sublist_create): Initialize the 'dispose_fn' field.
50949         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50950         * tests/test-array_list.c (main): Update.
50951         * tests/test-carray_list.c (main): Update.
50952         * tests/test-avltree_list.c (main): Update.
50953         * tests/test-rbtree_list.c (main): Update.
50954         * tests/test-avltreehash_list.c (main): Update.
50955         * tests/test-rbtreehash_list.c (main): Update.
50956         * tests/test-linked_list.c (main): Update.
50957         * tests/test-linkedhash_list.c (main): Update.
50958         * tests/test-array_oset.c (main): Update.
50959
50960 2007-03-15  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50963         (gl_oset_create_empty): Add dispose_fn argument.
50964         (struct gl_oset_implementation): Add dispose_fn argument to
50965         'create_empty' method.
50966         (struct gl_oset_impl_base): Add dispose_fn field.
50967         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50968         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50969         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50970         values.
50971         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50972         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50973         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50974         dropped value.
50975         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50976         dropped value.
50977         * tests/test-array_oset.c (main): Update.
50978         * tests/test-avltree_oset.c (main): Update.
50979         * tests/test-rbtree_oset.c (main): Update.
50980         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50981
50982 2007-03-13  Bruno Haible  <bruno@clisp.org>
50983
50984         * tests/test-stdbool.c (i): Update after last patch.
50985
50986 2007-03-12  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50989         the iswprint macro. Needed on Solaris 2.5.1.
50990
50991 2007-03-12  Bruno Haible  <bruno@clisp.org>
50992
50993         * tests/test-printf-frexp.c (main): Declare x as volatile.
50994
50995 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50996
50997         * doc/gnulib.texi (Build robot for gnulib): New section.
50998
50999 2007-03-12  Jim Meyering  <jim@meyering.net>
51000
51001         * build-aux/bootstrap: New file.
51002         * build-aux/bootstrap.conf: New file, from coreutils.
51003
51004 2007-03-11  Bruno Haible  <bruno@clisp.org>
51005
51006         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51007
51008 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51009
51010         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51011         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51012         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51013
51014 2007-03-11  Bruno Haible  <bruno@clisp.org>
51015
51016         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51017         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51018
51019 2007-03-11  Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51022         formula. Needed for SunPRO C 5.0.
51023
51024 2007-03-11  Bruno Haible  <bruno@clisp.org>
51025
51026         * modules/long-options (Depends-on): Add getopt.
51027
51028 2007-03-11  Bruno Haible  <bruno@clisp.org>
51029
51030         * modules/modechange (Depends-on): Add stdbool.
51031
51032 2007-03-11  Bruno Haible  <bruno@clisp.org>
51033
51034         * modules/i-ring (Depends-on): Add stdbool.
51035
51036 2007-03-11  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/gc-des (Depends-on): Add stdbool.
51039
51040 2007-03-11  Bruno Haible  <bruno@clisp.org>
51041
51042         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51043
51044 2007-03-11  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51047
51048 2007-03-11  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51051
51052 2007-03-11  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/vasnprintf.c (sprintf): Undefine.
51055
51056 2007-03-11  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51059         initializers in SunPRO C and Compaq C compilers.
51060
51061 2007-03-11  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51064         decrementing code ANSI C compliant.
51065
51066 2007-03-11  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51069         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51070
51071 2007-03-11  Bruno Haible  <bruno@clisp.org>
51072
51073         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51074         <stdbool.h> substitute doesn't pass.
51075
51076 2007-03-11  Bruno Haible  <bruno@clisp.org>
51077
51078         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51079
51080 2007-03-11  Bruno Haible  <bruno@clisp.org>
51081
51082         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51083         script, for submission to autobuild.josefsson.org.
51084
51085 2007-03-10  Bruno Haible  <bruno@clisp.org>
51086
51087         * modules/canonicalize-lgpl-tests: New file.
51088         * tests/test-canonicalize-lgpl.sh: New file.
51089         * tests/test-canonicalize-lgpl.c: New file.
51090
51091         * modules/c-strcase-tests: New file.
51092         * tests/test-c-strcase.sh: New file.
51093         * tests/test-c-strcasecmp.c: New file.
51094         * tests/test-c-strncasecmp.c: New file.
51095
51096         * modules/atexit-tests: New file.
51097         * tests/test-atexit.sh: New file.
51098         * tests/test-atexit.c: New file.
51099
51100 2007-03-10  Bruno Haible  <bruno@clisp.org>
51101
51102         * tests/test-binary-io.sh: Use temporary filenames that are not so
51103         likely to clash with those of other tests (in a parallel make).
51104         * tests/test-binary-io.c: Likewise.
51105
51106 2007-03-10  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51109         fallback; use #error instead.
51110         Suggested by Simon Josefsson.
51111
51112 2007-03-10  Bruno Haible  <bruno@clisp.org>
51113
51114         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51115         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51116         first and the last.
51117
51118 2007-03-10  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51121
51122 2007-03-10  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51125         "make distcheck".
51126         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51127         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51128         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51129
51130 2007-03-10  Bruno Haible  <bruno@clisp.org>
51131
51132         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51133         variable.
51134         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51135         variable.
51136
51137 2007-03-09  Eric Blake  <ebb9@byu.net>
51138         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51139
51140         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51141         types are not being provided by gnulib.
51142         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51143         types are supported.
51144
51145 2007-03-10  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/stdio_.h (__attribute__): New macro.
51148         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51149         vsprintf): Specify __attribute__ __format__ for GCC.
51150         Suggested by Eric Blake.
51151
51152 2007-03-09  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/printf-posix-tests: New file.
51155         * tests/test-printf-posix.sh: New file.
51156         * tests/test-printf-posix.c: New file.
51157
51158         * modules/printf-posix: New file.
51159         * lib/printf.c: New file.
51160         * m4/printf-posix-rpl.m4: New file.
51161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51162         REPLACE_PRINTF.
51163         * lib/stdio_.h (printf): New declaration.
51164         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51165         ____strfmon____): New macros.
51166         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51167         REPLACE_PRINTF.
51168
51169 2007-03-09  Bruno Haible  <bruno@clisp.org>
51170
51171         * tests/test-vasnprintf-posix2.sh: New file.
51172         * tests/test-vasnprintf-posix2.c: New file.
51173         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51174         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51175         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51176
51177         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51178         a locale dependent decimal point, rather than always '.'.
51179
51180 2007-03-09  Eric Blake  <ebb9@byu.net>
51181
51182         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51183         spite of platforms like Tandem/NSK that define it to -1.
51184
51185 2007-03-08  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/vprintf-posix-tests: New file.
51188         * tests/test-vprintf-posix.sh: New file.
51189         * tests/test-vprintf-posix.c: New file.
51190         * tests/test-printf-posix.h: New file.
51191
51192         * modules/vprintf-posix: New file.
51193         * lib/vprintf.c: New file.
51194         * m4/vprintf-posix.m4: New file.
51195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51196         REPLACE_VPRINTF.
51197         * lib/stdio_.h (vprintf): New declaration.
51198         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51199         REPLACE_VPRINTF.
51200
51201 2007-03-08  Bruno Haible  <bruno@clisp.org>
51202
51203         * modules/fprintf-posix-tests: New file.
51204         * tests/test-fprintf-posix.sh: New file.
51205         * tests/test-fprintf-posix.c: New file.
51206
51207         * modules/fprintf-posix: New file.
51208         * lib/fprintf.c: New file.
51209         * m4/fprintf-posix.m4: New file.
51210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51211         REPLACE_FPRINTF.
51212         * lib/stdio_.h (fprintf): New declaration.
51213         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51214         REPLACE_FPRINTF.
51215
51216 2007-03-08  Bruno Haible  <bruno@clisp.org>
51217
51218         * modules/vfprintf-posix-tests: New file.
51219         * tests/test-vfprintf-posix.sh: New file.
51220         * tests/test-vfprintf-posix.c: New file.
51221         * tests/test-fprintf-posix.h: New file.
51222         * tests/test-fprintf-posix.out: New file.
51223
51224         * modules/vfprintf-posix: New file.
51225         * lib/vfprintf.c: New file.
51226         * m4/vfprintf-posix.m4: New file.
51227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51228         REPLACE_VFPRINTF.
51229         * lib/stdio_.h (vfprintf): New declaration.
51230         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51231         REPLACE_VFPRINTF.
51232
51233 2007-03-08  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51236
51237 2007-03-08  Bruno Haible  <bruno@clisp.org>
51238
51239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51240         instead of 'expr' invocations.
51241         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51246         Suggested by Paul Eggert.
51247
51248 2007-03-08  Bruno Haible  <bruno@clisp.org>
51249
51250         * modules/fseterr-tests: New file.
51251         * tests/test-fseterr.c: New file.
51252
51253         * modules/fseterr: New file.
51254         * lib/fseterr.h: New file.
51255         * lib/fseterr.c: New file.
51256
51257 2007-03-08  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51260         * lib/getopt_.h: Likewise.
51261         * lib/mbswidth.h: Likewise.
51262         * lib/setenv.h: Likewise.
51263         * lib/vasnprintf.h: Likewise.
51264         * lib/vasprintf.h: Likewise.
51265         * lib/verror.h: Likewise.
51266         * lib/xsetenv.h: Likewise.
51267         * lib/xvasprintf.h: Likewise.
51268
51269 2007-03-08  Jim Meyering  <jim@meyering.net>
51270
51271         * users.txt: Add parted.
51272
51273         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51274
51275 2007-03-07  Bruno Haible  <bruno@clisp.org>
51276
51277         * m4/printf.m4: Make the shell script snippets copy&pastable.
51278
51279 2007-03-02  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/netinet_in_.h: New file.
51282         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51283         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51284         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51285         (Depends-on): Add absolute-header.
51286         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51287         into netinet/in.h.
51288
51289 2007-03-03  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/sys_select_.h: New file.
51292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51293         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51294         * modules/sys_select (Files): Add lib/sys_select_.h.
51295         (Depends-on): Add absolute-header.
51296         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51297         into sys/select.h.
51298
51299 2007-03-02  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51302         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51303         values.
51304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51305         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51306         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51307         * modules/sys_socket (Depends-on): Add absolute-header.
51308         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51309         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51310         (Include): Remove requirement of inclusion of <sys/types.h>.
51311
51312 2007-03-02  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/byteswap_.h (bswap_32): Fix formula.
51315
51316 2007-03-06  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/sprintf-posix-tests: New file.
51319         * tests/test-sprintf-posix.c: New file.
51320
51321         * modules/sprintf-posix: New file.
51322         * lib/sprintf.c: New file.
51323         * m4/sprintf-posix.m4: New file.
51324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51325         REPLACE_SPRINTF.
51326         * lib/stdio_.h (sprintf): New declaration.
51327         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51328         REPLACE_SPRINTF.
51329
51330 2007-03-06  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/vsprintf-posix-tests: New file.
51333         * tests/test-vsprintf-posix.c: New file.
51334         * tests/test-sprintf-posix.h: New file.
51335
51336         * modules/vsprintf-posix: New file.
51337         * lib/vsprintf.c: New file.
51338         * m4/vsprintf-posix.m4: New file.
51339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51340         REPLACE_VSPRINTF.
51341         * lib/stdio_.h (vsprintf): New declaration.
51342         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51343         REPLACE_VSPRINTF.
51344
51345 2007-03-06  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/vsnprintf (Depend-on): Remove minmax.
51348
51349 2007-03-06  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/snprintf-posix-tests: New file.
51352         * tests/test-snprintf-posix.c: New file.
51353
51354         * modules/snprintf-posix: New file.
51355         * m4/snprintf-posix.m4: New file.
51356         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51357         gl_FUNC_SNPRINTF.
51358         (gl_FUNC_SNPRINTF): Invoke it.
51359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51360         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51361         is set.
51362         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51363
51364 2007-03-06  Bruno Haible  <bruno@clisp.org>
51365
51366         * modules/vsnprintf-posix-tests: New file.
51367         * tests/test-vsnprintf-posix.c: New file.
51368         * tests/test-snprintf-posix.h: New file.
51369
51370         * modules/vsnprintf-posix: New file.
51371         * m4/vsnprintf-posix.m4: New file.
51372         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51373         gl_FUNC_VSNPRINTF.
51374         (gl_FUNC_VSNPRINTF): Invoke it.
51375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51376         * lib/stdio_.h (vsnprintf): Define as a replacement if
51377         REPLACE_VSNPRINTF is set.
51378         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51379
51380 2007-03-06  Bruno Haible  <bruno@clisp.org>
51381
51382         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51384
51385 2007-03-06  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51388         (asinl): Declare also if HAVE_DECL_ASINL is set.
51389         (atanl): Declare also if HAVE_DECL_ATANL is set.
51390         (ceill): Declare also if HAVE_DECL_CEILL is set.
51391         (cosl): Declare also if HAVE_DECL_COSL is set.
51392         (expl): Declare also if HAVE_DECL_EXPL is set.
51393         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51394         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51395         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51396         (logl): Declare also if HAVE_DECL_LOGL is set.
51397         (sinl): Declare also if HAVE_DECL_SINL is set.
51398         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51399         (tanl): Declare also if HAVE_DECL_TANL is set.
51400         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51403         declaration of frexpl, ldexpl.
51404         * modules/printf-frexpl (Depends-on): Add math.
51405         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51406
51407 2007-03-05  Bruno Haible  <bruno@clisp.org>
51408
51409         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51410         frexpl and ldexpl are declared.
51411         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51412
51413 2007-03-05  Bruno Haible  <bruno@clisp.org>
51414
51415         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51416         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51417
51418 2007-03-05  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/stdio_.h: Include <stddef.h>.
51421
51422 2007-03-05  Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51425
51426 2007-03-05  Bruno Haible  <bruno@clisp.org>
51427
51428         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51429         NetBSD 4, from Ralf Wildenhues.
51430
51431 2007-03-04  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/vasprintf.h: Update #if logic for the case when the functions
51434         exist but are overridden.
51435
51436 2007-03-04  Bruno Haible  <bruno@clisp.org>
51437
51438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51439         implementations: glibc-2.4 and MacOS X 10.3.
51440         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51441         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51442         * tests/test-vasprintf-posix.c (test_function): Likewise.
51443
51444 2007-03-04  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/vasprintf-posix-tests: New file.
51447         * tests/test-vasprintf-posix.c: New file.
51448
51449         * modules/vasprintf-posix: New file.
51450         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51451         defined.
51452         * m4/vasprintf-posix.m4: New file.
51453         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51454         gl_FUNC_VASPRINTF.
51455         (gl_FUNC_VASPRINTF): Invoke it.
51456         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51457         here.
51458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51459
51460 2007-03-04  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51463         REPLACE_GETTIMEOFDAY.
51464         * modules/sys_time (Makefile.am): Likewise.
51465         * m4/sys_time_h.m4: Likewise.
51466         * m4/gettimeofday.m4: Likewise.
51467
51468 2007-03-04  Bruno Haible  <bruno@clisp.org>
51469
51470         * modules/vasnprintf-posix-tests: New file.
51471         * tests/test-vasnprintf-posix.c: New file.
51472
51473         * modules/vasnprintf-posix: New file.
51474         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51475         printf-frexpl.h.
51476         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51477         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51478         REPLACE_VASNPRINTF is defined.
51479         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51480         gl_FUNC_VASNPRINTF.
51481         (gl_FUNC_VASNPRINTF): Invoke it.
51482         * m4/vasnprintf-posix.m4: New file.
51483         * m4/printf.m4: New file.
51484
51485 2007-03-04  Bruno Haible  <bruno@clisp.org>
51486
51487         Compile progreloc.c only if --enable-relocatable is specified.
51488         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51489         if --enable-relocatable was specified.
51490         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51491         lib_SOURCES.
51492
51493 2007-03-04  Jim Meyering  <jim@meyering.net>
51494
51495         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51496         Use it consistently, rather than enumerating errno constants.
51497
51498 2007-03-04  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/xvasprintf-tests: New file.
51501         * tests/test-xvasprintf.c: New file.
51502
51503         * modules/vasprintf-tests: New file.
51504         * tests/test-vasprintf.c: New file.
51505
51506         * modules/vasnprintf-tests: New file.
51507         * tests/test-vasnprintf.c: New file.
51508
51509         * modules/vsnprintf-tests: New file.
51510         * tests/test-vsnprintf.c: New file.
51511
51512         * modules/snprintf-tests: New file.
51513         * tests/test-snprintf.c: New file.
51514
51515 2007-03-04  Bruno Haible  <bruno@clisp.org>
51516
51517         Compile relocatable.c only if --enable-relocatable is specified.
51518         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51519         gl_RELOCATABLE_LIBRARY.
51520         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51521         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51522         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51523         gl_RELOCATABLE_LIBRARY.
51524         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51525         (Makefile.am): Remove lib_SOURCES.
51526         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51527         gl_RELOCATABLE_LIBRARY.
51528         (Makefile.am): Remove lib_SOURCES.
51529         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51530         always.
51531         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51532         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51533
51534 2007-03-04  Bruno Haible  <bruno@clisp.org>
51535
51536         * modules/argmatch-tests: New file.
51537         * tests/test-argmatch.c: New file.
51538
51539         * tests/test-allocsa.c (main): Halve the number of loop runs.
51540
51541         * modules/alloca-opt-tests: New file.
51542         * tests/test-alloca-opt.c: New file.
51543
51544 2007-03-04  Jim Meyering  <jim@meyering.net>
51545
51546         Work around difference between Linux ACLs and Solaris 10 ZFS.
51547         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51548         for EINVAL.
51549
51550 2007-03-03  Bruno Haible  <bruno@clisp.org>
51551
51552         * modules/relocatable-prog (Depends-on): Add back progreloc's
51553         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51554
51555 2007-03-03  Bruno Haible  <bruno@clisp.org>
51556
51557         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51558         * modules/relocatable-lib: New file.
51559
51560 2007-03-03  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/relocatable-prog: Renamed from modules/relocatable.
51563         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51564
51565 2007-03-03  Bruno Haible  <bruno@clisp.org>
51566
51567         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51568         m4/relocatable-lib.m4.
51569         (Depends-on): Remove 'relocatable'.
51570         (configure.ac): Add gl_RELOCATABLE_NOP.
51571
51572 2007-03-03  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/relocatable-prog-wrapper: New file.
51575         * modules/relocatable (Depends-on): Add it. Remove all other
51576         dependencies except progname.
51577         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51578
51579         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51580         (gl_FUNC_STRERROR): Nop.
51581         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51582
51583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51584         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51585
51586         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51587         (gl_FUNC_READLINK): Update.
51588
51589         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51590
51591 2007-03-03  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51594         * modules/xreadlink (Depends-on): Add unistd.
51595         * modules/xreadlink-with-size (Depends-on): Likewise.
51596
51597 2007-03-03  Bruno Haible  <bruno@clisp.org>
51598
51599         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51600         extracted from gt_FUNC_SETENV.
51601         (gt_FUNC_SETENV): Remove macro.
51602         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51603         remove gt_FUNC_SETENV.
51604
51605 2007-03-03  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51608         ENABLE_RELOCATABLE here.
51609         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51610
51611 2007-03-03  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51614         * tests/test-rbtreehash_list.c: Include progname.h.
51615         (main): Call set_program_name.
51616
51617         * modules/rbtree-oset-tests (Depends-on): Add progname.
51618         * tests/test-rbtree_oset.c: Include progname.h.
51619         (main): Call set_program_name.
51620
51621         * modules/rbtree-list-tests (Depends-on): Add progname.
51622         * tests/test-rbtree_list.c: Include progname.h.
51623         (main): Call set_program_name.
51624
51625         * modules/linked-list-tests (Depends-on): Add progname.
51626         * tests/test-linked_list.c: Include progname.h.
51627         (main): Call set_program_name.
51628
51629 2007-03-03  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51632         All uses of __restrict changed to _Restrict_.
51633         * lib/glob_.h (__restrict): Remove macro.
51634
51635 2007-03-02  Bruno Haible  <bruno@clisp.org>
51636
51637         * modules/gettext (configure.ac): Require gettext infrastructure
51638         from version 0.16.1.
51639
51640 2007-03-02  Bruno Haible  <bruno@clisp.org>
51641
51642         * modules/linkedhash-list-tests (Depends-on): Add progname.
51643         * tests/test-linkedhash_list.c: Include progname.h.
51644         (main): Call set_program_name.
51645
51646         * modules/carray-list-tests (Depends-on): Add progname.
51647         * tests/test-carray_list.c: Include progname.h.
51648         (main): Call set_program_name.
51649
51650         * modules/avltreehash-list-tests (Depends-on): Add progname.
51651         * tests/test-avltreehash_list.c: Include progname.h.
51652         (main): Call set_program_name.
51653
51654         * modules/avltree-oset-tests (Depends-on): Add progname.
51655         * tests/test-avltree_oset.c: Include progname.h.
51656         (main): Call set_program_name.
51657
51658         * modules/avltree-list-tests (Depends-on): Add progname.
51659         * tests/test-avltree_list.c: Include progname.h.
51660         (main): Call set_program_name.
51661
51662         * modules/array-oset-tests (Depends-on): Add progname.
51663         * tests/test-array_oset.c: Include progname.h.
51664         (main): Call set_program_name.
51665
51666         * modules/array-list-tests (Depends-on): Add progname.
51667         * tests/test-array_list.c: Include progname.h.
51668         (main): Call set_program_name.
51669
51670         * modules/argp-tests (Depends-on): Add progname.
51671         * tests/test-argp.c: Include argp.h first. Include progname.h.
51672         (main): Call set_program_name.
51673
51674 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         * doc/gnulib-tool.texi (Initial import): Reword description of
51677         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51678         limited effect even if defined after the first system include.
51679
51680 2007-03-01  Bruno Haible  <bruno@clisp.org>
51681
51682         * build-aux/config.libpath: Update to libtool-1.5.22.
51683         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51684
51685 2007-03-01  Bruno Haible  <bruno@clisp.org>
51686
51687         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51688         foo_CFLAGS.
51689         Reported by Ralf Wildenhues.
51690
51691 2007-03-01  Bruno Haible  <bruno@clisp.org>
51692
51693         * build-aux/install-reloc: Remove object files left over by some
51694         compilers.
51695         Reported by Ralf Wildenhues.
51696
51697 2007-03-01  Bruno Haible  <bruno@clisp.org>
51698
51699         * build-aux/install-reloc: Break long lines.
51700
51701 2007-03-01  Bruno Haible  <bruno@clisp.org>
51702
51703         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51704         Reported by Ralf Wildenhues.
51705
51706 2007-03-01  Bruno Haible  <bruno@clisp.org>
51707
51708         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51709         include ordering constraints.
51710
51711 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51712
51713         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51714         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51715         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51716         as another example.
51717         * lib/time_.h: Fix misspelling.
51718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51719         Require gl_HEADER_TIME_H_DEFAULTS.
51720         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51721         * m4/time_r.m4 (gl_TIME_R): Likewise.
51722         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51723
51724 2007-03-01  Bruno Haible  <bruno@clisp.org>
51725
51726         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51727         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51728
51729 2007-03-01  Jim Meyering  <jim@meyering.net>
51730
51731         * modules/xreadlink (Maintainer): Add my name.
51732         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51733
51734 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51735             Bruno Haible  <bruno@clisp.org>
51736
51737         * build-aux/install-reloc: Compile also c-ctype.c.
51738         * build-aux/relocatable.sh.in: New file.
51739         * doc/relocatable.texi: New file.
51740         * doc/relocatable-maint.texi: New file.
51741         * doc/gnulib.texi: Include relocatable-maint.texi.
51742         * lib/progreloc.c: Include unistd.h unconditionally.
51743         * lib/relocwrapper.c: Include unistd.h unconditionally.
51744         Include c-ctype.h.
51745         (add_dotbin): Use c_tolower.
51746         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51747         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51748         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51749         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51750         to m4/relocatable-lib.m4.
51751         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51752         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51753         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51754         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51755         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51756         * modules/relocatable: New file.
51757         * modules/relocatable-lib: New file.
51758         * modules/relocatable-script: New file.
51759
51760 2007-02-28  Bruno Haible  <bruno@clisp.org>
51761
51762         Import --enable-relocatable infrastructure.
51763         * build-aux/config.libpath: New file, from GNU gettext.
51764         * build-aux/install-reloc: New file, from GNU gettext.
51765         * build-aux/reloc-ldflags: New file, from GNU gettext.
51766         * lib/relocatable.h: New file, from GNU gettext.
51767         * lib/relocatable.c: New file, from GNU gettext.
51768         * lib/relocwrapper.c: New file, from GNU gettext.
51769         * m4/relocatable.m4: New file, from GNU gettext.
51770
51771 2007-02-28  Bruno Haible  <bruno@clisp.org>
51772
51773         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51774
51775         * modules/xreadlink: New file, from GNU gettext with modifications.
51776         * lib/xreadlink.c: New file, from GNU gettext.
51777         * lib/xreadlink.h: Add comments.
51778         (xreadlink): New declaration.
51779
51780         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51781         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51782         lib/xreadlink-with-size.c.
51783         (configure.ac): Remove gl_XREADLINK invocation.
51784         (Makefile.am): Augment lib_SOURCES.
51785         * m4/xreadlink.m4: Remove file.
51786         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51787         (xreadlink_with_size): Renamed from xreadink.
51788         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51789         * modules/canonicalize (Depends-on): Replace xreadlink with
51790         xreadlink-with-size.
51791         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51792
51793 2007-02-25  Jim Meyering  <jim@meyering.net>
51794
51795         * build-aux/announce-gen: When complaining about excess arguments,
51796         list them.
51797
51798 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * README: Document signed integer overflow situation more
51801         accurately.
51802
51803 2007-02-25  Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51806         'a' or 'A' conversion.
51807
51808 2007-02-25  Bruno Haible  <bruno@clisp.org>
51809
51810         * modules/filename: Renamed from modules/pathname.
51811         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51812         lib/concatpath.c with lib/concat-filename.c.
51813         (Makefile.am): Update.
51814         (Include): Replace pathname.h with filename.h.
51815         * lib/filename.h: Renamed from lib/pathname.h.
51816         (concatenated_filename): Renamed from concatenated_pathname.
51817         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51818         (concatenated_filename): Renamed from concatenated_pathname.
51819         * lib/findprog.c: Include filename.h instead of pathname.h.
51820         (find_in_path): Update.
51821         * lib/javacomp.c: Include filename.h instead of pathname.h.
51822         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51823         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51824         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51825         is_oldgcj_14_13_usable, is_javac_usable): Update.
51826         * lib/javaexec.c: Include filename.h instead of pathname.h.
51827         (execute_java_class): Update.
51828         * modules/findprog: Update.
51829         * modules/javacomp: Update.
51830         * modules/javaexec: Update.
51831         * MODULES.html.sh (File system functions): Add 'filename', remove
51832         'pathname'.
51833
51834 2007-02-25  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/printf-frexpl-tests: New file.
51837         * tests/test-printf-frexpl.c: New file.
51838
51839         * modules/printf-frexpl: New file.
51840         * lib/printf-frexpl.h: New file.
51841         * lib/printf-frexpl.c: New file.
51842         * m4/printf-frexpl.m4: New file.
51843
51844 2007-02-25  Bruno Haible  <bruno@clisp.org>
51845
51846         * modules/printf-frexp-tests: New file.
51847         * tests/test-printf-frexp.c: New file.
51848
51849         * modules/printf-frexp: New file.
51850         * lib/printf-frexp.h: New file.
51851         * lib/printf-frexp.c: New file.
51852         * m4/printf-frexp.m4: New file.
51853
51854 2007-02-25  Bruno Haible  <bruno@clisp.org>
51855
51856         Assume automake >= 1.10 for the tests.
51857         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51858         * modules/arctwo-tests: Likewise.
51859         * modules/argp-tests: Likewise.
51860         * modules/avltree-list-tests: Likewise.
51861         * modules/avltree-oset-tests: Likewise.
51862         * modules/avltreehash-list-tests: Likewise.
51863         * modules/carray-list-tests: Likewise.
51864         * modules/crc-tests: Likewise.
51865         * modules/des-tests: Likewise.
51866         * modules/gc-arcfour-tests: Likewise.
51867         * modules/gc-arctwo-tests: Likewise.
51868         * modules/gc-des-tests: Likewise.
51869         * modules/gc-hmac-md5-tests: Likewise.
51870         * modules/gc-hmac-sha1-tests: Likewise.
51871         * modules/gc-md2-tests: Likewise.
51872         * modules/gc-md4-tests: Likewise.
51873         * modules/gc-md5-tests: Likewise.
51874         * modules/gc-pbkdf2-sha1-tests: Likewise.
51875         * modules/gc-rijndael-tests: Likewise.
51876         * modules/gc-sha1-tests: Likewise.
51877         * modules/gc-tests: Likewise.
51878         * modules/getaddrinfo-tests: Likewise.
51879         * modules/hmac-md5-tests: Likewise.
51880         * modules/hmac-sha1-tests: Likewise.
51881         * modules/linked-list-tests: Likewise.
51882         * modules/linkedhash-list-tests: Likewise.
51883         * modules/lock-tests: Likewise.
51884         * modules/md2-tests: Likewise.
51885         * modules/md4-tests: Likewise.
51886         * modules/md5-tests: Likewise.
51887         * modules/rbtree-list-tests: Likewise.
51888         * modules/rbtree-oset-tests: Likewise.
51889         * modules/rbtreehash-list-tests: Likewise.
51890         * modules/read-file-tests: Likewise.
51891         * modules/rijndael-tests: Likewise.
51892         * modules/stdint-tests: Likewise.
51893         * modules/tls-tests: Likewise.
51894
51895 2007-02-24  Bruno Haible  <bruno@clisp.org>
51896
51897         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51898         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51899         function; instead check whether isnan with a double argument links.
51900         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51901         function; instead check whether isnan with a 'long double' argument
51902         links.
51903         Reported by Eric Blake <ebb9@byu.net>.
51904
51905 2007-02-24  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51908         defined.
51909         * lib/isnanl.c: Remove all code. Just include isnan.c.
51910         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51911
51912 2007-02-25  Jim Meyering  <jim@meyering.net>
51913
51914         Avoid conflicting types for 'unsetenv' on FreeBSD.
51915         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51916         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51917         in stdlib.h.
51918
51919 2007-02-24  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/isnanl-nolibm-tests: New file.
51922         * tests/test-isnanl.c: New file.
51923
51924         * modules/isnanl-nolibm: New file.
51925         * lib/isnanl.h: New file.
51926         * lib/isnanl.c: New file.
51927         * m4/isnanl.m4: New file.
51928
51929 2007-02-24  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/isnan-nolibm-tests: New file.
51932         * tests/test-isnan.c: New file.
51933
51934         * modules/isnan-nolibm: New file.
51935         * lib/isnan.h: New file.
51936         * lib/isnan.c: New file.
51937         * m4/isnan.m4: New file.
51938
51939 2007-02-24  Bruno Haible  <bruno@clisp.org>
51940
51941         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51942         assume that an exponent fits in 20 bits.
51943
51944 2007-02-24  Jim Meyering  <jim@meyering.net>
51945
51946         * m4/regex.m4: Update the description of the configure-time option,
51947         --without-included-regex, to state accurately what the defaults are,
51948         and perhaps to give people an idea why using this option is risky.
51949
51950 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51953         loops on small arguments.  This attempts to avoid the problem
51954         Bruno Haible reported for AIX 4.3.2 in
51955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51956
51957 2007-02-23  Bruno Haible  <bruno@clisp.org>
51958
51959         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51960         Needed for help2man.
51961
51962 2007-02-23  Karl Berry  <karl@gnu.org>
51963
51964         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51965         exists, foo.h should be cvs-ignored, not committed.
51966
51967 2007-02-23  Eric Blake  <ebb9@byu.net>
51968
51969         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51970         * lib/stat-time.h (includes): Likewise.
51971         * lib/utimecmp.c (includes): Likewise.
51972         * lib/utimens.h (includes): Likewise.
51973         * lib/getdate.y (includes): Also include "timespec.h" for use
51974         internal to the module.
51975         * modules/utimens (Depends-on): Revert yesterday's patch.
51976         * modules/nanosleep (Depends-on): Add missing dependency.
51977
51978 2007-02-22  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/glob.c: Don't include getlogin_r.h.
51981
51982 2007-02-22  Jim Meyering  <jim@meyering.net>
51983
51984         * modules/utimens (Depends-on): Add timespec, required for
51985         utimens.h's inclusion of timespec.h.
51986
51987 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51990         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51991         Schwab in
51992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51993         I'll try to think of a better way to fix the Solaris problem.
51994
51995         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51996         like glibc; on Solaris 10, it fails with errno == EINVAL.
51997         POSIX says the behavior is unspecified if the first argument is NULL,
51998         so play it safe and never pass NULL to the system getcwd.
51999
52000 2007-02-21  Jim Meyering  <jim@meyering.net>
52001
52002         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52003         of gettimeofday.  It would conflict with the one now always
52004         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52005         an IRIX 6.5 build failure.
52006
52007 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52008
52009         Minor fixups to port to Solaris 10 with Sun C 5.8.
52010         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52011         * modules/getcwd (Depends-on): Add dirfd.
52012         * lib/putenv.c (putenv): #undef it.
52013         (rpl_putenv): New decl.
52014         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52015
52016 2007-02-20  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/stdio-tests: New file.
52019         * tests/test-stdio.c: New file.
52020
52021         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52022         (Depends-on): Add stdio.
52023         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52024         (Include): Use <stdio.h> instead of vsnprintf.h.
52025         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52026         HAVE_DECL_VSNPRINTF.
52027         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52028
52029         * modules/snprintf (Files): Remove lib/snprintf.h.
52030         (Depends-on): Add stdio.
52031         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52032         (Include): Use <stdio.h> instead of snprintf.h.
52033         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52034         HAVE_DECL_SNPRINTF.
52035         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52036         * lib/getaddrinfo.c: Likewise.
52037
52038         * modules/stdio: New file.
52039         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52040         * lib/snprintf.h: Remove file.
52041         * lib/vsnprintf.h: Remove file.
52042         * lib/.cppi-disable: Remove snprintf.h.
52043         * m4/stdio_h.m4: New file.
52044         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52045
52046 2007-02-20  Jim Meyering  <jim@meyering.net>
52047
52048         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52049         used by e.g., mingw.  From Bruno Haible.
52050
52051 2007-02-19  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52054         warnings.
52055         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52056
52057 2007-02-19  Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52060         from mingw users.
52061
52062 2007-02-19  Bruno Haible  <bruno@clisp.org>
52063
52064         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52065         warnings.
52066         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52067
52068 2007-02-19  Jim Meyering  <jim@meyering.net>
52069
52070         Don't use FD after a successful "fdopendir (fd)".
52071         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52072         Reset it by calling dirfd on the just-obtained DIR*.
52073
52074         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52075         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52076
52077 2007-02-18  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/readlink.c: Include <unistd.h>.
52080         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52081         HAVE_READLINK.
52082         * modules/readlink (Depends-on): Add unistd.
52083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52084         (Include): Add <unistd.h>.
52085
52086         * lib/getlogin_r.h: Remove file.
52087         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52088         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52089         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52090         HAVE_DECL_GETLOGIN_R.
52091         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52093         (Include): Use <unistd.h> instead of getlogin_r.h.
52094
52095         * lib/getcwd.h: Remove file.
52096         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52097         * lib/xgetcwd.c: Likewise.
52098         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52099         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52100         * modules/getcwd (Files): Remove lib/getcwd.h.
52101         (Depends-on): Add unistd.
52102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52103         (Include): Use <unistd.h> instad of getcwd.h.
52104
52105         * lib/ftruncate.c: Include <unistd.h> first.
52106         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52107         Set HAVE_FTRUNCATE.
52108         * modules/ftruncate (Depends-on): Add unistd.
52109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52110
52111         * lib/fchdir.c: Include <unistd.h> first.
52112         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52114         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52115         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52116         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52117
52118         * lib/dup2.c: Include <unistd.h> first.
52119         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52120         HAVE_DUP2.
52121         * modules/dup2 (Depends-on): Add unistd.
52122         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52123
52124         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52125         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52126         REPLACE_CHOWN. Don't define chown as a macro here.
52127         * modules/chown (Depends-on): Add unistd.
52128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52129
52130         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52131         Add definition for GL_LINK_WARNING.
52132         (chown, dup2): New declarations.
52133         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52134         link warning.
52135         (ftruncate): New declaration.
52136         (getcwd): New declaration, taken from old getcwd.h.
52137         (getlogin_r): New declaration, taken from old getlogin_r.h.
52138         (readlink): New declaration.
52139         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52140         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52141         (gl_PREREQ_UNISTD): Remove macro.
52142         (gl_UNISTD_MODULE_INDICATOR): New macro.
52143         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52144         many new variables. Don't set UNISTD_H.
52145         * modules/unistd (Description): Change.
52146         (Depends-on): Add link-warning.
52147         (configure.ac): Update.
52148         (Makefile.am): Create unistd.h always. Substitute many new variables
52149         into it.
52150
52151 2007-02-18  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52154         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52155         HAVE_GETSUBOPT.
52156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52157         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52158         * lib/getsubopt.h: Remove file.
52159         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52160         (Depends-on): Add stdlib.
52161         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52162         (Includes): Use <stdlib.h> instead of getsubopt.h.
52163         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52164         Set HAVE_GETSUBOPT.
52165         * lib/getsubopt.c: Don't include getsubopt.h.
52166
52167 2007-02-18  Bruno Haible  <bruno@clisp.org>
52168
52169         * modules/fchdir (Depends-on): Add dup2.
52170
52171 2007-02-18  Bruno Haible  <bruno@clisp.org>
52172
52173         * lib/stdlib_.h: Handle glibc's special invocation convention
52174         specially.
52175
52176 2007-02-18  Bruno Haible  <bruno@clisp.org>
52177
52178         * modules/stdlib-tests: New file.
52179         * tests/test-stdlib.c: New file.
52180
52181         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52182         (Depends-on): Add stdlib.
52183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52184         (Includes): Use <stdlib.h> instead of mkstemp.h.
52185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52186         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52187         * lib/mkstemp.c: Don't include mkstemp.h.
52188         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52189         * lib/stdlib--.h: Don't include mkstemp.h.
52190
52191         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52192         (Depends-on): Add stdlib.
52193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52194         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52195         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52196         HAVE_MKDTEMP.
52197         * lib/mkdtemp.c: Don't include mkdtemp.h.
52198         * lib/clean-temp.c: Don't include mkdtemp.h.
52199
52200         * modules/exit (Files): Remove lib/exit.h.
52201         (Depends-on): Add stdlib.
52202         (Makefile.am): Remove lib_SOURCES.
52203         (Include): Use <stdlib.h> instead of exit.h.
52204         * lib/argmatch.c: Don't include exit.h.
52205         * lib/execute.c: Likewise.
52206         * lib/pagealign_alloc.c: Likewise.
52207         * lib/pipe.c: Likewise.
52208         * lib/wait-process.c: Likewise.
52209         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52210         * lib/exitfail.c: Likewise.
52211         * lib/savewd.c: Likewise.
52212         * lib/xsetenv.c: Likewise.
52213
52214         * modules/stdlib: New file.
52215         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52216         and extra comments about mkstemp().
52217         * lib/exit.h: Remove file.
52218         * lib/mkdtemp.h: Remove file.
52219         * lib/mkstemp.h: Remove file.
52220         * m4/stdlib_h.m4: New file.
52221         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52222
52223 2007-02-18  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/math-tests: New file.
52226         * tests/test-math.c: New file.
52227
52228         * modules/math: New file.
52229         * modules/mathl (Files): Remove lib/mathl.h.
52230         (Depends-on): Add math.
52231         (Makefile.am): Don't mention mathl.h.
52232         (Include): Use <math.h> instead of mathl.h.
52233         * lib/math_.h: New file.
52234         * lib/mathl.h: Remove file.
52235         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52236         mathl.h.
52237         * lib/asinl.c: Likewise.
52238         * lib/atanl.c: Likewise.
52239         * lib/ceill.c: Likewise.
52240         * lib/cosl.c: Likewise.
52241         * lib/expl.c: Likewise.
52242         * lib/floorl.c: Likewise.
52243         * lib/frexpl.c: Likewise.
52244         * lib/ldexpl.c: Likewise.
52245         * lib/logl.c: Likewise.
52246         * lib/sincosl.c: Likewise.
52247         * lib/sinl.c: Likewise.
52248         * lib/sqrtl.c: Likewise.
52249         * lib/tanl.c: Likewise.
52250         * lib/trigl.c: Likewise.
52251         * m4/math_h.m4: New file.
52252         * MODULES.html.sh (Mathematics): Add math.
52253
52254 2007-02-17  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/wctype-tests: New file.
52257         * tests/test-wctype.c: New file.
52258
52259         * modules/wchar-tests: New file.
52260         * tests/test-wchar.c: New file.
52261
52262         * modules/unistd-tests: New file.
52263         * tests/test-unistd.c: New file.
52264
52265         * modules/time-tests: New file.
52266         * tests/test-time.c: New file.
52267
52268         * modules/sysexits-tests: New file.
52269         * tests/test-sysexits.c: New file.
52270
52271         * modules/sys_time-tests: New file.
52272         * tests/test-sys_time.c: New file.
52273
52274         * modules/sys_stat-tests: New file.
52275         * tests/test-sys_stat.c: New file.
52276
52277         * modules/sys_socket-tests: New file.
52278         * tests/test-sys_socket.c: New file.
52279
52280         * modules/sys_select-tests: New file.
52281         * tests/test-sys_select.c: New file.
52282
52283         * modules/string-tests: New file.
52284         * tests/test-string.c: New file.
52285
52286         * modules/stdbool-tests: New file.
52287         * tests/test-stdbool.c: New file.
52288
52289         * modules/netinet_in-tests: New file.
52290         * tests/test-netinet_in.c: New file.
52291
52292         * modules/inttypes-tests: New file.
52293         * tests/test-inttypes.c: New file.
52294
52295         * modules/fcntl-tests: New file.
52296         * tests/test-fcntl.c: New file.
52297
52298         * modules/byteswap-tests: New file.
52299         * tests/test-byteswap.c: New file.
52300
52301         * modules/arpa_inet-tests: New file.
52302         * tests/test-arpa_inet.c: New file.
52303
52304 2007-02-17  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52307         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52308         if the corresponding module is not enabled. Emit link warnings if
52309         the function is used nevertheless.
52310         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52311         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52312         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52313         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52314         * modules/inttypes (Depends-on): Add link-warning.
52315         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52316         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52317         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52318         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52319         * modules/imaxdiv (configure.ac): Likewise.
52320         * modules/strtoimax (configure.ac): Likewise.
52321         * modules/strtoumax (configure.ac): Likewise.
52322
52323 2007-02-17  Bruno Haible  <bruno@clisp.org>
52324
52325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52326         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52327         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52328         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52329
52330 2007-02-17  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/link-warning: New file.
52333         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52334         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52335         * modules/string (Depends-on): Add link-warning.
52336         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52337         string.h.
52338         * MODULES.html.sh (Support for building libraries and executables): Add
52339         link-warning.
52340
52341 2007-02-17  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52344         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52345         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52346         long lines.
52347
52348 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52349             Bruno Haible  <bruno@clisp.org>
52350
52351         * modules/tmpfile: New file.
52352         * lib/tmpfile.c: New file.
52353         * m4/tmpfile.m4: New file.
52354         * MODULES.html.sh (func_all_modules): New section "Input/output".
52355
52356 2007-02-15  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52359         (supports_delete_on_close): New function.
52360         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52361
52362 2007-02-14  Bruno Haible  <bruno@clisp.org>
52363
52364         * modules/mbspcasecmp-tests: New file.
52365         * tests/test-mbspcasecmp.sh: New file.
52366         * tests/test-mbspcasecmp.c: New file.
52367
52368         New module mbspcasecmp.
52369         * modules/mbspcasecmp: New file.
52370         * lib/mbspcasecmp.c: New file.
52371         * lib/string_.h (strncasecmp): Change warning message.
52372         (mbspcasecmp): New declaration.
52373         * m4/mbspcasecmp.m4: New file.
52374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52375         GNULIB_MBSPCASECMP.
52376         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52377         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52378
52379 2007-02-14  Bruno Haible  <bruno@clisp.org>
52380
52381         * modules/mbsncasecmp-tests: New file.
52382         * tests/test-mbsncasecmp.sh: New file.
52383         * tests/test-mbsncasecmp.c: New file.
52384
52385         New module mbsncasecmp.
52386         * modules/mbsncasecmp: New file.
52387         * lib/mbsncasecmp.c: New file.
52388         * lib/string_.h (mbsncasecmp): New declaration.
52389         * m4/mbsncasecmp.m4: New file.
52390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52391         GNULIB_MBSNCASECMP.
52392         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52393         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52394
52395 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52398         Verify that it doesn't overlap with our flags.
52399         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52400         do not have the desired effect in multibyte locales; instead, use
52401         mbscasecmp.
52402         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52403         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52404         we don't require GNU fnmatch ourselves (if our users require it, they
52405         should do so explicitly).
52406
52407         Fix regex code so it doesn't rely on strcasecmp.
52408         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52409         Otherwise, include gnulib's langinfo.h.
52410         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52411         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52412         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52413         * modules/regex (FILES): Remove m4/codeset.m4.
52414         (Depends-on): Add localcharset.  Remove strcase.
52415
52416 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52417
52418         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52419         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52420
52421 2007-02-13  Bruno Haible  <bruno@clisp.org>
52422
52423         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52425
52426 2007-02-12  Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52429         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52430         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52431         time warning rather than a link error.
52432
52433 2007-02-12  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52436         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52438
52439 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52440
52441         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52442         args, not 2.
52443
52444 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         New module 'time', so that apps can include <time.h> as per
52447         POSIX and GNU instead of separate include files like time_r.h
52448         and timegm.h.  This implementation tries out a simpler approach
52449         for replacing decls in standard include files (as compared to
52450         the string module), somewhat as an experiment.
52451
52452         * config/srclist.txt: Comment out mktime.c for now.
52453         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52454         since it doesn't apply any more.  Use generic wording instead.
52455         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52456         'time'.
52457         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52458         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52459         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52460         Don't include <sys/types.h>; no longer needed since we assume C89.
52461         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52462         * lib/strftime.c: Likewise.
52463         * lib/time_r.c: Likewise.
52464         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52465         * lib/nanosleep.c: Include <time.h> first, to check interface.
52466         * lib/strptime.c: Likewise.
52467         * lib/time_r.c: Likewise.
52468         * lib/timegm.c: Likewise.
52469         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52470         needed.
52471         * lib/timegm.c: Don't include timegm.h; no longer needed.
52472         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52473         time.h now handles any problems in that area.
52474         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52475         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52476         that time.h defines struct timespec.
52477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52478         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52479         handles that.
52480         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52481         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52482         needed.  Set REPLACE_LOCALTIME.
52483         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52484         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52485         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52486         nanosleep; time_h.m4 now does that.  Don't require
52487         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52488         module handles this now.
52489         * modules/getdate (Depends-on): Remove timespec.  Add time.
52490         * modules/nanosleep (Depends-on): Likewise.
52491         * modules/stat-time (Depends-on): Likewise.
52492         * modules/nanosleep (Include): Include time.h, not timespec.h.
52493         * modules/strptime (Files): Remove lib/strptime.h.
52494         (Depends-on): Add extensions, time.
52495         (Include): Include time.h, not strptime.h.
52496         * modules/time_r (Files): Remove lib/time_r.h.
52497         (Depends-on): Add time.
52498         (Include): Include time.h, not time_r.h.
52499         * modules/timegm: Likewise.
52500         * modules/timespec (Description): Now does timespec-related decls
52501         of our own, instead of struct timespec itself.
52502         (Depends-on): Add time; remove extensions.
52503         (Maintainer): Add self.
52504         * modules/utimecmp (Depends-on): Add time; remove timespec.
52505         * modules/utimens (Depends-on): Likewise.
52506         * modules/xnanosleep (Depends-on): Likewise.
52507
52508 2007-02-11  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/c-strstr.c: Include allocsa.h.
52511         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52512         * lib/c-strcasestr.c: Include allocsa.h.
52513         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52514         * lib/strcasestr.c: Include allocsa.h.
52515         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52516         * lib/mbsstr.c: Include allocsa.h.
52517         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52518         allocsa/freesa instead of malloc/free.
52519         * lib/mbscasestr.c: Include allocsa.h.
52520         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52521         allocsa/freesa instead of malloc/free.
52522         * modules/c-strstr (Depends-on): Add allocsa.
52523         * modules/c-strcasestr (Depends-on): Likewise.
52524         * modules/strcasestr (Depends-on): Likewise.
52525         * modules/mbsstr (Depends-on): Likewise.
52526         * modules/mbscasestr (Depends-on): Likewise.
52527
52528 2007-02-11  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52531
52532         * modules/mbsspn-tests: New file.
52533         * tests/test-mbsspn.sh: New file.
52534         * tests/test-mbsspn.c: New file.
52535
52536 2007-02-11  Bruno Haible  <bruno@clisp.org>
52537
52538         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52539
52540         * modules/mbspbrk-tests: New file.
52541         * tests/test-mbspbrk.sh: New file.
52542         * tests/test-mbspbrk.c: New file.
52543
52544 2007-02-11  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52547         unneeded cast.
52548
52549         * modules/mbscspn-tests: New file.
52550         * tests/test-mbscspn.sh: New file.
52551         * tests/test-mbscspn.c: New file.
52552
52553 2007-02-11  Bruno Haible  <bruno@clisp.org>
52554
52555         * modules/mbscasecmp-tests: New file.
52556         * tests/test-mbscasecmp.sh: New file.
52557         * tests/test-mbscasecmp.c: New file.
52558
52559 2007-02-11  Bruno Haible  <bruno@clisp.org>
52560
52561         Ensure O(n) worst-case complexity of mbscasestr.
52562         * lib/mbscasestr.c: Include stdbool.h.
52563         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52564         functions.
52565         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52566         the bookkeeping indicates that it's worth it.
52567         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52568
52569         * modules/mbscasestr-tests: New file.
52570         * tests/test-mbscasestr1.c: New file.
52571         * tests/test-mbscasestr2.sh: New file.
52572         * tests/test-mbscasestr2.c: New file.
52573         * tests/test-mbscasestr3.sh: New file.
52574         * tests/test-mbscasestr3.c: New file.
52575         * tests/test-mbscasestr4.sh: New file.
52576         * tests/test-mbscasestr4.c: New file.
52577         * m4/locale-tr.m4: New file.
52578
52579 2007-02-11  Bruno Haible  <bruno@clisp.org>
52580
52581         Ensure O(n) worst-case complexity of mbsstr.
52582         * lib/mbsstr.c: Include stdbool.h.
52583         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52584         functions.
52585         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52586         bookkeeping indicates that it's worth it.
52587         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52588
52589         * modules/mbsstr-tests: New file.
52590         * tests/test-mbsstr1.c: New file.
52591         * tests/test-mbsstr2.sh: New file.
52592         * tests/test-mbsstr2.c: New file.
52593         * tests/test-mbsstr3.sh: New file.
52594         * tests/test-mbsstr3.c: New file.
52595         * m4/locale-fr.m4: New file.
52596
52597 2007-02-11  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/mbsrchr.c (mbsrchr): Fix bug.
52600
52601         * modules/mbsrchr-tests: New file.
52602         * tests/test-mbsrchr.sh: New file.
52603         * tests/test-mbsrchr.c: New file.
52604
52605 2007-02-11  Bruno Haible  <bruno@clisp.org>
52606
52607         * lib/mbschr.c (mbschr): Fix bug.
52608
52609         * modules/mbschr-tests: New file.
52610         * tests/test-mbschr.sh: New file.
52611         * tests/test-mbschr.c: New file.
52612         * m4/locale-zh.m4: New file.
52613
52614 2007-02-11  Bruno Haible  <bruno@clisp.org>
52615
52616         Support for copying multibyte string iterators.
52617         * lib/mbiter.h: Include <string.h>.
52618         (mbiter_multi_copy): New function.
52619         (mbi_copy): New macro.
52620         * lib/mbuiter.h: Include <string.h>.
52621         (mbuiter_multi_copy): New function.
52622         (mbui_copy): New macro.
52623
52624 2007-02-11  Bruno Haible  <bruno@clisp.org>
52625
52626         New module mbslen.
52627         * modules/mbslen: New file.
52628         * lib/mbslen.c: New file.
52629         * lib/string_.h (mbslen): New declaration.
52630         * m4/mbslen.m4: New file.
52631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52632         GNULIB_MBSLEN.
52633         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52634         * MODULES.html.sh (Internationalization functions): Add mbslen.
52635
52636 2007-02-11  Bruno Haible  <bruno@clisp.org>
52637
52638         Ensure O(n) worst-case complexity of strcasestr substitute.
52639         * lib/strcasestr.c: Include stdbool.h.
52640         (knuth_morris_pratt): New function.
52641         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52642         bookkeeping indicates that it's worth it.
52643         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52644
52645         * modules/strcasestr-tests: New file.
52646         * tests/test-strcasestr.c: New file.
52647
52648 2007-02-11  Bruno Haible  <bruno@clisp.org>
52649
52650         Ensure O(n) worst-case complexity of c_strcasestr.
52651         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52652         (knuth_morris_pratt): New function.
52653         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52654         the bookkeeping indicates that it's worth it.
52655         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52656
52657         * modules/c-strcasestr-tests: New file.
52658         * tests/test-c-strcasestr.c: New file.
52659
52660 2007-02-11  Bruno Haible  <bruno@clisp.org>
52661
52662         Ensure O(n) worst-case complexity of c_strstr.
52663         * lib/c-strstr.c: Include stdbool.h, string.h.
52664         (knuth_morris_pratt): New function.
52665         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52666         bookkeeping indicates that it's worth it.
52667         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52668
52669         * lib/c-strstr.c: Complete rewrite for maintainability.
52670
52671         * modules/c-strstr-tests: New file.
52672         * tests/test-c-strstr.c: New file.
52673
52674 2007-02-11  Bruno Haible  <bruno@clisp.org>
52675
52676         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52677         5.2.1 and earlier, whereby \055 was treated just like the range
52678         delimiter '-'.
52679         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52680
52681 2007-02-08  Bruno Haible  <bruno@clisp.org>
52682
52683         * modules/regex (Depends-on): Add stdbool.
52684         Reported by Dalibor Topic <robilad@kaffe.org>.
52685
52686 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52687
52688         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52689         Prefer returning from main to exiting from it.
52690         Remove unnecessary parens after sizeof.
52691
52692 2007-02-05  Bruno Haible  <bruno@clisp.org>
52693
52694         New module mbssep.
52695         * modules/mbssep: New file.
52696         * lib/mbssep.c: New file.
52697         * lib/string_.h (strsep): Add a conditional link warning.
52698         (mbssep): New declaration.
52699         * m4/mbssep.m4: New file.
52700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52701         GNULIB_MBSSEP.
52702         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52703         * MODULES.html.sh (Internationalization functions): Add mbssep.
52704
52705 2007-02-05  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52708         Optimize search in case of 1 delimiter.
52709
52710 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52711
52712         * lib/acl.h: Include sys/types.h before sys/acl.h.
52713
52714 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52715
52716         Merge upstream fix for glibc bugzilla #3957:
52717
52718         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52719
52720         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52721         bit for RE_HAT_LISTS_NOT_NEWLINE.
52722         (build_charclass_op): Remove bogus comment.
52723
52724 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52725
52726         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52727
52728 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52729
52730         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52731         * lib/memmem.c [!defined _LIBC]: Include config.h.
52732
52733 2007-02-04  Bruno Haible  <bruno@clisp.org>
52734
52735         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52736         warning message.
52737
52738 2007-02-04  Bruno Haible  <bruno@clisp.org>
52739
52740         New module mbstok_r.
52741         * modules/mbstok_r: New file.
52742         * lib/mbstok_r.c: New file.
52743         * lib/string_.h (strtok_r): Change argument names to match the
52744         comments. Add a conditional link warning.
52745         (mbstok_r): New declaration.
52746         * m4/mbstok_r.m4: New file.
52747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52748         GNULIB_MBSTOK_R.
52749         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52750         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52751
52752 2007-02-04  Bruno Haible  <bruno@clisp.org>
52753
52754         New module mbsspn.
52755         * modules/mbsspn: New file.
52756         * lib/mbsspn.c: New file.
52757         * lib/string_.h (strspn): Add a conditional link warning.
52758         (mbsspn): New declaration.
52759         * m4/mbsspn.m4: New file.
52760         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52761         GNULIB_MBSSPN.
52762         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52763         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52764
52765 2007-02-04  Bruno Haible  <bruno@clisp.org>
52766
52767         New module mbspbrk.
52768         * modules/mbspbrk: New file.
52769         * lib/mbspbrk.c: New file.
52770         * lib/string_.h (strpbrk): Add a conditional link warning.
52771         (mbspbrk): New declaration.
52772         * m4/mbspbrk.m4: New file.
52773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52774         GNULIB_MBSPBRK.
52775         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52776         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52777
52778 2007-02-04  Bruno Haible  <bruno@clisp.org>
52779
52780         New module mbscspn.
52781         * modules/mbscspn: New file.
52782         * lib/mbscspn.c: New file.
52783         * lib/string_.h (strcspn): Add a conditional link warning.
52784         (mbscspn): New declaration.
52785         * m4/mbscspn.m4: New file.
52786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52787         GNULIB_MBSCSPN.
52788         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52789         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52790
52791 2007-02-04  Bruno Haible  <bruno@clisp.org>
52792
52793         New module mbscasestr, reduced goal of strcasestr.
52794         * modules/mbscasestr: New file.
52795         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52796         (mbscasestr): Renamed from strcasestr.
52797         * lib/strcasestr.c: Don't include mbuiter.h.
52798         (strcasestr): Remove support for multibyte locales.
52799         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52800         Change the conditional link warning.
52801         (mbscasestr): New declaration.
52802         * m4/mbscasestr.m4: New file.
52803         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52804         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52805         REPLACE_STRCASESTR.
52806         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52808         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52810         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52811         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52812         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52813         (Depends-on): Remove mbuiter.
52814         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52815
52816 2007-02-04  Bruno Haible  <bruno@clisp.org>
52817
52818         Simplify handling of strncasecmp.
52819         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52820         the conditional link warning.
52821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52822         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52823         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52824         * modules/strcase (configure.ac): Don't invoke
52825         gl_STRING_MODULE_INDICATOR.
52826         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52827
52828 2007-02-04  Bruno Haible  <bruno@clisp.org>
52829
52830         New module mbscasecmp, reduced goal of strcasecmp.
52831         * modules/mbscasecmp: New file.
52832         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52833         (mbscasecmp): Renamed from strcasecmp.
52834         * lib/strcasecmp.c: Don't include mbuiter.h.
52835         (strcasecmp): Remove support for multibyte locales.
52836         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52837         Change the conditional link warning.
52838         (mbscasecmp): New declaration.
52839         * m4/mbscasecmp.m4: New file.
52840         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52841         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52842         REPLACE_STRCASECMP.
52843         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52845         GNULIB_MBSCASECMP.
52846         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52847         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52848         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52849         (Depends-on): Remove mbuiter.
52850         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52851
52852 2007-02-04  Bruno Haible  <bruno@clisp.org>
52853
52854         New module mbsstr. Remove module strstr.
52855         * modules/mbsstr: New file.
52856         * modules/strstr: Remove file.
52857         * lib/mbsstr.c: Renamed from lib/strstr.c.
52858         (mbsstr): Renamed from strstr.
52859         * lib/string_.h (strstr): Remove declaration. Change the conditional
52860         link warning.
52861         (mbsstr): New declaration.
52862         * m4/mbsstr.m4: New file.
52863         * m4/strstr.m4: Remove file.
52864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52865         REPLACE_STRSTR.
52866         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52867         Don't initialize GNULIB_STRSTR.
52868         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52869         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52870         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52871         (Support for systems lacking ANSI C 89): Remove strstr.
52872
52873 2007-02-04  Bruno Haible  <bruno@clisp.org>
52874
52875         New module mbsrchr.
52876         * modules/mbsrchr: New file.
52877         * lib/mbsrchr.c: New file.
52878         * lib/string_.h (strrchr): Add a conditional link warning.
52879         (mbsrchr): New declaration.
52880         * m4/mbsrchr.m4: New file.
52881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52882         GNULIB_MBSRCHR.
52883         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52884         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52885
52886 2007-02-04  Bruno Haible  <bruno@clisp.org>
52887
52888         New module mbschr.
52889         * modules/mbschr: New file.
52890         * lib/mbschr.c: New file.
52891         * lib/string_.h (strchr): Add a conditional link warning.
52892         (mbschr): New declaration.
52893         * m4/mbschr.m4: New file.
52894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52895         GNULIB_MBSCHR.
52896         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52897         * MODULES.html.sh (Internationalization functions): Add mbschr.
52898
52899 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52900
52901         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52902
52903         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52904
52905 2007-02-04  Bruno Haible  <bruno@clisp.org>
52906
52907         New module description section 'configure.ac-early'.
52908         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52909         (func_get_autoconf_early_snippet): New function.
52910         (func_import, func_create_testdir): Use it. Remove special cases for
52911         modules 'extensions' and 'lock'.
52912         * modules/extensions (configure.ac-early): Require
52913         gl_USE_SYSTEM_EXTENSIONS.
52914         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52915
52916 2007-02-04  Bruno Haible  <bruno@clisp.org>
52917
52918         Make use of gcj-4.3's -fsource and -ftarget option.
52919         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52920         and if so try the options -fsource and -ftarget.
52921         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52922         source_version, ftarget_option, target_version arguments.
52923         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52924         (is_envjavac_oldgcj_14_14_usable): Renamed from
52925         is_envjavac_gcj_14_14_usable.
52926         (is_envjavac_oldgcj_14_13_usable): Renamed from
52927         is_envjavac_gcj_14_13_usable.
52928         (is_gcj_present): Update.
52929         (is_gcj_43, is_gcj43_usable): New functions.
52930         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52931         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52932         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52933         try the options -fsource and -ftarget.
52934
52935 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52938         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52939         larger value.
52940
52941 2007-02-03  Jim Meyering  <jim@meyering.net>
52942
52943         Give tools a better chance to allocate space for very large buffers.
52944         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52945
52946         Make pwd and readlink work also when run with an unreadable parent dir
52947         on systems with openat support.
52948         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52949         provided getcwd function, even when we have openat support.
52950         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52951
52952 2007-02-02  Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52955         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52956         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52957         portability problems if one of these functions is only used on specific
52958         platforms.
52959         Reported by Paul Eggert.
52960
52961 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52964         is causing more trouble than it's curing.
52965         * lib/regex_internal.h (__mempcpy): Remove.
52966         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52967         (and make the code a tad smaller to boot).
52968         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52969
52970 2007-02-02  Jim Meyering  <jim@meyering.net>
52971
52972         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52973         section, not in the Makefile.am: one.
52974
52975 2007-02-02  Eric Blake  <ebb9@byu.net>
52976
52977         * lib/strchrnul.c: Always include config.h first.
52978
52979         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52980         gnulib strstr is not necessary here.
52981
52982 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52983
52984         * m4/socklen.m4: Fix typo.
52985
52986 2007-02-02  Eric Blake  <ebb9@byu.net>
52987
52988         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52989         * modules/netinet_in (Makefile.am): Likewise.
52990
52991 2007-02-01  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/string_.h (GL_LINK_WARNING): New macro.
52994         (strcasecmp, strstr, strcasestr): If provided by the system,
52995         conditionally define as a macro that leads to a warning instead of to
52996         an error.
52997         (strncasecmp): Conditionally define as a macro that leads to a warning.
52998
52999 2007-02-01  Karl Berry  <karl@gnu.org>
53000
53001         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53002
53003 2007-02-01  Bruno Haible  <bruno@clisp.org>
53004
53005         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53006         renamings.
53007
53008 2007-02-01  Eric Blake  <ebb9@byu.net>
53009
53010         * modules/regex (Depends-on): Revert dependence on mempcpy.
53011         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53012         module's definition of mempcpy.
53013         Reported by Paul Eggert.
53014
53015 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53018         the symbol XYZ before redefining it.  This fixes a problem with
53019         programs that don't use XYZ, when compiled on systems that define
53020         XYZ to something else.
53021
53022 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53023
53024         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53025         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53026         writeable to group or other and (2) is intended to have a special
53027         mode bit that is set or cleared.  In such a case, the directory
53028         should be neither group- nor other-writeable until the special
53029         mode bits are right.
53030
53031 2007-01-31  Eric Blake  <ebb9@byu.net>
53032
53033         * modules/mountlist (Depends-on): Add strstr.
53034
53035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53036         bug.
53037         * modules/string (Makefile.am): Remove redundant replacement.
53038         * modules/regex (Depends-on): Add mempcpy.
53039
53040 2007-01-31  Bruno Haible  <bruno@clisp.org>
53041
53042         New module description field 'Link'.
53043         * gnulib-tool (func_usage): Document --extract-link-directive.
53044         (sed_extract_prog): Recognize 'Link' directive.
53045         (func_get_link_directive): New function.
53046         (func_import): Show summary of link directives.
53047         Handle --extract-link-directive option.
53048         * modules/acl (Link): New section.
53049         * modules/clock-time (Link): New section.
53050         * modules/euidaccess (Link): New section.
53051         * modules/gettext (Link): New section.
53052         * modules/iconv (Link): New section.
53053         * modules/lock (Link): New section.
53054         * modules/nanosleep (Link): New section.
53055         * modules/readline (Link): New section.
53056
53057 2007-01-27  Bruno Haible  <bruno@clisp.org>
53058
53059         Enforce the use of gnulib modules for unportable <string.h> functions.
53060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53061         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53062         (gl_HEADER_STRING_H_BODY): Require it.
53063         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53064         the symbol XYZ to one that gives a link error.
53065         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53066         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53067         * modules/mempcpy (configure.ac): Likewise.
53068         * modules/memrchr (configure.ac): Likewise.
53069         * modules/stpcpy (configure.ac): Likewise.
53070         * modules/stpncpy (configure.ac): Likewise.
53071         * modules/strcase (configure.ac): Likewise.
53072         * modules/strcasestr (configure.ac): Likewise.
53073         * modules/strchrnul (configure.ac): Likewise.
53074         * modules/strdup (configure.ac): Likewise.
53075         * modules/strndup (configure.ac): Likewise.
53076         * modules/strnlen (configure.ac): Likewise.
53077         * modules/strpbrk (configure.ac): Likewise.
53078         * modules/strsep (configure.ac): Likewise.
53079         * modules/strstr (configure.ac): Likewise.
53080         * modules/strtok_r (configure.ac): Likewise.
53081
53082 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53083
53084         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53085
53086 2007-01-30  Jim Meyering  <jim@meyering.net>
53087
53088         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53089
53090 2007-01-29  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53093         * lib/execute.c: Likewise.
53094         * lib/pipe.c: Likewise.
53095         * lib/printf-args.h: Likewise.
53096         * lib/printf-args.c: Likewise.
53097         * lib/printf-parse.c: Likewise.
53098         * lib/vasnprintf.c: Likewise.
53099
53100 2007-01-29  Eric Blake  <ebb9@byu.net>
53101
53102         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53103         declaration.
53104
53105 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53106
53107         * lib/strptime.h (strptime): Use 'restrict' for args where
53108         POSIX requires this.
53109         * lib/strptime.c (strptime): Likewise.
53110         Change license notice from LGPL to GPL, since gnulib-tool will
53111         change this as needed.
53112         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53113         defined.
53114         Include "strptime.h" first, to check interface.
53115         Do not #undef _LIBC and _NL_CURRENT.
53116         Do not include <stdlib.h>; no longer needed.
53117         Include "time_r.h" and declare ptime_locale_status
53118         only if _LIBC is not defined.
53119         (__P): Remove unused macro.
53120         (match_string): Bring back glibc version, but use it only if _LIBC
53121         is defined.
53122         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53123         Remove unnecessary assertion and abort() call.
53124         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53125         * m4/strptime.m4: Fix serial number comment.
53126         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53127         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53128         (Depends-on): Add time_r.
53129
53130 2007-01-29  Bruno Haible  <bruno@clisp.org>
53131
53132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53133         strptime.
53134         * modules/strptime (Depends-on): Add stdbool.
53135         * lib/strptime.h: Include <time.h> always. Add comments.
53136
53137 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53138
53139         * modules/strptime: New file.
53140         * lib/strptime.h: New file.
53141         * lib/strptime.c: New file.
53142         * m4/strptime.m4: New file.
53143
53144 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53145
53146         * MODULES.html.sh: New module mpsort.
53147         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53148
53149         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53150         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53152         All uses changed.
53153         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53154         All uses changed.
53155         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53156         to _Restrict_.
53157         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53158         the parameter matches the prototype.
53159
53160 2007-01-28  Jim Meyering  <jim@meyering.net>
53161
53162         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53163         sys/time.h here, reverting that part of the previous patch:
53164         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53165
53166 2007-01-28  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53169         value of $(SYS_TIME_H).
53170         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53171         remove it conditionally, too. [added by Jim Meyering]
53172         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53173         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53174         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53175         GETTIMEOFDAY_REPLACEMENT to 1.
53176
53177 2007-01-28  Bruno Haible  <bruno@clisp.org>
53178
53179         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53180         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53182         Set UNISTD_H instead of UNISTD_H2.
53183         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53184
53185 2007-01-28  Bruno Haible  <bruno@clisp.org>
53186
53187         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53188         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53189
53190 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53191
53192         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53193         (func_create_testdir): Ensure C locale for `grep' and `tr'
53194         character ranges.
53195         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53196         ACLOCAL_AMFLAGS parsing state machine.
53197
53198 2007-01-27  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/unistr/base: Update.
53201
53202 2007-01-27  Bruno Haible  <bruno@clisp.org>
53203
53204         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53205         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53206         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53207         modules/unistr/u32-mbtouc.
53208         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53209         * lib/unistr.h: Update.
53210         * lib/linebreak.c: Update.
53211         * modules/unistr/u32-mbtouc: Renamed from
53212         modules/unistr/u32-mbtouc-safe.
53213         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53214         * lib/unistr.h: Update.
53215         * lib/unistr/u32-to-u8.c: Update.
53216         * lib/unistr/u32-to-u16.c: Update.
53217
53218 2007-01-27  Bruno Haible  <bruno@clisp.org>
53219
53220         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53221         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53222         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53223         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53224         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53225         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53226         modules/unistr/u16-mbtouc.
53227         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53228         * lib/unistr.h: Update.
53229         * lib/linebreak.c: Update.
53230         * modules/linebreak: Update.
53231         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53232         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53233         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53234         * modules/unistr/u16-mbtouc: Renamed from
53235         modules/unistr/u16-mbtouc-safe.
53236         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53237         * lib/unistr.h: Update.
53238         * lib/unistr/u16-to-u8.c: Update.
53239         * modules/unistr/u16-to-u8: Update.
53240         * lib/unistr/u16-to-u32.c: Update.
53241         * modules/unistr/u16-to-u32: Update.
53242
53243 2007-01-27  Bruno Haible  <bruno@clisp.org>
53244
53245         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53246         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53247         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53248         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53249         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53250         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53251         modules/unistr/u8-mbtouc.
53252         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53253         * lib/unistr.h: Update.
53254         * lib/striconveh.c: Update.
53255         * modules/striconveh: Update.
53256         * lib/linebreak.c: Update.
53257         * modules/linebreak: Update.
53258         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53259         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53260         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53261         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53262         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53263         * lib/unistr.h: Update.
53264         * lib/striconveh.c: Update.
53265         * modules/striconveh: Update.
53266         * lib/unistr/u8-to-u16.c: Update.
53267         * modules/unistr/u8-to-u16: Update.
53268         * lib/unistr/u8-to-u32.c: Update.
53269         * modules/unistr/u8-to-u32: Update.
53270
53271 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53272
53273         Sync from Libtool.
53274         * lib/argz.c: Do not include strings.h nor memory.h, include
53275         string.h unconditionally.  Patch by Simon Josefsson.
53276
53277 2007-01-27  Bruno Haible  <bruno@clisp.org>
53278
53279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53280         from gl_HEADER_STRING_H_BODY.
53281         (gl_HEADER_STRING_H_BODY): Require it.
53282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53284         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53285         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53287         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53289         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53290         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53292         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53293         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53294         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53295         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53296         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53297
53298 2007-01-27  Bruno Haible  <bruno@clisp.org>
53299
53300         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53301         check_PROGRAMS into noinst_PROGRAMS.
53302         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53303         check_PROGRAMS in this case.
53304         (func_import): Set for_test to false.
53305         (func_create_testdir): Set for_test to true.
53306
53307 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53308             Bruno Haible  <bruno@clisp.org>
53309
53310         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53311         (Depends-on): Add string.
53312         (Includes): Use <string.h> instead of strcasestr.h.
53313         * modules/string (Makefile.am): Also substitute the value of
53314         REPLACE_STRCASESTR.
53315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53316         assume strcasestr is declared in <string.h> not <strings.h>. Also
53317         set REPLACE_STRCASESTR.
53318         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53319         REPLACE_STRCASESTR.
53320         * lib/strcasestr.h: Remove file.
53321         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53322         * lib/string_.h (strcasestr): New declaration.
53323
53324 2007-01-27  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/string_.h: Use 'extern'.
53327
53328 2007-01-27  Jim Meyering  <jim@meyering.net>
53329
53330         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53331         of set-but-not-used local, "q".
53332
53333         * lib/mempcpy.c: Include <config.h> before <string.h>.
53334         This fixes a compilation error on HP-UX, due to the system's
53335         "restrict"-using mempcpy prototype.
53336
53337 2007-01-26  Bruno Haible  <bruno@clisp.org>
53338
53339         Small optimization.
53340         * lib/javacomp.c: Include c-strstr.h.
53341          (is_envjavac_gcj): Use c_strstr instead of strstr.
53342         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53343
53344 2007-01-26  Bruno Haible  <bruno@clisp.org>
53345
53346         * MODULES.html.sh (Unicode string functions): Add the new modules.
53347
53348         * modules/uniconv/u32-strconv-to-locale: New file.
53349         * lib/uniconv/u32-strconv-to-locale.c: New file.
53350
53351         * modules/uniconv/u16-strconv-to-locale: New file.
53352         * lib/uniconv/u16-strconv-to-locale.c: New file.
53353
53354         * modules/uniconv/u8-strconv-to-locale: New file.
53355         * lib/uniconv/u8-strconv-to-locale.c: New file.
53356
53357         * modules/uniconv/u32-strconv-from-locale: New file.
53358         * lib/uniconv/u32-strconv-from-locale.c: New file.
53359
53360         * modules/uniconv/u16-strconv-from-locale: New file.
53361         * lib/uniconv/u16-strconv-from-locale.c: New file.
53362
53363         * modules/uniconv/u8-strconv-from-locale: New file.
53364         * lib/uniconv/u8-strconv-from-locale.c: New file.
53365
53366         * modules/uniconv/u32-strconv-to-enc: New file.
53367         * lib/uniconv/u32-strconv-to-enc.c: New file.
53368         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53369         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53370
53371         * modules/uniconv/u16-strconv-to-enc: New file.
53372         * lib/uniconv/u16-strconv-to-enc.c: New file.
53373         * lib/uniconv/u-strconv-to-enc.h: New file.
53374         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53375         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53376
53377         * modules/uniconv/u8-strconv-to-enc: New file.
53378         * lib/uniconv/u8-strconv-to-enc.c: New file.
53379         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53380         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53381
53382         * modules/uniconv/u32-strconv-from-enc: New file.
53383         * lib/uniconv/u32-strconv-from-enc.c: New file.
53384         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53385         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53386
53387         * modules/uniconv/u16-strconv-from-enc: New file.
53388         * lib/uniconv/u16-strconv-from-enc.c: New file.
53389         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53390         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53391
53392         * modules/uniconv/u8-strconv-from-enc: New file.
53393         * lib/uniconv/u8-strconv-from-enc.c: New file.
53394         * lib/uniconv/u-strconv-from-enc.h: New file.
53395         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53396         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53397
53398         * modules/uniconv/u32-conv-from-enc: New file.
53399         * lib/uniconv/u32-conv-from-enc.c: New file.
53400         * modules/uniconv/u32-conv-from-enc-tests: New file.
53401         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53402
53403         * modules/uniconv/u16-conv-from-enc: New file.
53404         * lib/uniconv/u16-conv-from-enc.c: New file.
53405         * lib/uniconv/u-conv-from-enc.h: New file.
53406         * modules/uniconv/u16-conv-from-enc-tests: New file.
53407         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53408
53409         * modules/uniconv/u8-conv-from-enc: New file.
53410         * lib/uniconv/u8-conv-from-enc.c: New file.
53411         * modules/uniconv/u8-conv-from-enc-tests: New file.
53412         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53413
53414         * modules/uniconv/base: New file.
53415         * lib/uniconv.h: New file.
53416
53417 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * doc/gnulib-tool.texi (Initial import): Update to match current
53420         behavior with strdup module.
53421         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53422         * lib/memmem.h: Remove; all uses removed.  This is now done
53423         by <string.h>.
53424         * lib/mempcpy.h: Likewise.
53425         * lib/memrchr.h: Likewise.
53426         * lib/stpcpy.h: Likewise.
53427         * lib/stpncpy.h: Likewise.
53428         * lib/strcase.h: Likewise.
53429         * lib/strchrnul.h: Likewise.
53430         * lib/strdup.h: Likewise.
53431         * lib/strndup.h: Likewise.
53432         * lib/strnlen.h: Likewise.
53433         * lib/strpbrk.h: Likewise.
53434         * lib/strsep.h: Likewise.
53435         * lib/strstr.h: Likewise.
53436         * lib/strtok_r.h: Likewise.
53437         * lib/string_.h: New file.
53438         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53439         Rely on <string.h> instead.
53440         * lib/canon-host.c: Likewise.
53441         * lib/chdir-long.c: Likewise.
53442         * lib/concatpath.c: Likewise.
53443         * lib/exclude.c: Likewise.
53444         * lib/fchdir.c: Likewise.
53445         * lib/getaddrinfo.c: Likewise.
53446         * lib/getcwd.c: Likewise.
53447         * lib/getsubopt.c: Likewise.
53448         * lib/glob.c: Likewise.
53449         * lib/hard-locale.c: Likewise.
53450         * lib/iconvme.c: Likewise.
53451         * lib/javacomp.c: Likewise.
53452         * lib/mempcpy.c: Likewise.
53453         * lib/memrchr.c: Likewise.
53454         * lib/regex_internal.h: Likewise.
53455         * lib/stpncpy.c: Likewise.
53456         * lib/strcasecmp.c: Likewise.
53457         * lib/strchrnul.c: Likewise.
53458         * lib/strdup.c: Likewise.
53459         * lib/striconv.c: Likewise.
53460         * lib/striconveh.c: Likewise.
53461         * lib/striconveha.c: Likewise.
53462         * lib/strncasecmp.c: Likewise.
53463         * lib/strndup.c: Likewise.
53464         * lib/strnlen.c: Likewise.
53465         * lib/strsep.c: Likewise.
53466         * lib/strstr.c: Likewise.
53467         * lib/strtok_r.c: Likewise.
53468         * lib/userspec.c: Likewise.
53469         * lib/w32spawn.h: Likewise.
53470         * lib/xstrndup.c: Likewise.
53471         * lib/mountlist.c (strstr): Remove decl.
53472         * m4/string_h.m4: New file.
53473         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53474         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53476         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53477         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53478         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53479         Set REPLACE_STRCASECMP if necessary.
53480         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53481         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53482         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53483         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53484         HAVE_DECL_STRDUP if necessary.
53485         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53486         since gl_FUNC_STRNDUP does that now.
53487         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53488         Check for decl here...
53489         (gl_PREREQ_STRNLEN): ... not here.
53490         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53491         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53492         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53493         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53494         necessary.
53495         * modules/string: New file.
53496         * modules/memmem (Files): Remove special-purpose include file.
53497         (Depends-on): Add string.
53498         (Include): Include <string.h>, not the removed file.
53499         * modules/mempcpy: Likewise.
53500         * modules/memrchr: Likewise.
53501         * modules/stpcpy: Likewise.
53502         * modules/stpncpy: Likewise.
53503         * modules/strcase: Likewise.
53504         * modules/strchrnul: Likewise.
53505         * modules/strdup: Likewise.
53506         * modules/strndup: Likewise.
53507         * modules/strnlen: Likewise.
53508         * modules/strpbrk: Likewise.
53509         * modules/strsep: Likewise.
53510         * modules/strstr: Likewise.
53511         * modules/strtok_r: Likewise.
53512         * tests/test-dirname.c: Don't include "strdup.h", since
53513         <string.h> now suffices.
53514         * tests/test-memmem.c: Don't include "memmem.h", since
53515         <string.h> now suffices.
53516
53517 2007-01-25  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53520         *resultp is 0.
53521
53522         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53523         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53524         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53525         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53526
53527         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53528         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53529         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53530         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53531         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53532         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53533
53534 2007-01-24  Bruno Haible  <bruno@clisp.org>
53535
53536         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53538         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53539         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53540         gl_FUNC_FTS_CORE.
53541         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53542         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53544         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53545         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53546         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53547         gl_FUNC_FCHOWNAT.
53548         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53549         gl_FUNC_STRFTIME.
53550         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53551         Reported by Ralf Wildenhues.
53552
53553 2007-01-24  Bruno Haible  <bruno@clisp.org>
53554
53555         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53556         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53557         gl_GETADDRINFO.
53558         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53559         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53560         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53561
53562 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53563
53564         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53565         Don't use 'exit'; just return from 'main'.
53566         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53567
53568         * lib/fnmatch_.h: Readjust white space and comments to match
53569         glibc, to avoid spurious diffs.
53570
53571 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53574         2004-12-01 change by Jakub Jelinek, since this code won't compile
53575         if !LIBC.  Problem reported by Bob Proulx.
53576
53577 2007-01-23  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/striconveh.c: Include c-strcaseeq.h.
53580         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53581         * modules/striconveh (Depends-on): Add c-strcaseeq.
53582
53583 2007-01-23  Bruno Haible  <bruno@clisp.org>
53584
53585         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53586
53587         * modules/c-strcaseeq: New file.
53588         * lib/c-strcaseeq.h: New file.
53589
53590         * modules/streq: New file.
53591         * lib/streq.h: New file.
53592
53593 2007-01-23  Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/striconveha-tests: New file.
53596         * tests/test-striconveha.c: New file.
53597
53598         * lib/striconveha.h: Include <stdbool.h>.
53599         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53600         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53601         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53602         (mem_iconveha): New function.
53603         (str_iconveha_notranslit): Renamed from str_iconveha.
53604         (str_iconveha): New function.
53605         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53606         c-strcase.
53607
53608 2007-01-23  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53611         encodings without forgiving before trying any encoding with handler.
53612         (str_iconveha): Try all encodings without forgiving before trying any
53613         encoding with handler.
53614
53615 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         Import the following changes from libc.
53618
53619         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53620
53621         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53622
53623         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53624
53625         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53626         normal_bracket label.
53627
53628         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53629
53630         [BZ #361]
53631         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53632         to normal_bracket after fetching the next character.
53633
53634 2007-01-22  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53637         argument.
53638         * lib/striconveh.c (iconv_carefully_1): New function.
53639         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53640         argument.
53641         (str_cd_iconveh): Update.
53642         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53643         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53644         * tests/test-striconveh.c (MAGIC): New macro.
53645         (new_offsets): New function.
53646         (main): Test call with and without offsets.
53647
53648 2007-01-22  Bruno Haible  <bruno@clisp.org>
53649
53650         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53651         * modules/sys_select (Makefile.am): Likewise.
53652         * modules/sys_socket (Makefile.am): Likewise.
53653         * modules/sys_time (Makefile.am): Likewise.
53654
53655 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         * modules/gettimeofday (License): Change from GPL to LGPL, since
53658         gettimeofday is a library function.
53659
53660 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53661
53662         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53663
53664 2007-01-21  Bruno Haible  <bruno@clisp.org>
53665
53666         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53667
53668 2007-01-21  Bruno Haible  <bruno@clisp.org>
53669
53670         * modules/striconveha: New file.
53671         * lib/striconveha.h: New file.
53672         * lib/striconveha.c: New file.
53673         * MODULES.html.sh (Internationalization functions): Add striconveha.
53674         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53675         string.
53676         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53677
53678 2007-01-21  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53681         * lib/striconveh.c (str_iconveh): Likewise.
53682
53683 2007-01-21  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/striconveh.h (mem_iconveh): New declaration.
53686         * lib/striconveh.c (mem_iconveh): New function.
53687         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53688
53689 2007-01-21  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53692
53693         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53694         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53695         original result buffer.
53696         (str_cd_iconveh): Update.
53697         * tests/test-striconveh.c (main): Update.
53698
53699         * lib/striconv.h (mem_cd_iconv): Change specification.
53700         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53701         result buffer.
53702         (str_cd_iconv): Update.
53703         * tests/test-striconv.c (main): Update.
53704
53705 2007-01-21  Bruno Haible  <bruno@clisp.org>
53706
53707         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53708
53709 2007-01-20  Jim Meyering  <jim@meyering.net>
53710
53711         * lib/userspec.c (parse_with_separator): If a user or group string
53712         starts with "+", skip the corresponding name-to-ID look-up, since
53713         such a look-up must fail: user and group names may not include "+".
53714
53715 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53716
53717         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53718         since we now assume the sys_time module.
53719         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53720         check for sys/time.h; no longer needed.
53721         * modules/poll (Depends-on): Depend on sys_time.
53722
53723 2007-01-18  Bruno Haible  <bruno@clisp.org>
53724
53725         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53726         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53727
53728         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53729         gettimeofday.
53730
53731         * tests/test-gettimeofday.c: Include <time.h>.
53732         (dummy): Remove variable.
53733
53734         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53735         gl_HEADER_SYS_TIME_H.
53736         (gl_HEADER_SYS_TIME_H): New macro.
53737
53738         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53739         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53741         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53742         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53743         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53744         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53745         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53746         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53747         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53748         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53749
53750         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53751         last change; it caused a compilation error when cross-compiling to
53752         Cygwin.
53753
53754 2007-01-18  Jim Meyering  <jim@meyering.net>
53755
53756         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53757         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53758         than the race-prone "test -d sys || mkdir sys".
53759         (configure.ac): Use AC_PROG_MKDIR_P.
53760         * modules/sys_select: Likewise.
53761         * modules/sys_socket: Likewise.
53762         * modules/sys_time: Likewise.
53763
53764 2007-01-18  Eric Blake  <ebb9@byu.net>
53765
53766         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53767         replace gettimeofday.
53768         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53769         name, to avoid infinite recursion.
53770
53771 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53774         module sys_time.
53775         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53776         assume timespec.h defines struct timeval.
53777         * lib/settime.c: Likewise.
53778         * lib/utimens.c: Likewise.
53779         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53780         since we now assume the gettimeofday module.
53781         * lib/tempname.c (__gen_tempname): Likewise.
53782         * lib/gettimeofday.h: Remove.
53783         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53784         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53785         Include <time.h>, for 'time()'.
53786         (localtime_buffer_addr): Also use this workaround if
53787         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53788         to simplify the uses.  All uses changed.
53789         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53790         that #undef is inside {}, and 'const' follows type name consistently.
53791         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53792         (gettimeofday): Do not use the maximum possible value for
53793         tv->tv_usec, since that might break usages other than ls.c.
53794         Instead, we'll leave ls.c alone.  This undoes today's patch
53795         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53796         we've never observed the problem but might as well keep the
53797         canary.
53798         * lib/nanosleep.c: Include timespec.h first, for interface check.
53799         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53800         now assume the sys_time module.
53801         * lib/tempname.c: Likewise.
53802         * lib/timespec.h: Likewise.
53803         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53804         needed.
53805         * lib/strftime.c: Likewise.
53806         * lib/timespec.h: Likewise.
53807         * lib/posixtm.c: Include posixtm.h first, for interface check.
53808         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53809         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53810         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53811         * lib/sys_time_.h: New file.
53812         * lib/timespec.h (struct timespec): Use long int, not long.
53813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53814         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53815         Remove obsolescent call to AC_HEADER_TIME.
53816         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53818         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53819         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53820         Likewise.
53821         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53822         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53824         into the sys_time module.  Check for gettimeofday just once.
53825         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53826         for gettimeofday signature to just check the signature.  Merely
53827         compile it, since linking doesn't test signature.  Improve test for
53828         whether gettimeofday.o is actually needed.
53829         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53830         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53831         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53832         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53833         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53834         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53835         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53836         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53837         than worrying about sys/time.h.
53838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53839         Don't bother worrying about TIME_WITH_SYS_TIME.
53840         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53841         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53842         * m4/sys_time_h.m4: New file.
53843         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53844         Don't include sys/time.h.  Return from main rather than exiting.
53845         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53846         all uses changed.
53847         * modules/gethrxtime (Depends-on): Add sys_time.
53848         * modules/gettime (Depends-on): Likewise.
53849         * modules/gettimeofday (Depends-on): Likewise.
53850         * modules/nanosleep (Depends-on): Likewise.
53851         * modules/settime (Depends-on): Likewise.
53852         * modules/tempname (Depends-on): Likewise.
53853         * modules/utimens (Depends-on): Likewise.
53854         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53855         (Include:) Change back to <sys/time.h>.
53856         (Maintainer:) Add self.
53857         * modules/sys_time: New file.
53858         * modules/tempname (Depends-on): Add gettimeofday.
53859         * tests/test-gettimeofday.c: Include <sys/time.h>
53860         rather than gettimeofday.h.
53861
53862 2007-01-17  Bruno Haible  <bruno@clisp.org>
53863
53864         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53865         the license default to GPL.
53866         (func_create_testdir): Don't complain if a module is LGPL and its
53867         tests module depends on GPLed modules.
53868
53869 2007-01-17  Bruno Haible  <bruno@clisp.org>
53870
53871         * lib/gettimeofday.c (gettimeofday): Add code for the case
53872         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53873         maximum possible value for tv->tv_usec, rather than the minimum one.
53874
53875 2005-10-08  Martin Lambers  <marlam@marlam.de>
53876 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53877 2007-01-16  Bruno Haible  <bruno@clisp.org>
53878
53879         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53880         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53881         gl_FUNC_GETTIMEOFDAY.
53882         (Include): Add gettimeofday.h.
53883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53884         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53885         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53886         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53887         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53888         * lib/gettimeofday.h: New file.
53889         * lib/gettimeofday.c: Include <sys/timeb.h>.
53890         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53891         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53892         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53893         fall back on time().
53894
53895         * tests/test-gettimeofday.c: New file.
53896         * modules/gettimeofday-tests: New file.
53897
53898 2007-01-16  Eric Blake  <ebb9@byu.net>
53899
53900         * modules/fnmatch (Depends-on): Depend on wchar.
53901         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53902         * m4/fnmatch.m4: Likewise.
53903         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53904         * m4/mbchar.m4: Likewise.
53905         * modules/mbswidth (Depends-on): Depend on wchar.
53906         * lib/mbswidth.c: Assume <wchar.h>.
53907         * m4/mbswidth.m4: Likewise.
53908         * modules/quotearg (Depends-on): Depend on wchar.
53909         * lib/quotearg.c: Assume <wchar.h>.
53910         * m4/quotearg.m4: Likewise.
53911         * modules/regex (Depends-on): Depend on wchar.
53912         * lib/regex_internal.h: Assume <wchar.h>.
53913         * m4/regex.m4: Likewise.
53914         * modules/stdint (Depends-on): Depend on wchar.
53915         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53916         * m4/stdint.m4: Likewise.
53917         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53918         * modules/strftime (Depends-on): Depend on wchar.
53919         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53920         * modules/strtol (Depends-on): Depend on wchar.
53921         * lib/strtol.c: Assume <wchar.h>.
53922         * modules/wcwidth (Depends-on): Depend on wchar.
53923         * lib/wcwidth.h: Assume <wchar.h>.
53924         * m4/wcwidth.m4: Likewise.
53925
53926 2007-01-16  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/csharpexec-script: New, created from...
53929         * modules/csharpexec: ... this.
53930
53931 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53932
53933         * modules/javaexec-script: New, created from...
53934         * modules/javaexec: ... this.
53935
53936 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53937
53938         * modules/poll (Dependencies): Add sys_select.
53939
53940 2007-01-15  Jim Meyering  <jim@meyering.net>
53941
53942         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53943         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53944         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53945         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53946
53947 2007-01-15  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/striconveh: New file.
53950         * lib/striconveh.h: New file.
53951         * lib/striconveh.c: New file.
53952         * MODULES.html.sh (Internationalization functions): Add striconveh.
53953
53954         * modules/striconveh-tests: New file.
53955         * tests/test-striconveh.c: New file.
53956
53957 2007-01-15  Bruno Haible  <bruno@clisp.org>
53958
53959         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53960         not from GNU libiconv or GNU libc.
53961
53962 2007-01-15  Bruno Haible  <bruno@clisp.org>
53963
53964         * doc/gnulib-intro.texi (Copyright): Explain the different license
53965         terms for module descriptions, autoconf macros, tests, documentation.
53966
53967 2007-01-14  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/striconv-tests: New file.
53970         * tests/test-striconv.c: New file.
53971
53972 2007-01-14  Bruno Haible  <bruno@clisp.org>
53973
53974         * modules/iconv-tests: New file.
53975         * tests/test-iconv.c: New file.
53976
53977 2007-01-14  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_get_license): For test modules, use the license of
53980         the main module.
53981
53982 2007-01-14  Bruno Haible  <bruno@clisp.org>
53983
53984         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53985         if iconv is found to exist.
53986
53987 2007-01-14  Bruno Haible  <bruno@clisp.org>
53988
53989         * modules/c-ctype-tests: New file.
53990         * tests/test-c-ctype.c: New file.
53991
53992 2007-01-14  Bruno Haible  <bruno@clisp.org>
53993
53994         * modules/binary-io-tests: New file.
53995         * tests/test-binary-io.sh: New file.
53996         * tests/test-binary-io.c: New file.
53997
53998 2007-01-14  Bruno Haible  <bruno@clisp.org>
53999
54000         * modules/array-oset-tests: New file.
54001         * tests/test-array_oset.c: New file.
54002
54003 2007-01-14  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/array-list-tests: New file.
54006         * tests/test-array_list.c: New file.
54007
54008 2007-01-14  Bruno Haible  <bruno@clisp.org>
54009
54010         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54011         and make.
54012         Reported by Simon Josefsson in
54013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54014
54015 2007-01-14  Bruno Haible  <bruno@clisp.org>
54016
54017         * modules/allocsa-tests: New file.
54018         * tests/test-allocsa.c: New file.
54019
54020 2007-01-14  Bruno Haible  <bruno@clisp.org>
54021
54022         * modules/fchdir (Depends-on): Add absolute-header.
54023         * modules/unistd (Depends-on): Likewise.
54024
54025 2006-12-30  Bruno Haible  <bruno@clisp.org>
54026
54027         * modules/fchdir: New file.
54028         * modules/unistd (Files): Add lib/unistd_.h.
54029         (Makefile.am): Generate unistd.h from unistd_.h.
54030         * lib/fchdir.c: New file.
54031         * lib/dirent_.h: New file.
54032         * lib/unistd_.h: New file.
54033         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54034         * m4/fchdir.m4: New file.
54035         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54036         (gl_HEADER_UNISTD): Invoke it.
54037         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54038         function.
54039         * lib/backupfile.c (opendir, closedir): Undefine.
54040         * lib/chown.c (open, close): Undefine.
54041         * lib/clean-temp.c (open, close): Undefine.
54042         * lib/copy-file.c (open, close): Undefine.
54043         * lib/execute.c (open, close): Undefine.
54044         * lib/fsusage.c (open, close): Undefine.
54045         * lib/gc-gnulib.c (open, close): Undefine.
54046         * lib/getcwd.c (opendir, closedir): Undefine.
54047         * lib/glob.c (opendir, closedir): Undefine.
54048         * lib/javacomp.c (open, close): Undefine.
54049         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54050         * lib/openat-proc.c (open, close): Undefine.
54051         * lib/pagealign_alloc.c (open, close): Undefine.
54052         * lib/pipe.c (open, close): Undefine.
54053         * lib/progreloc.c (open, close): Undefine.
54054         * lib/savedir.c (opendir, closedir): Undefine.
54055         * lib/utime.c (open, close): Undefine.
54056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54057
54058 2007-01-10  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54061
54062 2007-01-12  Eric Blake  <ebb9@byu.net>
54063
54064         Provide a robust <wchar.h>.  Further simplifications are now
54065         possible in other modules, but not included here.
54066         * modules/wchar: New module.
54067         * m4/wchar.m4: New file.
54068         * lib/wchar_.h: Likewise.
54069         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54070         of the new module.
54071         * MODULES.html.sh (Extended multibyte and wide character utilities):
54072         New section.
54073
54074 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54075
54076         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54077         to a reasonable default for memory allocation.
54078         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54079         file system that reports garbage st_size values for symlinks.
54080         Problem reported by Liyang Hu.
54081
54082 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54083
54084         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54085         Emacs .#* auto-save files).
54086
54087 2007-01-11  Bruno Haible  <bruno@clisp.org>
54088
54089         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54090         directory.
54091
54092 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54093
54094         Use @...@ consistently in lib/wctype_.h.
54095         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54096         on it being set to 1 or 0.
54097         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54098         go back to AC_SUBSTing it.
54099         * modules/wctype (Makefile.am): Undo previous change.
54100
54101 2007-01-10  Eric Blake  <ebb9@byu.net>
54102
54103         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54104         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54105         * modules/wctype (Makefile.am): Likewise.
54106         Reported by Chris McGuire.
54107
54108 2007-01-10  Jim Meyering  <jim@meyering.net>
54109
54110         fts.c: a small readability/maintainability improvement
54111         * lib/fts.c (fts_read): Make this code slightly more readable and
54112         maintainable by hoisting the "sp->fts_cur = p" assignments to
54113         immediately follow the statements that set P.  Derived from
54114         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54115
54116 2007-01-10  Eric Blake  <ebb9@byu.net>
54117
54118         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54119         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54121         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54122         Reported by Chris McGuire.
54123
54124 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54125
54126         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54127         in sed script.
54128
54129 2007-01-09  Bruno Haible  <bruno@clisp.org>
54130
54131         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54132         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54133         variables.
54134         (func_module): Use them.
54135
54136 2007-01-09  Bruno Haible  <bruno@clisp.org>
54137
54138         * modules/unistr/base: New file.
54139         * lib/unistr.h: New file.
54140
54141         * modules/unistr/u8-to-u16: New file.
54142         * lib/unistr/u8-to-u16.c: New file.
54143
54144         * modules/unistr/u8-to-u32: New file.
54145         * lib/unistr/u8-to-u32.c: New file.
54146
54147         * modules/unistr/u16-to-u8: New file.
54148         * lib/unistr/u16-to-u8.c: New file.
54149
54150         * modules/unistr/u16-to-u32: New file.
54151         * lib/unistr/u16-to-u32.c: New file.
54152
54153         * modules/unistr/u32-to-u8: New file.
54154         * lib/unistr/u32-to-u8.c: New file.
54155
54156         * modules/unistr/u32-to-u16: New file.
54157         * lib/unistr/u32-to-u16.c: New file.
54158
54159         * modules/unistr/u8-check: New file.
54160         * modules/unistr/u16-check: New file.
54161         * modules/unistr/u32-check: New file.
54162         * lib/unistr/u8-check.c: New file.
54163         * lib/unistr/u16-check.c: New file.
54164         * lib/unistr/u32-check.c: New file.
54165
54166         * modules/unistr/u8-chr: New file.
54167         * modules/unistr/u16-chr: New file.
54168         * modules/unistr/u32-chr: New file.
54169         * lib/unistr/u8-chr.c: New file.
54170         * lib/unistr/u16-chr.c: New file.
54171         * lib/unistr/u32-chr.c: New file.
54172
54173         * modules/unistr/u8-cmp: New file.
54174         * modules/unistr/u16-cmp: New file.
54175         * modules/unistr/u32-cmp: New file.
54176         * lib/unistr/u8-cmp.c: New file.
54177         * lib/unistr/u16-cmp.c: New file.
54178         * lib/unistr/u32-cmp.c: New file.
54179
54180         * modules/unistr/u8-cpy: New file.
54181         * modules/unistr/u16-cpy: New file.
54182         * modules/unistr/u32-cpy: New file.
54183         * lib/unistr/u8-cpy.c: New file.
54184         * lib/unistr/u16-cpy.c: New file.
54185         * lib/unistr/u32-cpy.c: New file.
54186         * lib/unistr/u-cpy.h: New file.
54187
54188         * modules/unistr/u8-cpy-alloc: New file.
54189         * modules/unistr/u16-cpy-alloc: New file.
54190         * modules/unistr/u32-cpy-alloc: New file.
54191         * lib/unistr/u8-cpy-alloc.c: New file.
54192         * lib/unistr/u16-cpy-alloc.c: New file.
54193         * lib/unistr/u32-cpy-alloc.c: New file.
54194         * lib/unistr/u-cpy-alloc.h: New file.
54195
54196         * modules/unistr/u8-endswith: New file.
54197         * modules/unistr/u16-endswith: New file.
54198         * modules/unistr/u32-endswith: New file.
54199         * lib/unistr/u8-endswith.c: New file.
54200         * lib/unistr/u16-endswith.c: New file.
54201         * lib/unistr/u32-endswith.c: New file.
54202         * lib/unistr/u-endswith.h: New file.
54203
54204         * modules/unistr/u8-mblen: New file.
54205         * modules/unistr/u16-mblen: New file.
54206         * modules/unistr/u32-mblen: New file.
54207         * lib/unistr/u8-mblen.c: New file.
54208         * lib/unistr/u16-mblen.c: New file.
54209         * lib/unistr/u32-mblen.c: New file.
54210
54211         * modules/unistr/u8-mbtouc: New file.
54212         * modules/unistr/u16-mbtouc: New file.
54213         * modules/unistr/u32-mbtouc: New file.
54214         * lib/unistr/u8-mbtouc.c: New file.
54215         * lib/unistr/u16-mbtouc.c: New file.
54216         * lib/unistr/u32-mbtouc.c: New file.
54217
54218         * modules/unistr/u8-mbtouc-safe: New file.
54219         * modules/unistr/u16-mbtouc-safe: New file.
54220         * modules/unistr/u32-mbtouc-safe: New file.
54221         * lib/unistr/u8-mbtouc-safe.c: New file.
54222         * lib/unistr/u16-mbtouc-safe.c: New file.
54223         * lib/unistr/u32-mbtouc-safe.c: New file.
54224
54225         * modules/unistr/u8-move: New file.
54226         * modules/unistr/u16-move: New file.
54227         * modules/unistr/u32-move: New file.
54228         * lib/unistr/u8-move.c: New file.
54229         * lib/unistr/u16-move.c: New file.
54230         * lib/unistr/u32-move.c: New file.
54231         * lib/unistr/u-move.h: New file.
54232
54233         * modules/unistr/u8-next: New file.
54234         * modules/unistr/u16-next: New file.
54235         * modules/unistr/u32-next: New file.
54236         * lib/unistr/u8-next.c: New file.
54237         * lib/unistr/u16-next.c: New file.
54238         * lib/unistr/u32-next.c: New file.
54239
54240         * modules/unistr/u8-prev: New file.
54241         * modules/unistr/u16-prev: New file.
54242         * modules/unistr/u32-prev: New file.
54243         * lib/unistr/u8-prev.c: New file.
54244         * lib/unistr/u16-prev.c: New file.
54245         * lib/unistr/u32-prev.c: New file.
54246
54247         * modules/unistr/u8-set: New file.
54248         * modules/unistr/u16-set: New file.
54249         * modules/unistr/u32-set: New file.
54250         * lib/unistr/u8-set.c: New file.
54251         * lib/unistr/u16-set.c: New file.
54252         * lib/unistr/u32-set.c: New file.
54253         * lib/unistr/u-set.h: New file.
54254
54255         * modules/unistr/u8-startswith: New file.
54256         * modules/unistr/u16-startswith: New file.
54257         * modules/unistr/u32-startswith: New file.
54258         * lib/unistr/u8-startswith.c: New file.
54259         * lib/unistr/u16-startswith.c: New file.
54260         * lib/unistr/u32-startswith.c: New file.
54261         * lib/unistr/u-startswith.h: New file.
54262
54263         * modules/unistr/u8-stpcpy: New file.
54264         * modules/unistr/u16-stpcpy: New file.
54265         * modules/unistr/u32-stpcpy: New file.
54266         * lib/unistr/u8-stpcpy.c: New file.
54267         * lib/unistr/u16-stpcpy.c: New file.
54268         * lib/unistr/u32-stpcpy.c: New file.
54269         * lib/unistr/u-stpcpy.h: New file.
54270
54271         * modules/unistr/u8-stpncpy: New file.
54272         * modules/unistr/u16-stpncpy: New file.
54273         * modules/unistr/u32-stpncpy: New file.
54274         * lib/unistr/u8-stpncpy.c: New file.
54275         * lib/unistr/u16-stpncpy.c: New file.
54276         * lib/unistr/u32-stpncpy.c: New file.
54277         * lib/unistr/u-stpncpy.h: New file.
54278
54279         * modules/unistr/u8-strcat: New file.
54280         * modules/unistr/u16-strcat: New file.
54281         * modules/unistr/u32-strcat: New file.
54282         * lib/unistr/u8-strcat.c: New file.
54283         * lib/unistr/u16-strcat.c: New file.
54284         * lib/unistr/u32-strcat.c: New file.
54285         * lib/unistr/u-strcat.h: New file.
54286
54287         * modules/unistr/u8-strchr: New file.
54288         * modules/unistr/u16-strchr: New file.
54289         * modules/unistr/u32-strchr: New file.
54290         * lib/unistr/u8-strchr.c: New file.
54291         * lib/unistr/u16-strchr.c: New file.
54292         * lib/unistr/u32-strchr.c: New file.
54293
54294         * modules/unistr/u8-strcmp: New file.
54295         * modules/unistr/u16-strcmp: New file.
54296         * modules/unistr/u32-strcmp: New file.
54297         * lib/unistr/u8-strcmp.c: New file.
54298         * lib/unistr/u16-strcmp.c: New file.
54299         * lib/unistr/u32-strcmp.c: New file.
54300
54301         * modules/unistr/u8-strcpy: New file.
54302         * modules/unistr/u16-strcpy: New file.
54303         * modules/unistr/u32-strcpy: New file.
54304         * lib/unistr/u8-strcpy.c: New file.
54305         * lib/unistr/u16-strcpy.c: New file.
54306         * lib/unistr/u32-strcpy.c: New file.
54307         * lib/unistr/u-strcpy.h: New file.
54308
54309         * modules/unistr/u8-strcspn: New file.
54310         * modules/unistr/u16-strcspn: New file.
54311         * modules/unistr/u32-strcspn: New file.
54312         * lib/unistr/u8-strcspn.c: New file.
54313         * lib/unistr/u16-strcspn.c: New file.
54314         * lib/unistr/u32-strcspn.c: New file.
54315         * lib/unistr/u-strcspn.h: New file.
54316
54317         * modules/unistr/u8-strdup: New file.
54318         * modules/unistr/u16-strdup: New file.
54319         * modules/unistr/u32-strdup: New file.
54320         * lib/unistr/u8-strdup.c: New file.
54321         * lib/unistr/u16-strdup.c: New file.
54322         * lib/unistr/u32-strdup.c: New file.
54323         * lib/unistr/u-strdup.h: New file.
54324
54325         * modules/unistr/u8-strlen: New file.
54326         * modules/unistr/u16-strlen: New file.
54327         * modules/unistr/u32-strlen: New file.
54328         * lib/unistr/u8-strlen.c: New file.
54329         * lib/unistr/u16-strlen.c: New file.
54330         * lib/unistr/u32-strlen.c: New file.
54331         * lib/unistr/u-strlen.h: New file.
54332
54333         * modules/unistr/u8-strmblen: New file.
54334         * modules/unistr/u16-strmblen: New file.
54335         * modules/unistr/u32-strmblen: New file.
54336         * lib/unistr/u8-strmblen.c: New file.
54337         * lib/unistr/u16-strmblen.c: New file.
54338         * lib/unistr/u32-strmblen.c: New file.
54339
54340         * modules/unistr/u8-strmbtouc: New file.
54341         * modules/unistr/u16-strmbtouc: New file.
54342         * modules/unistr/u32-strmbtouc: New file.
54343         * lib/unistr/u8-strmbtouc.c: New file.
54344         * lib/unistr/u16-strmbtouc.c: New file.
54345         * lib/unistr/u32-strmbtouc.c: New file.
54346
54347         * modules/unistr/u8-strncat: New file.
54348         * modules/unistr/u16-strncat: New file.
54349         * modules/unistr/u32-strncat: New file.
54350         * lib/unistr/u8-strncat.c: New file.
54351         * lib/unistr/u16-strncat.c: New file.
54352         * lib/unistr/u32-strncat.c: New file.
54353         * lib/unistr/u-strncat.h: New file.
54354
54355         * modules/unistr/u8-strncmp: New file.
54356         * modules/unistr/u16-strncmp: New file.
54357         * modules/unistr/u32-strncmp: New file.
54358         * lib/unistr/u8-strncmp.c: New file.
54359         * lib/unistr/u16-strncmp.c: New file.
54360         * lib/unistr/u32-strncmp.c: New file.
54361
54362         * modules/unistr/u8-strncpy: New file.
54363         * modules/unistr/u16-strncpy: New file.
54364         * modules/unistr/u32-strncpy: New file.
54365         * lib/unistr/u8-strncpy.c: New file.
54366         * lib/unistr/u16-strncpy.c: New file.
54367         * lib/unistr/u32-strncpy.c: New file.
54368         * lib/unistr/u-strncpy.h: New file.
54369
54370         * modules/unistr/u8-strnlen: New file.
54371         * modules/unistr/u16-strnlen: New file.
54372         * modules/unistr/u32-strnlen: New file.
54373         * lib/unistr/u8-strnlen.c: New file.
54374         * lib/unistr/u16-strnlen.c: New file.
54375         * lib/unistr/u32-strnlen.c: New file.
54376         * lib/unistr/u-strnlen.h: New file.
54377
54378         * modules/unistr/u8-strpbrk: New file.
54379         * modules/unistr/u16-strpbrk: New file.
54380         * modules/unistr/u32-strpbrk: New file.
54381         * lib/unistr/u8-strpbrk.c: New file.
54382         * lib/unistr/u16-strpbrk.c: New file.
54383         * lib/unistr/u32-strpbrk.c: New file.
54384         * lib/unistr/u-strpbrk.h: New file.
54385
54386         * modules/unistr/u8-strrchr: New file.
54387         * modules/unistr/u16-strrchr: New file.
54388         * modules/unistr/u32-strrchr: New file.
54389         * lib/unistr/u8-strrchr.c: New file.
54390         * lib/unistr/u16-strrchr.c: New file.
54391         * lib/unistr/u32-strrchr.c: New file.
54392
54393         * modules/unistr/u8-strspn: New file.
54394         * modules/unistr/u16-strspn: New file.
54395         * modules/unistr/u32-strspn: New file.
54396         * lib/unistr/u8-strspn.c: New file.
54397         * lib/unistr/u16-strspn.c: New file.
54398         * lib/unistr/u32-strspn.c: New file.
54399         * lib/unistr/u-strspn.h: New file.
54400
54401         * modules/unistr/u8-strstr: New file.
54402         * modules/unistr/u16-strstr: New file.
54403         * modules/unistr/u32-strstr: New file.
54404         * lib/unistr/u8-strstr.c: New file.
54405         * lib/unistr/u16-strstr.c: New file.
54406         * lib/unistr/u32-strstr.c: New file.
54407         * lib/unistr/u-strstr.h: New file.
54408
54409         * modules/unistr/u8-strtok: New file.
54410         * modules/unistr/u16-strtok: New file.
54411         * modules/unistr/u32-strtok: New file.
54412         * lib/unistr/u8-strtok.c: New file.
54413         * lib/unistr/u16-strtok.c: New file.
54414         * lib/unistr/u32-strtok.c: New file.
54415         * lib/unistr/u-strtok.h: New file.
54416
54417         * modules/unistr/u8-uctomb: New file.
54418         * modules/unistr/u16-uctomb: New file.
54419         * modules/unistr/u32-uctomb: New file.
54420         * lib/unistr/u8-uctomb.c: New file.
54421         * lib/unistr/u16-uctomb.c: New file.
54422         * lib/unistr/u32-uctomb.c: New file.
54423
54424         * MODULES.html.sh (Unicode string functions): Add the new modules.
54425
54426 2007-01-08  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54429         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54430         subdirectories.
54431
54432 2007-01-08  Karl Berry  <karl@gnu.org>
54433
54434         * doc/error.texi: mention that main() fns must set program_name
54435         when progname is used.
54436
54437 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54438
54439         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54440         WCTYPE_H is empty, for the benefit of builds from non-distclean
54441         directories.  Problem reported by Eric Blake in
54442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54443
54444 2007-01-08  Bruno Haible  <bruno@clisp.org>
54445
54446         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54447         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54448         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54449         PROVIDE_CANONICALIZE_FILENAME_MODE.
54450         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54451
54452 2007-01-08  Bruno Haible  <bruno@clisp.org>
54453
54454         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54455         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54456         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54457         * lib/fts.c: Likewise.
54458         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54459
54460 2006-12-25  Bruno Haible  <bruno@clisp.org>
54461
54462         * modules/utf8-ucs4-safe: New file.
54463         * lib/utf8-ucs4-safe.h: New file.
54464         * lib/unistr/utf8-ucs4-safe.c: New file.
54465
54466         * modules/utf16-ucs4-safe: New file.
54467         * lib/utf16-ucs4-safe.h: New file.
54468         * lib/unistr/utf16-ucs4-safe.c: New file.
54469
54470         * MODULES.html.sh (Unicode string functions): Add the new modules.
54471
54472 2007-01-08  Bruno Haible  <bruno@clisp.org>
54473
54474         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54475         (Depends-on): Add unitypes.
54476         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54477         (u8_mbtouc_aux): Move out to separate file.
54478         (u8_mbtouc): Use ucs4_t, uint8_t types.
54479         * lib/unistr/utf8-ucs4.c: New file.
54480
54481         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54482         (Depends-on): Add unitypes.
54483         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54484         (u16_mbtouc_aux): Move out to separate file.
54485         (u16_mbtouc): Use ucs4_t, uint16_t types.
54486         * lib/unistr/utf16-ucs4.c: New file.
54487
54488         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54489         (Depends-on): Add unitypes.
54490         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54491         (u8_uctomb_aux): Move out to separate file.
54492         (u8_uctomb): Use ucs4_t, uint8_t types.
54493         * lib/unistr/ucs4-utf8.c: New file.
54494
54495         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54496         (Depends-on): Add unitypes.
54497         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54498         (u16_uctomb_aux): Move out to separate file.
54499         (u16_uctomb): Use ucs4_t, uint16_t types.
54500         * lib/unistr/ucs4-utf16.c: New file.
54501
54502 2006-12-25  Bruno Haible  <bruno@clisp.org>
54503
54504         * modules/unitypes: New file.
54505         * lib/unitypes.h: New file.
54506         * MODULES.html.sh (func_all_modules): New section "Unicode string
54507         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54508         this section. Add unitypes.
54509
54510 2007-01-08  Bruno Haible  <bruno@clisp.org>
54511
54512         Avoid variable names that conflict with those from libtool.
54513         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54514         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54515         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54516         library_names_spec to acl_library_names_spec, hardcode_* to
54517         acl_hardcode_*.
54518         Reported by Ralf Wildenhues.
54519
54520 2007-01-08  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54523         definition.
54524         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54525         definition.
54526         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54527         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54528         definition.
54529         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54530         definition.
54531         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54532         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54533         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54534         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54535         definition.
54536         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54537         definition.
54538         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54539         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54540         GC_USE_<algorithm>.
54541         * lib/gc-libgcrypt.c: Likewise.
54542         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54543         * modules/gc-arctwo (configure.ac): Likewise.
54544         * modules/gc-des (configure.ac): Likewise.
54545         * modules/gc-hmac-md5 (configure.ac): Likewise.
54546         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54547         * modules/gc-md2 (configure.ac): Likewise.
54548         * modules/gc-md4 (configure.ac): Likewise.
54549         * modules/gc-md5 (configure.ac): Likewise.
54550         * modules/gc-random (configure.ac): Likewise.
54551         * modules/gc-rijndael (configure.ac): Likewise.
54552         * modules/gc-sha1 (configure.ac): Likewise.
54553
54554 2007-01-08  Bruno Haible  <bruno@clisp.org>
54555
54556         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54557         macro definition.
54558         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54559         definition.
54560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54561         definition.
54562         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54563         * modules/fcntl-safer (configure.ac): Likewise.
54564         * modules/fopen-safer (configure.ac): Likewise.
54565         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54566         GNULIB_FWRITEERROR macro definition.
54567
54568 2007-01-08  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/gnulib-common.m4: New file.
54571         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54572         (func_get_filelist): Add m4/gnulib-common.m4.
54573
54574 2007-01-08  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54577         command.
54578
54579 2007-01-08  Jim Meyering  <jim@meyering.net>
54580
54581         Use a more robust test for a "can't happen" condition.
54582         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54583         narrowed the st_size value.  Presuming the "can't happen" condition
54584         is true, that narrowing could conceivably convert an invalid st_size
54585         value into a valid one.  Instead, use a change based on Matthew
54586         Woehlke's original patch.
54587
54588         Slight readability improvement: use an assert-like macro
54589         in place of literal "abort ()" uses.
54590         * lib/fts.c (fts_assert): Define.
54591         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54592         Use this macro instead of a bare 'abort'.
54593
54594 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54595
54596         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54597         simply work around them.
54598         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54599         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54600         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54601         declaring.
54602         Don't bother to define as macros, since the standard doesn't require it.
54603         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54604         longer worry about IRIX 5.3.
54605         (HAVE_WCTYPE_CTMP_BUG): Remove.
54606
54607 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54608
54609         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54610         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54611         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54612         Problems reported by Georg Schwarz for IRIX 5.3.
54613
54614         * gnulib-tool (autoconf_minversion): Take the maximum version number
54615         found, not the minimum.  Problem reported by James Youngman.
54616
54617 2007-01-03  Karl Berry  <karl@gnu.org>
54618
54619         * doc/error.texi: new file, explaining interaction with progname.
54620         * doc/gnulib.texi: include it.  Update copyright.
54621
54622 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54623
54624         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54625         AC_CANONICAL_HOST, to improve autobuild outputs.
54626
54627 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54628             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54629
54630         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54631         sockets, server sockets, and other file descriptors.  Count errors
54632         to compute the return value.  Reorder the code a bit to be easier
54633         to follow.  Don't set event bits that were not requested (except
54634         POLLERR and POLLHUP).
54635
54636 2007-01-01  Bruno Haible  <bruno@clisp.org>
54637
54638         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54639
54640 2007-01-03  Jim Meyering  <jim@meyering.net>
54641
54642         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54643
54644 2007-01-02  Bruno Haible  <bruno@clisp.org>
54645
54646         * modules/settime (Include): Require timespec.h.
54647         * modules/nanosleep (Include): Likewise.
54648
54649 2007-01-01  Bruno Haible  <bruno@clisp.org>
54650
54651         * gnulib-tool (func_emit_copyright_notice): Bump year.
54652         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54653
54654 2007-01-01  Bruno Haible  <bruno@clisp.org>
54655
54656         Improve support for OpenBSD.
54657         * build-aux/config.rpath (libname_spec): Export.
54658         (library_names_spec): New variable. Export.
54659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54660         library_names_spec from the config.rpath output. Locate shared library
54661         through the name pattern in library_names_spec.
54662
54663 2007-01-01  Eric Blake  <ebb9@byu.net>
54664
54665         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54666
54667 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54670         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54671         assume the C locale, and avoid an "eval" that could cause trouble.
54672         Problem with SORT reported by Bob Proulx.
54673
54674         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54675         Define.  Trivial patch from Henning Nielsen Lund, originally
54676         sent to bug-grep@gnu.org today.
54677
54678 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54681         struct stat.  Problem reported by Henning Nielsen Lund.
54682         * lib/acl.c: Include acl.h first, to check interface.  Don't
54683         bother to include sys/types.h and sys/stat.h again.
54684
54685 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54686
54687         Import the following change from libc; problem reported by
54688         Sven Verdoolaege.
54689
54690         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54691
54692         [BZ #1373]
54693         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54694
54695 2006-12-28  Jim Meyering  <jim@meyering.net>
54696
54697         * build-aux/announce-gen: Do not assume that the package
54698         builds any of tar.gz, tar.bz2, and .xdelta files.
54699         Suggestion from Simon Josefsson.
54700
54701 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54702
54703         * modules/announce-gen: New file.
54704
54705 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54708         handles its gotchas now.
54709         * lib/mbswidth.c: Likewise.
54710         * lib/wcwidth.h: Likewise.
54711         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54712         and iswcntrl; the wctype module does this stuff now.
54713         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54715         * modules/mbchar (Depends-on): Add wctype.
54716         * modules/mbswidth (Depends-on): Likewise.
54717         * modules/wcwidth (Depends-on): Likewise.
54718
54719 2006-12-27  Eric Blake  <ebb9@byu.net>
54720
54721         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54722         module uses more than what <wctype.h> is required to provide.
54723
54724 2006-12-26  Eric Blake  <ebb9@byu.net>
54725
54726         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54727
54728 2006-12-26  Eric Blake  <ebb9@byu.net>
54729
54730         * modules/absolute-header: New module.
54731         * modules/fcntl (Depends-on): Depend on it.
54732         * modules/inttypes (Depends-on): Likewise.
54733         * modules/stdint (Depends-on): Likewise.
54734         * modules/sys_stat (Depends-on): Likewise.
54735         * modules/wctype (Depends-on): Likewise.
54736         * MODULES.html.sh (Support for building libraries and
54737         executables): Document it.
54738
54739 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         * gnulib-tool (SED): Remove, undoing previous change.
54742         The problem was that it broke coreutils on Solaris, because
54743         "sed --posix" leaked into a makefile.
54744         (sed): New alias, if 'alias' and GNU sed.
54745
54746 2006-12-24  Jim Meyering  <jim@meyering.net>
54747
54748         Work around an fchownat bug in glibc-2.4:
54749         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54750         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54751         in spite of the -P option.
54752         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54753         New macros.
54754         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54755         * modules/openat (Files): Add lib/fchownat.c.
54756         * lib/openat.c (fchownat): Don't define here.  Move to...
54757         * lib/fchownat.c: ...this new file.
54758
54759 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         Fix bug reported by Bruno Haible in
54762         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54763         where quotearg.c didn't compile on Mac OS X 10.2 because it
54764         lacks <wchar.h> and wint_t.
54765         * lib/wctype_.h (__wctype_wint_t): New type.
54766         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54767         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54768         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54769         Arg is now of type __wctype_wint_t, not wint_t.
54770         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54771         substitute HAVE_WINT_T.
54772         * modules/wctype (Files): Add m4/wint_t.m4.
54773         (wctype.h): Substitute HAVE_WINT_T.
54774
54775 2006-12-23  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54778
54779 2006-12-23  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54782         S_ISLNK.
54783         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54784         mingw.
54785
54786 2006-12-22  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/copy-file.c: Include acl.h.
54789         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54790         Close the file descriptors only after being done with copy_acl.
54791         * modules/copy-file (Depends-on): Add acl.
54792
54793 2006-12-22  Bruno Haible  <bruno@clisp.org>
54794
54795         * gnulib-tool (SED): New variable.
54796         Use $SED instead of sed everywhere.
54797
54798 2006-12-22  Bruno Haible  <bruno@clisp.org>
54799
54800         * modules/no-c++: New file.
54801         * m4/no-c++.m4: New file.
54802         * MODULES.html.sh (Support for building libraries and executables):
54803         Add no-c++.
54804
54805 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54808         Include <limits.h>, and use its INT_MAX to rewrite the
54809         j loop so that it does not overflow 'int'.  Problem reported by
54810         Ralf Wildenhues in
54811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54812         Play it safe by shifting left by 1 rather than multiplying by 2,
54813         as GCC is less likely to optimize this away when the value
54814         is signed (when it assumes overflow leads to undefined behavior).
54815         Also, don't assume time_t uses two's complement.
54816
54817 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * MODULES.html.sh: New module wctype.
54820         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54821         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54822         <wctype.h>, since the new wctype module should fix this.
54823         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54824         the wctype module should arrange for it.
54825         * lib/regex_internal.h: Likewise.
54826         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54827         since the wctype module should handle this now.
54828         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54829         * modules/fnmatch (Depends-on): Add wctype.
54830         * modules/quotearg (Depends-on): Likewise.
54831         * modules/regex (Depends-on): Likewise.
54832
54833 2006-12-19  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54836         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54837
54838 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54839
54840         * modules/savewd (Depends-on): Fix dependency on fcntl.
54841
54842 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54843
54844         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54845         conforms to C99, rather than relying on the user's environment
54846         setting of STDINT_H.
54847
54848 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54849         and Eric Blake  <ebb9@byu.net>
54850
54851         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54852         This is more consistent with the other defines here.
54853         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54854         Port to z/OS.  Problem reported by Paul Gilmartin.
54855         Change local vars to use gl_ prefix rather than ac_.
54856         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54857         with other defines.
54858         * modules/double-slash-root: New module.
54859         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54860         (Depends-on): Add double-slash-root.
54861         * MODULES.html.sh (File system functions): Mention new module.
54862
54863 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54864
54865         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54866         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54867         This is for the benefit of gzip, which doesn't do i18n.
54868
54869 2006-12-12  Jim Meyering  <jim@meyering.net>
54870
54871         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54872         Reported by Andreas Schwab <schwab@suse.de>.
54873
54874 2006-12-12  Bruno Haible  <bruno@clisp.org>
54875
54876         Merge these changes.
54877         2006-09-05  Bruno Haible  <bruno@clisp.org>
54878         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54879         iconv_alloc succeeded.
54880         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54881         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54882         test for " && dest " at the end - dest is always != NULL there. Call
54883         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54884         with 2xNULL arguments, also to flush the state storage. Handle the
54885         IRIX iconv behaviour. Realloc the final result, to throw away unused
54886         memory.
54887
54888 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54889
54890         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54891         and fchmodat unconditionally, since glibc 2.4 has them.
54892         Problem reported by Arkadiusz Miskiewicz.
54893
54894 2006-12-10  Bruno Haible  <bruno@clisp.org>
54895
54896         * gnulib-tool (func_import): Show the include files only for those
54897         modules that are copied and specified.
54898         Reported by Karl Berry.
54899
54900 2006-12-08  Jim Meyering  <jim@meyering.net>
54901
54902         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54903         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54904
54905         * build-aux/announce-gen: Add two new options, both optional:
54906         --bootstrap-tools=TOOL_LIST
54907               a comma-separated list of tools, e.g.,
54908               autoconf,automake,bison,gnulib
54909         --gnulib-snapshot-date=DATE
54910               if gnulib is in the bootstrap tool list,
54911               then report this as the snapshot date.
54912               If not specified, use the current date/time.
54913               If you specify a date here, be sure it's UTC.
54914
54915 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54916
54917         * tests/test-argp-2.sh: Fix test to match actual output.
54918         (func_compare): Fix sed script to be portable.
54919
54920 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54923         workaround for this case.  It is not autoconfigured now; offhand
54924         it's hard to see how to autoconfigure it.
54925
54926 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54927
54928         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54929         a directory that is about to be chowned.  Such a directory's
54930         initial file permissions should permit the owner only and this
54931         should not be changed until after the chown, since the group and
54932         other bits would be incorrect if they granted permission before
54933         the chown.
54934
54935         Fix porting problem for iswctype reported by Georg Schwarz in:
54936         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54937         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54938         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54940         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54941
54942 2006-12-03  Jim Meyering  <jim@meyering.net>
54943
54944         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54945         p->fts_statp may not yet be defined.
54946         (fts_read): Instead, set it in the caller, once p->fts_statp is
54947         sure to be defined, and corresponds to a top-level directory.
54948         This bug made du -x fail.  Here's the coreutils test case:
54949         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54950         Reported by Mike Frysinger.
54951
54952 2006-12-01  Jim Meyering  <jim@meyering.net>
54953
54954         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54955         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54956         Reported by Simon Josefsson.
54957
54958 2006-11-30  Jim Meyering  <jim@meyering.net>
54959
54960         * m4/warning.m4: Use the all-permissive copyright notice
54961         recommended by RMS (rather than LGPL).
54962         * m4/vararrays.m4: Likewise.
54963         * m4/flexmember.m4: Likewise.
54964
54965 2006-11-29  Bruno Haible  <bruno@clisp.org>
54966
54967         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54968         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54969         using +=.
54970         Reported by Simon Josefsson <simon@josefsson.org>.
54971
54972 2006-11-28  James Youngman <jay@gnu.org>
54973
54974         * README: Advise users that they might find the bug-gnulib@gnu.org
54975         and autotools-announce@gnu.org mailing lists useful.
54976
54977 2006-11-28  Bruno Haible  <bruno@clisp.org>
54978
54979         * m4/ptrdiff_max.m4: Remove file.
54980
54981 2006-11-21  Bruno Haible  <bruno@clisp.org>
54982
54983         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54984         _AC_COMPUTE_INT.
54985         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54986         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54987         _AC_COMPUTE_INT.
54988         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54989         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54990         _AC_COMPUTE_INT.
54991         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54992
54993 2006-11-28  Jim Meyering  <jim@meyering.net>
54994
54995         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54996         warning from "gcc -Wshadow" about shadowing the builtin.
54997
54998 2006-11-27  Bruno Haible  <bruno@clisp.org>
54999
55000         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55001         _AC_COMPUTE_INT.
55002         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55003
55004 2006-11-27  Bruno Haible  <bruno@clisp.org>
55005             Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55008
55009 2006-11-26  Bruno Haible  <bruno@clisp.org>
55010
55011         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55012         noinst_LTLIBRARIES.
55013
55014 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55015             Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55018         if compiling with "gcc -ansi".
55019
55020 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         Fix some incompatibilities with gcc -ansi -pedantic.
55023         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55024         if compiling pedantically with GCC, unless it's C99 or later.
55025         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55026         it mishandles gcc -ansi -pedantic as well.
55027         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55028         if gcc -pedantic.
55029         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55030         initializers for struct if -pedantic, unless it's C99 or later.
55031
55032 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55033
55034         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55035         Don't close an fd more than once. Identical atimes indicate
55036         success, not failure.
55037
55038 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55039
55040         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55041
55042 2006-11-23  Jim Meyering  <jim@meyering.net>
55043
55044         * build-aux/announce-gen: New file.  From coreutils.
55045
55046 2006-11-22  Jim Meyering  <jim@meyering.net>
55047
55048         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55049         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55050         (fts_read): Use a temporary to narrow the overused st_size member
55051         before using it in a switch statement.  Reported by Matthew Woehlke.
55052
55053         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55054         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55055
55056 2006-11-20  Bruno Haible  <bruno@clisp.org>
55057
55058         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55059         changequote instead of pairs of brackets.
55060         Reported by Andreas Schwab <schwab@suse.de>.
55061
55062 2006-11-21  Jim Meyering  <jim@meyering.net>
55063
55064         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55065         so as to remain compatible with older compilers.
55066         Patch from Michael Deutschmann.
55067
55068 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * MODULES.html.sh (File system functions): Add openat.
55071
55072         * lib/openat.h (rpl_fstatat): New macro, if
55073         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55074         (fstatat): Define to rpl_fstatat under the same conditions,
55075         unless COMPILING_FSTATAT.
55076         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55077         seems to have the bug.
55078         * lib/fstatat.c: New file.
55079         * modules/openat (Files): Add it.
55080
55081 2006-11-20  Bruno Haible  <bruno@clisp.org>
55082
55083         * Makefile: New file.
55084
55085 2006-11-20  Jim Meyering  <jim@meyering.net>
55086
55087         The beginnings of syntax-related checks for gnulib.
55088         * lib/Makefile: New file.
55089         * lib/t-idcache: New script.  Ensure that the two halves of
55090         idcache.c stay in sync.
55091
55092         * lib/idcache.c: Adjust comments in user- and group- portions to
55093         be more accurate, and to be consistent with one another.
55094
55095 2006-11-20  Jim Meyering  <jim@meyering.net>
55096
55097         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55098         continue using the flexible array member (thus, this module performs
55099         half as many malloc calls), with the addition that...
55100         (getgroup, getuser): Consistently record a non-match via an empty
55101         "name" string, and map an empty string match to a NULL return value.
55102         * modules/idcache (Depends-on): Re-add flexmember.
55103
55104         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55105         (getuidbyname, getgroup, getgidbyname): Likewise.
55106
55107         Use cleaner syntax: NULL rather than 0.
55108         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55109
55110 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55113         It mishandled the case where the group was missing.
55114         Problem reported by Greg Schafer.
55115         * modules/idcache: Likewise.
55116
55117 2006-11-18  Jim Meyering  <jim@meyering.net>
55118
55119         * check-module (%exempt_header): Add exception for some
55120         conditionally-included headers.
55121
55122         * modules/i-ring (Depends-on): Add verify.
55123         (License): Change to LGPL.
55124
55125 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55128         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55129         and inttostr.h.  Use snprintf rather than uinttostr, so that
55130         LGPLed code doesn't depend on GPLed.
55131
55132 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55133
55134         * modules/inline (License): Change from GPL to LGPL.
55135
55136 2006-11-17  Jim Meyering  <jim@meyering.net>
55137
55138         * modules/d-type (License): Switch to LGPL.
55139
55140 2006-11-15  Bruno Haible  <bruno@clisp.org>
55141
55142         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55143
55144 2006-11-15  Eric Blake  <ebb9@byu.net>
55145
55146         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55147         the module dependency.
55148
55149 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55150             Bruno Haible  <bruno@clisp.org>
55151
55152         * gnulib-tool (func_create_testdir): Add license consistency check.
55153
55154 2006-11-15  Eric Blake  <ebb9@byu.net>
55155
55156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55157         random "(cached)" in configure output.
55158
55159 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55160
55161         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55162         test for conforming inttypes.h is both announced and cached.
55163
55164         * MODULES.html.sh (seen_modules, seen_files): New variables.
55165         (func_module): Rewrite to use a few less gnulib-tool and sed
55166         invocations.  Avoid a couple of quadratic algorithms for ...
55167         (missed_modules, missed_files): ... these, with ...
55168         (func_append, func_tmpdir): ... these new functions, from
55169         gnulib-tool.  Analogously, install traps for cleanup.
55170
55171         * tests/test-gc.c (main): Remove unused variables.
55172         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55173
55174 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55175
55176         * modules/inttostr (License): Change to LGPL.
55177
55178 2006-11-14  Eric Blake  <ebb9@byu.net>
55179
55180         * modules/tempname (License): Change to LGPL.
55181
55182 2006-11-14  Eric Blake  <ebb9@byu.net>
55183
55184         * doc/functions.texi (Function Portability): *printf functions on
55185         Cygwin now understand all POSIX size specifiers.
55186
55187 2006-11-14  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/c-ctype (License): Change to LGPL.
55190
55191 2006-11-12  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55194         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55195         for GNOME libraries, for which the include files are installed in
55196         subdirectories of $prefix/include.
55197
55198 2006-11-12  Bruno Haible  <bruno@clisp.org>
55199
55200         * m4/lib-link.m4: Require at least autoconf-2.54.
55201         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55202         name to underscores for the --with option.
55203
55204 2006-11-13  Bruno Haible  <bruno@clisp.org>
55205
55206         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55207         the tests directory.
55208         Reported by Ralf Wildenhues.
55209
55210 2006-11-13  Bruno Haible  <bruno@clisp.org>
55211
55212         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55213         (func_emit_initmacro_end): Undo the override here.
55214         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55215         Works around the famous automake error in coreutils.
55216
55217 2006-11-13  Eric Blake  <ebb9@byu.net>
55218
55219         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55220         element, not its node.
55221
55222 2006-11-12  Bruno Haible  <bruno@clisp.org>
55223
55224         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55225         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55226
55227 2006-11-12  Bruno Haible  <bruno@clisp.org>
55228
55229         * gnulib-tool: New option --local-symlink.
55230         (func_usage): Document it.
55231         (lsymbolic): New variable.
55232         (func_import, func_create_testdir): If --symlink was not specified,
55233         test whether --local-symlink was specified and the file comes from
55234         the local_gnulib_dir.
55235
55236 2006-11-12  Bruno Haible  <bruno@clisp.org>
55237
55238         * gnulib-tool (func_ln): New function.
55239         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55240
55241 2006-11-12  Bruno Haible  <bruno@clisp.org>
55242
55243         Finish support for source files in subdirectories.
55244         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55245         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55246         AUTOMAKE_OPTIONS.
55247         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55248
55249 2006-11-12  Bruno Haible  <bruno@clisp.org>
55250
55251         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55252         EXTRA_lib_SOURCES augmentation.
55253         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55254
55255 2006-11-12  Jim Meyering  <jim@meyering.net>
55256
55257         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55258         file descriptors.  This also averts a failure on systems with
55259         native openat support when a traversed directory lacks "x" access.
55260         * lib/fts_.h: Include "i-ring.h"
55261         (struct FTS) [fts_fd_ring]: New member.
55262         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55263         (FCHDIR): Add parentheses.
55264         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55265         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55266         When descending, rather than simply closing the previous
55267         fts_cwd_fd value, push that file descriptor onto the ring.
55268         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55269         (fts_open): Initialize the new fd_ring member.
55270         (fts_close): Clear the ring.
55271         (fts_safe_changedir): When possible, use our new fd_ring to skip
55272         the diropen and fstat and dev/ino comparison that would normally
55273         accompany a virtual `chdir ("..")'.
55274
55275         * modules/fts (Depends-on): Add i-ring.
55276         * modules/i-ring: New module.
55277         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55278         * m4/i-ring.m4: New file.
55279
55280 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55281
55282         * gnulib-tool (func_create_testdir): Fix replacement of
55283         `build-aux' in configure.ac.  Run autotools in gltests
55284         subdirectory.
55285         (func_create_testdir, func_create_megatestdir, test): There is
55286         no need for '--force' in most autotool invocations in a new
55287         tree.  Actually fail the whole test if any of the tools, or the
55288         configure or make stages fail.
55289
55290         Sync from Automake.
55291         * build-aux/gnupload: Revert last change.  Add pointer to upload
55292         instructions of the GNU Maintenance Instructions.
55293         Suggestion by Karl Berry.
55294
55295 2006-11-10  Jim Meyering  <jim@meyering.net>
55296
55297         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55298
55299 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55302         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55303         (bind_textdomain_codeset) [! ENABLE_NLS]:
55304         Evaluate all the arguments.  That way, callers get compatible behavior
55305         if the arguments have side effects.  Also, it avoids some GCC
55306         diagnostics in some cases; Joel E. Denny reported problems when Bison
55307         was configured with --enable-gcc-warnigs.
55308
55309 2006-11-10  Jim Meyering  <jim@meyering.net>
55310
55311         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55312         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55313         account.
55314
55315 2006-11-10  Jim Meyering  <jim@meyering.net>
55316
55317         * modules/inline: New file/module.
55318         * modules/xalloc (Files): Remove m4/inline.m4.
55319         (Depends-on): Add inline, instead.
55320         * modules/oset: Likewise.
55321         * modules/list: Likewise.
55322
55323 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55324
55325         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55326         Problem reported by Matthew Woehlke.
55327
55328 2006-11-09  Bruno Haible  <bruno@clisp.org>
55329
55330         * lib/tempname.c (gen_tempname): Remove variant that invokes
55331         __gen_tempname.
55332         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55333         __gen_tempname.
55334
55335 2006-11-08  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55338         to 'yes' instead of 'cross-compiling'.
55339
55340 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * lib/quotearg.h (quotearg_free): New decl.
55343         * lib/quotearg.c (quotearg_free): New function.
55344         (slot0, nslots, slotvec0, slotvec):
55345         Now file-scope so that quotearg_free can get at them.
55346
55347 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55348
55349         Sync from Automake.
55350         * build-aux/gnupload: Add missing 'gnu' to example URL.
55351         Report by Karl Berry.
55352
55353 2006-11-08  Bruno Haible  <bruno@clisp.org>
55354
55355         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55356         Suggested by Paul Eggert.
55357
55358 2006-11-08  Jim Meyering  <jim@meyering.net>
55359
55360         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55361         It's already included if !_LIBC.
55362         (fts_safe_changedir): Add a comment.
55363
55364 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55365
55366         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55367         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55368         Matthew Woehlke.
55369
55370         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55371         definitions up, to avoid colliding with change below.
55372         (static_inline) [HAVE_INLINE]: New macro.
55373         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55374         Provide extern decls when !HAVE_INLINE.  Do not define unless
55375         static_inline is defined, either by us or by xmalloc.c.  Use
55376         static_inline rather than static inline.
55377         (XCALLOC): Optimize sizeof(T) = 1 case.
55378         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55379
55380 2006-11-07  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55383         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55384         AC_C_INLINE.
55385         * modules/xalloc (Files): Add m4/inline.m4.
55386
55387 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55388
55389         * README: Fix typo.
55390         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55391         (Miscellanous Notes): ...from this.
55392
55393 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55396         Mention that offsetof should be used instead of sizeof.
55397         From Bruno Haible.
55398
55399 2006-11-07  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55402
55403 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55404
55405         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55406         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55407         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55408         (gl_tree_add_before, gl_tree_add_after):
55409         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55410         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55411         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55412         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55413         (gl_linked_add_after, gl_linked_add_at): Likewise.
55414         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55415         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55416         (gl_tree_add_before, gl_tree_add_after): Likewise.
55417         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55418         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55419         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55420
55421 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55422
55423         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55424
55425 2006-11-06  Bruno Haible  <bruno@clisp.org>
55426
55427         * m4/inline.m4: New file.
55428         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55429         * modules/list (Files): Add m4/inline.m4.
55430         * modules/oset (Files): Likewise.
55431
55432 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * lib/idcache.c: Include <stddef.h>, for offsetof.
55435         (struct userid.name): Change from char * to a flexible array member.
55436         All uses changed.
55437         * modules/idcache (Depends-on): Add flexmember.
55438
55439         * MODULES.html.sh (Core language properties): New module flexmember.
55440         * modules/flexmember, m4/flexmember.m4: New files.
55441
55442         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55443         inline functions that are identical with the old xnmalloc_inline,
55444         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55445         that we can avoid some unnecessary integer multiplications and
55446         divisions in the common case where the element size is known at
55447         compile time.
55448         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55449         needed.
55450         (xnboundedmalloc): Remove.
55451         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55452         arguments, for consistency with rest of this header.
55453         (xcharalloc): Rewrite using XNMALLOC.
55454         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55455         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55456         versions have been moved to lib/xalloc.h and renamed to be the
55457         non-*_inline versions.
55458         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55459         and xnrealloc functions, since those functions are now inline and
55460         now call us.
55461         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55462         renaming described above.
55463         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55464         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55465         captures the dependency in AC_C_INLINE.
55466
55467         New module canonicalize-lgpl, proposed by Charles Wilson in
55468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55469         with a few small changes afterwards.
55470         * MODULES.html.sh (File system functions): New module
55471         canonicalize-lgpl.
55472         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55473         and canonicalize_file_name.
55474         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55475         * modules/canonicalize-lgpl: New files.
55476
55477 2006-11-05  Bruno Haible  <bruno@clisp.org>
55478
55479         * gnulib-tool (func_import, func_create_testdir): Create directories
55480         also for files in subdirectories of lib/.
55481
55482 2006-11-05  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55485         ANSI C compliant.
55486
55487 2006-11-03  Bruno Haible  <bruno@clisp.org>
55488
55489         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55490         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55491         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55492         (xnboundedmalloc): New inline function.
55493         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55494         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55495         xmalloc.
55496         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55497         xmalloc.
55498         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55499         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55500         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55501         xmalloc.
55502         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55503         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55504         xmalloc.
55505         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55506         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55507         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55508         xmalloc.
55509         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55510         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55511         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55512         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55513         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55514         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55515         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55516
55517 2006-11-03  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/c-ctype.h [C++]: Define functions without name mangling.
55520         * lib/fwriteerror.h [C++]: Likewise.
55521         * lib/gcd.h [C++]: Likewise.
55522         * lib/linebreak.h [C++]: Likewise.
55523
55524 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55525
55526         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55527         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55528         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55530         Check for functions and headers just once.
55531         Check for declaration of canonicalize_file_name.
55532         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55533
55534 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55535
55536         * gnulib-tool (func_import): Fix typo in actioncmd.
55537
55538 2006-11-02  Bruno Haible  <bruno@clisp.org>
55539
55540         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55541         newline sequence in the Makefile.am snippet as a space, like "make"
55542         does.
55543         Reported by Roger Persson <perrog@gmail.com>.
55544
55545 2006-11-01  Bruno Haible  <bruno@clisp.org>
55546
55547         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55548         already declared in <string.h>.
55549         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55550
55551 2006-11-01  Bruno Haible  <bruno@clisp.org>
55552
55553         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55554         * lib/strcase.h: Include <string.h>.
55555         (strcasecmp): Define to rpl_strcasecmp here.
55556
55557 2006-11-01  Bruno Haible  <bruno@clisp.org>
55558
55559         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55560
55561 2006-11-01  Eric Blake  <ebb9@byu.net>
55562
55563         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55564
55565         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55566
55567 2006-10-29  Bruno Haible  <bruno@clisp.org>
55568
55569         Make it compile in C++ mode.
55570         * lib/full-write.c (full_rw): Add a cast.
55571
55572 2006-11-01  Bruno Haible  <bruno@clisp.org>
55573
55574         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55575         be POSIX compliant.
55576         Reported by Roger Persson <perrog@gmail.com>.
55577
55578 2006-11-01  Eric Blake  <ebb9@byu.net>
55579
55580         * lib/getopt_.h: Fix comments.
55581
55582 2006-10-31  Eric Blake  <ebb9@byu.net>
55583
55584         * modules/tmpdir (Depends-on): Add sys_stat.
55585         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55586         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55587         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55588         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55589         tempname.
55590
55591 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55592
55593         Avoid some C++ diagnostics reported by Bruno Haible.
55594         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55595         xmalloc.
55596         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55597         (struct slotvec): Move to top level.
55598         (quotearg_n_options): Rewrite to avoid xmalloc.
55599         * lib/xalloc.h (xcharalloc): New function.
55600         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55601         [defined __cplusplus]: Add function template that provides result
55602         type propagation.  This part of the change is from Bruno Haible.
55603
55604 2006-10-29  Bruno Haible  <bruno@clisp.org>
55605
55606         Make it compile in C++ mode.
55607         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55608         * lib/strnlen1.c (strnlen1): Cast memchr result.
55609         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55610         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55611         (create_temp_dir): Rename local variable 'template'.
55612         (compile_csharp_using_sscli): Add cast.
55613         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55614         * lib/findprog.c (find_in_path): Likewise.
55615         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55616         * lib/wait-process.c (register_slave_subprocess): Likewise.
55617
55618 2006-10-22  Bruno Haible  <bruno@clisp.org>
55619
55620         * modules/tsearch: New file.
55621         * lib/tsearch.h: New file.
55622         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55623         * m4/tsearch.m4: New file.
55624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55625
55626 2006-10-29  Eric Blake  <ebb9@byu.net>
55627
55628         * lib/arcfour.c: Assume config.h.
55629         * lib/arctwo.c: Likewise.
55630         * lib/base64.c: Likewise.
55631         * lib/check-version.c: Likewise.
55632         * lib/crc.c: Likewise.
55633         * lib/des.c: Likewise.
55634         * lib/gc-gnulib.c: Likewise.
55635         * lib/gc-libgcrypt.c: Likewise.
55636         * lib/gc-pbkdf2-sha1.c: Likewise.
55637         * lib/getaddrinfo.c: Likewise.
55638         * lib/getdelim.c: Likewise.
55639         * lib/getline.c: Likewise.
55640         * lib/hmac-md5.c: Likewise.
55641         * lib/hmac-sha1.c: Likewise.
55642         * lib/iconvme.c: Likewise.
55643         * lib/md2.c: Likewise.
55644         * lib/md4.c: Likewise.
55645         * lib/memxor.c: Likewise.
55646         * lib/read-file.c: Likewise.
55647         * lib/readline.c: Likewise.
55648         * lib/rijndael-alg-fst.c: Likewise.
55649         * lib/rijndael-api-fst.c: Likewise.
55650         * lib/xgetdomainname.c: Likewise.
55651
55652 2006-10-28  Eric Blake  <ebb9@byu.net>
55653
55654         * lib/xstrndup.c: Assume config.h.
55655
55656 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55659         stat-macros.h is now for our own macros, whereas stat_h is for
55660         macros in the <sys/stat.h> name space.
55661         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55662         (STAT_MACROS_H): Remove.
55663         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55664         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55665         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55666         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55667         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55668         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55669         Move these macros to ...
55670         * lib/stat_.h: here.  Don't include stat-macros.h.
55671         * lib/canonicalize.c: Don't include stat-macros.h.
55672         * lib/chown.c: Likewise.
55673         * lib/euidaccess.c: Likewise.
55674         * lib/file-type.c: Likewise.
55675         * lib/filemode.c: Likewise.
55676         * lib/glob.c: Likewise.
55677         * lib/isapipe.c: Likewise.
55678         * lib/lchown.c: Likewise.
55679         * lib/lstat.c: Likewise.
55680         * lib/mkdir-p.c: Likewise.
55681         * lib/rmdir.c: Likewise.
55682         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55684         unless mkdir isn't declared, to speed up 'configure'.
55685         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55686         would define all the S_* symbols.
55687         * modules/canonicalize (Depends-on):
55688         Depend on sys_stat, not stat-macros.
55689         * modules/chown: Likewise.
55690         * modules/euidaccess: Likewise.
55691         * modules/filemode: Likewise.
55692         * modules/file-type: Likewise.
55693         * modules/glob: Likewise.
55694         * modules/isapipe: Likewise.
55695         * modules/lchown: Likewise.
55696         * modules/lstat: Likewise.
55697         * modules/mkancesdirs: Likewise.
55698         * modules/rmdir: Likewise.
55699         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55700         * modules/modechange: Likewise.
55701         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55702         (configure.ac): Remove gl_STAT_MACROS.
55703         * modules/sys_stat (Depends-on): Remove stat-macros.
55704
55705 2006-10-27  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/signed.m4: Remove file.
55708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55709         invocation.
55710         * modules/vasnprintf (Files): Remove m4/signed.m4.
55711
55712 2006-10-27  Bruno Haible  <bruno@clisp.org>
55713
55714         Update to GNU gettext 0.16.
55715         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55716         m4/inttypes-h.m4, m4/signed.m4.
55717         * m4/gettext.m4: Update to GNU gettext 0.16.
55718         * m4/intl.m4: New file, from GNU gettext.
55719         * m4/intldir.m4: New file, from GNU gettext.
55720         * config/srclist.txt: Update
55721
55722 2006-10-27  Eric Blake  <ebb9@byu.net>
55723
55724         * MODULES.html.sh: Document tempname.
55725         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55726         dependencies.
55727         (Files): Move lib/tempname.c...
55728         * modules/tempname: ...to this new module.
55729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55730         (gl_PREREQ_TEMPNAME): Move...
55731         * m4/tempname.m4: ...to this new file.
55732         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55733         * modules/sys_stat (Depends-on): Add stat-macros.
55734         * lib/stat_.h (includes): Pick up stat macros.
55735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55736         if stat macros are broken.
55737         * lib/tempname.c (includes): No need to include "stat-macros.h".
55738         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55739         (direxists, __path_search) [!_LIBC]: Don't compile these in
55740         gnulib; the tmpdir module covers that.
55741         * lib/tempname.h: New file.
55742
55743 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55744
55745         * COPYING: Explain how gnulib-tool converts licence headers.
55746         Almost all wording by Eric Blake.
55747
55748 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * lib/mbchar.h (is_basic_table): Make read-only.
55751         * lib/mbchar.c (is_basic_table): Likewise.
55752         Reported by John Darrington.
55753
55754 2006-10-25  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/progname.h (set_program_name): Undefine before defining.
55757
55758 2006-10-25  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55761         false for non-gcc C++ compilers.
55762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55763
55764 2006-10-24  Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55767         iconv implementations like Irix iconv.
55768
55769 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * modules/vararrays: New file.
55772         * m4/vararrays.m4: New file, taken from diffutils.
55773         * MODULES.html.sh: New module vararrays.
55774
55775 2006-10-24  Karl Berry  <karl@gnu.org>
55776
55777         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55778         Don't call GNU Unix.
55779
55780 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55781
55782         * users.txt: Add Libtool.
55783
55784         Sync from Libtool:
55785
55786         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55787
55788         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55789         to gnulib's policy of including config.h unconditionally.
55790
55791 2006-10-24  Bruno Haible  <bruno@clisp.org>
55792
55793         * modules/wcwidth (Files): Add m4/wint_t.m4.
55794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55795         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55796
55797 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55798
55799         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55800         to pacify GCC with some -W flags enabled.  Problem reported by
55801         Bruno Haible.
55802
55803 2006-10-24  Jim Meyering  <jim@meyering.net>
55804
55805         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55806         Reported by Karl Berry.
55807
55808 2006-10-23  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55811
55812 2006-10-24  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/gl_list.h: Use C comment style, not C++ comment style.
55815
55816 2006-10-23  Eric Blake  <ebb9@byu.net>
55817
55818         * lib/getaddrinfo.c (includes): Add missing include.
55819
55820 2006-10-23  Bruno Haible  <bruno@clisp.org>
55821             Paul Eggert  <eggert@cs.ucla.edu>
55822
55823         Ability to rename obstack_free.
55824         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55825         obstack_free.
55826         (obstack_free): Invoke the __obstack_free macro.
55827         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55828
55829 2006-10-23  Bruno Haible  <bruno@clisp.org>
55830             Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55833         __argc, __argv from the declaration. (They are defined as macros on
55834         mingw.)
55835
55836 2006-10-22  Bruno Haible  <bruno@clisp.org>
55837
55838         * doc/gnulib-intro.texi: New file.
55839         * doc/gnulib.texi: Include it.
55840
55841 2006-10-21  Bruno Haible  <bruno@clisp.org>
55842
55843         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55844         "Introduction", "Miscellanous Notes", "Particular Modules".
55845
55846 2006-10-21  Bruno Haible  <bruno@clisp.org>
55847
55848         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55849         Change mostlyclean-local rule to avoid sh syntax error from bash
55850         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55851
55852 2006-10-23  Jim Meyering  <jim@meyering.net>
55853
55854         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55855         in place of snprintf.
55856
55857         * modules/inttostr (Files): Add lib/uinttostr.c.
55858         * lib/uinttostr.c (inttostr): New file/function.
55859         * lib/inttostr.h (uinttostr): Declare.
55860         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55861         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55862         Add uinttostr.
55863         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55864
55865 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * lib/canonicalize.c (ELOOP): Define if not already defined.
55868         Problem reported by Bruno Haible in
55869         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55870
55871 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55874         Problem reported by Perry Smith and Ville Laurikari.
55875
55876         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55877         uses.
55878
55879 2006-10-19  Bruno Haible  <bruno@clisp.org>
55880
55881         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55882         for mingw.
55883
55884 2006-10-19  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55887         Needed for mingw.
55888
55889 2006-10-19  Bruno Haible  <bruno@clisp.org>
55890
55891         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55892
55893 2006-10-19  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55896         it.
55897
55898 2006-10-19  Bruno Haible  <bruno@clisp.org>
55899
55900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55901         invocation.
55902
55903 2006-10-19  Bruno Haible  <bruno@clisp.org>
55904
55905         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55906         mountlist by default.
55907
55908 2006-10-16  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/c-strstr.c: Include c-strstr.h.
55911
55912 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55913
55914         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55915         in a slash.
55916
55917 2006-10-18  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/lock.h [C++]: Wrap definitions in extern "C".
55920
55921 2006-10-18  Bruno Haible  <bruno@clisp.org>
55922
55923         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55924         gl_LIBOBJS list.
55925
55926 2006-10-18  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55929
55930 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55931
55932         * lib/xstrtol.h: Include gettext.h.
55933         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55934         Problem reported by Eric Blake.
55935         * modules/xstrtol (Depends-on): Add gettext-h.
55936
55937 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55938
55939         * lib/strftime.c (advance): New macro.
55940         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55941         incomplete type, so you can't add 0 to it.  Problem and patch
55942         reported by Eelco Dolstra for dietlibc.
55943
55944 2006-10-18  Jim Meyering  <jim@meyering.net>
55945
55946         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55947         type for a local, and rename it: s/up/user_proc/.
55948
55949 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55950
55951         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55952         READ_UTMP_USER_PROCESS.
55953         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55954
55955 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55956
55957         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55958         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55959
55960 2006-10-17  Eric Blake  <ebb9@byu.net>
55961
55962         * lib/sigprocmask.c (sigprocmask): Fix typo.
55963
55964         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55965
55966         * modules/clean-temp (Makefile.am): Don't add to make output...
55967         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55968         config.h.
55969
55970 2006-10-17  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55973         differently if DEFAULT_TEXT_DOMAIN is set.
55974
55975 2006-10-16  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/clean-temp.c: Include fwriteerror.h.
55978
55979 2006-10-16  Bruno Haible  <bruno@clisp.org>
55980
55981         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55982
55983 2006-10-16  Bruno Haible  <bruno@clisp.org>
55984
55985         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55986         * lib/sigprocmask.h: Include <sys/types.h>.
55987         (sigset_t): Use the system's definition if present.
55988
55989 2006-10-17  Eric Blake  <ebb9@byu.net>
55990
55991         * lib/xvasprintf.c (includes): Assume config.h.
55992         * lib/xasprintf.c (includes): Likewise.
55993
55994 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55997         at least as wide as intmax_t.
55998
55999 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56000
56001         (Imported from Automake.)
56002         * build-aux/gnupload: Update to version 1.1 of directive file.
56003
56004 2006-10-16  Eric Blake  <ebb9@byu.net>
56005
56006         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56007         match Automake 1.10a.
56008
56009 2006-10-14  Bruno Haible  <bruno@clisp.org>
56010
56011         * modules/sigprocmask: New file.
56012         * lib/sigprocmask.h: New file.
56013         * lib/sigprocmask.c: New file.
56014         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56015         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56016         request sigprocmask.o.
56017         (gl_PREREQ_SIGPROCMASK): New macro.
56018         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56019         (Depends-on): Add sigprocmask.
56020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56021         gt_SIGNALBLOCKING. Test for 'raise' only once.
56022         * lib/fatal-signal.c: Include sigprocmask.h.
56023         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56024         unblock_fatal_signals): Define always.
56025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56026         sigprocmask.
56027
56028 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56029
56030         Sync from Automake.
56031         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56032         which incorrectly sets the mode of an existing destination
56033         directory.  In some cases the unpatched install-sh could do the
56034         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56035         system.  We hope this is rare in practice, but it's clearly worth
56036         fixing.  Problem reported by Alex Unleashed in
56037         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56038         Also, don't bother to check for -m bugs unless we're using -m;
56039         suggested by Stepan Kasal.
56040
56041 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56042
56043         Sync from Automake.
56044         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56045         `-c' flag, so they appear at the same position as in %FASTDEP%
56046         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56047         which ignores unknown options only after the first non-option.
56048         Bug report against M4 by Nelson H. F. Beebe.
56049
56050 2006-10-13  Jim Meyering  <jim@meyering.net>
56051
56052         Fix a bug in yesterday's change.
56053         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56054         p->fts_statp->st_dev would be used uninitialized.
56055         Ensures that we always call fts_stat on the very first entry.
56056         Miklos Szeredi reported that find -xdev stopped working.
56057
56058 2006-10-12  Bruno Haible  <bruno@clisp.org>
56059
56060         * gnulib-tool (func_get_automake_snippet): Append an automatically
56061         computed EXTRA_DIST augmentation.
56062         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56063         * modules/alloca-opt (Makefile.am): Likewise.
56064         * modules/allocsa (Makefile.am): Likewise.
56065         * modules/arcfour (Makefile.am): Likewise.
56066         * modules/arctwo (Makefile.am): Likewise.
56067         * modules/argmatch (Makefile.am): Likewise.
56068         * modules/argz (Makefile.am): Likewise.
56069         * modules/atexit (Makefile.am): Likewise.
56070         * modules/backupfile (Makefile.am): Likewise.
56071         * modules/byteswap (Makefile.am): Likewise.
56072         * modules/c-strtod (Makefile.am): Likewise.
56073         * modules/c-strtold (Makefile.am): Likewise.
56074         * modules/calloc (Makefile.am): Likewise.
56075         * modules/canon-host (Makefile.am): Likewise.
56076         * modules/canonicalize (Makefile.am): Likewise.
56077         * modules/chdir-long (Makefile.am): Likewise.
56078         * modules/chdir-safer (Makefile.am): Likewise.
56079         * modules/check-version (Makefile.am): Likewise.
56080         * modules/chown (Makefile.am): Likewise.
56081         * modules/cloexec (Makefile.am): Likewise.
56082         * modules/close-stream (Makefile.am): Likewise.
56083         * modules/closeout (Makefile.am): Likewise.
56084         * modules/crc (Makefile.am): Likewise.
56085         * modules/csharpexec (Makefile.am): Likewise.
56086         * modules/cycle-check (Makefile.am): Likewise.
56087         * modules/des (Makefile.am): Likewise.
56088         * modules/dev-ino (Makefile.am): Likewise.
56089         * modules/dirfd (Makefile.am): Likewise.
56090         * modules/dirname (Makefile.am): Likewise.
56091         * modules/dup2 (Makefile.am): Likewise.
56092         * modules/eealloc (Makefile.am): Likewise.
56093         * modules/error (Makefile.am): Likewise.
56094         * modules/euidaccess (Makefile.am): Likewise.
56095         * modules/exclude (Makefile.am): Likewise.
56096         * modules/exitfail (Makefile.am): Likewise.
56097         * modules/fcntl-safer (Makefile.am): Likewise.
56098         * modules/fcntl (Makefile.am): Likewise.
56099         * modules/file-type (Makefile.am): Likewise.
56100         * modules/fileblocks (Makefile.am): Likewise.
56101         * modules/filemode (Makefile.am): Likewise.
56102         * modules/filenamecat (Makefile.am): Likewise.
56103         * modules/fnmatch (Makefile.am): Likewise.
56104         * modules/fopen-safer (Makefile.am): Likewise.
56105         * modules/fpending (Makefile.am): Likewise.
56106         * modules/fprintftime (Makefile.am): Likewise.
56107         * modules/free (Makefile.am): Likewise.
56108         * modules/fsusage (Makefile.am): Likewise.
56109         * modules/ftruncate (Makefile.am): Likewise.
56110         * modules/fts (Makefile.am): Likewise.
56111         * modules/gc-arcfour (Makefile.am): Likewise.
56112         * modules/gc-des (Makefile.am): Likewise.
56113         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56114         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56115         * modules/gc-md4 (Makefile.am): Likewise.
56116         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56117         * modules/gc-sha1 (Makefile.am): Likewise.
56118         * modules/gc (Makefile.am): Likewise.
56119         * modules/getaddrinfo (Makefile.am): Likewise.
56120         * modules/getcwd (Makefile.am): Likewise.
56121         * modules/getdelim (Makefile.am): Likewise.
56122         * modules/getdomainname (Makefile.am): Likewise.
56123         * modules/getgroups (Makefile.am): Likewise.
56124         * modules/gethostname (Makefile.am): Likewise.
56125         * modules/gethrxtime (Makefile.am): Likewise.
56126         * modules/getline (Makefile.am): Likewise.
56127         * modules/getloadavg (Makefile.am): Likewise.
56128         * modules/getlogin_r (Makefile.am): Likewise.
56129         * modules/getndelim2 (Makefile.am): Likewise.
56130         * modules/getopt (Makefile.am): Likewise.
56131         * modules/getpagesize (Makefile.am): Likewise.
56132         * modules/getpass-gnu (Makefile.am): Likewise.
56133         * modules/getpass (Makefile.am): Likewise.
56134         * modules/getsubopt (Makefile.am): Likewise.
56135         * modules/gettime (Makefile.am): Likewise.
56136         * modules/gettimeofday (Makefile.am): Likewise.
56137         * modules/getugroups (Makefile.am): Likewise.
56138         * modules/getusershell (Makefile.am): Likewise.
56139         * modules/glob (Makefile.am): Likewise.
56140         * modules/group-member (Makefile.am): Likewise.
56141         * modules/hard-locale (Makefile.am): Likewise.
56142         * modules/hash (Makefile.am): Likewise.
56143         * modules/hmac-md5 (Makefile.am): Likewise.
56144         * modules/hmac-sha1 (Makefile.am): Likewise.
56145         * modules/human (Makefile.am): Likewise.
56146         * modules/idcache (Makefile.am): Likewise.
56147         * modules/imaxabs (Makefile.am): Likewise.
56148         * modules/imaxdiv (Makefile.am): Likewise.
56149         * modules/inet_ntop (Makefile.am): Likewise.
56150         * modules/inet_pton (Makefile.am): Likewise.
56151         * modules/intprops (Makefile.am): Likewise.
56152         * modules/inttostr (Makefile.am): Likewise.
56153         * modules/inttypes (Makefile.am): Likewise.
56154         * modules/isapipe (Makefile.am): Likewise.
56155         * modules/javaversion (Makefile.am): Likewise.
56156         * modules/lchmod (Makefile.am): Likewise.
56157         * modules/lchown (Makefile.am): Likewise.
56158         * modules/localcharset (Makefile.am): Likewise.
56159         * modules/long-options (Makefile.am): Likewise.
56160         * modules/lstat (Makefile.am): Likewise.
56161         * modules/malloc (Makefile.am): Likewise.
56162         * modules/mathl (Makefile.am): Likewise.
56163         * modules/mbchar (Makefile.am): Likewise.
56164         * modules/md2 (Makefile.am): Likewise.
56165         * modules/md4 (Makefile.am): Likewise.
56166         * modules/md5 (Makefile.am): Likewise.
56167         * modules/memcasecmp (Makefile.am): Likewise.
56168         * modules/memchr (Makefile.am): Likewise.
56169         * modules/memcmp (Makefile.am): Likewise.
56170         * modules/memcoll (Makefile.am): Likewise.
56171         * modules/memcpy (Makefile.am): Likewise.
56172         * modules/memmem (Makefile.am): Likewise.
56173         * modules/memmove (Makefile.am): Likewise.
56174         * modules/mempcpy (Makefile.am): Likewise.
56175         * modules/memrchr (Makefile.am): Likewise.
56176         * modules/memset (Makefile.am): Likewise.
56177         * modules/memxor (Makefile.am): Likewise.
56178         * modules/mkancesdirs (Makefile.am): Likewise.
56179         * modules/mkdir-p (Makefile.am): Likewise.
56180         * modules/mkdir (Makefile.am): Likewise.
56181         * modules/mkdtemp (Makefile.am): Likewise.
56182         * modules/mkstemp (Makefile.am): Likewise.
56183         * modules/mktime (Makefile.am): Likewise.
56184         * modules/modechange (Makefile.am): Likewise.
56185         * modules/mountlist (Makefile.am): Likewise.
56186         * modules/nanosleep (Makefile.am): Likewise.
56187         * modules/obstack (Makefile.am): Likewise.
56188         * modules/openat (Makefile.am): Likewise.
56189         * modules/pagealign_alloc (Makefile.am): Likewise.
56190         * modules/pathmax (Makefile.am): Likewise.
56191         * modules/physmem (Makefile.am): Likewise.
56192         * modules/poll (Makefile.am): Likewise.
56193         * modules/posixtm (Makefile.am): Likewise.
56194         * modules/posixver (Makefile.am): Likewise.
56195         * modules/putenv (Makefile.am): Likewise.
56196         * modules/quote (Makefile.am): Likewise.
56197         * modules/quotearg (Makefile.am): Likewise.
56198         * modules/raise (Makefile.am): Likewise.
56199         * modules/read-file (Makefile.am): Likewise.
56200         * modules/readline (Makefile.am): Likewise.
56201         * modules/readlink (Makefile.am): Likewise.
56202         * modules/readtokens (Makefile.am): Likewise.
56203         * modules/readutmp (Makefile.am): Likewise.
56204         * modules/realloc (Makefile.am): Likewise.
56205         * modules/regex (Makefile.am): Likewise.
56206         * modules/rename-dest-slash (Makefile.am): Likewise.
56207         * modules/rename (Makefile.am): Likewise.
56208         * modules/rijndael (Makefile.am): Likewise.
56209         * modules/rmdir (Makefile.am): Likewise.
56210         * modules/rpmatch (Makefile.am): Likewise.
56211         * modules/safe-read (Makefile.am): Likewise.
56212         * modules/safe-write (Makefile.am): Likewise.
56213         * modules/same-inode (Makefile.am): Likewise.
56214         * modules/same (Makefile.am): Likewise.
56215         * modules/save-cwd (Makefile.am): Likewise.
56216         * modules/savedir (Makefile.am): Likewise.
56217         * modules/setenv (Makefile.am): Likewise.
56218         * modules/settime (Makefile.am): Likewise.
56219         * modules/sha1 (Makefile.am): Likewise.
56220         * modules/sig2str (Makefile.am): Likewise.
56221         * modules/snprintf (Makefile.am): Likewise.
56222         * modules/stat-macros (Makefile.am): Likewise.
56223         * modules/stat-time (Makefile.am): Likewise.
56224         * modules/stdbool (Makefile.am): Likewise.
56225         * modules/stdint (Makefile.am): Likewise.
56226         * modules/stdlib-safer (Makefile.am): Likewise.
56227         * modules/stpcpy (Makefile.am): Likewise.
56228         * modules/stpncpy (Makefile.am): Likewise.
56229         * modules/strcase (Makefile.am): Likewise.
56230         * modules/strcasestr (Makefile.am): Likewise.
56231         * modules/strchrnul (Makefile.am): Likewise.
56232         * modules/strcspn (Makefile.am): Likewise.
56233         * modules/strdup (Makefile.am): Likewise.
56234         * modules/strerror (Makefile.am): Likewise.
56235         * modules/strftime (Makefile.am): Likewise.
56236         * modules/strndup (Makefile.am): Likewise.
56237         * modules/strnlen (Makefile.am): Likewise.
56238         * modules/strpbrk (Makefile.am): Likewise.
56239         * modules/strsep (Makefile.am): Likewise.
56240         * modules/strstr (Makefile.am): Likewise.
56241         * modules/strtod (Makefile.am): Likewise.
56242         * modules/strtoimax (Makefile.am): Likewise.
56243         * modules/strtok_r (Makefile.am): Likewise.
56244         * modules/strtol (Makefile.am): Likewise.
56245         * modules/strtoll (Makefile.am): Likewise.
56246         * modules/strtoul (Makefile.am): Likewise.
56247         * modules/strtoull (Makefile.am): Likewise.
56248         * modules/strtoumax (Makefile.am): Likewise.
56249         * modules/strverscmp (Makefile.am): Likewise.
56250         * modules/sys_socket (Makefile.am): Likewise.
56251         * modules/sys_stat (Makefile.am): Likewise.
56252         * modules/sysexits (Makefile.am): Likewise.
56253         * modules/time_r (Makefile.am): Likewise.
56254         * modules/timegm (Makefile.am): Likewise.
56255         * modules/timespec (Makefile.am): Likewise.
56256         * modules/tmpfile-safer (Makefile.am): Likewise.
56257         * modules/trim (Makefile.am): Likewise.
56258         * modules/unistd-safer (Makefile.am): Likewise.
56259         * modules/unlinkdir (Makefile.am): Likewise.
56260         * modules/unlocked-io (Makefile.am): Likewise.
56261         * modules/userspec (Makefile.am): Likewise.
56262         * modules/utime (Makefile.am): Likewise.
56263         * modules/utimecmp (Makefile.am): Likewise.
56264         * modules/utimens (Makefile.am): Likewise.
56265         * modules/vasnprintf (Makefile.am): Likewise.
56266         * modules/vasprintf (Makefile.am): Likewise.
56267         * modules/vsnprintf (Makefile.am): Likewise.
56268         * modules/xalloc (Makefile.am): Likewise.
56269         * modules/xgetcwd (Makefile.am): Likewise.
56270         * modules/xnanosleep (Makefile.am): Likewise.
56271         * modules/xreadlink (Makefile.am): Likewise.
56272         * modules/xstrtod (Makefile.am): Likewise.
56273         * modules/xstrtol (Makefile.am): Likewise.
56274         * modules/xstrtold (Makefile.am): Likewise.
56275         * modules/yesno (Makefile.am): Likewise.
56276         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56277
56278 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56279
56280         * modules/error (Makefile.am): Distribute files through
56281         EXTRA_DIST, not lib_SOURCES.
56282
56283 2006-10-12  Eric Blake  <ebb9@byu.net>
56284
56285         * modules/error (Makefile.am): Distribute files in /lib.
56286         * modules/obstack (Makefile.am): Likewise.
56287
56288 2006-10-12  Bruno Haible  <bruno@clisp.org>
56289
56290         * modules/acl (Makefile.am): Distribute all files in lib/ through
56291         EXTRA_DIST.
56292         * modules/arcfour (Makefile.am): Likewise.
56293         * modules/arctwo (Makefile.am): Likewise.
56294         * modules/argmatch (Makefile.am): Likewise.
56295         * modules/argz (Makefile.am): Likewise.
56296         * modules/atexit (Makefile.am): Likewise.
56297         * modules/backupfile (Makefile.am): Likewise.
56298         * modules/c-strtod (Makefile.am): Likewise.
56299         * modules/c-strtold (Makefile.am): Likewise.
56300         * modules/calloc (Makefile.am): Likewise.
56301         * modules/canon-host (Makefile.am): Likewise.
56302         * modules/canonicalize (Makefile.am): Likewise.
56303         * modules/chdir-long (Makefile.am): Likewise.
56304         * modules/chdir-safer (Makefile.am): Likewise.
56305         * modules/check-version (Makefile.am): Likewise.
56306         * modules/chown (Makefile.am): Likewise.
56307         * modules/cloexec (Makefile.am): Likewise.
56308         * modules/close-stream (Makefile.am): Likewise.
56309         * modules/closeout (Makefile.am): Likewise.
56310         * modules/crc (Makefile.am): Likewise.
56311         * modules/cycle-check (Makefile.am): Likewise.
56312         * modules/des (Makefile.am): Likewise.
56313         * modules/dirfd (Makefile.am): Likewise.
56314         * modules/dirname (Makefile.am): Likewise.
56315         * modules/dup2 (Makefile.am): Likewise.
56316         * modules/euidaccess (Makefile.am): Likewise.
56317         * modules/exclude (Makefile.am): Likewise.
56318         * modules/exitfail (Makefile.am): Likewise.
56319         * modules/fcntl-safer (Makefile.am): Likewise.
56320         * modules/file-type (Makefile.am): Likewise.
56321         * modules/fileblocks (Makefile.am): Likewise.
56322         * modules/filemode (Makefile.am): Likewise.
56323         * modules/filenamecat (Makefile.am): Likewise.
56324         * modules/fnmatch (Makefile.am): Likewise.
56325         * modules/fopen-safer (Makefile.am): Likewise.
56326         * modules/fpending (Makefile.am): Likewise.
56327         * modules/fprintftime (Makefile.am): Likewise.
56328         * modules/free (Makefile.am): Likewise.
56329         * modules/fsusage (Makefile.am): Likewise.
56330         * modules/ftruncate (Makefile.am): Likewise.
56331         * modules/fts (Makefile.am): Likewise.
56332         * modules/gc (Makefile.am): Likewise.
56333         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56334         * modules/getaddrinfo (Makefile.am): Likewise.
56335         * modules/getcwd (Makefile.am): Likewise.
56336         * modules/getdelim (Makefile.am): Likewise.
56337         * modules/getdomainname (Makefile.am): Likewise.
56338         * modules/getgroups (Makefile.am): Likewise.
56339         * modules/gethostname (Makefile.am): Likewise.
56340         * modules/gethrxtime (Makefile.am): Likewise.
56341         * modules/getline (Makefile.am): Likewise.
56342         * modules/getloadavg (Makefile.am): Likewise.
56343         * modules/getlogin_r (Makefile.am): Likewise.
56344         * modules/getopt (Makefile.am): Likewise.
56345         * modules/getpass (Makefile.am): Likewise.
56346         * modules/getpass-gnu (Makefile.am): Likewise.
56347         * modules/getsubopt (Makefile.am): Likewise.
56348         * modules/gettime (Makefile.am): Likewise.
56349         * modules/gettimeofday (Makefile.am): Likewise.
56350         * modules/getugroups (Makefile.am): Likewise.
56351         * modules/getusershell (Makefile.am): Likewise.
56352         * modules/glob (Makefile.am): Likewise.
56353         * modules/group-member (Makefile.am): Likewise.
56354         * modules/hard-locale (Makefile.am): Likewise.
56355         * modules/hash (Makefile.am): Likewise.
56356         * modules/hmac-md5 (Makefile.am): Likewise.
56357         * modules/hmac-sha1 (Makefile.am): Likewise.
56358         * modules/human (Makefile.am): Likewise.
56359         * modules/idcache (Makefile.am): Likewise.
56360         * modules/imaxabs (Makefile.am): Likewise.
56361         * modules/imaxdiv (Makefile.am): Likewise.
56362         * modules/inet_ntop (Makefile.am): Likewise.
56363         * modules/inet_pton (Makefile.am): Likewise.
56364         * modules/inttostr (Makefile.am): Likewise.
56365         * modules/isapipe (Makefile.am): Likewise.
56366         * modules/lchown (Makefile.am): Likewise.
56367         * modules/long-options (Makefile.am): Likewise.
56368         * modules/lstat (Makefile.am): Likewise.
56369         * modules/malloc (Makefile.am): Likewise.
56370         * modules/mathl (Makefile.am): Likewise.
56371         * modules/mbchar (Makefile.am): Likewise.
56372         * modules/md2 (Makefile.am): Likewise.
56373         * modules/md4 (Makefile.am): Likewise.
56374         * modules/md5 (Makefile.am): Likewise.
56375         * modules/memcasecmp (Makefile.am): Likewise.
56376         * modules/memchr (Makefile.am): Likewise.
56377         * modules/memcmp (Makefile.am): Likewise.
56378         * modules/memcoll (Makefile.am): Likewise.
56379         * modules/memcpy (Makefile.am): Likewise.
56380         * modules/memmem (Makefile.am): Likewise.
56381         * modules/memmove (Makefile.am): Likewise.
56382         * modules/mempcpy (Makefile.am): Likewise.
56383         * modules/memrchr (Makefile.am): Likewise.
56384         * modules/memset (Makefile.am): Likewise.
56385         * modules/memxor (Makefile.am): Likewise.
56386         * modules/mkancesdirs (Makefile.am): Likewise.
56387         * modules/mkdir (Makefile.am): Likewise.
56388         * modules/mkdir-p (Makefile.am): Likewise.
56389         * modules/mkdtemp (Makefile.am): Likewise.
56390         * modules/mkstemp (Makefile.am): Likewise.
56391         * modules/mktime (Makefile.am): Likewise.
56392         * modules/modechange (Makefile.am): Likewise.
56393         * modules/mountlist (Makefile.am): Likewise.
56394         * modules/nanosleep (Makefile.am): Likewise.
56395         * modules/openat (Makefile.am): Likewise.
56396         * modules/pagealign_alloc (Makefile.am): Likewise.
56397         * modules/physmem (Makefile.am): Likewise.
56398         * modules/poll (Makefile.am): Likewise.
56399         * modules/posixtm (Makefile.am): Likewise.
56400         * modules/posixver (Makefile.am): Likewise.
56401         * modules/putenv (Makefile.am): Likewise.
56402         * modules/quote (Makefile.am): Likewise.
56403         * modules/quotearg (Makefile.am): Likewise.
56404         * modules/raise (Makefile.am): Likewise.
56405         * modules/read-file (Makefile.am): Likewise.
56406         * modules/readline (Makefile.am): Likewise.
56407         * modules/readlink (Makefile.am): Likewise.
56408         * modules/readtokens (Makefile.am): Likewise.
56409         * modules/readutmp (Makefile.am): Likewise.
56410         * modules/realloc (Makefile.am): Likewise.
56411         * modules/regex (Makefile.am): Likewise.
56412         * modules/rename (Makefile.am): Likewise.
56413         * modules/rename-dest-slash (Makefile.am): Likewise.
56414         * modules/rijndael (Makefile.am): Likewise.
56415         * modules/rmdir (Makefile.am): Likewise.
56416         * modules/rpmatch (Makefile.am): Likewise.
56417         * modules/safe-read (Makefile.am): Likewise.
56418         * modules/safe-write (Makefile.am): Likewise.
56419         * modules/same (Makefile.am): Likewise.
56420         * modules/save-cwd (Makefile.am): Likewise.
56421         * modules/savedir (Makefile.am): Likewise.
56422         * modules/setenv (Makefile.am): Likewise.
56423         * modules/settime (Makefile.am): Likewise.
56424         * modules/sha1 (Makefile.am): Likewise.
56425         * modules/sig2str (Makefile.am): Likewise.
56426         * modules/snprintf (Makefile.am): Likewise.
56427         * modules/stdlib-safer (Makefile.am): Likewise.
56428         * modules/stpcpy (Makefile.am): Likewise.
56429         * modules/stpncpy (Makefile.am): Likewise.
56430         * modules/strcase (Makefile.am): Likewise.
56431         * modules/strcasestr (Makefile.am): Likewise.
56432         * modules/strchrnul (Makefile.am): Likewise.
56433         * modules/strcspn (Makefile.am): Likewise.
56434         * modules/strdup (Makefile.am): Likewise.
56435         * modules/strerror (Makefile.am): Likewise.
56436         * modules/strftime (Makefile.am): Likewise.
56437         * modules/strndup (Makefile.am): Likewise.
56438         * modules/strnlen (Makefile.am): Likewise.
56439         * modules/strpbrk (Makefile.am): Likewise.
56440         * modules/strsep (Makefile.am): Likewise.
56441         * modules/strstr (Makefile.am): Likewise.
56442         * modules/strtod (Makefile.am): Likewise.
56443         * modules/strtoimax (Makefile.am): Likewise.
56444         * modules/strtok_r (Makefile.am): Likewise.
56445         * modules/strtol (Makefile.am): Likewise.
56446         * modules/strtoll (Makefile.am): Likewise.
56447         * modules/strtoul (Makefile.am): Likewise.
56448         * modules/strtoull (Makefile.am): Likewise.
56449         * modules/strtoumax (Makefile.am): Likewise.
56450         * modules/strverscmp (Makefile.am): Likewise.
56451         * modules/time_r (Makefile.am): Likewise.
56452         * modules/timegm (Makefile.am): Likewise.
56453         * modules/tmpfile-safer (Makefile.am): Likewise.
56454         * modules/unistd-safer (Makefile.am): Likewise.
56455         * modules/unlinkdir (Makefile.am): Likewise.
56456         * modules/userspec (Makefile.am): Likewise.
56457         * modules/utime (Makefile.am): Likewise.
56458         * modules/utimecmp (Makefile.am): Likewise.
56459         * modules/utimens (Makefile.am): Likewise.
56460         * modules/vasnprintf (Makefile.am): Likewise.
56461         * modules/vasprintf (Makefile.am): Likewise.
56462         * modules/vsnprintf (Makefile.am): Likewise.
56463         * modules/xalloc (Makefile.am): Likewise.
56464         * modules/xgetcwd (Makefile.am): Likewise.
56465         * modules/xnanosleep (Makefile.am): Likewise.
56466         * modules/xreadlink (Makefile.am): Likewise.
56467         * modules/xstrtod (Makefile.am): Likewise.
56468         * modules/xstrtol (Makefile.am): Likewise.
56469         * modules/xstrtold (Makefile.am): Likewise.
56470         * modules/yesno (Makefile.am): Likewise.
56471
56472 2006-10-12  Jim Meyering  <jim@meyering.net>
56473
56474         * m4/getloadavg.m4: Revert the change below.
56475
56476         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56477         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56478         fail with a symlink, which is what coreutils' ./bootstrap now
56479         creates by default.
56480
56481 2006-10-12  Bruno Haible  <bruno@clisp.org>
56482
56483         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56484         mingw.
56485         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56486         MSVC and mingw explicitly.
56487
56488 2006-10-11  Simon Josefsson  <jas@extundo.com>
56489             Bruno Haible  <bruno@clisp.org>
56490
56491         Add support for multiple gnulib-tool invocations in the scope of a
56492         single configure.ac file.
56493         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56494         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56495         with the same contents as the _LIBADD variable.
56496         (func_emit_initmacro_start, func_emit_initmacro_end,
56497         func_emit_initmacro_done): New functions.
56498         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56499         gl_LIBOBJS and gl_LTLIBOBJS.
56500
56501 2006-10-11  Bruno Haible  <bruno@clisp.org>
56502
56503         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56504         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56505         autoreconf. Instead, invoke autopoint explicitly but move back the
56506         *.m4 files from gnulib.
56507
56508 2006-10-11  Bruno Haible  <bruno@clisp.org>
56509
56510         * gnulib-tool (func_usage): Make module names after --create-testdir
56511         optional.
56512         (func_create_testdir): If no module was specified, use nearly all
56513         modules.
56514
56515 2006-10-12  Jim Meyering  <jim@meyering.net>
56516
56517         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56518         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56519         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56520         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56521         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56522         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56523         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56524         (fts_set_stat_required): New function.
56525         (fts_open): Defer the calls to fts_stat, if possible or requested.
56526         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56527         into fts_stat itself.
56528         (fts_read): Perform any required (deferred) fts_stat call.
56529         (fts_build): Likewise, for the directory we're about to open and read.
56530         In the readdir loop, carefully decide whether each entry will require
56531         an eventual call to fts_stat, using dirent.d_type info if available.
56532         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56533         a command line argument into this function.  Update all callers.
56534         Map a return value of FTS_DOT to FTS_D for a command line argument.
56535         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56536         Thanks to Miklos Szeredi for his tenacity and for the initial
56537         bug report about "find" failing on a FUSE-based file system.
56538
56539         * lib/fts.c (fts_open): Use consistent indentation.
56540
56541 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56542
56543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56544         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56545         reported by Jim Meyering.  All uses of cache variables renamed
56546         to match Autoconf's.
56547         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56548         the other one.
56549
56550         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56551         Fix misspelling in diagnostic.
56552
56553 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56554
56555         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56556         defined.  Problem reported by Matthew Woehlke.
56557
56558         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56559         Add support for Tandem NonStop R series.
56560         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56561         Use new macro.
56562
56563         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56564         (has_trailing_slash): Omit size arg; all callers changed.
56565         Omit 'inline', since it doesn't help performance and we'd
56566         need to configure it.
56567         Don't count //, ///, etc. as having a trailing slash.
56568         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56569         (rpl_rename_dest_slash): On failure, use rename's errno rather
56570         than (in some cases) an incorrect or junk errno.
56571         Simplify code by removing need to compute length; this does
56572         cause it to make two passes instead of one over the file name,
56573         but it's worth it.
56574
56575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56576         change, since Autoconf's version may no longer be appropriate now
56577         that we are using CVS Autoconf's version.  Add support for Tandem.
56578
56579 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56580             Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56583         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56584         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56585         gl_AC_TYPE_LONG_LONG.
56586
56587         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56588         instead of HAVE_LONG_LONG.
56589         * lib/printf-args.c (printf_fetchargs): Likewise.
56590         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56591         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56592         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56593         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56594         gl_AC_TYPE_LONG_LONG.
56595
56596 2006-10-11  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/longlong.m4: Add comments.
56599         * m4/ulonglong.m4: Likewise.
56600
56601 2006-10-10  Bruno Haible  <bruno@clisp.org>
56602
56603         Make it possible to #define stpcpy, strdup to aliases.
56604         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56605         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56606
56607 2006-10-10  Bruno Haible  <bruno@clisp.org>
56608
56609         Make it possible to #define gcd to an alias.
56610         * lib/gcd.c: Include config.h.
56611
56612 2006-10-10  Bruno Haible  <bruno@clisp.org>
56613
56614         Make it possible to #define c_isascii to an alias.
56615         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56616         defined. Undefine the macros before defining them, to avoid gcc
56617         warnings.
56618         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56619         define NO_C_CTYPE_MACROS early.
56620
56621 2006-10-10  Bruno Haible  <bruno@clisp.org>
56622
56623         Make it possible to #define set_program_name to an alias.
56624         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56625         ENABLE_RELOCATABLE early.
56626
56627 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56628
56629         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56630         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56631         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56632         More generally, don't assume that 64-bit signed int is available
56633         if unsigned int is, and vice versa.
56634         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56635         unsigned symbols, not on their signed counterparts.
56636         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56637         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56638         (UINT64_C, UINTMAX_C):
56639         Likewise.
56640         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56641         unsigned counterparts.
56642         (Have_long_long, Unsigned): New macros.
56643         (Int): Renamed from INT.
56644         (strtoimax): Use the new macros.
56645         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56646         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56647         * modules/inttypes (inttypes.h): Substitute
56648         HAVE_UNSIGNED_LONG_LONG_INT.
56649         * modules/stdint (stdint.h): Likewise.
56650         (Files): Add m4/ulonglong.m4.
56651
56652 2006-10-10  Bruno Haible  <bruno@clisp.org>
56653
56654         Fix a gcc -Wshadow warning.
56655         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56656         to 'bucket'.
56657         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56658         gl_linked_indexof_from_to): Likewise.
56659         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56660         Likewise.
56661         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56662         Likewise.
56663         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56664         Reported by Eric Blake.
56665
56666 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56667
56668         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56669         for NetBSD.  Problem reported by Bruno Haible.
56670
56671 2006-10-09  Jim Meyering  <jim@meyering.net>
56672
56673         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56674         Patch from Bruno Haible.
56675
56676 2006-10-09  Jim Meyering  <jim@meyering.net>
56677
56678         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56679         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56680         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56681
56682 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         Don't include <config.h> twice; this doesn't work in some cases,
56685         e.g., when config.h has "#define intmax_t long long int" and
56686         we include <config.h>, <inttypes.h>, <config.h> in that order.
56687         Problem reported by Matthew Woehlke in:
56688         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56689         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56690         * lib/fts-cycle.c: Don't include config.h.
56691         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56692         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56693         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56694         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56695         inttypes.h.
56696         * lib/xstrtoumax.c: Likewise.
56697         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56698         __strtol and the like, so that this module is more like its siblings.
56699         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56700         Remove; no longer needed now that we assume gnulib inttypes.h.
56701
56702 2006-10-08  Bruno Haible  <bruno@clisp.org>
56703
56704         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56705         option.
56706
56707 2006-10-07  Jim Meyering  <jim@meyering.net>
56708
56709         * modules/inttypes (inttypes.h): Revert what seems to have been
56710         an inadvertent part of today's change: use "|", not "/" in the
56711         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56712
56713 2006-10-07  Bruno Haible  <bruno@clisp.org>
56714
56715         * modules/sublist: New file.
56716
56717 2006-10-07  Bruno Haible  <bruno@clisp.org>
56718
56719         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56720         * modules/argz (argz.h): Likewise.
56721         * modules/arpa_inet (arpa/inet.h): Likewise.
56722         * modules/byteswap (byteswap.h): Likewise.
56723         * modules/configmake (configmake.h): Likewise.
56724         * modules/fcntl (fcntl.h): Likewise.
56725         * modules/fnmatch (fnmatch.h): Likewise.
56726         * modules/getopt (getopt.h): Likewise.
56727         * modules/glob (glob.h): Likewise.
56728         * modules/inttypes (inttypes.h): Likewise.
56729         * modules/netinet_in (netinet/in.h): Likewise.
56730         * modules/poll (poll.h): Likewise.
56731         * modules/stdbool (stdbool.h): Likewise.
56732         * modules/stdint (stdint.h): Likewise.
56733         * modules/sys_select (sys/select.h): Likewise.
56734         * modules/sys_socket (sys/socket.h): Likewise.
56735         * modules/sys_stat (sys/stat.h): Likewise.
56736         * modules/sysexits (sysexits.h): Likewise.
56737         * modules/unistd (unistd.h): Likewise.
56738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56739         Add a "DO NOT EDIT" comment to the generated file.
56740         (func_import): Likewise for gnulib-comp.m4.
56741
56742 2006-10-07  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/gl_sublist.h: New file.
56745         * lib/gl_sublist.c: New file.
56746
56747 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56750         name (relative to the original working directory) and the file
56751         name component (relative to the temporary working directory).  All
56752         callers changed.
56753         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56754         * lib/mkdir-p.c (make_dir_parents): Likewise.
56755         * lib/mkdir-p.h (make_dir_parents): Likewise.
56756
56757 2006-10-06  Eric Blake  <ebb9@byu.net>
56758
56759         Define several macros for use by the clean-temp module.
56760         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56761         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56762         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56763
56764         * lib/clean-temp.h (close_stream_temp): New declaration.
56765         * lib/clean-temp.c (includes): Pull in headers according to what
56766         other modules are in use.
56767         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56768
56769 2006-10-06  Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56772         instead of fopen, fwriteerror.
56773
56774 2006-10-06  Bruno Haible  <bruno@clisp.org>
56775
56776         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56777         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56778         int.
56779         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56780         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56781         Return an error indicator.
56782         Suggested by Eric Blake.
56783
56784 2006-10-06  Bruno Haible  <bruno@clisp.org>
56785
56786         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56787         Reported by Eric Blake.
56788
56789 2006-10-06  Bruno Haible  <bruno@clisp.org>
56790
56791         * modules/closeout (Description): Mention stderr too.
56792
56793 2006-10-06  Bruno Haible  <bruno@clisp.org>
56794         and Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * lib/closeout.c (close_stdout): Also close stderr.
56797         * lib/closeout.h: Update comment.
56798
56799 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56800
56801         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56802         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56803         * lib/dirchownmod.c: Include lchown.h.
56804         * lib/lchown.c: Don't include files that lchown.h now includes.
56805         Don't declare chown, since lchown.h now does that.
56806         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56807         (lchown): Define to rpl_chown if lchown is declared but
56808         does not exist.  Declare using a prototype if lchown is not
56809         declared.  Add a copyright notice.
56810         * lib/mkstemp.h: Include <unistd.h>.
56811         * lib/openat.c: Include lchown.h.
56812
56813         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56814         we now test for that separately.
56815         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56816         rather than O_NOFOLLOW, when testing whether it's possible to
56817         avoid a race condition reliably.
56818         * lib/savewd.c (savewd_chdir): Likewise.
56819
56820         Remove macros that are no longer needed now that stdint.h is
56821         reliable.
56822         * lib/fsusage.c (UINTMAX_MAX): Remove.
56823         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56824         * lib/utimecmp.c (SIZE_MAX): Remove.
56825
56826         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56827
56828         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56829         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56830         O_NOATIME works.
56831
56832 2006-10-05  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/gl_list.h (gl_sortedlist_search_from_to,
56835         gl_sortedlist_indexof_from_to): New declarations.
56836         (gl_list_implementation): New fields sortedlist_search_from_to,
56837         sortedlist_indexof_from_to.
56838         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56839         inline functions.
56840         * lib/gl_list.c (gl_sortedlist_search_from_to,
56841         gl_sortedlist_indexof_from_to): New functions.
56842         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56843         function.
56844         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56845         (gl_array_sortedlist_search_from_to): New function.
56846         (gl_array_list_implementation): Update.
56847         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56848         function.
56849         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56850         (gl_carray_sortedlist_search_from_to): New function.
56851         (gl_carray_list_implementation): Update.
56852         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56853         gl_linked_sortedlist_indexof_from_to): New functions.
56854         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56855         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56856         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56857         gl_tree_sortedlist_indexof_from_to): New functions.
56858         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56859         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56860         Update.
56861         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56862         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56863         Update.
56864
56865 2006-10-05  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56868         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56869         (struct gl_list_implementation): Add fields search_from_to,
56870         indexof_from_to. Remove fields search, indexof.
56871         (gl_list_search): Use the search_from_to method.
56872         (gl_list_search_from, gl_list_search_from_to): New functions.
56873         (gl_list_indexof): Use the indexof_from_to method.
56874         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56875         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56876         (gl_list_search_from, gl_list_search_from_to): New functions.
56877         (gl_list_indexof): Use the indexof_from_to method.
56878         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56879         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56880         gl_array_indexof. Add start_index, end_index arguments.
56881         (gl_array_search_from_to): Renamed from gl_array_search. Add
56882         start_index, end_index arguments.
56883         (gl_array_remove, gl_array_list_implementation): Update.
56884         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56885         gl_carray_indexof. Add start_index, end_index arguments.
56886         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56887         start_index, end_index arguments.
56888         (gl_carray_remove, gl_carray_list_implementation): Update.
56889         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56890         gl_linked_search. Add start_index, end_index arguments.
56891         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56892         start_index, end_index arguments.
56893         (gl_linked_remove): Update.
56894         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56895         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56896         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56897         field to 'size_t'.
56898         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56899         gl_tree_search. Add start_index, end_index arguments.
56900         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56901         start_index, end_index arguments.
56902         (gl_tree_remove): Update.
56903         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56904         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56905         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56906         function.
56907         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56908         gl_tree_search. Add start_index, end_index arguments.
56909         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56910         start_index, end_index arguments.
56911         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56912         Update.
56913         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56914
56915 2006-10-05  Bruno Haible  <bruno@clisp.org>
56916
56917         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56918
56919         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56920         fwriteerror_temp): New declarations.
56921         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56922         (descriptors): New variable.
56923         (cleanup): First, close the descriptors.
56924         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56925         fclose_temp, fwriteerror_temp): New functions.
56926
56927 2006-10-04  Jim Meyering  <jim@meyering.net>
56928
56929         * lib/fts.c (fts_open): Tiny comment change.
56930
56931 2006-10-04  Bruno Haible  <bruno@clisp.org>
56932
56933         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56934         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56935         gl_LOCK_BODY.
56936         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56937         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56938         gl_LOCK_EARLY_BODY.
56939         (gl_LOCK): Require gl_LOCK_BODY.
56940
56941 2006-10-04  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56944         (gl_oset_search_atleast): New declaration.
56945         (struct gl_oset_implementation): Add field 'search_atleast'.
56946         (gl_oset_search_atleast): New inline function.
56947         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56948         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56949         (gl_array_oset_implementation): Update.
56950         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56951         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56952         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56953
56954 2006-10-04  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56957
56958 2006-10-03  Bruno Haible  <bruno@clisp.org>
56959
56960         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56961         from gl_avltreehash_list_implementation.
56962
56963 2006-10-03  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/gl_oset.c (gl_oset_add): Fix return type.
56966
56967 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56968
56969         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56970
56971 2006-10-02  Eric Blake  <ebb9@byu.net>
56972
56973         * modules/strnlen (Depends-on): Add extensions.
56974
56975 2006-10-02  Eric Blake  <ebb9@byu.net>
56976
56977         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56978         definition in 2.60+.
56979
56980 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56981
56982         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56983         checks.
56984
56985 2006-10-02  Bruno Haible  <bruno@clisp.org>
56986
56987         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56988         to the AUTOMAKE_OPTIONS.
56989         Reported by Jim Meyering.
56990
56991 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56992
56993         Work around bug in Solaris 10 /proc file system:
56994         /proc/self/fd/NNN/.. isn't the parent directory of
56995         the directory whose file descriptor is NNN.  This needs to
56996         be worked around at run time, not compile time, since a
56997         program might be built on Solaris 8, where things work, and
56998         run on Solaris 10.
56999         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57000         to use the following interface instead:
57001         (OPENAT_BUFFER_SIZE): New macro.
57002         (openat_proc_name): New function.
57003         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57004         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57005         Likewise.
57006         * lib/openat-proc.c: New file.
57007         * modules/openat (Files): Add lib/openat-proc.c.
57008         (Depends-on): Add same-inode, stdbool.
57009         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57010
57011 2006-09-29  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57014         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57015         argument. Set stdout_closed before testing for ferror, not after.
57016         (fwriteerror, fwriteerror_no_ebadf): New functions.
57017
57018 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57019
57020         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57021
57022 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57023
57024         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57025         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57026
57027 2006-09-28  Jim Meyering  <jim@meyering.net>
57028
57029         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57030         Include <unistd.h>.
57031
57032 2006-09-28  Bruno Haible  <bruno@clisp.org>
57033
57034         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57035         * modules/linkedhash-list (Depends-on): Likewise.
57036         * modules/rbtreehash-list (Depends-on): Likewise.
57037
57038 2006-09-28  Bruno Haible  <bruno@clisp.org>
57039
57040         * lib/strndup.h: Simplify the redefinition of strndup.
57041         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57042         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57043
57044 2006-09-28  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57047         * lib/gl_linkedhash_list.c: Likewise.
57048         * lib/gl_rbtreehash_list.c: Likewise.
57049
57050 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57051
57052         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57053         getaddrinfo.
57054
57055         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57056         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57057         it causes <stdio_ext.h> to cause a compile-time error.
57058         Problem reported by Nelson H. F. Beebe.
57059         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57060         of HAVE_DECL___PENDING.
57061
57062         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57063         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57064         declaration.
57065
57066 2006-09-27  Jim Meyering  <jim@meyering.net>
57067
57068         This file could end up with a definition for a function
57069         named __strndup, rather than rpl_strndup on a system with
57070         incomplete weak_alias support.
57071         * lib/strndup.c (strndup): Rename from __strndup.
57072         Remove #defines that used to map __strndup to strndup.
57073         Don't use K&R prototypes.
57074         Remove LIBC-related code, since this file is not sync'd with glibc.
57075         * lib/strndup.h: Revamp, accordingly.
57076         * m4/strndup.m4: Modernize.
57077
57078 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57079
57080         * modules/savewd (Depends-on): Add 'raise'.
57081         * lib/savewd.c: Include <signal.h>, for 'raise'.
57082
57083 2006-09-26  Jim Meyering  <jim@meyering.net>
57084
57085         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57086         when we detect Darwin 8.7.0's acl_get_file bug.
57087         Rearrange to perform the new (below) run-test while $LIBS
57088         contains any acl-related library.  Set USE_ACL at the end.
57089         (gl_ACL_GET_FILE): New function.
57090
57091 2006-09-26  Eric Blake  <ebb9@byu.net>
57092
57093         * lib/verror.c: Include <config.h> unconditionally.
57094
57095 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * modules/clock-time (Maintainer): Add self.
57098         * modules/getlogin_r (Depends-on): Add extensions.
57099
57100 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57101
57102         * modules/clock-time: New module.
57103         * modules/nanosleep (Depends-on): Add clock-time.
57104         * modules/gethrxtime (Depends-on): Likewise.
57105         * modules/gettime (Depends-on): Likewise.
57106         * modules/settime (Depends-on): Likewise.
57107
57108         * modules/fts-lgpl: Depend on openat.
57109         * modules/mkancesdirs: Depend on savewd.
57110         * modules/mkdir-p: Likewise.
57111
57112 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57113
57114         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57115
57116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57117         `gl_have_arbitrary_file_name_length_limit' to
57118         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57119         actually works between configure runs.
57120
57121 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57122             Bruno Haible  <bruno@clisp.org>
57123
57124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57125
57126 2006-09-25  Jim Meyering  <jim@meyering.net>
57127
57128         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57129         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57130
57131 2006-09-25  Eric Blake  <ebb9@byu.net>
57132
57133         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57134         exec's in 2006-09-18 patch when shuffling fds.
57135
57136 2006-09-25  Bruno Haible  <bruno@clisp.org>
57137
57138         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57139         Reported by Jim Meyering.
57140
57141 2006-09-24  Jim Meyering  <jim@meyering.net>
57142
57143         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57144         compare a pointer against a literal "0".  That caused failures with
57145         at least HP-UX's hpcc.
57146
57147 2006-09-22  Simon Josefsson  <jas@extundo.com>
57148
57149         * modules/gc-sha1:
57150         * modules/gc-md4:
57151         * modules/gc-hmac-sha1:
57152         * modules/gc-hmac-md5:
57153         * modules/gc-des:
57154         * modules/gc-arcfour: Distribute more files.
57155
57156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57157
57158         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57159         (gl_linked_iterator_from_to): Initialize struct completely.
57160         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57161         (gl_tree_iterator_from_to): Likewise
57162         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57163         * lib/gl_array_list.c [lint] (gl_array_iterator)
57164         (gl_array_iterator_from_to): Likewise.
57165         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57166         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57167         (gl_carray_iterator_from_to): Likewise.
57168
57169         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57170         * lib/md4.c (md4_process_block): Remove unused variable.
57171         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57172         parentheses for clarity.
57173
57174 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57175
57176         * modules/bison-i18n (Depends-on): Add gettext.
57177
57178 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57179
57180         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57181         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57182         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57183         also add missing comma that caused broken test.
57184         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57185         stdlib.h, for `abort'.
57186         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57187         variables.
57188         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57189         include unistd.h if present, for `rmdir'.
57190         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57191         variables.
57192         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57193         in the process include standard headers for prototypes.
57194         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57195         gets declared on GNU/Linux.
57196         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57197         unistd.h, for `rmdir'.
57198         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57199
57200         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57201         always true.
57202         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57203
57204         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57205
57206 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57207
57208         * gnulib-tool (func_version): Create output all at once.  This
57209         may help avoid triggering unnecessary SIGPIPEs, and at any
57210         rate it doesn't hurt.
57211
57212 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57213             Bruno Haible  <bruno@clisp.org>
57214
57215         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57216         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57217         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57218
57219         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57220         (gl_FUNC_VASPRINTF): Invoke it.
57221
57222 2006-09-22  Bruno Haible  <bruno@clisp.org>
57223
57224         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57225         getloadavg.c as first argument.
57226
57227 2006-09-22  Bruno Haible  <bruno@clisp.org>
57228
57229         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57230         at the beginning of the gl_INIT macro.
57231         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57232         gl_GETLOADAVG.
57233
57234 2006-09-22  Bruno Haible  <bruno@clisp.org>
57235
57236         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57237         module.
57238         Suggested by Ralf Wildenhues.
57239
57240 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         Import this patch from libc:
57243
57244         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57245
57246         * lib/regex_internal.c (re_string_reconstruct): Handle
57247         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57248         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57249         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57250         re_string_context_at.
57251
57252         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57253         now requires it.
57254         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57255         gl_REGEX now does it for us.
57256         (gl_REGEX): Add test taken from
57257         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57258
57259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57260         Check that large offsets work.  Modernize Autoconf usages.
57261         Prefer "yes" to mean a good thing rather than a bad.
57262         Don't put "#define mkstemp" in config.h, as this might interfere
57263         with standard system headers that "#define mkstemp mkstemp64".
57264
57265         * modules/mkstemp (Depends-on): Add extensions, so that
57266         mkstemp is visible on some platforms.
57267         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57268         (Include): Change to "mkstemp.h" from <stdlib.h>.
57269         (Files): Add mkstemp.h.
57270
57271         * lib/mkstemp.h: New file, since some standard headers
57272         #define mkstemp.
57273         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57274         Include "mkstemp.h".
57275         Make the _LIBC code resemble glibc original more,
57276         e.g., use K&R style.
57277         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57278         (mkstemp): Remove, since mkstemp.h does this for us.
57279         * lib/stdlib--.h: Include mkstemp.h.
57280
57281         Import this patch from libc:
57282
57283         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57284
57285         * lib/tempname.c (__gen_tempname): Change attempts_min
57286         into a macro.  Use preprocessor to decide how to initialize
57287         attempts [Coverity CID 67].
57288
57289 2006-09-20  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/mkdtemp.c: Import from libc.
57292         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57293                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57294                 attempts_min into a macro.  Use preprocessor to decide how to
57295                 initialize attempts [Coverity CID 67].
57296         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57297                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57298                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57299
57300 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57301
57302         * gnulib-tool (func_exit): New function, to allow to pass the
57303         exit status portably through the trap.  Use everywhere.
57304         (--help, --version): Signal a write error.
57305         (trap): catch SIGPIPE, for write errors.
57306         Exit at the end of the trap, with the correct exit status.
57307
57308 2006-09-19  Karl Berry  <karl@gnu.org>
57309
57310         * doc/gnulib.texi: note about the license texinfo files.
57311
57312 2006-09-19  Eric Blake  <ebb9@byu.net>
57313
57314         * gnulib-tool: Avoid space-tab.
57315
57316 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57319         that prevented coreutils 6.1 from building.  Problem reported
57320         by Petter Reinholdtsen.
57321
57322 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57323
57324         * gnulib-tool (avoidlist): Fix typo that broke options like
57325         --avoid=lock that are used by coreutils bootstrap.
57326
57327 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57328
57329         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57330         more systematically.
57331
57332 2006-09-18  Jim Meyering  <jim@meyering.net>
57333
57334         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57335
57336 2006-09-18  Bruno Haible  <bruno@clisp.org>
57337
57338         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57339
57340 2006-09-18  Bruno Haible  <bruno@clisp.org>
57341
57342         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57343         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57344         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57345         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57346         * m4/gettext.m4: Require autoconf >= 2.52.
57347         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57348         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57349         of gl_cv_header_inttypes_h.
57350
57351 2006-09-18  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/javaversion.c: Include configmake.h.
57354
57355 2006-09-18  Bruno Haible  <bruno@clisp.org>
57356
57357         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57358         avoid that the while loops be executed in a subshell.
57359
57360 2006-09-18  Bruno Haible  <bruno@clisp.org>
57361
57362         * MODULES.html.sh (func_module): Break long lines.
57363         Suggested by Bruce Korb <bkorb@gnu.org>.
57364
57365 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57366
57367         Speed up by a factor of 1.12.
57368         * gnulib-tool (nl): New variable.
57369         (func_import): Rewrite include directive extraction to only read each
57370         directive once.
57371
57372 2006-09-17  Bruno Haible  <bruno@clisp.org>
57373
57374         * modules/javaversion (Makefile.am): Remove DEFS setting.
57375         (Depends-on): Add configmake, for PKGDATADIR definition.
57376
57377 2006-09-17  Bruno Haible  <bruno@clisp.org>
57378
57379         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57380
57381 2006-09-17  Bruno Haible  <bruno@clisp.org>
57382
57383         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57384         (func_modules_transitive_closure, func_modules_add_dummy,
57385         func_modules_to_filelist, func_import, func_create_testdir,
57386         func_create_megatestdir, ...): Use it wherever possible.
57387         Suggested by Ralf Wildenhues.
57388
57389 2006-09-16  Karl Berry  <karl@gnu.org>
57390
57391         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57392         to avoid sectioning errors.
57393         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57394         [ifinfo]: blank line after @center-ed titles.
57395         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57396         Spell FSF address consistently with others.
57397         (These changes approved by rms.)
57398
57399 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57400
57401         Speed up by a factor of 1.61.
57402         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57403         already checked module names again.
57404
57405 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57406
57407         Speed up by a factor of 1.13.
57408         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57409         for new_files, and the input to func_add_or_update.
57410
57411 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57412
57413         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57414         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57415
57416 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * modules/mkancesdirs (Depends-on): Add fcntl.
57419         * modules/savewd: New file.
57420         * MODULES.html.sh (File system functions): Add savewd.
57421
57422         * modules/configmake (Makefile.am): Add support for the
57423         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57424
57425 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57426
57427         * m4/savewd.m4: New file.
57428
57429 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57430
57431         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57432         (dirchownmod): New arg FD.  All callers changed.
57433         Use FD rather than opening the directory ourself, as opening is
57434         now the caller's responsibility.
57435         * lib/dirchownmod.h: Likewise.
57436         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57437         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57438         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57439         (test_dir): Remove.
57440         (mkancesdirs): Return length of prefix of FILE that has already
57441         been made, or -2 if there is a child doing the work.  Redo
57442         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57443         ".", and treat ".." specially since it might stray back into
57444         already-created areas.  Use a subprocess if necessary.  New arg
57445         WD; all users changed.  MAKE_DIR function should now return 1
57446         if it creates a directory that is not readable.  Return -2 if
57447         a child process is spun off.
57448         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57449         Adjust signature to match code.
57450         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57451         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57452         all users changed.
57453         * lib/savewd.c, lib/savewd.h: New files.
57454
57455 2006-09-15  Jim Meyering  <jim@meyering.net>
57456
57457         * modules/rename-dest-slash: New module.
57458         * MODULES.html.sh (posix_compat): Add it here.
57459
57460         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57461
57462 2006-09-15  Jim Meyering  <jim@meyering.net>
57463
57464         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57465         file.
57466
57467         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57468
57469 2006-09-15  Jim Meyering  <jim@meyering.net>
57470
57471         * lib/rename-dest-slash.c (has_trailing_slash): Use
57472         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57473         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57474         test before testing whether SRC is a directory.
57475         Suggestions from Bruno Haible.
57476
57477         Avoid a warning about an unused variable.
57478         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57479         into the #ifdef block where it's used.
57480
57481         * lib/rename-dest-slash.c: New file.
57482
57483 2006-09-14  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/allocsa.c: Include <config.h> unconditionally.
57486         * lib/asnprintf.c: Likewise.
57487         * lib/asprintf.c: Likewise.
57488         * lib/c-strcasecmp.c: Likewise.
57489         * lib/c-strcasestr.c: Likewise.
57490         * lib/c-strncasecmp.c: Likewise.
57491         * lib/c-strstr.c: Likewise.
57492         * lib/classpath.c: Likewise.
57493         * lib/clean-temp.c: Likewise.
57494         * lib/concatpath.c: Likewise.
57495         * lib/copy-file.c: Likewise.
57496         * lib/csharpcomp.c: Likewise.
57497         * lib/csharpexec.c: Likewise.
57498         * lib/execute.c: Likewise.
57499         * lib/fatal-signal.c: Likewise.
57500         * lib/findprog.c: Likewise.
57501         * lib/fwriteerror.c: Likewise.
57502         * lib/gl_array_list.c: Likewise.
57503         * lib/gl_array_oset.c: Likewise.
57504         * lib/gl_avltree_list.c: Likewise.
57505         * lib/gl_avltree_oset.c: Likewise.
57506         * lib/gl_avltreehash_list.c: Likewise.
57507         * lib/gl_carray_list.c: Likewise.
57508         * lib/gl_linked_list.c: Likewise.
57509         * lib/gl_linkedhash_list.c: Likewise.
57510         * lib/gl_list.c: Likewise.
57511         * lib/gl_oset.c: Likewise.
57512         * lib/gl_rbtree_list.c: Likewise.
57513         * lib/gl_rbtree_oset.c: Likewise.
57514         * lib/gl_rbtreehash_list.c: Likewise.
57515         * lib/imaxabs.c: Likewise.
57516         * lib/imaxdiv.c: Likewise.
57517         * lib/javacomp.c: Likewise.
57518         * lib/javaexec.c: Likewise.
57519         * lib/javaversion.c: Likewise.
57520         * lib/linebreak.c: Likewise.
57521         * lib/localcharset.c: Likewise.
57522         * lib/lock.c: Likewise.
57523         * lib/mbchar.c: Likewise.
57524         * lib/mbswidth.c: Likewise.
57525         * lib/mkdtemp.c: Likewise.
57526         * lib/pipe.c: Likewise.
57527         * lib/printf-args.c: Likewise.
57528         * lib/printf-parse.c: Likewise.
57529         * lib/progname.c: Likewise.
57530         * lib/progreloc.c: Likewise.
57531         * lib/readlink.c: Likewise.
57532         * lib/sh-quote.c: Likewise.
57533         * lib/stpcpy.c: Likewise.
57534         * lib/stpncpy.c: Likewise.
57535         * lib/strcasecmp.c: Likewise.
57536         * lib/strcasestr.c: Likewise.
57537         * lib/strcspn.c: Likewise.
57538         * lib/striconv.c: Likewise.
57539         * lib/strncasecmp.c: Likewise.
57540         * lib/strnlen1.c: Likewise.
57541         * lib/strstr.c: Likewise.
57542         * lib/strtok_r.c: Likewise.
57543         * lib/tls.c: Likewise.
57544         * lib/tmpdir.c: Likewise.
57545         * lib/unicodeio.c: Likewise.
57546         * lib/unsetenv.c: Likewise.
57547         * lib/vasnprintf.c: Likewise.
57548         * lib/vasprintf.c: Likewise.
57549         * lib/wait-process.c: Likewise.
57550         * lib/xallocsa.c: Likewise.
57551         * lib/xsetenv.c: Likewise.
57552         * lib/xstriconv.c: Likewise.
57553
57554 2006-09-13  Simon Josefsson  <jas@extundo.com>
57555
57556         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57557         that internally, suggested by Ralf Wildenhues
57558         <Ralf.Wildenhues@gmx.de>.
57559
57560 2006-09-13  Simon Josefsson  <jas@extundo.com>
57561
57562         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57563         @LIBOBJS@.
57564         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57565
57566 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57567
57568         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57569         longer worry about uses that don't define HAVE_CONFIG_H.
57570         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57571         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57572         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57573         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57574         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57575         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57576         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57577         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57578         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57579         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57580         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57581         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57582         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57583         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57584         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57585         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57586         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57587         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57588         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57589         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57590         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57591         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57592         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57593         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57594         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57595         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57596         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57597         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57598         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57599         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57600         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57601         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57602         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57603         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57604         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57605         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57606         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57607         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57608         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57609         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57610         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57611         Likewise.
57612
57613 2006-09-13  Eric Blake  <ebb9@byu.net>
57614
57615         * lib/getopt.c: Fix typo in last commit.
57616
57617 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57618
57619         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57620         dgettext.
57621
57622 2006-09-12  Jim Meyering  <jim@meyering.net>
57623
57624         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57625         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57626         Reported by Nelson H. F. Beebe.
57627
57628 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57629
57630         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57631         program_invocation_name and program_invocation_short_name are
57632         initialized.
57633         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57634         and program_invocation_short_name to argp.h, so they are visible
57635         to user programs.
57636         * lib/argp.h: Likewise
57637
57638 2006-09-10  Bruno Haible  <bruno@clisp.org>
57639
57640         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57641         m4/inttypes_h.m4, m4/uintmax_t.m4.
57642
57643 2006-09-10  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57646         gl_AC_TYPE_UINTMAX_T.
57647
57648 2006-09-10  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57651
57652 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57653
57654         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57655         convention.  Text proposed by Bruno Haible.
57656         (struct argp_option): Document the use of N_() wrappers.
57657
57658         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57659         '\v', and translate the two parts separately, instead of feeding
57660         the whole string to gettext.  This allows to exclude
57661         '\v' from the strings visible to the translator by writing doc
57662         strings as N_("..") "\v" N_("..").
57663
57664 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * config/srclist.txt: Undo latest change; the bug was fixed.
57667
57668 2006-09-09  Bruno Haible  <bruno@clisp.org>
57669
57670         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57671         assignments if building a library without libtool.
57672         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57673         in func_emit_lib_Makefile_am.
57674         (func_import): When building a static library libfoo.a, arrange to
57675         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57676         (func_create_testdir): Likewise.
57677         * modules/gc (configure.ac, Makefile.am): If building statically,
57678         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57679         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57680         * modules/striconv (configure.ac, Makefile.am): Likewise.
57681         Based on a suggestion by Ralf Wildenhues.
57682
57683 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57684
57685         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57686         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57687         Also:
57688
57689         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57690         Add year_2050_test to catch glibc bug 2821
57691         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57692
57693         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57694         Prefer #ifdef to #if.
57695
57696         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57697         Return from 'main' instead of calling 'exit'.
57698
57699 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57700
57701         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57702         returned the maximum time_t value rather than (time_t) -1.
57703         Problem originally reported by William Bardwell
57704         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57705
57706         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57707         Moved to here ...
57708         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57709         ... from here.
57710
57711 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57714         2821 is fixed.
57715
57716 2006-09-08  Jim Meyering  <jim@meyering.net>
57717
57718         Don't make generated files read-only.  That would bother too many
57719         people.  However, do retain the ability to work when targets are
57720         read-only: remove the destination and temporary files before writing
57721         them (when generated via sed or echo), or by using the -f option for
57722         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57723         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57724         * modules/byteswap, modules/configmake, modules/fcntl:
57725         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57726         * modules/localcharset, modules/netinet_in, modules/poll:
57727         * modules/stdbool, modules/stdint, modules/sys_select:
57728         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57729
57730 2006-09-08  Jim Meyering  <jim@meyering.net>
57731
57732         Avoid new build failure on FreeBSD 6.0.
57733         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57734         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57735         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57736
57737 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57738
57739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57740
57741 2006-09-07  Jim Meyering  <jim@meyering.net>
57742
57743         Fix global typo in last change: use chmod u-w, not chmod u-x.
57744         Spotted by Paul Eggert and Bruce Korb.
57745         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57746         * modules/byteswap, modules/configmake, modules/fcntl:
57747         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57748         * modules/localcharset, modules/netinet_in, modules/poll:
57749         * modules/stdbool, modules/stdint, modules/sys_select:
57750         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57751
57752 2006-09-06  Jim Meyering  <jim@meyering.net>
57753
57754         Make generated files be read-only.
57755         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57756         Ensure that each generated file is now read-only.
57757         * modules/argz: Likewise.
57758         * modules/arpa_inet: Likewise.
57759         * modules/byteswap: Likewise.
57760         * modules/configmake: Likewise.
57761         * modules/fcntl: Likewise.
57762         * modules/fnmatch: Likewise.
57763         * modules/getopt: Likewise.
57764         * modules/glob: Likewise.
57765         * modules/inttypes: Likewise.
57766         * modules/netinet_in: Likewise.
57767         * modules/poll: Likewise.
57768         * modules/stdbool: Likewise.
57769         * modules/stdint: Likewise.
57770         * modules/sys_select: Likewise.
57771         * modules/sys_socket: Likewise.
57772         * modules/sys_stat: Likewise.
57773         * modules/sysexits: Likewise.
57774         * modules/localcharset: Same as above, but continue using temporary
57775         file named "t-$@" (why different?) rather than the "$@-t" used
57776         everywhere else.
57777
57778         * modules/sysexits (Makefile.am): Replace literal occurrences
57779         of "sysexit.h" more readable, and more consistent, "$@".
57780
57781 2006-09-06  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/striconv: New file.
57784         * modules/xstriconv: New file.
57785         * MODULES.html.sh (Internationalization functions): Add striconv,
57786         xstriconv.
57787
57788 2006-09-06  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57791         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57792         not using libtool correctly.
57793
57794 2006-09-06  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/striconv.h: New file.
57797         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57798         iconvstring.c.
57799         * lib/xstriconv.h: New file.
57800         * lib/xstriconv.c: New file.
57801
57802 2006-09-06  Bruno Haible  <bruno@clisp.org>
57803
57804         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57805         lib_..._LDFLAGS.
57806
57807 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57808
57809         * lib/argz_.h: Sync from Libtool.
57810
57811         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57812                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57813
57814         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57815
57816 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57817
57818         * modules/trim: New file.
57819
57820 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57821
57822         * lib/trim.h: New file.
57823         * lib/trim.c: New file.
57824
57825 2006-09-05  Bruno Haible  <bruno@clisp.org>
57826
57827         * MODULES.html.sh (String handling): Add trim.
57828
57829 2006-09-04  Karl Berry  <karl@gnu.org>
57830
57831         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57832         until next release.
57833
57834 2006-09-03  Bruno Haible  <bruno@clisp.org>
57835
57836         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57837         correctly.
57838
57839 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57842         not gl_GETLOADAVG.  Omit unneeded semicolons.
57843         Problems reported by Ralf Wildenhues in
57844         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57845         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57846         at the end, which is the usual gnulib style.
57847
57848         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57849         of doing all the work ourselves.
57850         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57851         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57852
57853 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57854
57855         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57856         Problem reported by Ralf Wildenhues in
57857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57858
57859         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57860         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57861
57862 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57863
57864         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57865         yesterday's patch by changing test -n to test -z.
57866
57867 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57868
57869         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57870         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57871         the former is now obsolescent.
57872
57873         * modules/chdir-long (Depends-on): Add fcntl.
57874
57875 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57878         obsolescent, and programs should use gnulib instead.
57879         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57880         but with prefixes changed.
57881
57882 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57885         or stdbool.h, because they might not exist while configuring.
57886
57887         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57888         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57889         does that for us.
57890         (O_DIRECTORY): Remove.
57891
57892 2006-08-31  Eric Blake  <ebb9@byu.net>
57893
57894         * gnulib-tool: Don't let emacs change spaces to TAB.
57895
57896 2006-08-31  Bruno Haible  <bruno@clisp.org>
57897
57898         * gnulib-tool: When calling func_import more than once, do it in a
57899         subshell.
57900         Reported by Eric Blake <ebb9@byu.net>.
57901
57902 2006-08-31  Bruno Haible  <bruno@clisp.org>
57903
57904         * gnulib-tool (nl): Remove variable.
57905         (sed_transform_lib_file): Use more robust test for config-h module.
57906         (func_import): Fix typo in 2006-08-25 patch.
57907
57908 2006-08-31  Bruno Haible  <bruno@clisp.org>
57909
57910         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57911         specified, augment Makefile.am variables instead of assigning them.
57912
57913 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         Work around a bug in both the Linux and SunOS 64-bit kernels:
57916         nanosleep mishandles sleeps for longer than 2**31 seconds.
57917         Problem reported by Frank v Waveren in
57918         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57920         Check for nanosleep bug.
57921         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57922
57923 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         Work around a bug in both the Linux and SunOS 64-bit kernels:
57926         nanosleep mishandles sleeps for longer than 2**31 seconds.
57927         Problem reported by Frank v Waveren in
57928         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57929         * lib/nanosleep.c (BILLION): New constant.
57930         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57931         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57932         implementation.
57933
57934 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57935
57936         * modules/nanosleep (Depends-on): Add gettime.
57937
57938 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57939         and Simon Josefsson  <jas@extundo.com>
57940         and Oskar Liljeblad  <oskar@osk.mine.nu>
57941
57942         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57943         * gnulib-tool (func_import): New license type 'unmodifiable license
57944         text'.
57945         * modules/fdl: Use it.  Longer description.
57946         * module/gpl, module/lgpl: New files.
57947
57948 2006-08-30  Jim Meyering  <jim@meyering.net>
57949
57950         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57951         shadowing the parameter.
57952
57953 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57954
57955         Sync from Libtool:
57956
57957         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57958
57959         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57960         sharing with gnulib.  Report by Eric Blake.
57961
57962 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * modules/isapipe: New file.
57965         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57966
57967 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * modules/configmake (Makefile.am): Add a comment, and omit
57970         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57971         by Bruno Haible.
57972
57973 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * m4/isapipe.m4: New file.
57976
57977 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57978
57979         * lib/isapipe.c, lib/isapipe.h: New files.
57980
57981 2006-08-29  Jim Meyering  <jim@meyering.net>
57982
57983         * modules/configmake (Makefile.am): Make configmake.h depend on
57984         Makefile.  Otherwise, a stale configmake.h could hang around.
57985
57986 2006-08-29  Eric Blake  <ebb9@byu.net>
57987
57988         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57989         resolution of upstream bug 3044.
57990
57991 2006-08-29  Bruno Haible  <bruno@clisp.org>
57992
57993         * modules/localcharset (Depends-on): Add configmake.
57994         (Makefile.am): Remove setting of LIBDIR through DEFS.
57995
57996 2006-08-29  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57999         defined.
58000
58001 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         * modules/fcntl: New file.
58004         * modules/chdir-safer (Depends-on): Add fcntl.
58005         * modules/fts: Likewise.
58006         * modules/mkdir-p: Likewise.
58007
58008         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58009         This undoes the most recent change, since we're now addressing the
58010         problem in a different way.
58011
58012         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58013         into output, since the output might be called Makefile.am even
58014         if $makefile_name is something different.
58015         (func_import): Use $makefile_am rather than
58016         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58017         empty.
58018
58019         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58020
58021 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58024         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58025         recent change to stdint.m4, since we're now addressing the problem in a
58026         different way.
58027
58028 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * m4/fcntl_h.m4: New file.
58031
58032 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58033
58034         * lib/fcntl_.h: New file.
58035         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58036         the fcntl module.
58037         * lib/dirchownmod.c: Likewise.
58038         * lib/fts.c: Likewise.
58039
58040         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58041         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58042         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58043         just before including <inttypes.h>, to avoid circular inclusion.
58044
58045 2006-08-28  Jim Meyering  <jim@meyering.net>
58046
58047         * doc/visibility.texi: Actually read and correct the grammar of the
58048         sentence affected by yesterday's change.
58049
58050 2006-08-28  Eric Blake  <ebb9@byu.net>
58051
58052         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58053         needs wrapper.
58054
58055 2006-08-28  Eric Blake  <ebb9@byu.net>
58056
58057         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58058
58059 2006-08-28  Eric Blake  <ebb9@byu.net>
58060
58061         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58062
58063 2006-08-28  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/c-strstr: New file, from GNU gettext.
58066         * MODULES.html.sh (String handling): Add c-strstr.
58067
58068 2006-08-28  Bruno Haible  <bruno@clisp.org>
58069
58070         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58071         macros.
58072         Reported by Eric Blake.
58073
58074 2006-08-28  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58077         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58078         * lib/vasprintf.c: Include errno.h, limits.h.
58079         (EOVERFLOW): New fallback definition.
58080         (vasprintf): Test here whether the string length is > INT_MAX.
58081         * lib/vsnprintf.c: Include errno.h, limits.h.
58082         (EOVERFLOW): New fallback definition.
58083         (vsnprintf): Fix bug when generated string was too long for the buffer.
58084         Test here whether the string length is > INT_MAX.
58085
58086 2006-08-28  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/inttypes_.h (SCNX*): Remove definitions.
58089         Reported by Eric Blake.
58090
58091 2006-08-28  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/c-strstr.h: New file, from GNU gettext.
58094         * lib/c-strstr.c: New file, from GNU gettext.
58095
58096 2006-08-28  Bruno Haible  <bruno@clisp.org>
58097
58098         * gnulib-tool: Reorder some statements.
58099
58100 2006-08-28  Bruno Haible  <bruno@clisp.org>
58101
58102         * gnulib-tool: New option --makefile-name.
58103         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58104         $makefile_name.
58105         (func_import): Write $makefile_name to the cache file, and read it from
58106         there unless explicitly specified. Use $makefile_name as file name
58107         instead of Makefile.am. Adjust the recommendations accordingly.
58108
58109 2006-08-28  Bruno Haible  <bruno@clisp.org>
58110
58111         * gnulib-tool (func_verify_module): Check against misapplying patch.
58112
58113 2006-08-28  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_relativize, func_relconcat): New functions.
58116         Give an error if --local-dir is given with --update.
58117         Remove trailing slashes from $local_gnulib_dir.
58118         (func_import): Store the relativized $local_gnulib_dir in
58119         gnulib-cache.m4, and read it from there if not specified explicitly.
58120
58121 2006-08-28  Bruno Haible  <bruno@clisp.org>
58122
58123         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58124         is the current directory. Respect also $local_gnulib_dir.
58125
58126 2006-08-28  Bruno Haible  <bruno@clisp.org>
58127             Simon Josefsson  <jas@extundo.com>
58128
58129         BeOS portability.
58130         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58131
58132 2006-08-27  Jim Meyering  <jim@meyering.net>
58133
58134         * doc/visibility.texi: Remove duplicate word: "pointer".
58135
58136 2006-08-26  Bruno Haible  <bruno@clisp.org>
58137
58138         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58139         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58140         (Makefile.am): Create inttypes.h from inttypes_.h.
58141         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58142
58143         * modules/imaxabs: New file.
58144
58145         * modules/imaxdiv: New file.
58146
58147 2006-08-26  Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/inttypes.m4: New file.
58150         * m4/_inttypes_h.m4: Remove file.
58151         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58152         PRI_MACROS_BROKEN.
58153         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58154
58155         * m4/imaxabs.m4: New file.
58156
58157         * m4/imaxdiv.m4: New file.
58158
58159 2006-08-26  Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/inttypes_.h: New file.
58162         * lib/inttypes.h: Remove file.
58163         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58164
58165         * lib/imaxabs.c: New file.
58166
58167         * lib/imaxdiv.c: New file.
58168
58169 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58170
58171         New config-h module, so that "make" output needn't be cluttered
58172         by -DHAVE_CONFIG_H.
58173         * MODULES.html.sh (Support for building libraries and executables):
58174         Add config-h.
58175         * modules/config-h: New file.
58176         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58177         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58178         the config-h module is used.
58179
58180         New configmake module, so that "make" output needn't be cluttered
58181         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58182         * MODULES.html.sh (Support for building libraries and executables):
58183         Add configmake.
58184         * modules/configmake: New file.
58185
58186 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         * m4/config-h.m4: New file.
58189
58190 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58191
58192         * config/srclist.txt: Add elisp-comp.
58193
58194 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58195
58196         * MODULES.html.sh (Support for building libraries and executables):
58197         Add elisp-comp.
58198         * build-aux/elisp-comp: New file.
58199         * modules/elisp-comp: New file.
58200
58201 2006-08-24  Bruno Haible  <bruno@clisp.org>
58202
58203         * gnulib-tool (func_create_testdir): Use non-default values of
58204         sourcebase and m4base.
58205
58206 2006-08-24  Bruno Haible  <bruno@clisp.org>
58207
58208         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58209         HTML structure.
58210
58211 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         * modules/openat (Depends-on): Add lchown.
58214
58215 2006-08-23  Bruno Haible  <bruno@clisp.org>
58216
58217         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58218         of gl_LOCK_EARLY instead of gl_LOCK.
58219
58220 2006-08-23  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58223         on OSF/1 to no.
58224         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58225
58226 2006-08-23  Bruno Haible  <bruno@clisp.org>
58227
58228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58229         as unusable.
58230
58231         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58232         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58233         (gl_LOCK): New macro.
58234
58235 2006-08-22  Simon Josefsson  <jas@extundo.com>
58236
58237         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58238         to md5 module.
58239
58240 2006-08-22  Simon Josefsson  <jas@extundo.com>
58241
58242         * MODULES.html.sh: Add "Support for maintaining and release
58243         projects".
58244
58245         * build-aux/gnupload: New file, from coreutils.
58246
58247 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Avoid the need for AC_LIBSOURCES in m4 macros.
58250         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58251         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58252         * modules/check-version (EXTRA_DIST): Add check-version.h.
58253         * modules/crc (EXTRA_DIST): Add crc.h.
58254         * modules/des (EXTRA_DIST): Add des.h.
58255         * modules/gc (EXTRA_DIST): Add gc.h.
58256         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58257         * modules/getline (EXTRA_DIST): Add getline.h.
58258         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58259         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58260         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58261         * modules/md2 (EXTRA_DIST): Add md2.h.
58262         * modules/md4 (EXTRA_DIST): Add md4.h.
58263         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58264         * modules/read-file (EXTRA_DIST): Add read-file.h.
58265         * modules/readline (EXTRA_DIST): Add readline.h.
58266         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58267         rijndael-api-fst.h.
58268
58269 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * m4/rijndael.m4 (gl_ARCFOUR):
58272         * m4/arctwo.m4 (gl_ARCTWO):
58273         * m4/check-version.m4 (gl_CHECK_VERSION):
58274         * m4/crc.m4 (gl_CRC):
58275         * m4/des.m4 (gl_DES):
58276         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58277         * m4/gc.m4 (gl_GC):
58278         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58279         * m4/getline.m4 (gl_FUNC_GETLINE):
58280         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58281         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58282         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58283         * m4/md2.m4 (gl_MD2):
58284         * m4/md4.m4 (gl_MD4):
58285         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58286         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58287         * m4/readline.m4 (gl_FUNC_READLINE):
58288         * m4/rijndael.m4 (gl_RIJNDAEL):
58289         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58290         to get the necessary .h files and whatnot.
58291
58292 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58295         gnulib rather than the other way around.
58296         * config/srclistvars.sh (COREUTILS): Remove.
58297
58298 2006-08-22  Jim Meyering  <jim@meyering.net>
58299
58300         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58301
58302         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58303
58304 2006-08-22  Eric Blake  <ebb9@byu.net>
58305
58306         * modules/regexprops-generic: New file.
58307         * MODULES.html.sh (Support for building documentation): List it.
58308
58309 2006-08-22  Eric Blake  <ebb9@byu.net>
58310
58311         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58312         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58313         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58314         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58315
58316 2006-08-22  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58319         and lib_LTLIBRARIES like the other lib_* variables.
58320
58321 2006-08-22  Bruno Haible  <bruno@clisp.org>
58322
58323         * build-aux/x-to-1.in: New file, from GNU gettext.
58324
58325 2006-08-22  Bruno Haible  <bruno@clisp.org>
58326
58327         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58328         <utmpx.h> exists.
58329
58330 2006-08-22  Bruno Haible  <bruno@clisp.org>
58331
58332         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58333         <utmpx.h> exists.
58334
58335 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58336
58337         BeOS portability.
58338         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58339         exist.
58340         Problem reported by Bruno Haible.
58341
58342 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58343
58344         Avoid the need for AC_LIBSOURCES in m4 macros.
58345         * modules/acl (EXTRA_DIST): Add acl.h.
58346         * modules/argmatch (Files): Add m4/argmatch.m4.
58347         (configure.ac): Add gl_ARGMATCH.
58348         (EXTRA_DIST): Renamed from lib_SOURCES, for
58349         consistency with the other modules.  Remove argmatch.c.
58350         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58351         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58352         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58353         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58354         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58355         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58356         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58357         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58358         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58359         * modules/closeout (EXTRA_DIST): Add closeout.h.
58360         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58361         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58362         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58363         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58364         dirname.h; remove basename.c and stripslash.c.
58365         * modules/exclude (EXTRA_DIST): Add exclude.h.
58366         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58367         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58368         * modules/file-type (EXTRA_DIST): Add file-type.h.
58369         * modules/filemode (EXTRA_DIST): Add filemode.h.
58370         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58371         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58372         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58373         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58374         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58375         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58376         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58377         * modules/getdate (EXTRA_DIST): Add getdate.c.
58378         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58379         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58380         * modules/getpass (EXTRA_DIST): Add getpass.h.
58381         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58382         * modules/group-member (EXTRA_DIST): Add group-member.h.
58383         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58384         * modules/hash (EXTRA_DIST): Add hash.h.
58385         * modules/human (EXTRA_DIST): Add human.h.
58386         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58387         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58388         * modules/lchown (EXTRA_DIST): Add lchown.h.
58389         * modules/long-options (EXTRA_DIST): Add long-options.h.
58390         * modules/lstat (EXTRA_DIST): Add lstat.h.
58391         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58392         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58393         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58394         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58395         * modules/memxor (EXTRA_DIST): Add memxor.h.
58396         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58397         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58398         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58399         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58400         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58401         * modules/physmem (EXTRA_DIST): Add physmem.h.
58402         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58403         * modules/posixver (EXTRA_DIST): Add posixver.h.
58404         * modules/quote (EXTRA_DIST): Add quote.h.
58405         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58406         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58407         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58408         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58409         regex_internal.h regexec.c.
58410         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58411         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58412         * modules/same (EXTRA_DIST): Add same.h.
58413         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58414         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58415         * modules/savedir (EXTRA_DIST): Add savedir.h.
58416         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58417         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58418         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58419         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58420         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58421         * modules/strdup (EXTRA_DIST): Add strdup.h.
58422         * modules/strftime (EXTRA_DIST): Add strftime.h.
58423         * modules/strndup (EXTRA_DIST): Add strndup.h.
58424         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58425         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58426         * modules/time_r (EXTRA_DIST): Add time_r.h.
58427         * modules/timespec (EXTRA_DIST): Add timespec.h.
58428         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58429         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58430         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58431         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58432         * modules/userspec (EXTRA_DIST): Add userspec.h.
58433         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58434         * modules/utimens (EXTRA_DIST): Add utimens.h.
58435         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58436         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58437         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58438         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58439         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58440         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58441         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58442         * modules/yesno (EXTRA_DIST): Add yesno.h.
58443
58444 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58447
58448         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58449         * m4/dev-ino.m4, same-inode.m4: Remove.
58450
58451         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58452         * m4/acl.m4 (AC_FUNC_ACL):
58453         * m4/backupfile.m4 (gl_BACKUPFILE):
58454         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58455         * m4/canon-host.m4 (gl_CANON_HOST):
58456         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58457         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58458         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58459         * m4/cloexec.m4 (gl_CLOEXEC):
58460         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58461         * m4/closeout.m4 (gl_CLOSEOUT):
58462         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58463         * m4/dirname.m4 (gl_DIRNAME):
58464         * m4/exclude.m4 (gl_EXCLUDE):
58465         * m4/exitfail.m4 (gl_EXITFAIL):
58466         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58467         * m4/file-type.m4 (gl_FILE_TYPE):
58468         * m4/filemode.m4 (gl_FILEMODE):
58469         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58470         * m4/fpending.m4 (gl_FUNC_FPENDING):
58471         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58472         * m4/fts.m4 (gl_FUNC_FTS):
58473         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58474         * m4/getdate.m4 (gl_GETDATE):
58475         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58476         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58477         * m4/getpass.m4 (gl_FUNC_GETPASS):
58478         * m4/gettime.m4 (gl_GETTIME):
58479         * m4/getugroups.m4 (gl_GETUGROUPS):
58480         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58481         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58482         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58483         * m4/hash.m4 (gl_HASH):
58484         * m4/idcache.m4 (gl_IDCACHE):
58485         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58486         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58487         * m4/long-options.m4 (gl_LONG_OPTIONS):
58488         * m4/lstat.m4 (gl_FUNC_LSTAT):
58489         * m4/md5.m4 (gl_MD5):
58490         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58491         * m4/memcoll.m4 (gl_MEMCOLL):
58492         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58494         * m4/memxor.m4 (gl_MEMXOR):
58495         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58497         * m4/modechange.m4 (gl_MODECHANGE):
58498         * m4/mountlist.m4 (gl_MOUNTLIST):
58499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58500         * m4/openat.m4 (gl_FUNC_OPENAT):
58501         * m4/pathmax.m4 (gl_PATHMAX):
58502         * m4/physmem.m4 (gl_PHYSMEM):
58503         * m4/posixtm.m4 (gl_POSIXTM):
58504         * m4/posixver.m4 (gl_POSIXVER):
58505         * m4/quote.m4 (gl_QUOTE):
58506         * m4/quotearg.m4 (gl_QUOTEARG):
58507         * m4/readtokens.m4 (gl_READTOKENS):
58508         * m4/readutmp.m4 (gl_READUTMP):
58509         * m4/regex.m4 (gl_REGEX):
58510         * m4/safe-read.m4 (gl_SAFE_READ):
58511         * m4/safe-write.m4 (gl_SAFE_WRITE):
58512         * m4/same.m4 (gl_SAME):
58513         * m4/save-cwd.m4 (gl_SAVE_CWD):
58514         * m4/savedir.m4 (gl_SAVEDIR):
58515         * m4/settime.m4 (gl_SETTIME):
58516         * m4/sha1.m4 (gl_SHA1):
58517         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58518         * m4/stat-macros.m4 (gl_STAT_MACROS):
58519         * m4/stat-time.m4 (gl_STAT_TIME):
58520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58521         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58522         * m4/strdup.m4 (gl_FUNC_STRDUP):
58523         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58524         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58525         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58526         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58527         * m4/time_r.m4 (gl_TIME_R):
58528         * m4/timespec.m4 (gl_TIMESPEC):
58529         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58530         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58531         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58532         * m4/userspec.m4 (gl_USERSPEC):
58533         * m4/utimecmp.m4 (gl_UTIMECMP):
58534         * m4/utimens.m4 (gl_UTIMENS):
58535         * m4/xalloc.m4 (gl_XALLOC):
58536         * m4/xgetcwd.m4 (gl_XGETCWD):
58537         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58538         * m4/xreadlink.m4 (gl_XREADLINK):
58539         * m4/xstrtod.m4 (gl_XSTRTOD):
58540         * m4/yesno.m4 (gl_YESNO):
58541         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58542         to get the necessary .h files and whatnot.
58543
58544 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58545             Bruno Haible  <bruno@clisp.org>
58546
58547         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58548         /bin/sh understanding of '!' conditional negation.
58549
58550 2006-08-21  Jim Meyering  <jim@meyering.net>
58551
58552         * modules/openat (Depends-on): Really alphabetize.
58553
58554         * modules/acl (Depends-on): Add error and quote.
58555
58556         * check-module (find_included_lib_files): Add at-func.c to the
58557         ok-to-include-more-than-once white list.
58558
58559         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58560
58561 2006-08-21  Bruno Haible  <bruno@clisp.org>
58562
58563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58564         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58565         Reported by Martin Lambers <marlam@marlam.de>.
58566
58567 2006-08-21  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58570         specify an installation location, don't emit a noinst_LIBRARIES or
58571         noinst_LTLIBRARIES assignment.
58572
58573 2006-08-21  Bruno Haible  <bruno@clisp.org>
58574
58575         BeOS portability.
58576         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58577         BeOS has mbrtowc() but no <wctype.h>.
58578
58579 2006-08-21  Bruno Haible  <bruno@clisp.org>
58580
58581         BeOS portability.
58582         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58583         exist.
58584
58585 2006-08-21  Bruno Haible  <bruno@clisp.org>
58586
58587         BeOS portability.
58588         * lib/mbchar.h: Include <wctype.h> only if it exists.
58589
58590 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         Remove files that are no longer needed by their respective modules.
58593         * m4/obstack.m4: Remove.
58594         * m4/strerror_r.m4: Remove.
58595         * m4/uint32_t.m4: Remove.
58596         * m4/uintptr_t.m4: Remove.
58597         * m4/ullong_max.m4: Remove.
58598         * m4/xstrtoimax.m4: Remove.
58599         * m4/xstrtoumax.m4: Remove.
58600
58601         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58602         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58603         dependencies now capture this.
58604
58605         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58606         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58607         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58608         * m4/human.m4 (gl_HUMAN): Likewise.
58609         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58610         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58611
58612         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58613
58614         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58615         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58616         stdint.
58617         * m4/human.m4 (gl_HUMAN): Likewise.
58618         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58619         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58620         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58621         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58622         * m4/xstrtol (gl_XSTRTOL): Likewise.
58623
58624         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58625         AC_TYPE_LONG_LONG_INT.
58626         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58627         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58628         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58629         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58630
58631         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58632         on stdbool.
58633
58634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58635         (gl_PREREQ_XSTRTOUL): Remove.
58636
58637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58638
58639         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58640         mode.
58641
58642 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         Add and change modules to make it easier for coreutils to use
58645         gnulib-tool.
58646         * modules/backupfile (Files): Remove m4/d-ino.m4.
58647         (Depends-on): Add d-ino.
58648         * modules/cycle-check (Depends-on): Add stdint.
58649         (lib_SOURCES): Add cycle-check.h.
58650         * modules/d-ino: New module.
58651         * modules/d-type: New module.
58652         * modules/error (Files): Remove m4/strerror_r.m4.
58653         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58654         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58655         m4/inttypes_h.m4, m4/uintmax_t.m4.
58656         (Depends-on): Add stdint.
58657         (lib_SOURCES): Add fsusage.h.
58658         * modules/getcwd (Files): Remove d-ino.m4.
58659         (Depends-on): Add d-ino.
58660         * modules/getndelim2 (Depends-on): Add stdint.
58661         * modules/glob (Files): Remove m4/d-type.m4.
58662         (Depends-on): Add d-type.
58663         * modules/host-os: New module.
58664         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58665         m4/inttypes_h.m4, m4/uintmax_t.m4.
58666         * Depends-on: Add stdint.
58667         (lib_SOURCES): Add human.h.
58668         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58669         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58670         m4/uintmax_t.m4, m4/ulonglong.m4.
58671         (Depends-on): Add stdint.
58672         (EXTRA_DIST): Add inttostr.h.
58673         * modules/lchmod: New module.
58674         * modules/link-follow: New module.
58675         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58676         (Depends-on): Add lchmod.
58677         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58678         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58679         (Depends-on): Add stdint.
58680         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58681         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58682         (Depends-on): Add stdint.
58683         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58684         * modules/perl: New module.
58685         * modules/regex (Depends-on): Add stdint.
58686         * modules/rmdir-errno: New module.
58687         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58688         m4/intmax_t.m4.
58689         (Depends-on): Add stdint.
58690         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58691         m4/uintmax_t.m4.
58692         (Depends-on): Add stdint.
58693         * modules/unlink-busy: New module.
58694         * modules/utimecmp (Depends-on): Add stdint.
58695         * modules/uptime: New module.
58696         * modules/winsz-ioctl: New module.
58697         * modules/winsz-termios: New module.
58698         * modules/xnanosleep (Depends-on): Add nanosleep.
58699         * modules/ullong_max: Remove.
58700         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58701         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58702         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58703         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58704         (Depends-on): Add inttypes.
58705         (lib_SOURCES): Add xstrtol.h.
58706         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58707         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58708         * MODULES.html.sh: Move 'assert' into the assert section.
58709         Move 'dummy' into the linking section.
58710         Remove ullong_max.
58711         Add section for compatibility checks for POSIX:2001 functions,
58712         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58713         winsz-ioctl, and winsz-termios into it.
58714         Add lchmod.
58715         Add top-level Misc section and put host-os, perl, and uptime
58716         into it.
58717
58718 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58721         now assume the stdint module.  Do not include inttypes.h.
58722         * lib/fsusage.h: Likewise.
58723         * lib/getndelim2.c: Likewise.
58724         * lib/human.h: Likewise.
58725         * lib/inttostr.h: Likewise.
58726         * lib/obstack.c: Likewise.
58727         * lib/regex_internal.h: Likewise.
58728         * lib/tempname.c: Likewise.
58729         * lib/utimecmp.c: Likewise.
58730         * lib/xstrtol.h: Likewise.
58731
58732         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58733
58734         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58735         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58736         * lib/xtime.h: Likewise.
58737
58738 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * modules/openat (Files): Add lib/fchmodat.c.
58741         Fixes problem reported by Jay Youngman.
58742
58743 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58744
58745         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58746         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58747
58748 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58749             Bruno Haible  <bruno@clisp.org>
58750
58751         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58752         and is a script that invokes bison. Tighten the code. Add comments.
58753
58754 2006-08-18  Jim Meyering  <jim@meyering.net>
58755
58756         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58757         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58758         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58759         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58760
58761 2006-08-18  Bruno Haible  <bruno@clisp.org>
58762
58763         * modules/bison-i18n: New file.
58764         * MODULES.html.sh (Internationalization functions): Add it.
58765
58766 2006-08-18  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58769         sys/statvfs.h. When getmntinfo was found, check its declaration and
58770         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58771
58772 2006-08-18  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/bison-i18n.m4: New file, from bison.
58775
58776 2006-08-18  Bruno Haible  <bruno@clisp.org>
58777
58778         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58779         (ME_DUMMY): Treat "kernfs" as a dummy.
58780         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58781
58782 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         Update from coreutils.
58785
58786         2006-08-15  Jim Meyering  <jim@meyering.net>
58787
58788         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58789
58790         2006-01-17  Jim Meyering  <jim@meyering.net>
58791
58792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58793
58794         2006-01-11  Jim Meyering  <jim@meyering.net>
58795
58796         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58797         Check for the lchmod function.
58798
58799 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         Update from coreutils.
58802
58803         * lib/__fpending.h: Add copyright notice.
58804         * lib/fprintftime.h: Likewise.
58805         * lib/savedir.c: Use (C) in copyright notice.
58806         * lib/savedir.h: Likewise.
58807
58808         2006-08-15  Jim Meyering  <jim@meyering.net>
58809
58810         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58811         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58812         in support of the EXPECTED_ERRNO macro.
58813         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58814         definitions.  Instead, define the appropriate symbols and include
58815         "at-func.c".
58816         * lib/mkdirat.c (mkdirat): Likewise.
58817         * lib/fchmodat.c (fchmodat): Likewise.
58818         (ENOSYS): Remove definition.
58819         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58820         it.  Don't include "unistd--.h" -- it wasn't ever used.
58821
58822         2006-01-17  Jim Meyering  <jim@meyering.net>
58823
58824         Rewrite fts.c not to change the current working directory,
58825         by using openat, fstatat, fdopendir, etc..
58826
58827         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58828         (HAVE_OPENAT_SUPPORT): Define.
58829         [_LIBC] (fchdir): Don't undef or define; no longer used.
58830         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58831         Now, this `function' always succeeds, and consumes its file descriptor
58832         parameter -- so callers must not close such FDs.  Update callers.
58833         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58834         (diropen): Add parameter, SP.  Adjust all callers.
58835         Implement using diropen_fd, rather than open.
58836         (fts_open): Initialize new member, fts_cwd_fd.
58837         Remove fts_rft-setting code.
58838         (fts_close): Close fts_cwd_fd, if necessary.
58839         (__opendir2): Define in terms of opendir or opendirat,
58840         depending on whether the FST_NOCHDIR flag is set.
58841         (fts_build): Since fts_safe_changedir consumes its FD, and since
58842         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58843         and close the dup'd file descriptor upon failure.
58844         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58845         (fts_safe_changedir): Tweak semantics to reflect that this function
58846         now calls cwd_advance_fd and hence consumes its FD argument.
58847         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58848         [struct FTS] (fts_rft): Remove now-unused member.
58849         [struct FTS] (fts_cycle.state): Improve comment.
58850
58851         * lib/openat.c (openat_needs_fchdir): New function.
58852         * lib/openat.h (openat_needs_fchdir): Declare it.
58853
58854 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58857         Problem and fix reported by Pádraig Brady in
58858         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58859
58860 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58863
58864 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         * lib/memcoll.c (memcoll): Optimize for the common case where the
58867         arguments are bytewise equal.
58868
58869 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * doc/regexprops-generic.texi: Add a copyright notice.
58872
58873 2006-08-15  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/tmpdir (License): Change to LGPL.
58876
58877 2006-08-15  Bruno Haible  <bruno@clisp.org>
58878
58879         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58880         module.
58881
58882 2006-08-14  Simon Josefsson  <jas@extundo.com>
58883
58884         * config/srclist.txt: Add gnupload.
58885
58886 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Change copyright notice from LGPL 2 to GPL 2, since that's the
58889         standard form used in the gnulib repository.
58890         * tests/test-lock.c: Likewise.
58891         * tests/test-stdint.c: Likewise.
58892         * tests/test-tls.c: Likewise.
58893
58894         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58895         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58896         Add copyright notice.
58897
58898         * check-module: Add copyright notice.  Output a copyright
58899         notice if "--version" is specified.
58900         * modules/COPYING: New file.
58901         * tests/test-getaddrinfo.c: Add copyright notice.
58902         * tests/test-verify.c: Likewise.
58903
58904 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58905
58906         Change copyright notice from LGPL 2 to GPL 2, since that's the
58907         standard form used in the gnulib repository.
58908         * lib/lock.c: LGPL -> GPL.
58909         * lib/lock.h: Likewise.
58910         * lib/strnlen1.c: Likewise.
58911         * lib/strnlen1.h: Likewise.
58912         * lib/tls.c: Likewise.
58913         * lib/tls.h: Likewise.
58914         * lib/tmpdir.c: Likewise.
58915
58916         * lib/TODO: Remove; this belongs only in coreutils.
58917
58918 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58919
58920         Add copyright notices to long-enough files that lack them, since
58921         otherwise the files aren't clearly free.  Use the same notice that
58922         getdate.texi already uses.
58923         * doc/alloca-opt.texi: Add copyright notice.
58924         * doc/alloca.texi: Likewise.
58925         * doc/ctime.texi: Likewise.
58926         * doc/functions.texi: Likewise.
58927         * doc/gcd.texi: Likewise.
58928         * doc/gnulib-tool.texi: Likewise.
58929         * doc/inet_ntoa.texi: Likewise.
58930         * doc/visibility.texi: Likewise.
58931
58932         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58933         * doc/quote.texi: Add copyright notice.
58934
58935         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58936         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58937         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58938         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58939         is now obsolete, and give a pointer to the Sun list.
58940         Add copyright notice.
58941
58942 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         * config/srclistvars.sh: Add copyright notice.
58945
58946 2006-08-14  Eric Blake  <ebb9@byu.net>
58947
58948         Import the following change from libc:
58949
58950         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58951
58952         Upstream bug 2997.
58953         * lib/misc/error.c: Add space between program name and message if file
58954         name is missing.
58955
58956 2006-08-12  Karl Berry  <karl@gnu.org>
58957
58958         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58959         remove, these originate in gnulib now.
58960
58961 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58962
58963         * doc/Makefile (standards.info standards.html standards.dvi):
58964         Also depend on make-stds.texi.
58965
58966 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58967
58968         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58969         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58970
58971         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58972         in wchar_t.  Problem reported by Eric Blake.
58973
58974         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58975         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58976         Also, help the compiler to keep LEN in a register.
58977
58978 2006-08-11  Eric Blake  <ebb9@byu.net>
58979
58980         * users.txt: Sort.  Add tar.
58981
58982 2006-08-11  Bruno Haible  <bruno@clisp.org>
58983
58984         * users.txt: New file.
58985
58986 2006-08-11  Bruno Haible  <bruno@clisp.org>
58987
58988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58989         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58990
58991 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58992
58993         * modules/snprintf (Depends-on): Remove minmax.
58994         (Maintainer): Add self and Bruno.
58995
58996 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58999         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59000         (EOVERFLOW): Define if the system does not.
59001         Do not include "minmax.h"; it wasn't used.
59002         (snprintf): Don't assume size_t promotes to an unsigned type.
59003         Fix bug when generated string was too long for the buffer: the
59004         buffer's contents are supposed to be the initial prefix of the
59005         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59006         exceeds INT_MAX; do the check ourselves.
59007
59008         Import the following changes from libc:
59009
59010         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59011
59012         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59013         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59014         set wc to the byte which couldn't be converted.
59015         (re_string_reconstruct): Don't clear valid_raw_len before calling
59016         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59017         tip_context using re_string_context_at.
59018
59019         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59020
59021         * lib/posix/regex.h: g++ still cannot handled [restrict].
59022
59023         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59024
59025         * lib/posix/regex.h: Remove special handling for VMS.
59026
59027 2006-08-10  Jim Meyering  <jim@meyering.net>
59028
59029         * modules/same-inode: New module.
59030         * modules/dev-ino: New module.
59031         * modules/cycle-check: Depend on these modules, rather than simply
59032         including their .h files.
59033         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59034         required via m4/cycle-check.m4.
59035         * modules/same: Depend on new same-inode module, rather than
59036         including same-inode.h.
59037         * modules/chdir-safer: New file.
59038
59039         * modules/chown (Depends-on): Add stat-macros.
59040
59041 2006-08-10  Jim Meyering  <jim@meyering.net>
59042
59043         * m4/cycle-check.m4: New file.
59044         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59045         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59046
59047 2006-08-10  Eric Blake  <ebb9@byu.net>
59048
59049         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59050         in from original proposal.
59051
59052 2006-08-10  Eric Blake  <ebb9@byu.net>
59053         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59054
59055         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59056         namespace.
59057
59058 2006-08-10  Bruno Haible  <bruno@clisp.org>
59059
59060         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59061         as well.
59062
59063 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         Sync from coreutils.
59066
59067         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59068
59069         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59070         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59071
59072 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * modules/restrict: Remove; no longer needed now that we assume
59075         Autoconf 2.59 or later.
59076         * MODULES.html.sh: Remove 'restrict'.
59077         * modules/argp (Depends-on): Remove 'restrict'.
59078         * modules/base64 (Depends-on): Likewise.
59079         * modules/gc (Depends-on): Likewise.
59080         * modules/getaddrinfo (Depends-on): Likewise.
59081         * modules/glob (Depends-on): Likewise.
59082         * modules/inet_ntop (Depends-on): Likewise.
59083         * modules/inet_pton (Depends-on): Likewise.
59084         * modules/memxor (Depends-on): Likewise.
59085         * modules/regex (Depends-on): Likewise.
59086         * modules/strtok_r (Depends-on): Likewise.
59087         * modules/time_r (Depends-on): Likewise.
59088
59089 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59092         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59093         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59094         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59095         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59096         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59097         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59098         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59099
59100         Merge from coreutils.
59101         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59102         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59104         * m4/time_r.m4 (gl_TIME_R): Likewise.
59105
59106 2006-08-09  Karl Berry  <karl@gnu.org>
59107
59108         * config/srclist.txt: no more gettext-tools, per Bruno.
59109
59110 2006-08-08  Eric Blake  <ebb9@byu.net>
59111
59112         * modules/verror: New module.
59113         * MODULES.html.sh: Document it.
59114
59115 2006-08-08  Eric Blake  <ebb9@byu.net>
59116
59117         * lib/verror.h, lib/verror.c: New files.
59118
59119 2006-08-08  Eric Blake  <ebb9@byu.net>
59120
59121         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59122         verror_at_line output complies with GNU Coding Standards even when
59123         file is NULL.
59124
59125 2006-08-07  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59128         versions of AIX.
59129         Reported by Ralf Wildenhues.
59130
59131 2006-08-07  Bruno Haible  <bruno@clisp.org>
59132
59133         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59134         in an AC_DEFUN. Needed so that the autoconf snippets can use
59135         AC_REQUIRE.
59136
59137 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59138
59139         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59140         Initialize pkgdata_DATA.
59141         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59142         overriding it.
59143
59144 2006-08-06  Eric Blake  <ebb9@byu.net>
59145
59146         * lib/error.h: Fold in some upstream changes from glibc.
59147         * lib/error.c: Likewise.
59148
59149 2006-08-04  Bruno Haible  <bruno@clisp.org>
59150
59151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59152         Make the mostlyclean-local rule depend on mostlyclean-generic.
59153         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59154
59155 2006-07-31  Bruno Haible  <bruno@clisp.org>
59156
59157         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59158         <stdlib.h>, <string.h>.
59159
59160 2006-07-30  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/readlink (License): Change to LGPL.
59163
59164 2006-07-30  Bruno Haible  <bruno@clisp.org>
59165
59166         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59167         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59168         set PKGDATADIR to point to it.
59169
59170 2006-07-30  Bruno Haible  <bruno@clisp.org>
59171
59172         * modules/csharpexec (configure.ac): Comment out macro invocation.
59173         * modules/javaexec (configure.ac): Likewise.
59174         * modules/javacomp-script (configure.ac): Likewise.
59175
59176         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59177
59178 2006-07-30  Bruno Haible  <bruno@clisp.org>
59179
59180         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59181         linked-list.
59182
59183 2006-07-30  Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59186
59187 2006-07-30  Bruno Haible  <bruno@clisp.org>
59188
59189         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59190         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59191         get removed.
59192
59193 2006-07-29  Bruno Haible  <bruno@clisp.org>
59194
59195         Make it possible for gnulib-tool to work with locally modified or
59196         augmented gnulib repositories.
59197         * gnulib-tool (func_usage): Document --local-dir option.
59198         (local_gnulib_dir): New variable.
59199         Handle --local-dir option.
59200         (func_lookup_file): New function.
59201         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59202         (func_get_description, func_get_filelist, func_get_description,
59203         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59204         func_get_automake_snippet, func_get_include_directive,
59205         func_get_license, func_get_maintainer): Use func_lookup_file.
59206         (func_import, func_create_testdir): Use func_lookup_file.
59207
59208 2006-07-29  Bruno Haible  <bruno@clisp.org>
59209
59210         * modules/setenv (Depends-on): Add unistd.
59211
59212 2006-07-29  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59215
59216 2006-07-29  Bruno Haible  <bruno@clisp.org>
59217
59218         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59219
59220 2006-07-29  Bruno Haible  <bruno@clisp.org>
59221
59222         * gnulib-tool (import, update): If there is no Makefile.am, look at
59223         aclocal.m4, instead of bailing out.
59224
59225 2006-07-29  Bruno Haible  <bruno@clisp.org>
59226
59227         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59228         Categorize the options by when they are useful.
59229
59230 2006-07-29  Bruno Haible  <bruno@clisp.org>
59231
59232         * gnulib-tool (func_usage): Document option --no-libtool.
59233         Handle option --no-libtool.
59234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59235         for changed semantics of $libtool variable.
59236         (func_import): Likewise. If libtool is not used, show this through
59237         an option --no-libtool.
59238         (func_create_testdir): Update.
59239
59240 2006-07-29  Bruno Haible  <bruno@clisp.org>
59241
59242         * gnulib-tool (func_import): Extend error message about missing
59243         --doc-base.
59244
59245 2006-07-29  Bruno Haible  <bruno@clisp.org>
59246
59247         * gnulib-tool (func_import): Don't create the $docbase directory if
59248         there is no file to store there.
59249
59250 2006-07-29  Bruno Haible  <bruno@clisp.org>
59251
59252         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59253         relevant, look for configure.ac there, not in the current directory.
59254         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59255
59256 2006-07-29  Bruno Haible  <bruno@clisp.org>
59257
59258         * gnulib-tool (SORT): New variable.
59259         (func_usage): Undocument --assume-autoconf option.
59260         Remove --assume-autoconf option handling.
59261         (autoconf_minversion): Determine from the contents of configure.ac.
59262         (func_import): Remove autoconf_minversion handling.
59263         Suggested by Eric Blake.
59264
59265 2006-07-29  Bruno Haible  <bruno@clisp.org>
59266
59267         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59268
59269 2006-07-29  Bruno Haible  <bruno@clisp.org>
59270
59271         * config/srclist.txt (*setenv.[ch]): Remove rules.
59272
59273 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59274
59275         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59276
59277 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59278
59279         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59280         arpa/inet.h.
59281
59282 2006-07-28  Simon Josefsson  <jas@extundo.com>
59283
59284         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59285         * modules/inet_pton (Depends-on): Likewise.
59286
59287 2006-07-28  Simon Josefsson  <jas@extundo.com>
59288
59289         * m4/netinet_in_h.m4: New file.
59290
59291 2006-07-28  Simon Josefsson  <jas@extundo.com>
59292
59293         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59294         #include's.
59295
59296 2006-07-28  Simon Josefsson  <jas@extundo.com>
59297
59298         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59299         #include's.
59300
59301 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59304         setgid on directories only if they set these bits.
59305         * lib/modechange.h: Remove obsolete comment about masks.
59306
59307 2006-07-28  Eric Blake  <ebb9@byu.net>
59308
59309         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59310         macro expansion.
59311
59312 2006-07-28  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59315
59316 2006-07-28  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59319
59320 2006-07-28  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59323         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59324         Define fallbacks.
59325         Avoids link error on FreeBSD 4.x.
59326         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59327
59328         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59329         encoding.
59330         * lib/mbswidth.c (iswcntrl): Likewise.
59331
59332 2006-07-27  Bruno Haible  <bruno@clisp.org>
59333
59334         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59335         test.
59336
59337 2006-07-27  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59340         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59341         defined.
59342
59343 2006-07-26  Eric Blake  <ebb9@byu.net>
59344
59345         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59346
59347 2006-07-26  Eric Blake  <ebb9@byu.net>
59348
59349         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59350         like mingw that lack mkstemp.
59351         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59352         avoid compilation warning on mingw.
59353
59354 2006-07-26  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59357         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59358         INT_FAST*_MIN, INTPTR_MIN.
59359
59360 2006-07-25  Bruno Haible  <bruno@clisp.org>
59361
59362         * modules/version-etc (Depends-on): Add stdarg.
59363
59364 2006-07-25  Bruno Haible  <bruno@clisp.org>
59365
59366         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59367         complex commands.
59368
59369 2006-07-25  Bruno Haible  <bruno@clisp.org>
59370
59371         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59372         defined in <stdarg.h> or config.h.
59373
59374 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59377         (gl_STDIO_SAFER): Remove.
59378
59379 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * MODULES.html.sh (File stream based Input/Output):
59382         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59383         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59384         * modules/fopen-safer, modules/tmpfile-safer: New files.
59385         * modules/stdio-safer: Remove.
59386
59387 2006-07-24  Bruno Haible  <bruno@clisp.org>
59388
59389         * modules/tmpdir: New file.
59390         * MODULES.html.sh (File system functions): Add it.
59391
59392 2006-07-24  Bruno Haible  <bruno@clisp.org>
59393
59394         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59395         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59396
59397 2006-07-24  Bruno Haible  <bruno@clisp.org>
59398
59399         * modules/clean-temp: New file.
59400
59401 2006-07-24  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/tmpdir.m4: New file, from GNU gettext.
59404
59405 2006-07-24  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/tmpdir.h: New file, from GNU gettext.
59408         * lib/tmpdir.c: New file, from GNU gettext.
59409
59410 2006-07-24  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/clean-temp.h: New file, from GNU gettext.
59413         * lib/clean-temp.c: New file, from GNU gettext.
59414
59415 2006-07-23  Eric Blake  <ebb9@byu.net>
59416
59417         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59418         (Depends-on): Add binary-io.
59419
59420 2006-07-23  Eric Blake  <ebb9@byu.net>
59421
59422         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59423
59424 2006-07-23  Eric Blake  <ebb9@byu.net>
59425
59426         * lib/tmpfile-safer.c: New file.
59427         * lib/stdio-safer.h (fopen_safer): Add prototype.
59428         * lib/stdio--.h (tmpfile): Make safer.
59429
59430 2006-07-23  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59433         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59434         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59435         gl_linked_remove_at): Use it.
59436
59437 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59438         and Simon Josefsson <jas@extundo.com>
59439
59440         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59441
59442         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59443
59444 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * modules/close-stream: New file.
59447         * modules/closeout (Description): Make it clear that it exits
59448         with a diagnostic on error.
59449         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59450         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59451
59452 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * m4/close-stream.m4: New file.
59455
59456 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/close-stream.c, lib/close-stream.h: New files.
59459
59460 2006-07-22  Bruno Haible  <bruno@clisp.org>
59461
59462         Merge from GNU gettext 0.15.
59463
59464         2006-05-01  Bruno Haible  <bruno@clisp.org>
59465
59466                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59467
59468         2006-07-22  Bruno Haible  <bruno@clisp.org>
59469
59470                 * modules/javaversion: New file.
59471                 * MODULES.html.sh (Java): Add javaversion.
59472
59473         2006-03-12  Bruno Haible  <bruno@clisp.org>
59474
59475                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59476
59477         2005-12-04  Bruno Haible  <bruno@clisp.org>
59478
59479                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59480                 (untested).
59481
59482         2006-06-21  Bruno Haible  <bruno@clisp.org>
59483
59484                 Avoid warnings from recent versions of mcs.
59485                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59486                 -o, -L, -r any more. Use options documented since mcs-1.0
59487                 instead. Similarly for -g.
59488
59489         2005-12-04  Bruno Haible  <bruno@clisp.org>
59490
59491                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59492                 .resources, not .resource.
59493
59494         2005-07-09  Bruno Haible  <bruno@clisp.org>
59495
59496                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59497                 add a .dll suffix.
59498                 Reported by Mark Junker <mjscod@gmx.de>.
59499
59500         2006-07-22  Bruno Haible  <bruno@clisp.org>
59501
59502                 * modules/gettext: Upgrade to gettext-0.15.
59503                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59504                 m4/visibility.m4.
59505                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59506
59507 2006-07-22  Bruno Haible  <bruno@clisp.org>
59508
59509         Merge from GNU gettext 0.15.
59510
59511         2006-03-25  Bruno Haible  <bruno@clisp.org>
59512
59513                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59514
59515         2006-07-21  Bruno Haible  <bruno@clisp.org>
59516
59517                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59518                 "1.1".
59519
59520         2006-05-09  Bruno Haible  <bruno@clisp.org>
59521
59522                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59523                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59524                 for the conftestver execution.
59525
59526         2006-05-01  Bruno Haible  <bruno@clisp.org>
59527
59528                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59529                 optional target-version argument. Verify that the compiler
59530                 groks source of the specified source-version, or add -source
59531                 option as necessary. Verify that the compiler produces
59532                 bytecode in the specified target-version, or add -target and
59533                 -source options as necessary. Make the result of the test
59534                 available as variable CONF_JAVAC. Also log error output in
59535                 config.log.
59536
59537         2006-03-11  Bruno Haible  <bruno@clisp.org>
59538
59539                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59540
59541         2006-05-09  Bruno Haible  <bruno@clisp.org>
59542
59543                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59544                 CLASSPATH_SEPARATOR to a semicolon.
59545
59546         2006-03-12  Bruno Haible  <bruno@clisp.org>
59547
59548                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59549                 available as variable CONF_JAVA, for subsequent autoconf
59550                 tests. Also log error output in config.log.
59551
59552         2006-07-19  Bruno Haible  <bruno@clisp.org>
59553
59554                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59555                 that getline works on glibc2 systems. Needed to avoid trouble
59556                 in relocatable.c.
59557                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59558
59559         2005-12-04  Bruno Haible  <bruno@clisp.org>
59560
59561                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59562                 launcher (untested).
59563
59564         2005-12-04  Bruno Haible  <bruno@clisp.org>
59565
59566                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59567
59568         2006-07-22  Bruno Haible  <bruno@clisp.org>
59569
59570                 * gettext.m4: Update from GNU gettext-0.15.
59571                 * nls.m4: Likewise.
59572                 * po.m4: Likewise.
59573                 * inttypes-pri.m4: Likewise.
59574                 * inttypes-h.m4: Renamed from inttypes.m4.
59575                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59576
59577 2006-07-22  Bruno Haible  <bruno@clisp.org>
59578
59579         Merge from GNU gettext 0.15.
59580
59581         2005-07-05  Bruno Haible  <bruno@clisp.org>
59582
59583                 * printf-args.c (printf_fetchargs): Work around broken
59584                 definition of wint_t on mingw.
59585
59586         2005-02-12  Bruno Haible  <bruno@clisp.org>
59587
59588                 * xallocsa.h: Add extern "C" for C++.
59589
59590         2006-05-17  Bruno Haible  <bruno@clisp.org>
59591
59592                 Cygwin portability.
59593                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59594
59595         2006-04-30  Bruno Haible  <bruno@clisp.org>
59596
59597                 * progreloc.c: Include <mach-o/dyld.h> if available.
59598                 (find_executable): Use _NSGetExecutablePath when possible.
59599
59600         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59601
59602                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59603                 function.
59604
59605         2005-12-29  Bruno Haible  <bruno@clisp.org>
59606
59607                 * progreloc.c (set_program_name_and_installdir): Fix
59608                 compilation error.
59609
59610         2005-12-04  Bruno Haible  <bruno@clisp.org>
59611
59612                 Cygwin portability.
59613                 * progreloc.c: Include <windows.h> also on Cygwin.
59614                 (find_executable): Add support for Cygwin.
59615                 (set_program_name_and_installdir): Handle also platforms with
59616                 nonempty EXEEXT.
59617
59618         2006-07-11  Bruno Haible  <bruno@clisp.org>
59619
59620                 * javacomp.c: Fix a comment.
59621                 Reported by Jim Meyering.
59622
59623         2006-04-30  Bruno Haible  <bruno@clisp.org>
59624
59625                 * javacomp.h (compile_java_class): Add source_version,
59626                 target_version arguments.
59627                 * javacomp.c: Rewritten to choose only a compiler that
59628                 respects the specified source_version and target_version.
59629
59630         2006-06-27  Bruno Haible  <bruno@clisp.org>
59631
59632                 Assume correct S_ISDIR macro.
59633                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59634
59635         2006-07-22  Bruno Haible  <bruno@clisp.org>
59636
59637                 * javaversion.h: New file, from GNU gettext.
59638                 * javaversion.c: New file, from GNU gettext.
59639                 * javaversion.java: New file, from GNU gettext.
59640                 * javaversion.class: New file, from GNU gettext.
59641
59642         2006-05-17  Bruno Haible  <bruno@clisp.org>
59643
59644                 Cygwin portability.
59645                 * javaexec.c (execute_java_class): Test for jview program
59646                 also on Cygwin.
59647
59648         2006-04-09  Bruno Haible  <bruno@clisp.org>
59649
59650                 * fatal-signal.c: Don't include string.h.
59651                 (at_fatal_signal): Use a copying loop instead of memcpy.
59652
59653         2005-12-04  Bruno Haible  <bruno@clisp.org>
59654
59655                 * csharpexec.c: Add support for 'clix' launcher (untested).
59656                 (execute_csharp_using_sscli): New function.
59657                 (execute_csharp_program): Call it.
59658
59659         2006-06-21  Bruno Haible  <bruno@clisp.org>
59660
59661                 Avoid warnings from recent versions of mcs.
59662                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59663                 -o, -L, -r any more. Use options documented since mcs-1.0
59664                 instead. Similarly for -g.
59665
59666         2005-07-09  Bruno Haible  <bruno@clisp.org>
59667
59668                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59669                 add a .dll suffix.
59670                 Reported by Mark Junker <mjscod@gmx.de>.
59671
59672         2006-06-17  Bruno Haible  <bruno@clisp.org>
59673
59674                 * config.charset: Update for NetBSD 3.0.
59675
59676         2006-05-17  Bruno Haible  <bruno@clisp.org>
59677
59678                 Cygwin portability.
59679                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59680
59681         2006-05-16  Bruno Haible  <bruno@clisp.org>
59682
59683                 * localcharset.c [CYGWIN]: Include <windows.h>.
59684                 (get_charset_aliases): For Cygwin, return the same CPxxx
59685                 aliases list as under WIN32.
59686                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59687                 the environment variables. Fall back to GetACP().
59688
59689         2006-04-05  Bruno Haible  <bruno@clisp.org>
59690
59691                 * config.charset: Update Juan Manuel Guerrero's address.
59692
59693         2005-02-12  Bruno Haible  <bruno@clisp.org>
59694
59695                 * allocsa.h: Add extern "C" for C++.
59696
59697         2005-02-10  Bruno Haible  <bruno@clisp.org>
59698
59699                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59700                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59701
59702         2006-07-22  Bruno Haible  <bruno@clisp.org>
59703
59704                 * gettext.h: Update to GNU gettext-0.15.
59705
59706 2006-07-22  Bruno Haible  <bruno@clisp.org>
59707
59708         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59709         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59710         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59711
59712 2006-07-21  Eric Blake  <ebb9@byu.net>
59713
59714         * modules/stdlib-safer: New file.
59715         * MODULES.html.sh (File stream based Input/Output): Add
59716         stdlib-safer.
59717
59718 2006-07-21  Eric Blake  <ebb9@byu.net>
59719
59720         * lib/stdlib-safer.h: New file from coreutils, required by
59721         stdlib--.h.
59722
59723 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59726
59727 2006-07-20  Bruno Haible  <bruno@clisp.org>
59728
59729         * gnulib-tool: Recognize new option --assume-autoconf.
59730         (autoconf_minversion): New variable.
59731         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59732
59733 2006-07-20  Bruno Haible  <bruno@clisp.org>
59734
59735         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59736
59737 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59738
59739         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59740         Reindent and repaginate.
59741
59742 2006-07-19  Derek Price  <derek@ximbiot.com>
59743
59744         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59745         Correct grammar.
59746
59747 2006-07-17  Bruno Haible  <bruno@clisp.org>
59748
59749         * modules/list: New file.
59750         * modules/array-list: New file.
59751         * modules/carray-list, modules/carray-list-tests: New files.
59752         * modules/linked-list, modules/linked-list-tests: New files.
59753         * modules/avltree-list, modules/avltree-list-tests: New files.
59754         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59755         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59756         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59757         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59758         * modules/oset: New file.
59759         * modules/array-oset: New file.
59760         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59761         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59762         * tests/test-carray_list.c: New file.
59763         * tests/test-linked_list.c: New file.
59764         * tests/test-avltree_list.c: New file.
59765         * tests/test-rbtree_list.c: New file.
59766         * tests/test-linkedhash_list.c: New file.
59767         * tests/test-avltreehash_list.c: New file.
59768         * tests/test-rbtreehash_list.c: New file.
59769         * tests/test-avltree_oset.c: New file.
59770         * tests/test-rbtree_oset.c: New file.
59771         * MODULES.html.sh (Container data structures): New section.
59772
59773 2006-07-17  Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/gl_list.m4: New file.
59776
59777 2006-07-17  Bruno Haible  <bruno@clisp.org>
59778
59779         * lib/gl_list.h: New file.
59780         * lib/gl_list.c: New file.
59781         * lib/gl_array_list.h: New file.
59782         * lib/gl_array_list.c: New file.
59783         * lib/gl_carray_list.h: New file.
59784         * lib/gl_carray_list.c: New file.
59785         * lib/gl_linked_list.h: New file.
59786         * lib/gl_linked_list.c: New file.
59787         * lib/gl_anylinked_list1.h: New file.
59788         * lib/gl_anylinked_list2.h: New file.
59789         * lib/gl_avltree_list.h: New file.
59790         * lib/gl_avltree_list.c: New file.
59791         * lib/gl_anyavltree_list1.h: New file.
59792         * lib/gl_anyavltree_list2.h: New file.
59793         * lib/gl_rbtree_list.h: New file.
59794         * lib/gl_rbtree_list.c: New file.
59795         * lib/gl_anyrbtree_list1.h: New file.
59796         * lib/gl_anyrbtree_list2.h: New file.
59797         * lib/gl_anytree_list1.h: New file.
59798         * lib/gl_anytree_list2.h: New file.
59799         * lib/gl_linkedhash_list.h: New file.
59800         * lib/gl_linkedhash_list.c: New file.
59801         * lib/gl_anyhash_list1.h: New file.
59802         * lib/gl_anyhash_list2.h: New file.
59803         * lib/gl_avltreehash_list.h: New file.
59804         * lib/gl_avltreehash_list.c: New file.
59805         * lib/gl_rbtreehash_list.h: New file.
59806         * lib/gl_rbtreehash_list.c: New file.
59807         * lib/gl_anytreehash_list1.h: New file.
59808         * lib/gl_anytreehash_list2.h: New file.
59809
59810         * lib/gl_oset.h: New file.
59811         * lib/gl_oset.c: New file.
59812         * lib/gl_array_oset.h: New file.
59813         * lib/gl_array_oset.c: New file.
59814         * lib/gl_avltree_oset.h: New file.
59815         * lib/gl_avltree_oset.c: New file.
59816         * lib/gl_rbtree_oset.h: New file.
59817         * lib/gl_rbtree_oset.c: New file.
59818         * lib/gl_anytree_oset.h: New file.
59819
59820 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * m4/mkancesdirs.m4: New file.
59823         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59824         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59825         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59826         it.
59827
59828 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59831         * lib/mkancesdirs.h: New files.
59832         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59833         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59834         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59835         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59836         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59837         callers changed.  Revamp internals significantly, by not
59838         attempting to create directories that are temporarily more
59839         permissive than the final results.  Do not attempt to use
59840         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59841         This removes some race conditions, fixes some bugs, and simplifies
59842         things.  Use new dirchownmod function to do owner and mode changes.
59843         * lib/mkdir-p.h: Likewise.
59844         * lib/modechange.c (octal_to_mode): New function.
59845         (struct mode_change): New member mentioned.
59846         (make_node_op_equals): New arg mentioned.  All callers changed.
59847         (mode_compile): Keep track of which mode bits the user has explicitly
59848         mentioned.
59849         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59850         New arg PMODE_BITS, to keep track of which mode bits the user
59851         mentioned; it treats S_ISUID and S_ISGID speciall.
59852         All callers changed.
59853         * lib/modechange.h: Likewise.
59854
59855 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * MODULES.html.sh: Add mkancestors.
59858         * modules/mkancesdirs: New module.
59859         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59860         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59861         The chdir-safer and afs files are now orphans; I'll remove them
59862         unless someone speaks up.
59863         Add lib/dirchownmod.c, lib/dirchownmod.h.
59864         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59865         Add lchown, mkancesdirs.
59866         (Maintainer): Add self.
59867
59868 2006-07-15  Karl Berry  <karl@gnu.org>
59869
59870         * gnulib-tool: help message wording/arrangement.
59871
59872 2006-07-14  Simon Josefsson  <jas@extundo.com>
59873
59874         * doc/gnulib.texi (Libtool and Windows): New section.
59875
59876 2006-07-12  Simon Josefsson  <jas@extundo.com>
59877
59878         * modules/gendocs (License): Fix license, approved by Karl.
59879
59880 2006-07-12  Eric Blake  <ebb9@byu.net>
59881
59882         * MODULES.html.sh: Add gendocs.
59883
59884 2006-07-11  Eric Blake  <ebb9@byu.net>
59885
59886         * modules/fdl: New module, to install doc/fdl.texi.
59887         * MODULES.html.sh: Add new section for documentation modules.
59888         * gnulib-tool: Avoid space-tab.
59889         (--doc-base): New option, to manage files from doc.
59890
59891 2006-07-11  Eric Blake  <ebb9@byu.net>
59892
59893         * m4/absolute-header.m4: Fix comments to match recent change.
59894
59895 2006-07-11  Eric Blake  <ebb9@byu.net>
59896
59897         * gnulib-tool: List --doc-base before --tests-base.
59898
59899 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59900
59901         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59902
59903 2006-07-11  Bruno Haible  <bruno@clisp.org>
59904
59905         * README: Mention where to put documentation.
59906
59907 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59908
59909         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59910
59911 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59914         to stdint.m4.
59915
59916 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59919         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59920         "no/such/file/stdint.h" when there is no such file, so that
59921         the resulting C code can be parsed by dodgy compilers.
59922         Problems reported by Bob Proulx.
59923
59924 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59925
59926         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59927         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59928         macros into the GNU _D_EXACT_NAMLEN.
59929         * lib/savedir.c:  Likewise.
59930         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59931
59932 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59933         and Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59936         * m4/savedir.m4:
59937         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59938         macros into the GNU _D_EXACT_NAMLEN.
59939
59940 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59943         around the absolute name, to work around a problem with the HP-UX
59944         11.23 native C compiler, reported by Bob Proulx.
59945
59946 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * doc/maintain.texi, make-stds.texi: Sync from
59949         <http://savannah.gnu.org/projects/gnustandards>.
59950
59951 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59954
59955 2006-07-09  Jim Meyering  <jim@meyering.net>
59956
59957         * m4/glob.m4: Remove a doubled word in a comment.
59958
59959 2006-07-09  Jim Meyering  <jim@meyering.net>
59960
59961         * lib/argp-pv.c: Remove a doubled word in a comment.
59962         * lib/check-version.c (check_version): Likewise.
59963         * lib/javacomp.c (compile_java_class): Likewise.
59964
59965 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59968         for the benefit of people using Autoconf 2.60.  If you want to
59969         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59970         (or m4/onceonly.m4, if pre-2.57) manually.
59971
59972 2006-07-08  Jim Meyering  <jim@meyering.net>
59973
59974         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59975         comment.
59976         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59977         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59978         comment.
59979
59980 2006-07-08  Jim Meyering  <jim@meyering.net>
59981
59982         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59983
59984 2006-07-07  Simon Josefsson  <jas@extundo.com>
59985
59986         * tests/test-crc.c: Change expected crc value, the test vector
59987         were probably computed using the old broken crc.c?
59988
59989 2006-07-06  Simon Josefsson  <jas@extundo.com>
59990
59991         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59992         now the canonical place for the M4 file).
59993
59994         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59995         from the sys_socket dependency now.
59996
59997         * modules/inet_pton (Files): Ditto.
59998
59999         * modules/inet_ntop (Files): Ditto.
60000
60001 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60002
60003         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60004         not gl_PREREQ_GETUSERSHELL.
60005
60006 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60007
60008         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60009         with only one argument, for Autoconf 2.60.
60010         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60011         expand to nothing, so add a shell command to avoid syntax error.
60012         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60013
60014 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60015
60016         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60017
60018 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60021         no longer needed.  Check for isblank decl.
60022         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60023         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60024         of existence.
60025
60026 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * lib/getloadavg.c: Use __VMS, not VMS.
60029         * lib/getopt.c: Likewise.
60030         * lib/getpagesize.h: Likewise.
60031         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60032         and probably does not work.
60033
60034 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         * lib/.cppi-disable: Add wcwidth.
60037         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60038         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60039         (ISGRAPH): Remove.  All uses changed to isgraph.
60040         (FOLD) [!defined _LIBC]: Remove special case.
60041         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60042         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60043         HAVE_ISBLANK.
60044         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60045         case.
60046
60047 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60048
60049         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60050         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60051         brackets.  Other minor changes to suppress some compiler
60052         warnings.
60053
60054 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60055         and Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60058         of invoking obsolescent AC_HEADER_DIRENT macro.
60059         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60060         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60061         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60063         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60064         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60065         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60066         * m4/readdir.m4: Remove; no longer needed.
60067
60068 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60069         and Paul Eggert  <eggert@cs.ucla.edu>
60070
60071         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60072         Don't worry about this obsolete case any more.
60073         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60074         directories.
60075         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60076         worry about this obsolete case any more.
60077         * lib/fts.c: Likewise.
60078         * lib/getcwd.c: Likewise.
60079         * lib/glob.h: Likewise.
60080         * lib/savedir.c: Likewise.
60081
60082 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60085         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60086         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60087         needed.
60088         All uses removed.
60089         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60090         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60091         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60092         needed.
60093         * m4/getdate.m4 (gl_GETDATE): Likewise.
60094         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60095         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60096         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60097         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60098         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60099         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60100         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60101         needed.
60102
60103 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         * lib/memcasecmp.c: Include <limits.h>.
60106         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60107         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60108         Don't assume isdigit succeeds only on '0' through '9'.
60109
60110 2006-07-05  Eric Blake  <ebb9@byu.net>
60111
60112         * modules/getaddrinfo (Depends-on): Add snprintf.
60113
60114 2006-07-05  Eric Blake  <ebb9@byu.net>
60115
60116         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60117         to avoid 'header present but could not be compiled' on cygwin.
60118
60119 2006-07-05  Eric Blake  <ebb9@byu.net>
60120
60121         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60122         missing from netdb.h.
60123         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60124
60125 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60126
60127         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60128         no longer needed.
60129         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60130         * m4/getdate.m4 (gl_GETDATE): Likewise.
60131         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60132         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60133         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60134         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60135         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60136
60137 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60138
60139         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60140         All uses of is_space replaced by isspace.
60141         * lib/exit.h: Don't talk about STDC_HEADERS.
60142         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60143         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60144         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60145         replaced by isprint etc.
60146         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60147         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60148         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60149         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60150         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60151         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60152
60153 2006-07-05  Bruno Haible  <bruno@clisp.org>
60154
60155         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60156         the function exists, before testing against AIX.
60157         Reported by Martin Lambers <marlam@marlam.de>.
60158
60159 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60160
60161         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60162         From Mark D. Baushke.
60163
60164 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60167         to the absolute name, not just one, to bypass Sun C 5.8's
60168         "warning: #include of /usr/include/... may be non-portable".
60169
60170 2006-07-04  Eric Blake  <ebb9@byu.net>
60171
60172         * modules/dirname-tests: New test module.
60173         * tests/test-dirname.c: New file, replacing dirname.c
60174         TEST_DIRNAME section that was recently deleted.
60175
60176 2006-07-04  Bruno Haible  <bruno@clisp.org>
60177
60178         Assume ANSI C header files and <ctype.h> functions.
60179         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60180         (mbsnwidth): Use isprint, iscntrl instead.
60181
60182 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60183
60184         Merge from coreutils.
60185         * MODULES.html.sh: Add xstrtold.
60186         * modules/xstrtold: New file.
60187         * modules/cycle-check (Files): Add lib/same-inode.h.
60188         * modules/dirname (Files): Add m4/double-slash-root.m4.
60189         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60190         * modules/mkdir-p (Files): Add lib/same-inode.h.
60191         * modules/same (Files): Add lib/same-inode.h.
60192
60193 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60196         This is to keep the terminology clean; POSIX talks about
60197         "absolute pathnames", not "full pathnames", but the GNU
60198         Coding Standards say to use "path" for something else;
60199         so use "absolute" to keep both sides happy.
60200         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60201         Set gl_absolute_header, not gl_full_header_path.
60202         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60203         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60204         All uses changed.
60205
60206         Merge from coreutils.
60207
60208         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60211         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60212         want to require the building of c-strtod.o.
60213         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60214         needs -lm directly.
60215         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60216
60217         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60220         --as-needed option if available.  Problem reported by Albert Chin in
60221         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60222         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60223         cc merely issues a bunch of annoying warnings for --as-needed
60224         (this problem was reported by Bob Proulx).  Also, try linking with
60225         -lm to detect a bug in binutils 2.16 (this problem was reported
60226         by Ralf Wildenhues).
60227
60228         2006-06-18  Jim Meyering  <jim@meyering.net>
60229
60230         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60231         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60232         macro.
60233         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60234         also check for glibc-2.4's abort-inducing bug.
60235
60236         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60237         Low-probability clean-up should be to use rmdir to get rid of
60238         the just-created directory, not unlink.
60239
60240         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60241         configure fail, and request a bug report to inform us about it.
60242         Add a comment that, barring reports to the contrary, in 2007 we'll
60243         assume ftruncate is universally available.
60244
60245         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60246
60247         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60248
60249         2006-03-12  Jim Meyering  <jim@meyering.net>
60250
60251         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60252         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60253         * m4/same.m4 (gl_SAME): Likewise.
60254         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60255
60256         2006-03-11  Eric Blake  <ebb9@byu.net>
60257
60258         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60259         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60260         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60261         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60262
60263 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60264
60265         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60266         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60267         reported by Mark D. Baushke, one in
60268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60269
60270         Merge from coreutils.
60271
60272         * lib/.cppi-disable: Add stdint_.h.
60273         * lib/.cvsignore: Add stdint.h.
60274
60275         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60276
60277         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60278         both double and long double versions.
60279         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60280         * lib/xstrtold.c: New file.
60281         * lib/xstrtod.h (xstrtold): New decl.
60282
60283         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60284
60285         * lib/filemode.c (setst): Remove.
60286         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60287         (arguably) clearer, and the generated code is a bit smaller on my
60288         Debian GNU/Linux stable x86 host.
60289
60290         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60293         Assume that filemode.h includes sys/types.h and sys/stat.h.
60294         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60295         (ftypelet): Reorder to put common cases first, for efficiency.
60296         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60297         to do 'M'.
60298         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60299         of 10, for compatibility with FreeBSD.  All callers changed.
60300         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60301         types that can't be deduced solely from st_mode.  First arg is now a
60302         const pointer.
60303         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60304         (strmode): Renamed from mode_string.
60305         (filemodestring): New decl.
60306         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60307         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60308         needed.
60309         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60310
60311         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60314         fsusage.h now does that.  Include fsusage.h first, to test interface.
60315         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60316         at most one method (the old code could have generated decls that
60317         didn't conform to C89, not that this was ever exercised).
60318         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60319
60320         2006-03-19  Jim Meyering  <jim@meyering.net>
60321
60322         Work even in a chroot where d_ino values for entries in "/"
60323         don't match the stat.st_ino values for the same names.
60324         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60325         number, iterate through all entries again, using lstat instead.
60326         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60327         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60328
60329         * lib/getcwd.c (__getcwd): Clarify a comment.
60330         Use memcpy in place of a call to strcpy.
60331
60332         2006-03-12  Jim Meyering  <jim@meyering.net>
60333
60334         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60335         matches that of the current directory (which we're about to chdir ".."
60336         out of), then save the dev-ino of the parent, instead.
60337
60338         * lib/same-inode.h (SAME_INODE): New file/macro.
60339         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60340         Include "same-inode.h", instead.
60341         * lib/same.c: Likewise.
60342         * lib/cycle-check.h: Include "same-inode.h".
60343         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60344         * lib/cycle-check.c (SAME_INODE): Remove definition.
60345         * lib/root-dev-ino.h: Include "same-inode.h".
60346
60347         2006-03-11  Eric Blake  <ebb9@byu.net>
60348
60349         * lib/same.c (same_name): s/base_name/last_component/
60350         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60351         * lib/filenamecat.c (file_name_concat): Likewise.
60352
60353         2006-03-11  Eric Blake  <ebb9@byu.net>,
60354                     Paul Eggert  <eggert@cs.ucla.edu>
60355
60356         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60357         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60358         drive prefix.
60359         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60360         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60361         (last_component): New method.
60362         * lib/dirname.c (dir_len): Determine when drive letters need a
60363         subsequent slash.  Preserve // when it is special.
60364         (dir_name): Don't append dot when drive letter is absolute.
60365         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60366         * lib/basename.c (base_name): New semantics - malloc the result.
60367         Preserve // when it is special.  Preserve relative files that look
60368         like drive letters.
60369         (base_len): Preserve // when it is special.
60370         (last_component): New method, similar to old base_name semantics.
60371         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60372         base_name.  Strip redundant slashes from ///.
60373
60374 2006-07-03  Jim Meyering  <jim@meyering.net>
60375
60376         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60377         macro is used before the first cycle_check call.
60378
60379 2006-07-03  Eric Blake  <ebb9@byu.net>
60380
60381         * modules/dirname (Depends-on): Add xstrndup.
60382
60383 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60384
60385         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60386         test cases, so that config.log is a bit easier to follow.
60387
60388 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60389
60390         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60391         both are 64 bits, since this seems to be the tradition, and this
60392         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60393         we ever run into a host that prefers long long to long in this
60394         case, we'll need another configure-time test.  Problem reported by
60395         Jim Meyering.
60396
60397 2006-07-02  Eric Blake  <ebb9@byu.net>
60398
60399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60400
60401 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * modules/inttypes (Depends-on): No longer depends on stdint.
60404         * modules/stdint (Description): Say more about assumptions.
60405         Say that the fast types might differ.  Say macros are used.
60406         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60407         (Makefile.am): Revise list of substituted symbols to match
60408         new stdint.m4.
60409         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60410         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60411         * tests/test-stdint.c (verify_same_types)
60412         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60413         the code conforms to C99/C89.
60414         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60415         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60416
60417 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60420         but fix a bug, by requiring at least 64 bits.
60421         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60422         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60423         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60424         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60425
60426         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60427         changes.  Make 2.59 a prerequisite.  Check and substitute for
60428         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60429         inttypes.h.  Do not use special include files; just use the
60430         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60431         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60432         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60433         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60434         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60435         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60436         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60437         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60438         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60439         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60440         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60441         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60442         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60443         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60444         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60445         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60446         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60447         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60448         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60449         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60450         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60451         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60452         not check for things that C99 does not require, e.g., int8_t.  If
60453         a test isn't needed unless <stdint.h> isn't working, and is
60454         unlikely to be needed for any other reason, then don't do it
60455         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60456         size_t, since we assume C89 freestanding at least.  Do not check
60457         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60458         the right thing even if the types are not defined.  Instead use:
60459         (gl_STDINT_TYPE_PROPERTIES): New macro.
60460         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60461         testing whether <sys/types.h> clashes, as Autoconf does this for
60462         us now.  All uses removed.
60463         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60464         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60465         (gl_CHECK_TYPE_SAME):
60466         Remove; no longer needed.
60467         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60468         exists, since we'll return 0 anyway in that case.
60469         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60470
60471 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60472
60473         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60474         possible collision with system files.
60475         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60476         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60477         WCHAR_MIN and WCHAR_MAX in this case.
60478         (<stddef.h>): Do not include; no longer needed.
60479         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60480         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60481         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60482         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60483         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60484         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60485         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60486         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60487         !defined(__c99))]: Include in this case too, since it's harmless
60488         now.
60489         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60490         dangerous to do so.
60491         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60492         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60493         (_STDINT_MIN, _STDINT_MAX): New macros.
60494         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60495         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60496         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60497         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60498         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60499         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60500         macros, not typedefs; this simplifies things quite a bit.
60501         Use long int for all types narrower than int64_t.
60502         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60503         Define in terms of long long int or int64_t or long int,
60504         not int64_t or int32_t.  This saves some compile-time testing.
60505         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60506         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60507         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60508         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60509         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60510         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60511         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60512         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60513         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60514         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60515         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60516         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60517         undef any previous version and define our own version, for
60518         simplicity and consistency with the new macros for types.
60519         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60520         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60521         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60522         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60523         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60524         @WINT_T_SUFFIX@ to keep things simple here.
60525         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60526         Simplify by assuming typical 8/16/32/64 host, since we're
60527         already doing that elsewhere anyway.
60528         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60529         and assume long long int is 64 bits if available.  This
60530         speeds up 'configure'.
60531
60532 2006-07-01  Eric Blake  <ebb9@byu.net>
60533
60534         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60535         Reported by Andreas Buening.
60536
60537 2006-07-01  Eric Blake  <ebb9@byu.net>
60538
60539         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60540
60541 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60542
60543         * lib/getaddrinfo.c: fixed typo
60544
60545 2006-06-29  Jim Meyering  <jim@meyering.net>
60546
60547         * modules/strftime (Maintainer): Add my name, since with the
60548         FPRINTFTIME changes strftime.c has forked from glibc.
60549
60550 2006-06-29  Eric Blake  <ebb9@byu.net>
60551
60552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60553
60554 2006-06-29  Eric Blake  <ebb9@byu.net>
60555
60556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60557
60558 2006-06-29  Eric Blake  <ebb9@byu.net>
60559
60560         * lib/stat_.h: New file.
60561
60562 2006-06-29  Eric Blake  <ebb9@byu.net>
60563
60564         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60565         unused static function.
60566
60567 2006-06-29  Eric Blake  <ebb9@byu.net>
60568
60569         * doc/functions.texi (Function Portability): Document missing lstat
60570         on mingw.
60571
60572 2006-06-29  Eric Blake  <ebb9@byu.net>
60573
60574         * MODULES.html.sh: Add sys_stat.
60575         * modules/sys_stat: New module.
60576         * modules/mkstemp (Depends-on): Add sys_stat.
60577
60578 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60579
60580         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60581
60582 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60583
60584         * m4/c-bs-a.m4: Removed.
60585
60586 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60587
60588         * lib/strftime.c: Assume strftime() exists.
60589
60590 2006-06-29  Derek Price  <derek@ximbiot.com>
60591
60592         * modules/c-bs-a: Removed - \a is C89.
60593         * MODULES.html.sh: Remove c-bs-a.
60594
60595 2006-06-29  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/wcwidth (License): Change to LGPL.
60598
60599 2006-06-28  Simon Josefsson  <jas@extundo.com>
60600
60601         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60602         on _WIN32.
60603
60604         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60605         getnameinfo.
60606
60607 2006-06-28  Simon Josefsson  <jas@extundo.com>
60608
60609         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60610
60611 2006-06-28  Simon Josefsson  <jas@extundo.com>
60612
60613         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60614         functions there.  It will succeed on Windows XP, but on Windows
60615         2000 and (presumably) earlier, it will fail, and use the internal
60616         re-implementation.
60617         (use_win32_p): New function.
60618         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60619         Support AI_NUMERICSERV to disable getservbyname.
60620         (getnameinfo): New function, only supports
60621         NI_NUMERICHOST|NI_NUMERICSERV for now.
60622
60623         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60624         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60625         getnameinfo.
60626
60627 2006-06-28  Eric Blake  <ebb9@byu.net>
60628
60629         * modules/wcwidth: New file.
60630         * modules/mbchar (Depends-on): Add wcwidth.
60631         * modules/mbswidth (Depends-on): Add wcwidth.
60632         * MODULES.html.sh: Add wcwidth.
60633
60634 2006-06-28  Eric Blake  <ebb9@byu.net>
60635
60636         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60637         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60638
60639 2006-06-28  Eric Blake  <ebb9@byu.net>
60640
60641         * lib/xvasprintf.h: Fix comments.
60642
60643 2006-06-28  Eric Blake  <ebb9@byu.net>
60644
60645         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60646         * lib/mbswidth.c (wcwidth): Move from here...
60647         * lib/wcwidth.h: ...to this new file.
60648
60649 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60650
60651         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60652
60653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60654         it's obsolete.
60655         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60656
60657 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60658
60659         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60660         Autoconf 2.60 says this stuff was obsolete.
60661
60662 2006-06-28  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60665
60666 2006-06-28  Bruno Haible  <bruno@clisp.org>
60667
60668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60669         gt_TYPE_WCHAR_T.
60670
60671 2006-06-28  Bruno Haible  <bruno@clisp.org>
60672
60673         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60674         declaration for wcwidth.
60675         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60676
60677 2006-06-28  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60680         (mkdir): Define using _mkdir.
60681
60682 2006-06-28  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/getaddrinfo.h: Fix POSIX URL.
60685         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60686         _WIN32.
60687         (use_win32_p): Make static.
60688         (getaddrinfo): Reject service name if it is empty or does not consist
60689         solely of decimal digits, or if its value is > 65535.
60690         (getnameinfo): Remove useless casts.
60691
60692 2006-06-27  Simon Josefsson  <jas@extundo.com>
60693
60694         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60695         Eggert and Martin Lambers.
60696
60697 2006-06-27  Simon Josefsson  <jas@extundo.com>
60698
60699         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60700         Eggert and Martin Lambers.
60701
60702 2006-06-27  Bruno Haible  <bruno@clisp.org>
60703
60704         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60705         result to 0, not to empty.
60706         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60707
60708 2006-06-27  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60711
60712 2006-06-26  Simon Josefsson  <jas@extundo.com>
60713
60714         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60715         present.
60716
60717 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60720         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60722
60723 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60724
60725         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60726
60727 2006-06-26  Bruno Haible  <bruno@clisp.org>
60728
60729         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60730
60731 2006-06-26  Bruno Haible  <bruno@clisp.org>
60732
60733         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60734
60735 2006-06-26  Bruno Haible  <bruno@clisp.org>
60736
60737         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60738         SGI C compiler in pre-C99 mode.
60739         Suggested by Mark D. Baushke and Larry Jones.
60740
60741 2006-06-26  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60744         WCHAR_MAX.
60745         Reported by Mark D. Baushke and Larry Jones.
60746
60747 2006-06-26  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60750         in pre-C99 mode.
60751         Suggested by Mark D. Baushke and Larry Jones.
60752
60753 2006-06-23  Simon Josefsson  <jas@extundo.com>
60754             Bruno Haible  <bruno@clisp.org>
60755
60756         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60757         Emit mostlyclean-local rule.
60758         (func_emit_tests_Makefile_am): Likewise.
60759         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60760
60761 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60762
60763         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60764
60765 2006-06-23  Bruno Haible  <bruno@clisp.org>
60766
60767         * tests/test-stdint.c: Update to match ISO C 99 Technical
60768         Corrigendum 1.
60769
60770 2006-06-23  Bruno Haible  <bruno@clisp.org>
60771
60772         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60773
60774 2006-06-23  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/stdint_.h: Treat IRIX like OpenBSD.
60777
60778 2006-06-23  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60781         ISO C 99 Technical Corrigendum 1.
60782
60783 2006-06-22  Simon Josefsson  <jas@extundo.com>
60784
60785         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60786         MinGW.
60787
60788 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60791         needed.  Some compiler complained about some of them.  Problem reported
60792         by Larry Jones in
60793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60794
60795 2006-06-21  Simon Josefsson  <jas@extundo.com>
60796
60797         * tests/test-getaddrinfo.c: New file.
60798
60799         * modules/getaddrinfo-tests: New file.
60800
60801         * MODULES.html.sh: Add inet_pton.
60802
60803         * modules/inet_pton: New file.
60804
60805 2006-06-21  Simon Josefsson  <jas@extundo.com>
60806
60807         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60808         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60809         of using the (limited) gnulib implementation on Windows XP.
60810
60811         * m4/inet_pton.m4: New file.
60812
60813 2006-06-21  Simon Josefsson  <jas@extundo.com>
60814
60815         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60816         variable.
60817
60818         * lib/socket_.h: Don't define WINVER.
60819
60820         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60821         slightly modified to work in gnulib.
60822
60823 2006-06-21  Simon Josefsson  <jas@extundo.com>
60824
60825         * doc/gnulib.texi (Windows sockets): Add.
60826
60827 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * lib/read-file.c (fread_file): Start with buffer allocation of
60830         0 bytes rather than 1 byte; this simplifies the code.
60831         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60832         code to free buffer and save/restore errno.
60833         (internal_read_file): Remove unused local.
60834
60835 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60838         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60839         Problem reported by Denis Excoffier in
60840         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60841
60842 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60843
60844         * modules/sys_socket, modules/socklen: Include sys/types since
60845         FreeBSD 4.x's sys/socket.h needs it.
60846
60847 2006-06-19  Simon Josefsson  <jas@extundo.com>
60848
60849         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60850
60851 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60854
60855 2006-06-19  Bruno Haible  <bruno@clisp.org>
60856
60857         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60858         and FULL_PATH_INTTYPES_H in angle brackets.
60859         Reported by Mark D. Baushke <mdb@gnu.org>.
60860
60861 2006-06-17  Eric Blake  <ebb9@byu.net>
60862
60863         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60864         errno.
60865
60866 2006-06-17  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60869         <sys/inttypes.h>.
60870
60871 2006-06-17  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60874         whether errno is declared. Assume <errno.h> declares errno.
60875
60876 2006-06-17  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60879
60880 2006-06-17  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60883         problem on Solaris 2.5.1.
60884
60885 2006-06-16  Eric Blake  <ebb9@byu.net>
60886
60887         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60888         * lib/unicodeio.c [!defined errno]: Likewise.
60889         * lib/strtol.c [!defined errno]: Likewise.
60890         * lib/strtod.c [!defined errno]: Likewise.
60891
60892 2006-06-15  Eric Blake  <ebb9@byu.net>
60893
60894         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60895
60896 2006-06-15  Eric Blake  <ebb9@byu.net>
60897
60898         * config/srclist.txt (ssize_t.m4): Lose sync.
60899
60900 2006-06-15  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/stdint (Files): Include m4/full-header-path.m4,
60903         m4/size_max.m4, m4/wchar_t.m4.
60904         (Makefile.am): Many more substitutions.
60905         * modules/stdint-tests: New file.
60906         * tests/test-stdint.c: New file.
60907
60908 2006-06-15  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60911         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60912         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60913         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60914         gl_CHECK_TYPE_SAME): New macros.
60915
60916 2006-06-15  Bruno Haible  <bruno@clisp.org>
60917
60918         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60919
60920 2006-06-15  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/stdint_.h: Rewritten to be fully auto-configured.
60923         Fixes bug on HP-UX/IA64.
60924
60925 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * lib/getdate.y (__attribute__): Don't define if already defined.
60928         Problem reported by Larry Jones.
60929         * lib/utimens.c (__attribute__): Likewise.
60930
60931 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60934         reported by Andreas Schwab.
60935
60936 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60937             Bruno Haible  <bruno@clisp.org>
60938
60939         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60940         check for the declaration of strnlen and a run test that exposes the
60941         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60942         rpl_strndup.
60943
60944 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60945             Bruno Haible  <bruno@clisp.org>
60946
60947         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60948
60949 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60950
60951         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60952         compile test, for Tru64 4.0D.
60953
60954 2006-05-28  Karl Berry  <karl@gnu.org>
60955
60956         * config/srclist.txt (printf-args.c): lose sync.
60957
60958 2006-05-26  Martin Lambers  <marlam@marlam.de>
60959
60960         * lib/getpass.c: Updates the test for the native W32 API, and adds
60961         missing includes, thus fixing compilation warnings.
60962
60963 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60964
60965         * lib/exclude.c (exclude_fnmatch): New function.
60966         (excluded_file_name): Call exclude_fnmatch.
60967         * lib/exclude.h (excluded_file_name): New prototype
60968
60969 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/tempname.c (small_open, large_open): New macros.
60972         (__open, __open64) [!_LIBC]: Remove.
60973         (__gen_tempname): Use small_open and large_open instead of __open
60974         and __open64.  This fixes a portability bug on HP-UX 11.11i
60975         reported by Simon Wing-Tang in
60976         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60977
60978 2006-05-24  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60981         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60982         Reported by Thorsten Maerz <torte@netztorte.de> via
60983         Aaron Stone <aaron@serendipity.cx>.
60984
60985 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60988         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60989         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60990         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60991         not really conditional on the cache.
60992         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60993
60994 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60995
60996         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60997         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60998         (my_usleep): Don't mishandle maximum value.
60999
61000 2006-05-19  Jim Meyering  <jim@meyering.net>
61001
61002         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61003
61004 2006-05-17  Bruno Haible  <bruno@clisp.org>
61005
61006         Cygwin portability.
61007         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61008
61009 2006-05-17  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/stdint_.h: Fix recognition of Cygwin.
61012
61013 2006-05-15  Bruno Haible  <bruno@clisp.org>
61014
61015         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61016         on libtool patch by Ralf Wildenhues.
61017
61018 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61021         test for C99 conformance; (bool) 0.5 is an integer constant
61022         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61023         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61024
61025 2006-05-11  Simon Josefsson  <jas@extundo.com>
61026
61027         * m4/xvasprintf.m4: Fix obvious typo.
61028
61029 2006-05-11  Jim Meyering  <jim@meyering.net>
61030
61031         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61032         James Lemley.
61033
61034 2006-05-10  Simon Josefsson  <jas@extundo.com>
61035
61036         * lib/md4.c: Typo fix, update copyright years.
61037         (K1, K2): Don't use L because it turn computations into 64-bit on
61038         64-bit platforms.
61039
61040 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61043         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61044         unwanted sign propagation, e.g., on hosts with 64-bit int.
61045         There still are some problems with reeelly weird theoretical hosts
61046         (e.g., 33-bit int) but it's not worth worrying about now.
61047         * lib/sha1.c (rol): Likewise.
61048         (K1, K2, K3, K4): Remove unnecessary L suffix.
61049
61050 2006-05-10  Bruno Haible  <bruno@clisp.org>
61051
61052         * lib/des.c: Cast to avoid warnings.
61053
61054 2006-05-09  Bruno Haible  <bruno@clisp.org>
61055
61056         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61057         (Depends-on): Depend also on xsize, stdarg.
61058         (configure.ac): Add gl_XVASPRINTF.
61059
61060 2006-05-09  Bruno Haible  <bruno@clisp.org>
61061
61062         * m4/xvasprintf.m4: New file.
61063
61064 2006-05-09  Bruno Haible  <bruno@clisp.org>
61065
61066         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61067         (EOVERFLOW): Define fallback value.
61068         (xstrcat): New function.
61069         (xvasprintf): Recognize the special case of a string concatenation.
61070
61071 2006-05-08  Eric Blake  <ebb9@byu.net>
61072
61073         * gnulib-tool (func_version): Base copyright year on CVS date.
61074         (func_emit_copyright_notice): New function.
61075         (func_emit_lib_Makefile_am): Use it.
61076         (func_emit_tests_Makefile_am): Likewise.
61077         (func_import): Likewise.
61078
61079 2006-05-08  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/stdarg: New file.
61082         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61083
61084 2006-05-08  Bruno Haible  <bruno@clisp.org>
61085
61086         * m4/stdarg.m4: New file, from GNU gettext.
61087
61088 2006-05-08  Bruno Haible  <bruno@clisp.org>
61089
61090         * config/srclist.txt (build-aux/config.rpath): different from latest
61091         release.
61092
61093 2006-05-08  Bruno Haible  <bruno@clisp.org>
61094
61095         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61096
61097 2006-05-05  Jim Meyering  <jim@meyering.net>
61098
61099         * m4/warning.m4: New file, derived from bison's file by the same name.
61100
61101 2006-05-03  Bruno Haible  <bruno@clisp.org>
61102
61103         * lib/stdint_.h: Shorter URL.
61104         * lib/inttypes.h: Likewise.
61105
61106 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61109
61110 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/verify.h: Document the internals better.  Most of this change
61113         was written by Bruno Haible.
61114
61115 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61116
61117         * doc/verify.texi: New file, partly based on a proposal by
61118         Bruno Haible.
61119
61120 2006-05-02  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61123         test from here...
61124         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61125
61126 2006-04-29  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61129         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61130
61131 2006-04-29  Bruno Haible  <bruno@clisp.org>
61132
61133         * gnulib-tool: Make --update option actually work.
61134
61135 2006-04-29  Bruno Haible  <bruno@clisp.org>
61136
61137         * doc/gcd.texi: New file.
61138         * doc/gnulib.texi: Include it.
61139
61140 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * lib/getdate.y (get_date): When adding relative date, start with the
61143         initial time, not with the result of the first mktime call.
61144
61145 2006-04-25  Bruno Haible  <bruno@clisp.org>
61146
61147         * gnulib-tool (func_import): Output the include directives in three
61148         blocks, sorted separately.
61149         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61150
61151 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61154         to define main with arguments, for C++.  Reported by Eric Blake.
61155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61156         Prefer 'int main ()' to 'int main (void)', for C++.
61157         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61158         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61159         for 'main', for C99 and C++.
61160
61161 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61164         Don't assume that exit status -1 is valid.
61165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61166         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61167         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61168         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61169         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61171         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61172         functions can be used without declaring them, or that you can
61173         exit with status -1.
61174         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61175
61176 2006-04-24  Karl Berry  <karl@gnu.org>
61177
61178         * config/srclist.txt (longdouble.m4): sync lost.
61179
61180 2006-04-24  Eric Blake  <ebb9@byu.net>
61181
61182         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61183
61184 2006-04-24  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61187         poll() implementation in AIX.
61188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61189
61190 2006-04-24  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61193         assigned exactly once.
61194
61195 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61196             Bruno Haible  <bruno@clisp.org>
61197
61198         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61199         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61200         for AM_CPPFLAGS.
61201
61202 2006-04-23  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/copy-file: Depend on unistd.
61205         * modules/execute: Likewise.
61206         * modules/fatal-signal: Likewise.
61207         * modules/findprog: Likewise.
61208         * modules/mkdtemp : Likewise.
61209         * modules/pipe: Likewise.
61210         * modules/wait-process: Likewise.
61211
61212 2006-04-23  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61215         condition was already detected.
61216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61217
61218 2006-04-23  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/copy-file.c: Include <unistd.h> unconditionally.
61221         * lib/execute.c: Likewise.
61222         * lib/fatal-signal.c: Likewise.
61223         * lib/findprog.c: Likewise.
61224         * lib/mkdtemp.c: Likewise.
61225         * lib/pipe.h: Likewise.
61226         * lib/pipe.c: Likewise.
61227         * lib/wait-process.h: Likewise.
61228
61229 2006-04-23  Bruno Haible  <bruno@clisp.org>
61230
61231         * gnulib-tool (func_usage): Fix --import description. Document
61232         --update.
61233         (func_import): Create temporary file in a temporary directory, if
61234         --dry-run is specified. Silence errors from 'grep' when there are no
61235         m4 files in $m4dir.
61236         (func_create_testdir): Silence errors from 'grep' when there are no
61237         m4 files in $m4dir.
61238         Reported by Karl Berry <karl@freefriends.org>.
61239
61240 2006-04-20  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61243         one argument, so that the code will be portable to Autoconf 2.60.
61244         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61245         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61246         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61247
61248 2006-04-19  Derek Price  <derek@ximbiot.com>
61249             Eric Blake  <ebb9@byu.net>
61250
61251         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61252         rather than "/full/path.h".  Update comment to match.  Shorten &
61253         generalize m4_translit call via AS_TR_CPP.
61254
61255 2006-04-19  Derek Price  <derek@ximbiot.com>
61256             Eric Blake  <ebb9@byu.net>
61257
61258         * lib/inttypes.h: Correct grammar in comment.
61259
61260 2006-04-18  Derek Price  <derek@ximbiot.com>
61261             Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * modules/inttypes: New file.
61264         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61265
61266 2006-04-18  Derek Price  <derek@ximbiot.com>
61267             Paul Eggert  <eggert@cs.ucla.edu>
61268
61269         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61270         New files.
61271
61272 2006-04-18  Derek Price  <derek@ximbiot.com>
61273             Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * lib/inttypes.h: New file.
61276         * lib/strtoimax.c: Assume <inttypes.h>.
61277
61278 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61281         isn't mounted.  Problem reported by Kir Kolyshkin.
61282
61283 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61286         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61287         Derek R. Price.
61288         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61289         implementation.
61290
61291 2006-04-12  Eric Blake  <ebb9@byu.net>
61292
61293         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61294         is now done automatically by the corresponding Autoconf macro.
61295
61296 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61297
61298         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61299         time_r.h.
61300
61301 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         Merge regex changes from libc, removing some of our
61304         POSIX-conformance changes that were rejected and redoing them in a
61305         less-intrusive way.
61306
61307         * lib/regcomp.c (re_compile_internal, init_dfa):
61308         Length arg is now size_t, not Idx.  All uses changed.
61309         (peek_token): Forward decl now says internal_function.
61310         (__re_error_msgid, __re_error_msgid_idx):
61311         Now static rather than extern with attribute_hidden.
61312         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61313         For some reason libc prefers K&R style defns for external functions.
61314         (regerror) [!defined _LIBC]: Likewise.
61315         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61316         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61317         (build_range_exp, build_collating_symbol):
61318         Use K&R-style defn.
61319         (re_compile_fastmap): Use '\0' to memset, not 0.
61320         (utf8_sb_map): Make the calculations more obvious.
61321         (init_dfa, parse_bracket_exp, build_charclass_op):
61322         Call calloc and cast result, as glibc does.
61323         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61324         (build_range_exp, build_collating_symbol):
61325         Now internal functions.
61326
61327         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61328
61329         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61330         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61331         Don't depend on VMS; depend on __VMS instead, for POSIX
61332         namespace cleanness.
61333         (regoff_t): Define to ssize_t, not long int.
61334
61335         Remove the REG_ macros named below.  Instead, make the old names
61336         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61337         __USE_GNU_REGEX.
61338         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61339         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61340         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61341         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61342         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61343         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61344         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61345         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61346         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61347         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61348         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61349         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61350         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61351         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61352         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61353         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61354         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61355         (REG_NREGS):
61356         Remove.  All uses replaced by the old RE_* names.
61357         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61358         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61359         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61360         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61361         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61362         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61363         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61364         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61365         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61366         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61367         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61368         Don't bother having these macros be independent of each others'
61369         values, since they no longer exist in the POSIX name space.
61370
61371         Rename the following member names back to their old names,
61372         unless !__USE_GNU_REGEX.  All uses changed back.
61373         (buffer): Renamed from re_buffer.
61374         (allocated): Renamed from re_allocated.
61375         (used): Renamed from re_used.
61376         (syntax): Renamed from re_syntax.
61377         (fastmap): Renamed from re_fastmap.
61378         (translate): Renamed from re_translate.
61379         (can_be_null): Renamed from re_can_be_null.
61380         (regs_allocated): Renamed from re_regs_allocated.
61381         (fastmap_accurate): Renamed from re_fastmap_accurate.
61382         (no_sub): Renamed from re_no_sub.
61383         (not_bol): Renamed from re_not_bol.
61384         (not_eol): Renamed from re_not_eol.
61385         (newline_anchor): Renamed from re_newline_anchor.
61386         (num_regs): Renamed from rm_num_regs.
61387         (start): Renamed from rm_start.
61388         (end): Renamed from rm_end.
61389
61390         (free_state): Move up a bit.
61391
61392         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61393         #define to be empty.
61394         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61395         when that is what is intended.
61396         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61397         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61398         (MAX): New macro.
61399         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61400         All uses changed back to re_malloc, etc.  It's now the caller's
61401         responsibility to check for overflow; all callers changed.
61402         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61403         (re_x2nrealloc): Remove.
61404         (free_state): Remove decl.
61405
61406         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61407         (re_set_registers, re_exec):
61408         Use K&R-style defn.
61409
61410         2006-01-31  Roland McGrath  <roland@redhat.com>
61411
61412         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61413         Reported by Mike Frysinger <vapier@gentoo.org>.
61414
61415         2006-01-15  Andreas Jaeger  <aj@suse.de>
61416
61417         [BZ #1950]
61418         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61419         build_wcs_upper_buffer change.
61420         (build_wcs_upper_buffer): Change return type.
61421
61422         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61423
61424         * lib/regex_internal.h: Include <stdint.h> if available.
61425
61426         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61427
61428         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61429
61430         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61431
61432         * lib/regcomp.c: Adjust for changed secondary hash function.
61433
61434         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61435
61436         * lib/regex.h: Pretty printing.
61437         Clean up namespace a bit.
61438
61439         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61440
61441         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61442         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61443
61444         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61445                     Ulrich Drepper  <drepper@redhat.com>
61446
61447         [BZ #1302]
61448         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61449         changed.
61450         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61451
61452         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61453
61454         [BZ #281]
61455         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61456         * lib/regcomp.c: Remove unnecessary uses of
61457         unsigned RE_TRANSLATE_TYPE.
61458         * lib/regex_internal.h: Likewise.
61459         * lib/regex_internal.c: Likewise.
61460         * lib/regexec.c: Likewise.
61461         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61462
61463         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61464
61465         * lib/regexec.c (find_recover_state): Remove unnecessary
61466         initialization.
61467         (transit_state_bkref): Make DFA a const pointer.
61468         (get_subexp): Likewise.
61469         (check_arrival): Likewise.
61470         (update_cur_sifted_state): Likewise.
61471         (re_search_internal): Likewise.
61472         (prune_impossible_nodes): Likewise.
61473         (acquire_init_state_context): Likewise.
61474         (proceed_next_node): Likewise.
61475         (set_regs): Likewise.
61476         (free_fail_stack_return): Likewise.
61477         (check_arrival_expand_ecl): Mark DFA parameter as const.
61478         (check_arrival_expand_ecl_sub): Likewise.
61479         (check_subexp_limits): Likewise.
61480         (sub_epsilon_src_nodes):  Likewise.
61481         (add_epsilon_src_nodes):  Likewise.
61482         (merge_state_array): Likewise.
61483         (update_regs): Likewise.
61484         (build_trtable): Likewise.
61485         (sift_states_backward): Mark MCTX parameter as const.
61486         (build_sifted_states): Likewise.
61487         (update_cur_sifted_state): Likewise.
61488         (sift_states_mkref): Likewise.
61489         (check_arrival_expand_ecl): Mark eclosure as const.
61490         (check_dst_limits_calc_pos_1): Likewise.
61491         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61492         pointer.
61493
61494         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61495
61496         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61497         (transit_state_sb): Likewise.
61498         (transit_state_mb): Likewise.
61499         (sift_states_iter_mb): Likewise.
61500         (check_arrival_add_next_nodes): Likewise.
61501         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61502         [_LIBC] (re_search_2_stub): Use mempcpy.
61503
61504         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61505         mbrtowc for very simple UTF-8 case.
61506
61507         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61508         a pointer-to-const.
61509         (re_acquire_state_context): Likewise.
61510         * lib/regex_internal.h: Adjust prototypes.
61511
61512         * lib/regex.c: Prevent using C++ compilers.
61513
61514         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61515         (re_acquire_state_context): Likewise.
61516
61517 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         * modules/regex (Depends-on): Add ssize_t.
61520
61521 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61524         translation table.
61525
61526 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61529
61530 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61531             Bruno Haible  <bruno@clisp.org>
61532
61533         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61534         <sys/types.h> and <inttypes.h>.
61535
61536 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61537
61538         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61539         `__error_t_defined', so argp.h will not typedef the former.
61540
61541 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61544         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61545         glibc names.  Even if glibc is changed to conform to POSIX, the
61546         traditional names will be available anyway, since regex depends on
61547         the extensions module.  Also, fix a longstanding typo in the
61548         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61549         reported by Emanuele Giaquinta.  Also, change sense of cached
61550         variable, so that the message makes sense.
61551
61552 2006-03-24  Simon Josefsson  <jas@extundo.com>
61553
61554         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61555         including some doc fixes.
61556         (base64_encode_alloc): Fix +1 bug on allocation failures.
61557
61558 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61559
61560         * lib/base64.c (base64_encode): Do not read past end of array with
61561         unsanitized input on systems with CHAR_BIT > 8.
61562
61563 2006-03-24  Eric Blake  <ebb9@byu.net>
61564
61565         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61566
61567 2006-03-22  Karl Berry  <karl@gnu.org>
61568
61569         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61570         * config/srclistvars.sh (COREUTILS): new var.
61571
61572 2006-03-17  Jim Meyering  <jim@meyering.net>
61573
61574         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61575         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61576
61577 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61580         no longer needs it.  Instead, check that regoff_t is as least
61581         as wide as ptrdiff_t.
61582
61583         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61584         so that our regex.h stays compatible with the installed regex.
61585         This is helpful for installers who configure --without-included-regex.
61586         Problem reported by Emanuele Giaquinta.
61587
61588 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61591         Typedef to long int, not to off_, as POSIX will likely change
61592         in that direction.
61593
61594 2006-03-15  Eric Blake  <ebb9@byu.net>
61595
61596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61597
61598 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61599
61600         * lib/argp-help.c (validate_uparams): Fix typo
61601         * lib/argp-parse.c (argp_default_options): Consistently begin help
61602         messages with a lowercase letter.
61603
61604 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61605
61606         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61607         overrun buffers and shouldn't be used (much as gets shouldn't be
61608         used).
61609         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61610
61611 2006-03-08  Simon Josefsson  <jas@extundo.com>
61612
61613         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61614         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61615
61616 2006-03-08  Simon Josefsson  <jas@extundo.com>
61617
61618         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61619         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61620
61621 2006-03-08  Simon Josefsson  <jas@extundo.com>
61622
61623         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61624         signal that configure disabled the device.
61625
61626 2006-03-08  Simon Josefsson  <jas@extundo.com>
61627
61628         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61629         languages.
61630
61631 2006-03-07  Simon Josefsson  <jas@extundo.com>
61632
61633         * modules/getopt (Depends-on): Add unistd.
61634
61635         * modules/unistd: New file.
61636
61637 2006-03-07  Simon Josefsson  <jas@extundo.com>
61638
61639         * modules/gc-random: New file.
61640
61641 2006-03-07  Simon Josefsson  <jas@extundo.com>
61642
61643         * m4/unistd_h.m4: New file.
61644
61645 2006-03-07  Simon Josefsson  <jas@extundo.com>
61646
61647         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61648         test to be side-effect free by storing the result in the cache
61649         variable gl_cv_lib_readline, and moving the assignment of
61650         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61651         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61652
61653 2006-03-07  Simon Josefsson  <jas@extundo.com>
61654
61655         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61656         error on missing devices (the functions will return an error).
61657
61658         * m4/gc.m4: Move random stuff to gc-random.m4
61659
61660 2006-03-07  Simon Josefsson  <jas@extundo.com>
61661
61662         * lib/unistd_.h: New file.
61663
61664 2006-03-07  Simon Josefsson  <jas@extundo.com>
61665
61666         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61667
61668 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61671         Problem reported by Juan Manuel Guerrero.
61672
61673 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61676         the unistd module.
61677         * lib/getlogin_r.c: Likewise.
61678         * lib/getlogin_r.h: Likewise.
61679         * lib/glob.c: Likewise.
61680         * lib/pagealign_alloc.c: Likewise.
61681         * lib/unistd_.h: Remove; no longer needed.
61682
61683 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61686         Add unistd.
61687         * modules/c-stack (Depends-on): Add unistd.
61688         * modules/getlogin_r: Likewise.
61689         * modules/glob: Likewise.
61690         * modules/pagealign_alloc: Likewise.
61691         * modules/unistd (Files): Remove lib/unistd_.h.
61692         (EXTRA_DIST): Remove.
61693         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61694         need unistd_.h.
61695         (MOSTLYCLEANFILES): Remove unistd.h-t.
61696
61697 2006-03-03  Simon Josefsson  <jas@extundo.com>
61698
61699         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61700
61701 2006-03-03  Simon Josefsson  <jas@extundo.com>
61702
61703         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61704         libidn and bison.
61705
61706 2006-03-03  Simon Josefsson  <jas@extundo.com>
61707
61708         * build-aux/maint.mk: Add indent target.
61709
61710 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61711
61712         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61713         our replacement poll.h in any case, to avoid a differing
61714         declaration from a system header.  Seen on AIX.
61715
61716 2006-03-01  Simon Josefsson  <jas@extundo.com>
61717
61718         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61719         <kasal@ucw.cz>.
61720
61721 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * modules/gettime (Depends-on): Add extensions module.
61724         * modules/nanosleep (Depends-on): Likewise.
61725         * modules/settime (Depends-on): Likewise.
61726
61727 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61730         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61731         pedantically.
61732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61733         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61734
61735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61736         not "==".  Reported by Ralf Wildenhues.
61737
61738 2006-03-01  Karl Berry  <karl@gnu.org>
61739
61740         * doc/Copyright/request-*: new files, synced from gnuorg.
61741
61742 2006-03-01  Karl Berry  <karl@gnu.org>
61743
61744         * config/srclist.txt (Copyright/*): new entries.
61745
61746 2006-02-28  Simon Josefsson  <jas@extundo.com>
61747
61748         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61749
61750 2006-02-27  Simon Josefsson  <jas@extundo.com>
61751
61752         * lib/base64.h: Indent #define's.  From Jim Meyering
61753         <jim@meyering.net>.
61754
61755 2006-02-27  Jim Meyering  <jim@meyering.net>
61756
61757         Revert the change of 2006-02-24, so these files can continue
61758         to be sync'd from gettext.
61759         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61760         of `config.h'.
61761
61762 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * modules/intprops: New file.
61765         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61766         Add intprops.
61767         * modules/getloadavg (Files): Remove lib/intprops.h.
61768         (Depends-on): Add intprops.
61769         * modules/human: Likewise.
61770         * modules/inttostr: Likewise.
61771         * modules/openat: Likewise.
61772         * modules/sig2str: Likewise.
61773         * modules/userspec: Likewise.
61774         * modules/utimecmp: Likewise.
61775         * modules/xnanosleep: Likewise.
61776         * modules/xstrtol: Likewise.
61777
61778 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61779
61780         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61781         * modules/lock-tests (TESTS): Use $(EXEEXT).
61782         * modules/tls-tests: Likewise.
61783         * modules/argp-tests: Likewise.
61784         (check_PROGRAMS): New var, replacing...
61785         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61786
61787 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61788
61789         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61790         `config.h'.
61791
61792 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61795
61796 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61797
61798         Sync from coreutils.
61799         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61800         gl_CHDIR_SAFER.
61801
61802 2006-02-22  Jim Meyering  <jim@meyering.net>
61803
61804         Sync from coreutils.
61805         * m4/chdir-safer.m4: New file.
61806
61807 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61810         AT_FDCWD exceeds INT_MAX.
61811         * lib/openat.h (AT_FDCWD): Likewise.
61812
61813 2006-02-17  Eric Blake  <address@hidden>
61814
61815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61816
61817 2006-02-16  Simon Josefsson  <jas@extundo.com>
61818
61819         * modules/getaddrinfo (Depends-on): Add sys_socket.
61820
61821 2006-02-15  Simon Josefsson  <jas@extundo.com>
61822
61823         * build-aux/maint.mk: Add dsyntax-check rule.
61824
61825 2006-02-15  Eric Blake  <ebb9@byu.net>
61826
61827         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61828         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61829         'present but cannot compile' warnings on cygwin.
61830         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61831         use ws2tcpip.h if sys/socket.h works.
61832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61833         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61834
61835 2006-02-14  Simon Josefsson  <jas@extundo.com>
61836
61837         * modules/maintainer-makefile (Files): Rename.
61838
61839         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61840         and (the local) Makefile.cfg to maint-cfg.mk.
61841
61842         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61843         to the latter.
61844
61845         * modules/maintainer-makefile: New module.
61846
61847         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61848         severaly stripped to make it possible to build it up from scratch
61849         with reliable tests.
61850
61851         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61852         fixes to permit overriding the default actions when configure and
61853         makefile are not available.
61854
61855 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61856
61857         Sync from coreutils.
61858         * modules/lstat (Depends-on): Don't depend on xalloc.
61859         (License): Change from GPL to LGPL, since this is now simply a
61860         replacement for a libc function.
61861
61862 2006-02-14  Jim Meyering  <jim@meyering.net>
61863
61864         Sync from coreutils.
61865
61866         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61867         failure on deficient systems, and simplify gnulib lgpl dependencies.
61868         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61869         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61870
61871         * lib/xalloc-die.c: Remove unused definition of N_.
61872
61873 2006-02-14  Jim Meyering  <jim@meyering.net>
61874
61875         Sync from coreutils.
61876         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61877         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61878         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61879         double-quote uses of that variable, to accommodate the rare case in
61880         which getmntent is available in none of the libraries checked.  This
61881         happens at least on FreeBSD 5.0.
61882
61883 2006-02-13  Simon Josefsson  <jas@extundo.com>
61884
61885         * gnulib-tool (Usage): Fix --import, from
61886         karl@freefriends.org (Karl Berry).
61887
61888 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61889
61890         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61891
61892 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61893
61894         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61895         "autoupdate" on 2005-12-12.
61896
61897 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61898
61899         * modules/closeout (Depends-on): Remove atexit.
61900
61901 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61904         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61905
61906 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61909         __EXTENSIONS__ if this causes compilation to fail.  Problem
61910         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61911         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61912
61913 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61914
61915         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61916         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61918         All uses changed.
61919
61920 2006-01-26  Simon Josefsson  <jas@extundo.com>
61921
61922         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61923         prototype is visible on mingw32.
61924
61925         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61926         for mingw32.
61927
61928         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61929         mingw32).
61930
61931 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61934         attempt to open for write; this always fails, at least on POSIX
61935         hosts.  This reinstates the 2006-01-09 change, which was
61936         inadvertently removed.
61937
61938 2006-01-26  Bruno Haible  <bruno@clisp.org>
61939
61940         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61941         Reported by Paul Eggert.
61942
61943 2006-01-26  Bruno Haible  <bruno@clisp.org>
61944             Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * lib/stdbool_.h (_Bool)
61947         [(! (defined __cplusplus || defined __BEOS__)
61948           && !defined __GNUC__
61949           && !(defined __HP_cc || defined __xlc__
61950                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61951                || defined __sgi))]:
61952         #define to signed char in these cases too; this simplifies
61953         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61954         etc., separately) and makes it more conservative.
61955
61956 2006-01-25  Simon Josefsson  <jas@extundo.com>
61957
61958         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61959         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61960         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61961
61962 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61963
61964         * lib/argp-namefrob.h: Bugfix. Remove stray #
61965
61966 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61969         so that we test the test.
61970         Check for yet another HP-UX cc bug involving *bool |= bool.
61971
61972 2006-01-25  Karl Berry  <karl@gnu.org>
61973
61974         * config/srclist.txt (vasnprintf.c): sync lost.
61975
61976 2006-01-25  Jim Meyering  <jim@meyering.net>
61977
61978         Sync from the stable (b5) branch of coreutils:
61979
61980         * lib/fts.c (fts_children): Don't let close() clobber errno from
61981         failed fchdir().
61982
61983         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61984         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61985         a dangling symlink.  That can also happen at least for ELOOP.
61986         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61987         FYI, this bug predates the inclusion of fts.c in coreutils.
61988
61989         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61990         in their own block, so pre-c99 compilers don't object.
61991
61992         Avoid the double-free (first in fts_read, second in fts_close) that
61993         would occur when an `active' directory is made inaccessible (e.g.,
61994         via chmod a-x) during a traversal.
61995         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61996         before returning.  Reproduce this failure by
61997         mkdir -p a/b; cd a; chmod a-x . b
61998         Reported by Stavros Passas.
61999
62000 2006-01-25  Jim Meyering  <jim@meyering.net>
62001
62002         * lib/fileblocks.c: Remove more useless parentheses.
62003         * lib/readutmp.h: Likewise.
62004
62005 2006-01-25  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62008         warnings.
62009         Reported by Paul Eggert.
62010
62011 2006-01-25  Bruno Haible  <bruno@clisp.org>
62012
62013         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62014         rid of a trap command. For Solaris sh.
62015         Reported by Mark D. Baushke <mdb@gnu.org>.
62016
62017 2006-01-24  Simon Josefsson  <jas@extundo.com>
62018
62019         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62020         Bruno.
62021
62022 2006-01-24  Karl Berry  <karl@gnu.org>
62023
62024         * config/srclist.txt (argp-namefrob.h): sync lost.
62025
62026 2006-01-24  Jim Meyering  <jim@meyering.net>
62027
62028         * modules/openat (Files): Add lib/intprops.h.
62029         From Mark D. Baushke.
62030
62031 2006-01-24  Jim Meyering  <jim@meyering.net>
62032
62033         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62034         Reported by Mark D. Baushke.
62035
62036 2006-01-24  Jim Meyering  <jim@meyering.net>
62037
62038         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62039
62040 2006-01-24  Bruno Haible  <bruno@clisp.org>
62041
62042         * modules/strnlen (Maintainer): Change from glibc to all.
62043
62044 2006-01-24  Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62047         Patch by Paul Eggert.
62048
62049 2006-01-24  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62052         already has it.
62053         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62054         2005-11-26.
62055
62056         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62057         'signed char' to avoid problems with the built-in _Bool type.
62058         Reported by Paul Eggert on 2005-11-26.
62059
62060 2006-01-24  Bruno Haible  <bruno@clisp.org>
62061
62062         * gnulib-tool (func_import): Avoid constructing complicated sed
62063         expressions inside backquote.
62064         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62065
62066 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62067
62068         These changes imported from libc.
62069         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62070         test and two separate function calls.
62071         * lib/strndup.c (__strndup): Add libc_hidden_def.
62072
62073 2006-01-23  Simon Josefsson  <jas@extundo.com>
62074
62075         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62076         Remove the test_*_SOURCES variable: automake infers it by default.
62077         * modules/tls-tests: Likewise.
62078
62079 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         Work around porting bugs reported by Dieter in
62082         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62083         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62084         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62085         Include "getopt.h" first, to check interface.
62086         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62087         !HAVE_DECL_GETENV.
62088         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62089         (__strndup): Revert to K&R-style function dfns, the glibc style.
62090         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62091         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62092         Include strnlen.h first, to get prototype properly.
62093         (strnlen): Renamed from __strnlen.
62094         Remove weak alias.
62095
62096 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62099
62100 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         * config/srclist.txt: Adjust to reflect glibc reorganization.
62103         This affects only comments.
62104
62105 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62106
62107          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62108          Reported by Bruce Korb <bkorb@gnu.org>.
62109
62110 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62113         to pacify gcc -Wswitch-default.
62114
62115 2006-01-22  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62118         temporary buffer for sprintf, take into account the precision also
62119         for 'd', 'i', 'u', 'o', 'x', 'X'.
62120
62121 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62122
62123         * modules/argp-tests: New module
62124         * tests/test-argp.c: New file
62125         * tests/test-argp-2.sh: New file
62126
62127 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62128
62129         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62130         (__argp_base_name): Removed
62131         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62132         typo.
62133         (__argp_base_name): Provide macro definition or extern declaration
62134         depending on the configuration
62135
62136 2006-01-20  Simon Josefsson  <jas@extundo.com>
62137
62138         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62139
62140 2006-01-20  Simon Josefsson  <jas@extundo.com>
62141
62142         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62143
62144 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62147         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62148         Suggested by Bruno Haible.
62149
62150 2006-01-20  Karl Berry  <karl@gnu.org>
62151
62152         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62153         until changes propagate, I guess.
62154
62155 2006-01-19  Simon Josefsson  <jas@extundo.com>
62156
62157         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62158
62159 2006-01-19  Simon Josefsson  <jas@extundo.com>
62160
62161         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62162
62163 2006-01-19  Simon Josefsson  <jas@extundo.com>
62164
62165         * gnulib-tool: Set check_PROGRAMS.
62166
62167         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62168         modules/des-tests, modules/gc-arcfour-tests,
62169         modules/gc-arctwo-tests, modules/gc-des-tests,
62170         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62171         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62172         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62173         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62174         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62175         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62176         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62177         test_*_SOURCES.
62178
62179 2006-01-18  Simon Josefsson  <jas@extundo.com>
62180
62181         * modules/socklen (Depends-on): Depend on sys_socket.
62182
62183 2006-01-18  Simon Josefsson  <jas@extundo.com>
62184
62185         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62186         modules/des-tests, modules/gc-arcfour-tests,
62187         modules/gc-arctwo-tests, modules/gc-des-tests,
62188         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62189         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62190         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62191         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62192         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62193         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62194         $(EXEEXT) to automake TESTS variable, for mingw32.
62195
62196 2006-01-17  Simon Josefsson  <jas@extundo.com>
62197
62198         * modules/socklen (Include): Need sys/socket.h.
62199
62200 2006-01-17  Bruno Haible  <bruno@clisp.org>
62201
62202         * modules/ssize_t (Include): Add <sys/types.h>.
62203
62204 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62207         it's not portable and it doesn't work with cross-compiles.
62208         Problem reported by Bruno Haible.  Fix missing-$ typo in
62209         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62210         -zignore from being used with Sun's C compiler.
62211
62212 2006-01-12  Simon Josefsson  <jas@extundo.com>
62213
62214         * lib/base64.c: Fix warning, reported by Bruno Haible
62215         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62216
62217 2006-01-12  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/ldd: New file.
62220         * build-aux/ldd.sh.in: New file.
62221         * MODULES.html.sh (Support for building libraries and executables): Add
62222         ldd.
62223
62224 2006-01-12  Bruno Haible  <bruno@clisp.org>
62225
62226         * m4/ldd.m4: New file.
62227
62228 2006-01-12  Bruno Haible  <bruno@clisp.org>
62229
62230         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62231         endless loop while replacing $auxdir with build-aux.
62232
62233 2006-01-11  Simon Josefsson  <jas@extundo.com>
62234
62235         * lib/stdint_.h (SIZE_MAX): Add missing (.
62236
62237 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         Sync from coreutils.
62240         * lib/md5.c: Fix commentary typos.
62241         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62242         * lib/md5.h (__attribute__): Remove; unused.
62243         * lib/sha1.c: Fix commentary to match md5 better.
62244         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62245         so that we don't need to worry about alignment.  All uses changed.
62246         This merges the 2005-10-28 md5 change into sha1.
62247
62248 2006-01-11  Jim Meyering  <jim@meyering.net>
62249
62250         Sync from coreutils.
62251         * lib/md5.c (OP): Fix spacing.
62252
62253 2006-01-11  Bruno Haible  <bruno@clisp.org>
62254
62255         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62256         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62257         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62258
62259 2006-01-11  Bruno Haible  <bruno@clisp.org>
62260
62261         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62262         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62263         the "early" section as well.
62264
62265 2006-01-11  Bruno Haible  <bruno@clisp.org>
62266
62267         Avoid "ar: no archive members specified" error on MacOS X.
62268         * gnulib-tool (func_modules_add_dummy): New function.
62269         (func_import, func_create_testdir): Invoke it.
62270
62271 2006-01-11  Bruno Haible  <bruno@clisp.org>
62272
62273         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62274         with $auxdir in AC_CONFIG_FILES statements.
62275
62276 2006-01-11  Bruno Haible  <bruno@clisp.org>
62277
62278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62279         Initialize also noinst_HEADERS to empty.
62280
62281 2006-01-11  Bruno Haible  <bruno@clisp.org>
62282
62283         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62284         variables.
62285         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62286         autoreconf.
62287
62288 2006-01-11  Bruno Haible  <bruno@clisp.org>
62289
62290         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62291         overridable by the user.
62292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62293
62294 2006-01-10  Simon Josefsson  <jas@extundo.com>
62295
62296         * modules/sys_socket: New file.
62297
62298 2006-01-10  Simon Josefsson  <jas@extundo.com>
62299
62300         * m4/sys_socket_h.m4: New file.
62301
62302 2006-01-10  Simon Josefsson  <jas@extundo.com>
62303
62304         * lib/socket_.h: New file.
62305
62306 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * modules/readutmp (Maintainer): Add myself.
62309
62310 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62313         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62314         People who are still concerned with buggy memcmp implementations
62315         can invoke gl_FUNC_MEMCMP themselves.
62316
62317 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * lib/regex_internal.h (BITSET_WORD_BITS):
62320         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62321         preprocessor mishandles large unsigned values as if they were signed.
62322         Problem reported by Claudio Fontana in
62323         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62324
62325 2006-01-10  Jim Meyering  <jim@meyering.net>
62326
62327         Avoid the double-free (first in fts_read, second in fts_close) that
62328         would occur when an `active' directory is made inaccessible (e.g.,
62329         via chmod a-x) during a traversal.
62330         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62331         before returning.  Reproduce this failure by
62332         mkdir -p a/b; cd a; chmod a-x . b
62333         Reported by Stavros Passas.
62334
62335         Sync from coreutils.
62336         * lib/sha1.c: Tweak grammar in a comment.
62337
62338 2006-01-10  Jim Meyering  <jim@meyering.net>
62339
62340         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62341         Patch by Joerg Sonnenberger.
62342
62343 2006-01-10  Bruno Haible  <bruno@clisp.org>
62344
62345         * modules/readutmp: Depend on module free.
62346         * modules/strtok_r: Depend on module restrict.
62347
62348 2006-01-10  Bruno Haible  <bruno@clisp.org>
62349
62350         * modules/gettext (configure.ac): Add an invocation of
62351         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62352
62353 2006-01-10  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62356         Reported by Werner Lemberg <wl@gnu.org>.
62357
62358 2006-01-10  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/localcharset.c: Update from GNU gettext.
62361
62362 2006-01-10  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/argp.h (__const): Remove macro. Use const instead.
62365         * lib/argp-fmtstream.h (__const): Likewise.
62366         * lib/glob_.h (__const): Remove macro.
62367         * lib/glob-libc.h: Use const instead of __const.
62368
62369 2006-01-10  Bruno Haible  <bruno@clisp.org>
62370
62371         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62372         variable.
62373         Needed to avoid an automake error regarding the 'gettext' module.
62374
62375 2006-01-09  Simon Josefsson  <jas@extundo.com>
62376
62377         * modules/inet_ntop (Depends-on): Add restrict.
62378
62379 2006-01-09  Simon Josefsson  <jas@extundo.com>
62380
62381         * modules/gc-rijndael-tests (License): Put under LGPL.
62382
62383         * modules/gc-des-tests (License): Likewise.
62384
62385         * modules/gc-arcfour-tests (License): Likewise.
62386
62387         * modules/gc-arctwo-tests (License): Likewise.
62388
62389         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62390
62391         * modules/gc-hmac-sha1-tests (Files): Likewise.
62392
62393         * modules/gc-hmac-md5-tests (License): Likewise.
62394
62395         * modules/gc-sha1-tests (License): Likewise.
62396
62397         * modules/gc-md5-tests (License): Likewise.
62398
62399         * modules/gc-md4-tests (License): Likewise.
62400
62401         * modules/gc-md2-tests (License): Likewise.
62402
62403         * modules/gc-tests (License): Likewise.
62404
62405         * modules/des-tests (License): Likewise.
62406
62407         * modules/md4-tests (License): Likewise.
62408
62409         * modules/md2-tests (License): Likewise.
62410
62411 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         Sync from coreutils:
62414
62415         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62416         * modules/lib-ignore: New file.
62417         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62418         chdir-safer.m4, lchmod.m4.
62419         * modules/openat: Add mkdirat.c, openat-priv.h.
62420
62421 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         Sync from coreutils.
62424         * m4/lib-ignore.m4: New file.
62425         * m4/lchmod.m4: New file.
62426
62427 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         Sync from coreutils.
62430         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62431         for write access: POSIX says that must fail.
62432         * lib/fts.c (diropen): Likewise.
62433         * lib/save-cwd.c (save_cwd): Likewise.
62434         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62435         well, for minor improvements on hosts that lack O_DIRECTORY.
62436         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62437         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62438         Fall back on chown if open failed with EACCES.
62439
62440         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62441         Report an error at compile-time if only a 1-second nominal clock
62442         resolution is found.
62443
62444         * lib/lchmod.h: New file.
62445         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62446         (make_dir_parents): Use lchown rather than chown, and
62447         lchmod rather than chmod.
62448
62449         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62450         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62451         "proc" reported by n0dalus.
62452
62453         * lib/mountlist.c: Include <limits.h>.
62454         (dev_from_mount_options)
62455         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62456         New function.  It no longer assumes "dev=" has the System V meaning
62457         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62458         (read_file_system_list)
62459         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62460         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62461         dev= in that case.
62462
62463         * lib/posixtm.h (PDS_PRE_2000): New macro.
62464         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62465         allow_century.  All usages changed.  Reject dates outside the range
62466         1969-1999 if PDS_PRE_2000 is used.
62467
62468 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62469
62470         Sync from coreutils.
62471         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62472         (Time of day items): Mention the possibility of leap seconds.
62473         Problem reported by Dr. David Alan Gilbert.
62474
62475 2006-01-09  Jim Meyering  <jim@meyering.net>
62476
62477         Sync from coreutils.
62478
62479         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62480
62481         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62482
62483         * lib/modechange.c (mode_compile): Reject an invalid mode string
62484         that starts with an octal digit.  From Andreas Gruenbacher.
62485
62486         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62487         and dup to open_safer and dup_safer, respectively.
62488         (openat_permissive): Fix typo in comment.
62489
62490         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62491         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62492         (_): Remove; no longer needed.
62493         (openat): Renamed from rpl_openat; no need for rpl_openat
62494         since openat.h renames openat for us.
62495         Replace most of the body with a call to openat_permissive,
62496         to avoid duplicate code.
62497         Port to (probably hypothetical) environments were mode_t is
62498         wider than int.
62499         (openat_permissive): Require mode arg, so that we can check
62500         types better.  Put it just after flags.  Change cwd failure
62501         indicator from pointer-to-bool to pointer-to-errno-value.
62502         All callers changed.
62503         Invoke openat_save_fail and/or openat_restore_fail if
62504         cwd_errno is null, so that openat can call us.
62505         (openat_permissive, fdopendir, fstatat, unlinkat):
62506         Simplify errno handling to avoid some duplicate code,
62507         as it's OK to set errno on success.
62508         * lib/openat.h: Revamp code so that function macros depend on
62509         __OPENAT_PREFIX only, not also on AT_FDCWD.
62510         (openat_ro): Remove.  Caller changed to use openat_permissive.
62511         (openat_permissive): Now a macro, if not a function.
62512         (openat_restore_fail, openat_save_fail): Now always functions,
62513         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62514
62515         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62516         and openat.c.
62517         * lib/mkdirat.c: Include openat-priv.h.
62518         Remove definitions of macros defined therein.
62519         * lib/openat.c: Likewise.
62520
62521         * lib/mkdirat.c (mkdirat): New file and function.
62522         * lib/openat.h (mkdirat): Declare.
62523
62524         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62525
62526         * lib/openat.h (openat_permissive): Declare.
62527         (openat_ro): Define.
62528
62529         * lib/openat.c (EXPECTED_ERRNO): New macro.
62530         (openat_permissive): New function -- used in remove.c rewrite.
62531         (all functions): Set errno just before returning, only if there
62532         was an actual failure.
62533         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62534
62535         Emulate openat-family functions using Linux's procfs, if possible.
62536         Idea and some code based on Ulrich Drepper's glibc changes.
62537
62538         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62539         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62540         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62541         before falling back on save_cwd and restore_cwd.
62542         (fdopendir, fstatat, unlinkat): Likewise.
62543
62544         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62545         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62546
62547         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62548         as second argument to va_arg.  Otherwise, some versions of gcc
62549         warn that `if this code is reached, the program will abort'.
62550
62551 2006-01-09  Jim Meyering  <jim@meyering.net>
62552
62553         Sync from coreutils.
62554         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62555         Require openat-priv.h.
62556
62557 2006-01-09  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/strnlen (Include): Use strnlen.h.
62560
62561 2006-01-09  Bruno Haible  <bruno@clisp.org>
62562
62563         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62564
62565 2006-01-09  Bruno Haible  <bruno@clisp.org>
62566
62567         * lib/sysexit_.h (EX_OK): New macro.
62568         Suggested by Martin Lambers <marlam@marlam.de>.
62569
62570 2006-01-09  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62573         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62574
62575 2006-01-09  Bruno Haible  <bruno@clisp.org>
62576
62577         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62578         numbers.
62579
62580 2006-01-09  Bruno Haible  <bruno@clisp.org>
62581
62582         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62583         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62584         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62585         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62586
62587 2006-01-09  Bruno Haible  <bruno@clisp.org>
62588
62589         * build-aux/javacomp.sh.in: New file, moved from lib/.
62590         * modules/javacomp-script (Files): Update.
62591         (configure.ac): Add AC_CONFIG_FILES invocation.
62592         (EXTRA_DIST): Remove variable.
62593
62594         * build-aux/javaexec.sh.in: New file, moved from lib/.
62595         * modules/javaexec (Files): Update.
62596         (configure.ac): Add AC_CONFIG_FILES invocation.
62597         (EXTRA_DIST): Remove javaexec.sh.in.
62598
62599         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62600         * modules/csharpcomp-script (Files): Update.
62601         (configure.ac): Add AC_CONFIG_FILES invocation.
62602         (EXTRA_DIST): Remove variable.
62603
62604         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62605         * modules/csharpexec (Files): Update.
62606         (configure.ac): Add AC_CONFIG_FILES invocation.
62607         (EXTRA_DIST): Remove csharpexec.sh.in.
62608
62609 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62610
62611         Sync from coreutils.
62612
62613         Add POSIX ACL support
62614         * lib/acl.h (copy_acl, set_acl): Add declarations.
62615         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62616         systems other than Linux.
62617         (chmod_or_fchmod): New function: use fchmod when possible,
62618         and chmod otherwise.
62619         (file_has_acl): Add a POSIX ACL implementation, with a
62620         Linux-specific subcase.
62621         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62622         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62623         acls are unsupported.
62624         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62625         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62626         are unsupported.
62627
62628 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62629
62630         Sync from coreutils.
62631         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62632
62633 2006-01-07  Bruno Haible  <bruno@clisp.org>
62634
62635         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62636         gl_EARLY.
62637
62638 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62639
62640         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62641         Problem reported for Mingw by Mark Junker.
62642
62643 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * README: Gnulib normally doesn't generate a tarball.
62646
62647 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62650         long int, not int, for nanosecond counts, so that people who are
62651         used to POSIX struct timespec won't be surprised.  Reported by Jim
62652         Meyering.
62653
62654 2005-12-28  Bruno Haible  <bruno@clisp.org>
62655
62656         * build-aux/config.rpath: Update from GNU gettext.
62657
62658 2005-12-16  Jim Meyering  <jim@meyering.net>
62659
62660         * modules/fprintftime: New module.
62661         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62662
62663 2005-12-16  Jim Meyering  <jim@meyering.net>
62664
62665         * m4/fprintftime.m4: New file.
62666
62667 2005-12-16  Jim Meyering  <jim@meyering.net>
62668
62669         * lib/fprintftime.c, lib/fprintftime.h: New files.
62670
62671 2005-12-15  Simon Josefsson  <jas@extundo.com>
62672
62673         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62674         new m4/socklen.m4.
62675
62676 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62677
62678         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62679         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62680
62681 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62682
62683         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62684         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62685         struct uparams is valid. Fall back to the default values if it is
62686         not.
62687
62688 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62689
62690         * modules/argp (Files): Add argp-pin.c
62691         (Depends-on): dirname
62692         (lib_SOURCES): Add argp-pin.c
62693
62694 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62695
62696         * m4/argp.m4:  Check if program_invocation_name and
62697         program_invocation_short_name are declared and define appropriate
62698         macros if they are not.
62699
62700 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62701
62702         * lib/argp-help.c (__argp_base_name): New function
62703         (__argp_short_program_name): Rewrite using __argp_base_name
62704         * lib/argp-namefrob.h: Define program_invocation_name and
62705         program_invocation_short_name if requested
62706         (__argp_base_name): Add prototype
62707         * lib/argp-parse.c (argp_def): Use gettext wrappers
62708         (argp_default_parser): Use __argp_base_name
62709         * lib/argp-pin.c: New file. Defines program_invocation_name and
62710         program_invocation_short_name on systems that lack them.
62711
62712 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62713
62714         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62715         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62716         porting problem reported by Georg Schwarz in
62717         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62718
62719 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62722         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62723         porting problem reported by Georg Schwarz in
62724         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62725
62726 2005-12-05  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62729         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62730         Reported by Mark Junker <mjscod@gmx.de>.
62731
62732 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62733
62734         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62735         Use implementation from Albert Chin, with some
62736         comments/corrections by Stepan Kasal and myself.
62737
62738 2005-12-02  Bruno Haible  <bruno@clisp.org>
62739
62740         * gnulib-tool (func_import): Accept GPLed build tool modules when
62741         --lgpl is given.
62742         * modules/csharpcomp-script: New file.
62743         * modules/csharpcomp: Depend on it.
62744         * modules/javacomp-script: New file.
62745         * modules/javacomp: Depend on it.
62746         Suggested by Simon Josefsson.
62747
62748 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62751         statement, to work around an HP-UX 10.20 compiler bug reported by
62752         Peter O'Gorman.
62753
62754 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * modules/savedir (Depends-on): Add openat.
62757
62758 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62761         (uintmax_t) [defined uintmax_t]: Do not declare.
62762         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62763         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62764         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62765         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62766         sake of portability to weird hosts that C allows (though we don't
62767         know of any practical examples).
62768
62769         * lib/savedir.h (fdsavedir): New decl.
62770         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62771         contains most of the former guts of savedir.
62772         (savedir): Use savedirstream.
62773         Include "openat.h".
62774
62775 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         * modules/obstack (Files): Add m4/ulonglong.m4.
62778         Problem reported by Davide Angelocola.
62779
62780 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62783         coreutils no longer futzes with rounding modes.
62784
62785 2005-11-14  Jim Meyering  <jim@meyering.net>
62786
62787         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62788         replacement of mkstemp.
62789
62790 2005-11-10  Simon Josefsson  <jas@extundo.com>
62791
62792         * lib/readline.c: Remove EOL.
62793
62794 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * modules/gethrxtime (Depends-on): Add gettime.
62797
62798 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62801         or gettimeofday; no longer needed.
62802
62803 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62806         time business.
62807         (gethrxtime) [! (HAVE_NANOUPTIME
62808         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62809         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62810         our own approximation.
62811
62812 2005-11-08  Eric Blake  <ebb9@byu.net>
62813
62814         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62815
62816 2005-11-08  Eric Blake  <ebb9@byu.net>
62817
62818         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62819
62820 2005-11-04  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool: Implement --update mode.
62823
62824 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         Fix porting problem reported by Theodoros V. Kalamatianos.
62827         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62828         Don't assume that futimes failing means we must fail.
62829
62830 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62833         variables to suggest the intended function of the PATH_MAX check.
62834
62835 2005-10-30  Kean Johnston  <jkj@sco.com>
62836
62837         Trivial changes to support SCO systems.
62838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62839         as PATH_MAX.
62840         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62841         where __ptr is null when no I/O is pending.
62842
62843 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62846         leave errno alone.  Problem reported by Dmitry V. Levin.
62847
62848 2005-10-28  Simon Josefsson  <jas@extundo.com>
62849
62850         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62851         Test more.
62852
62853         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62854
62855         * modules/md2, modules/md2-tests: New files.
62856
62857 2005-10-28  Simon Josefsson  <jas@extundo.com>
62858
62859         * m4/inet_ntop.m4: More tests.
62860
62861         * m4/gc-md2.m4, md2.m4: New file.
62862
62863 2005-10-28  Simon Josefsson  <jas@extundo.com>
62864
62865         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62866         "restrict" keywords, as per POSIX.  Protect the function
62867         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62868         Don't use K&R prototypes.  Check the sprintf return values.
62869         Re-define EAFNOSUPPORT if not present.  Indent.
62870
62871         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62872         suggested by Bruno Haible <bruno@clisp.org>.
62873
62874         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62875
62876         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62877
62878         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62879         libgcrypt).
62880
62881         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62882
62883         * lib/md2.h, lib/md2.c: New files.
62884
62885 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62886
62887         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62888         errno alone.  Problem reported by Frederic Jolliton.
62889
62890 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * modules/verify (License): Change from GPL to LGPL.  This is a
62893         tiny module and there are apparently near-equivalents that are
62894         under the BSD license.
62895
62896 2005-10-24  Simon Josefsson  <jas@extundo.com>
62897
62898         * modules/sha1: Relicense to LGPL.
62899
62900 2005-10-24  Simon Josefsson  <jas@extundo.com>
62901
62902         * lib/md4.h: Shrink buffer size, now that we changed the type.
62903
62904 2005-10-23  Simon Josefsson  <jas@extundo.com>
62905
62906         * gnulib-tool (func_import): Fix --tests-base.
62907
62908 2005-10-22  Simon Josefsson  <jas@extundo.com>
62909
62910         * modules/arcfour (Depends-on): Need stdint.
62911
62912 2005-10-22  Simon Josefsson  <jas@extundo.com>
62913
62914         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62915         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62916
62917 2005-10-22  Simon Josefsson  <jas@extundo.com>
62918
62919         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62920         suggested by Bruno Haible <bruno@clisp.org>.
62921
62922 2005-10-22  Simon Josefsson  <jas@extundo.com>
62923
62924         * lib/crc.h: Include stddef.h, for size_t.
62925
62926 2005-10-22  Simon Josefsson  <jas@extundo.com>
62927
62928         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62929         arcfour_context struct (simplify test vector testing in GNU
62930         Shishi).
62931
62932 2005-10-21  Simon Josefsson  <jas@extundo.com>
62933
62934         * modules/des, modules/des-tests: New files.
62935
62936         * modules/gc-des, modules/gc-des-tests: New files.
62937
62938         * tests/test-des.c, tests/test-gc-des.c: New file.
62939
62940 2005-10-21  Simon Josefsson  <jas@extundo.com>
62941
62942         * modules/arctwo, modules/arctwo-tests: New files.
62943
62944         * tests/test-arctwo.c: New file.
62945
62946         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62947
62948         * tests/test-gc-arctwo.c: New file.
62949
62950 2005-10-21  Simon Josefsson  <jas@extundo.com>
62951
62952         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62953         Bruno Haible <bruno@clisp.org>.
62954
62955         * m4/gc-des.m4: New file.
62956
62957 2005-10-21  Simon Josefsson  <jas@extundo.com>
62958
62959         * m4/arctwo.m4: New file.
62960
62961         * m4/gc-arctwo.m4: New file.
62962
62963 2005-10-21  Simon Josefsson  <jas@extundo.com>
62964
62965         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62966         block.
62967
62968 2005-10-21  Simon Josefsson  <jas@extundo.com>
62969
62970         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62971         <bruno@clisp.org>.
62972
62973         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62974
62975         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62976         Bruno Haible <bruno@clisp.org>.
62977
62978         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62979         <bruno@clisp.org>.
62980
62981 2005-10-21  Simon Josefsson  <jas@extundo.com>
62982
62983         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62984
62985 2005-10-21  Simon Josefsson  <jas@extundo.com>
62986
62987         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62988
62989 2005-10-21  Simon Josefsson  <jas@extundo.com>
62990
62991         * lib/des.h, lib/des.c: New files.
62992
62993         * lib/gc-gnulib.c: Support DES.c
62994
62995 2005-10-21  Simon Josefsson  <jas@extundo.com>
62996
62997         * lib/arctwo.h, lib/arctwo.c: New files.
62998
62999         * lib/gc-gnulib.c: Support ARCTWO.
63000
63001 2005-10-21  Simon Josefsson  <jas@extundo.com>
63002
63003         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63004         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63005
63006 2005-10-21  Simon Josefsson  <jas@extundo.com>
63007
63008         * gnulib-tool (func_import, func_create_testdir): Define automake
63009         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63010         Makefile.am snippet),
63011         suggested by Bruno Haible <bruno@clisp.org>.
63012
63013         * modules/gc (Makefile.am): Use it.
63014
63015 2005-10-21  Bruno Haible  <bruno@clisp.org>
63016
63017         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63018         patch.
63019
63020 2005-10-19  Simon Josefsson  <jas@extundo.com>
63021
63022         * tests/test-gc-rijndael.c: New file.
63023
63024         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63025
63026 2005-10-19  Simon Josefsson  <jas@extundo.com>
63027
63028         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63029         interface too.
63030
63031 2005-10-19  Simon Josefsson  <jas@extundo.com>
63032
63033         * tests/test-gc-arcfour.c: New file.
63034
63035         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63036
63037 2005-10-19  Simon Josefsson  <jas@extundo.com>
63038
63039         * modules/gc-md4, modules/gc-md4-tests: New file.
63040
63041         * tests/test-gc-md4.c: New file.
63042
63043 2005-10-19  Simon Josefsson  <jas@extundo.com>
63044
63045         * m4/gc-md4.m4: New file.
63046
63047 2005-10-19  Simon Josefsson  <jas@extundo.com>
63048
63049         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63050         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63051         <kasal@ucw.cz>.
63052
63053 2005-10-19  Simon Josefsson  <jas@extundo.com>
63054
63055         * m4/gc-arcfour.m4: New file.
63056
63057         * m4/gc-rijndael.m4: New file.
63058
63059 2005-10-19  Simon Josefsson  <jas@extundo.com>
63060
63061         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63062
63063 2005-10-19  Simon Josefsson  <jas@extundo.com>
63064
63065         * lib/gc-gnulib.c: Support ARCFOUR.
63066
63067 2005-10-19  Simon Josefsson  <jas@extundo.com>
63068
63069         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63070         support.
63071
63072         * lib/gc.h: Add ECB enum type.
63073
63074         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63075
63076 2005-10-18  Simon Josefsson  <jas@extundo.com>
63077
63078         * tests/test-md5.c: New file.
63079
63080         * modules/md5-tests: New file.
63081
63082 2005-10-18  Simon Josefsson  <jas@extundo.com>
63083
63084         * tests/test-md4.c: New file.
63085
63086         * modules/md4, modules/md4-tests: New files.
63087
63088 2005-10-18  Simon Josefsson  <jas@extundo.com>
63089
63090         * m4/md4.m4: New file.
63091
63092 2005-10-18  Simon Josefsson  <jas@extundo.com>
63093
63094         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63095
63096 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63097
63098         * gnulib-tool (func_create_testdir): Omit the second check whether
63099         BUILT_SOURCES in nonempty.
63100
63101 2005-10-17  Simon Josefsson  <jas@extundo.com>
63102
63103         * tests/test-rijndael.c: New file.
63104
63105 2005-10-17  Simon Josefsson  <jas@extundo.com>
63106
63107         * modules/sha1: Depend on stdint instead of md5.
63108
63109         * modules/md5: Depend on stdint, remove uint32_t.
63110
63111 2005-10-17  Simon Josefsson  <jas@extundo.com>
63112
63113         * modules/gc-sha1-tests: New file.
63114
63115         * tests/test-gc-sha1.c: New file.
63116
63117 2005-10-17  Simon Josefsson  <jas@extundo.com>
63118
63119         * m4/md5.m4: Remove call to uint32_t.m4.
63120
63121 2005-10-17  Simon Josefsson  <jas@extundo.com>
63122
63123         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63124
63125         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63126         md5.h.
63127
63128         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63129
63130         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63131
63132 2005-10-17  Simon Josefsson  <jas@extundo.com>
63133
63134         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63135
63136 2005-10-17  Simon Josefsson  <jas@extundo.com>
63137
63138         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63139
63140 2005-10-17  Simon Josefsson  <jas@extundo.com>
63141
63142         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63143
63144         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63145
63146 2005-10-17  Bruno Haible  <bruno@clisp.org>
63147
63148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63149         that it can also be used in a test.
63150
63151 2005-10-16  Bruno Haible  <bruno@clisp.org>
63152
63153         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63154         TESTS_ENVIRONMENT, so that individual tests can augment it.
63155
63156         * gnulib-tool (func_create_testdir): Use an intermediate target for
63157         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63158         macros, like $(ALLOCA_H), which cannot be passed through the command
63159         line.
63160
63161 2005-10-15  Simon Josefsson  <jas@extundo.com>
63162
63163         * modules/rijndael-tests: New file.
63164
63165         * modules/rijndael: New file.
63166
63167 2005-10-15  Simon Josefsson  <jas@extundo.com>
63168
63169         * m4/rijndael.m4: New file.
63170
63171 2005-10-15  Simon Josefsson  <jas@extundo.com>
63172
63173         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63174
63175         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63176
63177 2005-10-14  Simon Josefsson  <jas@extundo.com>
63178
63179         * tests/test-arcfour.c: New file.
63180
63181         * modules/arcfour, modules/arcfour-tests: New files.
63182
63183 2005-10-14  Simon Josefsson  <jas@extundo.com>
63184
63185         * m4/arcfour.m4: New file.
63186
63187 2005-10-14  Simon Josefsson  <jas@extundo.com>
63188
63189         * lib/arcfour.h, lib/arcfour.c: New files.
63190
63191 2005-10-14  Roland McGrath  <roland@redhat.com>
63192
63193         Import from libc.  [BZ #1331]
63194         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63195         macro argument.
63196         Reported by Matej Vela <vela@debian.org>.
63197
63198 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63201         include <wchar.h>; no longer needed.
63202
63203 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63204
63205         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63206
63207 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63208         and  Ulrich Drepper  <drepper@redhat.com>
63209
63210         Import from libc.
63211         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63212         instead of inline stream orientation test and two separate
63213         function calls.  Pay no attention to USE_IN_LIBIO.
63214
63215 2005-10-13  Simon Josefsson  <jas@extundo.com>
63216
63217         * modules/gc-hmac-md5-tests: New file.
63218
63219         * tests/test-gc-hmac-sha1.c: New file.
63220
63221         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63222
63223         * modules/gc-hmac-md5-tests: New file.
63224
63225         * tests/test-gc-md5.c: New file.
63226
63227         * modules/gc-md5-tests: New file.
63228
63229 2005-10-13  Simon Josefsson  <jas@extundo.com>
63230
63231         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63232         Move memory allocation outside of loop.
63233
63234 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63237         intermediate directory is in a read-only file system.  Problem
63238         reported by Eric Blake.
63239
63240 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63241
63242         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63243
63244 2005-10-12  Simon Josefsson  <jas@extundo.com>
63245
63246         * tests/test-hmac-sha1.c: New file.
63247
63248         * modules/hmac-sha1-tests: New file.
63249
63250         * modules/hmac-sha1: New file.
63251
63252 2005-10-12  Simon Josefsson  <jas@extundo.com>
63253
63254         * modules/gc-sha1: New file.
63255
63256 2005-10-12  Simon Josefsson  <jas@extundo.com>
63257
63258         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63259
63260         * tests/test-gc-pbkdf2-sha1.c: New file.
63261
63262 2005-10-12  Simon Josefsson  <jas@extundo.com>
63263
63264         * modules/gc-md5, modules/gc-hmac-md5: New files.
63265
63266         * modules/gc (Files): Remove md5, memxor and hmac files.
63267
63268 2005-10-12  Simon Josefsson  <jas@extundo.com>
63269
63270         * m4/gc-pbkdf2-sha1.m4: New file.
63271
63272         * m4/gc-hmac-sha1.m4: New file.
63273
63274         * m4/gc-sha1: New file.
63275
63276         * m4/hmac-sha1.m4: New file.
63277
63278 2005-10-12  Simon Josefsson  <jas@extundo.com>
63279
63280         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63281
63282         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63283
63284 2005-10-12  Simon Josefsson  <jas@extundo.com>
63285
63286         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63287         suggested by Bruno Haible <bruno@clisp.org>.
63288
63289 2005-10-12  Simon Josefsson  <jas@extundo.com>
63290
63291         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63292
63293 2005-10-12  Simon Josefsson  <jas@extundo.com>
63294
63295         * lib/gc-pbkdf2-sha1.c: New file.
63296
63297         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63298
63299 2005-10-12  Simon Josefsson  <jas@extundo.com>
63300
63301         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63302
63303         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63304
63305 2005-10-12  Simon Josefsson  <jas@extundo.com>
63306
63307         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63308         GC_USE_HMAC_MD5, respectively.
63309
63310         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63311         (gc_md5): Fix typo.
63312
63313         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63314
63315         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63316
63317         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63318
63319 2005-10-12  Bruno Haible  <bruno@clisp.org>
63320
63321         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63322         Reported by Stepan Kasal <kasal@ucw.cz>.
63323
63324 2005-10-11  Simon Josefsson  <jas@extundo.com>
63325
63326         * tests/test-crc.c: New file.
63327
63328         * modules/crc, modules/crc-tests: New files.
63329
63330 2005-10-11  Simon Josefsson  <jas@extundo.com>
63331
63332         * m4/crc.m4: New file.
63333
63334 2005-10-11  Simon Josefsson  <jas@extundo.com>
63335
63336         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63337
63338         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63339
63340         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63341
63342 2005-10-11  Simon Josefsson  <jas@extundo.com>
63343
63344         * lib/crc.h, lib/crc.c: New files.
63345
63346         * lib/gc.h (gc_hash_buffer): Add doc.
63347
63348 2005-10-11  Bruno Haible  <bruno@clisp.org>
63349
63350         * modules/c-strcasestr: New file.
63351         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63352
63353 2005-10-11  Bruno Haible  <bruno@clisp.org>
63354
63355         * modules/c-strcase: New file.
63356         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63357
63358 2005-10-11  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/strcasecmp.c: Include limits.h.
63361         (strcasecmp): Avoid integer overflow on exotic platforms.
63362         * lib/strncasecmp.c: Include limits.h.
63363         (strncasecmp): Avoid integer overflow on exotic platforms.
63364         Reported by Paul Eggert.
63365
63366 2005-10-11  Bruno Haible  <bruno@clisp.org>
63367
63368         * lib/c-strcasestr.h: New file, from GNU gettext.
63369         * lib/c-strcasestr.c: New file, from GNU gettext.
63370
63371 2005-10-11  Bruno Haible  <bruno@clisp.org>
63372
63373         * lib/c-strcase.h: New file, from GNU gettext.
63374         * lib/c-strcasecmp.c: New file, from GNU gettext.
63375         * lib/c-strncasecmp.c: New file, from GNU gettext.
63376
63377 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * modules/mempcpy (License): GPL -> LGPL.
63380         * modules/strchrnul (License): Likewise.
63381         * modules/sysexits (License): Likewise.
63382
63383 2005-10-08  Simon Josefsson  <jas@extundo.com>
63384
63385         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63386
63387 2005-10-07  Simon Josefsson  <jas@extundo.com>
63388
63389         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63390
63391 2005-10-06  Simon Josefsson  <jas@extundo.com>
63392
63393         * tests/test-hmac-md5.c: New file.
63394
63395         * modules/hmac-md5-tests: New file.
63396
63397         * modules/hmac-md5: New file.
63398
63399 2005-10-06  Simon Josefsson  <jas@extundo.com>
63400
63401         * m4/hmac-md5.m4: New file.
63402
63403         * m4/memxor.m4: Require gl_C_RESTRICT.
63404
63405 2005-10-06  Simon Josefsson  <jas@extundo.com>
63406
63407         * lib/memxor.c (memxor): Avoid casts and warnings.
63408
63409 2005-10-06  Simon Josefsson  <jas@extundo.com>
63410
63411         * lib/hmac-md5.c: New file.
63412
63413         * lib/hmac.h: New file.
63414
63415 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63418         promotes to int, not unsigned int, to catch the AIX 5.3
63419         compiler bug.
63420
63421 2005-10-05  Simon Josefsson  <jas@extundo.com>
63422
63423         * modules/memxor: New file.
63424
63425         * modules/iconv (Files): Move config.rpath to havelib, it is used
63426         there.
63427
63428         * modules/havelib (Files): Add config.rpath.
63429
63430 2005-10-05  Simon Josefsson  <jas@extundo.com>
63431
63432         * m4/memxor.m4: New file.
63433
63434 2005-10-05  Simon Josefsson  <jas@extundo.com>
63435
63436         * lib/memxor.c (memxor): Fix compiler error.
63437
63438         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63439         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63440
63441         * lib/memxor.h, lib/memxor.c: New files.
63442
63443         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63444         we assume all systems have it, suggested by Jim Meyering
63445         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63446         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63447         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63448         same reasons.
63449
63450 2005-10-05  Simon Josefsson  <jas@extundo.com>
63451
63452         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63453
63454 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63457         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63458         needed, since the source code now assumes these .h files.
63459
63460 2005-10-05  Derek Price  <derek@ximbiot.com>
63461
63462         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63463
63464 2005-10-05  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/stdint (License): Change to LGPL.
63467
63468 2005-10-04  Simon Josefsson  <jas@extundo.com>
63469
63470         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63471         D. Baushke" <mdb@gnu.org>.
63472
63473 2005-10-04  Bruno Haible  <bruno@clisp.org>
63474
63475         * lib/verify.h (verify_true): Provide alternative definition for C++.
63476
63477 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63480         (SSIZE_MAX): New macro, if not already defined.
63481         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63482         than 2 GiB.
63483
63484 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         Sync from coreutils.
63487         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63488         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63489         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63490         ULLONG_MAX doesn't work with 2.7.2.1.
63491
63492 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63495         From Ben Pfaff.
63496
63497         * modules/exclude (Depends-on): Depend on verify.
63498         * modules/strtoimax (Depends-on): Likewise.
63499         * modules/utimecmp (Depends-on): Likewise.
63500
63501 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * lib/exclude.c: Include verify.h.
63504         (verify): Remove.  All callers changed to use verify.h's version.
63505         * lib/strtoimax.c: Likewise.
63506         * lib/utimecmp.c: Likewis.e
63507
63508         Sync from coreutils.
63509         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63510         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63511         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63512         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63513         bother returning ENOSYS if settimeofday or stime fails; just let
63514         them return whatever errno they want to return.
63515         * lib/utimens.c: Include unistd.h, for dup2.
63516         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63517         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63518
63519 2005-10-02  Jim Meyering  <jim@meyering.net>
63520
63521         Sync from coreutils.
63522         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63523         from glibc-2.2.5 that fails for read-only files.
63524
63525 2005-10-02  Jim Meyering  <jim@meyering.net>
63526
63527         Sync from coreutils.
63528         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63529         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63530         `#if HAVE_CONFIG_H'.
63531         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63532         Remove AT_FDCWD test.
63533         Do not consume the fd unless successful.
63534         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63535         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63536         block, so that we don't even try to compile it if settimeofday is
63537         available.  This works around a compilation failure on OSF1 V5.1,
63538         due to stime requiring a `long int*' while tv_sec is `int'.
63539
63540 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63541
63542         Sync from coreutils.
63543         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63544         against `yes', rather than just testing for nonempty.
63545
63546 2005-10-01  Simon Josefsson  <jas@extundo.com>
63547
63548         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63549         and Darwin.
63550
63551         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63552         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63553         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63554         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63555         Check if struct addrinfo is declared.
63556
63557 2005-10-01  Simon Josefsson  <jas@extundo.com>
63558
63559         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63560         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63561         AI_* and EAI_* definitions.  Protect function declarations.
63562
63563 2005-10-01  Jim Meyering  <jim@meyering.net>
63564
63565         Sync from coreutils.
63566
63567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63568         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63569         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63570         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63571         in the inet and nsl libraries.  Required on Solaris 5.7.
63572
63573 2005-10-01  Jim Meyering  <jim@meyering.net>
63574
63575         Sync from coreutils.
63576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63577         in the inet and nsl libraries.  Required on Solaris 5.7.
63578
63579 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63580
63581         * lib/getdelim.c (getdelim): Remove unused variables.
63582
63583 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63586         so that the code works even with ancient cpp.  Portability problem
63587         with GCC 2.7.2.1 reported by Thomas M.Ott.
63588
63589 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63590
63591         * modules/regex (Depends-on): Add strcase.
63592
63593         * modules/gethostname (Licence): Change from GPL to LGPL, since
63594         gethostname.c is a trivial implementation of a standard library
63595         function.
63596         * modules/poll (License): Change from GPL to LGPL, since it's
63597         derived from LGPL code.
63598
63599 2005-09-27  Jim Meyering  <jim@meyering.net>
63600
63601         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63602         HAVE_CONFIG_H.
63603
63604         * lib/intprops.h (signed_type_or_expr__): Define.
63605         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63606         for unsigned types.
63607
63608 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * lib/verify.h (verify_expr): Remove, replacing with:
63611         (verify_true): New macro that returns true instead of void.
63612         (verify_type__): Remove.
63613         (verify): Use verify_true rather than verify_type__.
63614
63615 2005-09-26  Bruno Haible  <bruno@clisp.org>
63616
63617         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63618         is necessary.
63619         (lib_SOURCES): Remove mbchar.c.
63620         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63621         (Files): Add m4/mbrtowc.m4.
63622         * modules/mbiter: Likewise.
63623         * modules/mbuiter: Likewise.
63624
63625 2005-09-26  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63628         compile mbchar.c if they are not both present.
63629         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63630         * m4/mbiter.m4 (gl_MBITER): Likewise.
63631         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63632         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63633         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63634
63635 2005-09-25  Jim Meyering  <jim@meyering.net>
63636
63637         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63638         also uses socklen_t.
63639
63640 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         * lib/utimens.c (ENOSYS): Define if not already defined.
63643         (futimens): Support having a null PATH if the file descriptor
63644         is nonnegative.
63645
63646         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63647         Remove.
63648         (__attribute): Define to empty unless GCC 3.1 or later.
63649         This works around a core dump on OpenBSD 3.4, which has GCC
63650         2.95.3, which dumps core when given __attribute__(()).  It also
63651         simplifies other tests, since we really don't want to bother with
63652         worrying about which ancient version of GCC supported what.
63653         Original problem reported by Yoann Vandoorselaere, with part of
63654         the fix suggested by Derek Price.
63655
63656 2005-09-24  Jim Meyering  <jim@meyering.net>
63657
63658         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63659         so we can once again use a positive bitfield width of 1 -- now we
63660         don't have to explain why we were using a bitfield width of 2.
63661
63662 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63665         and similarly for the other external symbols.  Problem reported
63666         by James Gallager.
63667
63668         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63669         bug reported by Jim Meyering.
63670
63671         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63673         not needed, since socklen is a prerequisite module.
63674
63675 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63678         Problem reported by Eric Blake.
63679         (getaddrinfo): Initialize se so that it's not garbage.
63680         Redo internal storage allocation so that it doesn't make unportable
63681         assumptions about alignment.
63682         Fix a memory leak.
63683
63684         * lib/utimens.c (futimens): Use futimesat if available.
63685         Prefer it to futimes since it doesn't have the futimes bug.
63686
63687         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63688         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63689         Instead, declare a function that returns a pointer to an array,
63690         and use verify_type__ to declare the size of the array.
63691         Problem and germ of a solution reported by Bruno Haible.
63692         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63693         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63694
63695 2005-09-23  Jim Meyering  <jim@meyering.net>
63696
63697         Sync from coreutils.
63698         Correct build failure (socklen_t not defined) on at least
63699         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63700         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63701
63702 2005-09-23  Jim Meyering  <jim@meyering.net>
63703
63704         * modules/getaddrinfo (Depends-on): Add socklen.
63705
63706 2005-09-23  Bruno Haible  <bruno@clisp.org>
63707
63708         * tests/test-verify.c: New file.
63709
63710 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         Sync from coreutils.
63713
63714         * modules/argmatch (Depends-on): Add verify.
63715         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63716         unistd-safer.
63717         * modules/save-cwd (Depends-on): Likewise.
63718
63719         * modules/openat (Files): Add lib/openat-die.c.
63720         (Depends-on): Remove error, exitfail.
63721         Add dirname.
63722
63723         * modules/verify: New file.
63724         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63725         with "verify" module.
63726
63727 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         Sync from coreutils.
63730
63731         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63732         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63733         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63734         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63735         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63736         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63737         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63738         Don't bother checking for string.h, stdlib.h, unistd.h.
63739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63741         module's job.
63742         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63743         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63744
63745         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63746         (gl_GETDATE): Use it.
63747
63748         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63749
63750 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         Sync from coreutils.
63753
63754         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63755         stat-time.h.
63756         * lib/argmatch.h: Include verify.h
63757         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63758         (ARGMATCH_ASSERT): Remove; unused.
63759         * lib/canonicalize.c: Assume STDC_HEADERS.
63760         * lib/exclude.c: Include "strcase.h".
63761         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63762         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63763         and stdio-safer.h.
63764         (getusershell): Call fopen, not fopen_safer.
63765         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63766         Do not include unistd-safer.h.
63767         (save_cwd): Don't call fd_safer; no longer needed
63768         now that we include fcntl--.h.
63769
63770         * lib/getdate.y (relative_time): New type.
63771         (RELATIVE_TIME_0): New constant.
63772         (parser_control): Use relative_time instead of doing it ourselves.
63773         (%union): Add new relative_time rel member.
63774         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63775         Now typeless.
63776         (relunit, relunit_snumber): Now of type rel.
63777         (zone, rel, relunit, get_date): Adjust to above changes.
63778
63779         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63780         Do not include unistd-safer.h.
63781         (getloadavg): Don't call fd_safer; no longer needed
63782         now that we include fcntl--.h.
63783
63784         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63785         (make_dir_parents): Treat ENOSYS like EEXIST.
63786
63787         Improve quality of diagnostics on restore_cwd failure.
63788         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63789         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63790         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63791         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63792         each time through the loop.  Do not diagnose restore_cwd failure;
63793         that is the caller's job (and perhaps the caller does not care).
63794
63795         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63796         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63797         If the file already exists but is not a directory, don't bother
63798         to try to make its parents.
63799         Close potential file descriptor leak if we can't chdir("/") (!).
63800         Don't always return true if chdir($PWD) fails; return true only
63801         if the requested action was done successfully (except for the
63802         chdir($PWD)).
63803         Don't log final directory unless we actually made it.
63804         Refactor to avoid duplicate code to fix up permissions.
63805         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63806
63807         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63808         to make it a bit faster and (I hope) clearer.
63809         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63810         Fix bug in formats like %2N.
63811
63812         * lib/verify.h: New file.
63813
63814 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         Sync from coreutils.
63817         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63818
63819 2005-09-22  Jim Meyering  <jim@meyering.net>
63820
63821         Sync from coreutils.
63822
63823         * m4/lstat.m4 (gl_FUNC_LSTAT):
63824         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63825         Remove obsolete comment.
63826         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63827         * m4/xstrtod.m4: Likewise.
63828
63829         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63830
63831 2005-09-22  Jim Meyering  <jim@meyering.net>
63832
63833         Sync from coreutils.
63834
63835         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63836
63837         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63838         the .tm_year member, since otherwise gcc-4.0 would now warn about
63839         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63840
63841         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63842         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63843
63844         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63845         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63846         when run in a time zone for which daylight savings time is in effect
63847         for the starting date.
63848
63849         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63850         stop us from restricting permissions of just-created absolute-named
63851         directories.
63852         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63853         to restore initial working directory.
63854         * lib/mkdir-p.c (make_dir_parents): New parameter:
63855         different_working_dir, to tell caller if/when we change the working
63856         directory and are unable to return to the initial one.
63857         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63858         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63859         `return false'.  This fixes a bug introduced on 2004-07-30.
63860
63861         * lib/openat.c (fdopendir): Be sure to close the supplied
63862         file descriptor before returning.  This makes our replacement
63863         implementation a little closer to Solaris's, where fdopendir
63864         ties the file descriptor to the returned DIR* pointer.
63865         * lib/openat.c (unlinkat): New function.
63866         * lib/openat.h (unlinkat): Add prototype.
63867         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63868         (openat_restore_fail): Rename from openat_restore_die.
63869         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63870
63871         Provide an alternative to exiting immediately upon save_cwd or
63872         restore_cwd failure.  Now, an application can arrange e.g.,
63873         to perform a longjump in that case.
63874         * lib/openat.c: Include dirname.h.
63875         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63876         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63877         and openat_restore_die rather than calling error directly.
63878         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63879
63880         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63881         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63882         define.
63883
63884         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63885         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63886                             int utc, int nanoseconds);
63887         Background:
63888         date should not have to allocate a megabyte of virtual memory to
63889         handle a format argument like +%1048575T.  When implemented with
63890         strftime, it must allocate such a buffer, use strftime to fill it
63891         in, print it, then free it.
63892         With fprintftime, it simply prints everything and exits.
63893         With no need for memory allocation, that's one fewer way to fail.
63894         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63895         optional field width, not before, so we accept %9:z, not %:9z.
63896         (my_strftime): Be sure to use L_('x') for literals.
63897
63898         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63899         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63900         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63901         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63902         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63903         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63904         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63905         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63906         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63907         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63908         * lib/xgethostname.c, lib/xreadlink.c:
63909         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63910
63911         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63912         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63913         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63914         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63915         and don't include <sys/file.h>).
63916
63917 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63918
63919         Sync from coreutils.
63920
63921         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63922         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63923         [!LDAV_DONE]: Avoid unused variable warning.
63924
63925 2005-09-21  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/unicodeio.h (unicode_to_mb): New declaration.
63928
63929 2005-09-20  Derek Price  <derek@ximbiot.com>
63930
63931         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63932         getaddrinfo.h.
63933
63934 2005-09-20  Bruno Haible  <bruno@clisp.org>
63935
63936         * gnulib-tool: Remove trailing slashes from the values specified for
63937         --source-base, --m4-base, --tests-base, --aux-dir.
63938         Suggested by Simon Josefsson <jas@extundo.com>.
63939
63940 2005-09-20  Bruno Haible  <bruno@clisp.org>
63941
63942         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63943         func_modules_to_filelist, func_import, func_create_testdir): Make all
63944         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63945         change when gnulib-tool is invoked in a different locale.
63946
63947 2005-09-19  Simon Josefsson  <jas@extundo.com>
63948
63949         * m4/socklen.m4: Fix typo.
63950
63951 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63952
63953         Use a consistent style for including <config.h>.
63954         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63955         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63956         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63957         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63958         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63959         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63960         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63961         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63962         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63963         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63964         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63965         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63966         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63967         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63968         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63969         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63970         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63971         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63972         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63973         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63974         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63975         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63976         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63977         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63978         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63979         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63980         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63981         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63982         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63983         lib/xstrtoumax.c, lib/yesno.c:
63984         Standardize inclusion of config.h.
63985         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63986         lib/inttostr.h:  Removed inclusion of config.h from header files.
63987         * lib/inttostr.c:  Adjusted in-tree users.
63988         * lib/timespec.h: Remove superfluous warning to include config.h.
63989         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63990         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63991         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63992         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63993         config.h with HAVE_CONFIG_H.
63994
63995 2005-09-19  Jim Meyering  <jim@meyering.net>
63996
63997         * modules/pathmax (License): Change to LGPL.
63998
63999 2005-09-19  Derek Price  <derek@ximbiot.com>
64000
64001         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64002
64003 2005-09-19  Bruno Haible  <bruno@clisp.org>
64004
64005         * gnulib-tool (import): Provide default for --tests-base.
64006
64007 2005-09-19  Bruno Haible  <bruno@clisp.org>
64008
64009         * doc/quote.texi: New file, extracted from gnulib.texi.
64010         * doc/ctime.texi: New file, extracted from gnulib.texi.
64011         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64012         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64013         * doc/gnulib.texi: Include them.
64014
64015 2005-09-18  Bruno Haible  <bruno@clisp.org>
64016
64017         Portability fix.
64018         * gnulib-tool (func_readlink): New function.
64019         (func_ln_if_changed): Use it.
64020
64021 2005-09-18  Bruno Haible  <bruno@clisp.org>
64022
64023         * gnulib-tool: Support --with-tests also with --import.
64024         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64025         (func_import): Use variables $testsbase and $inctests. Emit a
64026         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64027         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64028         SUBDIRS += $testsdir.
64029         (func_create_testdir): Update.
64030
64031 2005-09-18  Bruno Haible  <bruno@clisp.org>
64032
64033         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64034         instead of $dry_run.
64035         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64036         (func_ln_if_changed): Don't handle dry-run here.
64037         (func_import): In dry-run mode, detect more precisely which actions
64038         would be performed, and don't use "...ing" verbs.
64039
64040 2005-09-18  Bruno Haible  <bruno@clisp.org>
64041
64042         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64043         (func_import): Use join on two temporary files instead of three nested
64044         loops, in order to determine which files are new or old.
64045
64046 2005-09-18  Bruno Haible  <bruno@clisp.org>
64047
64048         * gnulib-tool (func_import): Comment out code that spits out the
64049         new files with --dry-run.
64050
64051 2005-09-18  Bruno Haible  <bruno@clisp.org>
64052
64053         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64054
64055 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         * lib/stat-time.h: New file.
64058         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64059         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64060         in a different way.
64061         (timespec_cmp): New function.
64062         * lib/utimecmp.c: Include stat-time.h.
64063         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64064         members exist, not on the obsolescent ST_MTIM_NSEC.
64065         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64066
64067 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64070
64071 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64072
64073         * MODULES.html.sh (File system functions): Add stat-time.
64074         * modules/stat-time: New file.
64075         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64076         is now done in a different way, by the stat-time module.
64077         * modules/utimecmp (Depends-on): Add stat-time.
64078
64079 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * m4/st_mtim.m4: Remove.  Superseded by...
64082         * m4/stat-time.m4: New file.
64083         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64084         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64085
64086 2005-09-15  Derek Price  <derek@ximbiot.com>
64087
64088         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64089
64090 2005-09-15  Derek Price  <derek@ximbiot.com>
64091
64092         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64093         * lib/regex_internal.c: Ditto, using this...
64094         (__GNUC_PREREQ): ...new macro.
64095         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64096         using...
64097         (__GNUC_PREREQ): ...this new macro.
64098
64099         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64100
64101 2005-09-15  Derek Price  <derek@ximbiot.com>
64102             Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64105         changes, consolidating in...
64106         * lib/regex_internal.h: ...this file.
64107
64108 2005-09-13  Jim Meyering  <jim@meyering.net>
64109
64110         * lib/canon-host.c: Filter through gnu indent and reword comments
64111         slightly.
64112         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64113
64114 2005-09-13  Derek Price  <derek@ximbiot.com>
64115
64116         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64117         failure.
64118         Reported by Jim Meyering  <jim@meyering.net>.
64119
64120 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64121
64122         * lib/base64.c: Typo.
64123         (base64_encode): Put b64str in initialized data section.
64124
64125 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         Merge glibc and coreutils changes into gnulib, plus a few
64128         extra fixes.
64129         * lib/md5.c: Use #error rather than a string.
64130         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64131         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64132         (__attribute__): Define to empty for non recent-GCC.
64133         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64134         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64135         Renamed from their non-__ counterparts, with new macros replacing
64136         them if not _LIBC.  Add __THROW attribute.
64137         (rol): Remove.
64138         (struct md5_ctx): Align buffer if using GCC.
64139         * lib/sha1.h (struct sha1_ctx): Likewise.
64140         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64141         The old name was backwards.
64142         (NOTSWAP): Remove; not used.
64143         (rol): New macro, moved here from md5.h.
64144         (sha1_process_block): Remove a FIXME that doesn't make sense.
64145
64146 2005-09-12  Derek Price  <derek@ximbiot.com>
64147
64148         Return usable errors from canon-host.
64149         * lib/canon-host.h: New file.
64150         * lib/canon-host.c (canon_host): Wrap...
64151         (canon_host_r): ...this new function, which now relies exclusively on
64152         getaddrinfo.
64153         (ch_strerror): New function.
64154         (last_cherror): New global.
64155         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64156         interface.
64157         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64158         void *.
64159         (freeaddrinfo): Free ai->ai_canonname when set.
64160
64161 2005-09-12  Derek Price  <derek@ximbiot.com>
64162
64163         Make canon-host require getaddrinfo.
64164         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64165         AC_LIBSOURCE canon-host.h.  Call...
64166         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64167         gl_GETADDRINFO.
64168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64169
64170 2005-09-12  Derek Price  <derek@ximbiot.com>
64171
64172         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64173         LGPL.
64174         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64175
64176 2005-09-12  Derek Price  <derek@ximbiot.com>
64177
64178         * lib/gai_strerror.c: Include config.h when available.  Include
64179         getaddrinfo.h before other headers to test interface.
64180         Reported by Larry Jones <lawrence.jones@ugs.com>.
64181
64182 2005-09-12  Derek Price  <derek@ximbiot.com>
64183             Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * modules/glob (Files): Add glob-libc.h.
64186
64187 2005-09-12  Derek Price  <derek@ximbiot.com>
64188             Paul Eggert  <eggert@cs.ucla.edu>
64189
64190         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64191         glob_.h, glob-libc.h.
64192         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64193
64194 2005-09-12  Derek Price  <derek@ximbiot.com>
64195             Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64198         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64199         protecting things that should be done only in gnulib contexts.
64200         * lib/glob_.h: New file, containing only the glob things needed for
64201         gnulib.
64202         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64203         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64204         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64205         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64206         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64207         and to respect the namespace rules better.
64208
64209 2005-09-08  Simon Josefsson  <jas@extundo.com>
64210
64211         * modules/socklen: New file.
64212
64213 2005-09-08  Simon Josefsson  <jas@extundo.com>
64214
64215         * m4/socklen.m4: New file.
64216
64217 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * modules/utimens (Files): Add m4/utimbuf.m4, since
64220         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64221         Reported by Sergey Poznyakoff.
64222
64223 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64226         definitions, since that's the preferred style in glibc.
64227         Fix a minor spacing issue, and update copyright notice to match
64228         glibc's.
64229
64230 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64231
64232         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64233
64234 2005-09-06  Simon Josefsson  <jas@extundo.com>
64235
64236         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64237         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64238
64239 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64242         warning.
64243
64244 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64245
64246         * config/srclist.txt: Add glibc bug 1302.
64247
64248 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64249
64250         Change bitset word type from unsigned int to unsigned long int,
64251         as this has better performance on typical 64-bit hosts.
64252         Port bitset code to hosts with unusual word sizes.
64253         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64254         (build_collating_symbol):
64255         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64256         argument is a bitset.  This is merely a style issue, but it makes
64257         it clearer that an entire array is expected.
64258         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64259         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64260         Port to the case where bitset_word is not the same as unsigned int.
64261         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64262         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64263         Likewise.
64264         * lib/regexec.c (check_dst_limits_calc_pos_1,
64265         check_subexp_matching_top):
64266         (build_trtable, group_nodes_into_DFAstates):
64267         Likewise.
64268         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64269         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64270         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64271         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64272         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64273         * lib/regcomp.c (optimize_subexps, lower_subexp):
64274         Work even if bitset_word has holes in its bitwise representation.
64275         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64276         * lib/regexec.c (check_dst_limits_calc_pos_1,
64277         check_subexp_matching_top):
64278         Likewise.
64279         * lib/regex_internal.c (re_string_reconstruct):
64280         Don't assume UCHAR_MAX == 255.
64281         * lib/regex_internal.h (bitset_set_all): Likewise.
64282         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64283         All uses changed.
64284         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64285         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64286         All uses changed.
64287         (BITSET_WORD_MAX): New macro.
64288         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64289         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64290         (bitset_empty, bitset_copy):
64291         Prefer sizeof (bitset) to multiplying it out ourselves.
64292         (bitset_not_merge): Remove; unused.
64293         (bitset_contain): Return bool, not unsigned int with one bit on.
64294         All callers changed.
64295         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64296         alignment than re_node_set; do this by defining a new internal
64297         type struct dests_alloc and using it to allocate memory.
64298
64299 2005-09-05  Bruno Haible  <bruno@clisp.org>
64300
64301         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64302         links.
64303
64304 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64305
64306         * modules/size_max (Makefile.am): Add size_max.h
64307
64308 2005-09-04  Derek Price  <derek@ximbiot.com>
64309
64310         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64311
64312 2005-09-03  Simon Josefsson  <jas@extundo.com>
64313
64314         * gnulib-tool: Fix typo.
64315
64316 2005-09-03  Simon Josefsson  <jas@extundo.com>
64317
64318         * config/srclist.txt: Add glibc bug 1293.
64319
64320 2005-09-03  Derek Price  <derek@ximbiot.com>
64321
64322         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64323         From Larry Jones <lawrence.jones@ugs.com>.
64324
64325 2005-09-02  Simon Josefsson  <jas@extundo.com>
64326
64327         * modules/socklen: New file.
64328
64329 2005-09-02  Simon Josefsson  <jas@extundo.com>
64330
64331         * modules/havelib: New module.
64332
64333         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64334         Use havelib.
64335
64336 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         Check for arithmetic overflow when calculating sizes, to prevent
64339         some buffer-overflow issues.  These patches are conservative, in the
64340         sense that when I couldn't determine whether an overflow was possible,
64341         I inserted a run-time check.
64342         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64343         macros.
64344         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64345         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64346         (re_xnrealloc, re_x2nrealloc): New inline functions.
64347         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64348         parse_bracket_exp):
64349         (build_equiv_class, build_charclass): Check for arithmetic overflow
64350         in size expression calculations.
64351         * lib/regex_internal.c (re_string_realloc_buffers):
64352         (build_wcs_upper_buffer, re_node_set_add_intersect):
64353         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64354         (re_dfa_add_node, register_state): Likewise.
64355         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64356         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64357         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64358         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64359
64360 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64361
64362         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64363         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64364
64365 2005-09-02  Bruno Haible  <bruno@clisp.org>
64366
64367         Support for lib vs. lib64 distinction on biarch platforms.
64368         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64369         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64371
64372 2005-09-02  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (import): In the other first-use case, provide defaults
64375         as well.
64376
64377 2005-09-02  Bruno Haible  <bruno@clisp.org>
64378
64379         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64380         patches not yet found in the latest gettext release.
64381
64382 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64385         to avoid a collision with bits/local_lim.h in glibc.
64386         All uses changed.  Problem reported by Dmitry V. Levin in
64387         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64388
64389         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64390         bugs in int versus size_t comparisons.
64391         (re_string_context_at): Fix bug where the code assumed that
64392         Idx is signed.
64393
64394         Use bool where appropriate.
64395         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64396         All callers changed.
64397         (calc_eclosure_iter): Likewise, for ROOT arg.
64398         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64399         (build_charclass_op): Likewise, for NON_MATCH arg.
64400         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64401         (re_string_construct_common): Likewise, for ICASE arg.
64402         * lib/regexec.c (re_search_2_stub, re_search_stub):
64403         Likewise, for RET_LEN arg.
64404         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64405         (set_regs): Likewise, for FL_BACKTRACK arg.
64406         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64407         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64408         (calc_eclosure_iter, parse_bracket_exp):
64409         Use bool for internal variables that are booleans.
64410         * lib/regexec.c (re_search_internal, check_matching,
64411         proceed_next_node):
64412         (set_regs, build_sifted_states, sift_states_bkref):
64413         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64414         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64415         (find_collation_sequence_value):
64416         Likewise.
64417         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64418         (re_node_set_compare):
64419         Return bool, not int. All callers changed.
64420         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64421         (build_trtable, check_node_accept): Likewise.
64422         * lib/regex_internal.h: Include stdbool.h.
64423
64424         Fix bugs uncovered when converting to bool.
64425         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64426         failure instead of charging ahead blindly.
64427         * lib/regex_internal.c (register_state): Likewise.
64428         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64429         for freeing internal storage.
64430         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64431         bitset pieces used as boolean, to avoid undefined behavior
64432         on hosts that do int overflow checking.
64433
64434 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * config/srclist.txt: Add glibc bugs 1285-1287.
64437
64438 2005-09-01  Jim Meyering  <jim@meyering.net>
64439
64440         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64441         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64442         Require gl_STAT_MACROS, too.
64443
64444 2005-09-01  Bruno Haible  <bruno@clisp.org>
64445
64446         * gnulib-tool (import): In the first-use case, provide defaults.
64447
64448 2005-09-01  Bruno Haible  <bruno@clisp.org>
64449
64450         * gnulib-tool (func_import): Remove the .tmp files.
64451
64452 2005-09-01  Bruno Haible  <bruno@clisp.org>
64453
64454         * gnulib-tool (func_import): Fix handling of symbolic links.
64455
64456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64459         old glibc regex code mishandles strings longer than 2**31 bytes.
64460         This patch fixes this when the regex code is used in gnulib
64461         (i.e., outside glibc).
64462
64463         This patch should not affect the use of the regex code inside
64464         glibc.  No doubt this problem also needs to be handled for glibc
64465         as well, but the result will be an incompatible change to the
64466         glibc ABI, and the old ABI will have to be supported too.  That
64467         can be the the subject for another patch.
64468
64469         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64470         governing whether the rest of this patch is active.  By default,
64471         the macro is disabled and the patch has no effect.
64472         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64473         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64474         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64475         (re_match_2, re_set_registers): Use the new types.
64476         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64477         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64478         New macros.
64479         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64480         (re_string_context_at, bin_tree_t, re_dfastate_t):
64481         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64482         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64483         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64484         (re_string_char_size_at, re_string_wchar_at):
64485         (re_string_elem_size_at):
64486         Use the new types and macros to port to 64-bit hosts.
64487         Use unsigned types for internal values, so that the code
64488         mostly works even for arrays larger than SSIZE_MAX.
64489         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64490         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64491         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64492         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64493         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64494         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64495         (calc_inveclosure, parse_dup_op, build_range_exp):
64496         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64497         (fetch_number, create_token_tree, mark_opt_subexp):
64498         Likewise.
64499         * lib/regex_internal.c (re_string_construct_common,
64500         create_ci_newstate):
64501         (create_cd_newstate, re_string_allocate, re_string_construct):
64502         (re_string_realloc_buffers, build_wcs_upper_buffer):
64503         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64504         (re_string_reconstruct, re_string_peek_byte_case):
64505         (re_string_fetch_byte_case, re_string_context_at):
64506         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64507         (re_node_set_init_copy, re_node_set_add_intersect):
64508         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64509         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64510         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64511         (re_acquire_state, re_acquire_state_context, register_state):
64512         Likewise.
64513         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64514         search_cur_bkref_entry):
64515         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64516         (re_search_internal, re_search_2_stub, re_search_stub)
64517         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64518         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64519         (update_cur_sifted_state, check_dst_limits):
64520         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64521         (check_subexp_limits, sift_states_bkref, merge_state_array):
64522         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64523         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64524         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64525         (expand_bkref_cache, check_node_accept_bytes):
64526         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64527         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64528         (acquire_init_state_context, check_halt_node_context):
64529         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64530         (sift_states_backward, clean_state_log_if_needed):
64531         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64532         (find_recover_state, transit_state_sb, transit_state_mb):
64533         (transit_state_bkref, build_trtable, match_ctx_clean):
64534         Likewise.
64535         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64536         to work around an assumption that REG_MISSING is negative.
64537
64538         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64539         (seek_collating_symbol_entry) [defined _LIBC]:
64540         (lookup_collation_sequence_value) [defined _LIBC]:
64541         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64542         Use prototypes rather than old-style function definitions.
64543         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64544         (transit_state_sb) [0]:
64545         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64546
64547         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64548         rm_eo.
64549
64550         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64551         (optimize_subexps, lower_subexp):
64552         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64553         since the signed shift might overflow.  Use 1u<<31 instead.
64554         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64555         Likewise.
64556         * lib/regexec.c (check_dst_limits_calc_pos_1,
64557         check_subexp_matching_top): Likewise.
64558
64559         * lib/regcomp.c (optimize_subexps, lower_subexp):
64560         Use CHAR_BIT rather than 8, for clarity.
64561         * lib/regexec.c (check_dst_limits_calc_pos_1):
64562         (check_subexp_matching_top): Likewise.
64563         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64564         have to worry about portability issues when shifting it left.
64565         Remove no-longer-needed test for table_size > 0.
64566         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64567         in a word, as the resulting behavior is undefined.
64568         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64569         in one case, a <= should have been an <, and in another case the
64570         whole test was missing.
64571         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64572         the standard name CHAR_BIT.
64573         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64574         this is not true on one's complement and signed-magnitude hosts.
64575
64576         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64577         next_last_offset.
64578         (struct re_dfa_t): Remove unused member states_alloc.
64579         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64580
64581 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64584         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64585         and large-file glibc and in 32-bit large-file Solaris.
64586
64587 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64590         lengths fit in regoff_t; this isn't true if regoff_t is the same
64591         width as size_t.
64592         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64593         (= START + RANGE) instead of RANGE.  This avoids overflow
64594         problems when regoff_t is the same width as size_t.
64595         All callers changed.
64596         (re_search_2_stub): Check for overflow when adding the
64597         sizes of the two strings.
64598         (re_search_stub): Check for overflow when adding START
64599         to RANGE; if it occurs, substitute the extreme value.
64600
64601 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64604
64605 2005-08-31  Jim Meyering  <jim@meyering.net>
64606
64607         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64608         a pointer-to-const.
64609         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64610         (register_state): Likewise.
64611         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64612         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64613         (group_nodes_into_DFAstates): Likewise.
64614
64615 2005-08-31  Jim Meyering  <jim@meyering.net>
64616
64617         * check-module: Add a FIXME comment.
64618
64619 2005-08-31  Eric Blake  <ebb9@byu.net>
64620
64621         * modules/unistd-safer (Files): Add unistd--.h.
64622         * modules/stdio-safer (Files): Add stdio--.h.
64623
64624 2005-08-31  Derek Price  <derek@ximbiot.com>
64625
64626         * lib/getdelim.c (getdelim): Return EOF on EOF.
64627         Reported by Larry Jones <lawrence.jones@ugs.com>.
64628
64629 2005-08-31  Bruno Haible  <bruno@clisp.org>
64630
64631         Avoid unnecessary diffs in the generated lib/Makefile.am.
64632         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64633         the generated files.
64634         (func_import): Don't set cmd.
64635
64636 2005-08-31  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/strstr.c: Include <stddef.h>, for NULL.
64639         * lib/strcasestr.c: Likewise.
64640         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64641
64642 2005-08-31  Bruno Haible  <bruno@clisp.org>
64643
64644         * gnulib-tool: New option --macro-prefix.
64645         (func_import): Use macro_prefix.
64646         (import): Handle option --macro-prefix.
64647
64648 2005-08-31  Bruno Haible  <bruno@clisp.org>
64649
64650         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64651         Also use new variables cached_lgpl, cached_libtool.
64652
64653 2005-08-31  Bruno Haible  <bruno@clisp.org>
64654
64655         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64656         always instantiating them.
64657
64658 2005-08-31  Bruno Haible  <bruno@clisp.org>
64659
64660         * gnulib-tool (func_import): Read the previous cached settings
64661         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64662         earlier added by gnulib but are now dropped. Warn when a gnulib file
64663         overwrites a non-gnulib file.
64664
64665 2005-08-31  Bruno Haible  <bruno@clisp.org>
64666
64667         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64668         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64669         projects that don't keep autogenerated files in CVS. Put into
64670         actioncmd only the specified modules, not the transitive closure.
64671
64672 2005-08-31  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64675         Create directories that shall be filled.
64676         (import): Don't look for gl_* macros in configure.ac. Recurse across
64677         all directories containing a gnulib-cache.m4 files, if meaningful.
64678
64679 2005-08-31  Bruno Haible  <bruno@clisp.org>
64680
64681         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64682         (import): Set seen_libtool when we see gl_LIBTOOL.
64683
64684 2005-08-31  Bruno Haible  <bruno@clisp.org>
64685
64686         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64687         declaration macro definitions from generated gnulib.m4.
64688
64689 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64690
64691         * lib/iconvme.h: Add prototype for iconv_alloc.
64692
64693 2005-08-29  Simon Josefsson  <jas@extundo.com>
64694
64695         * lib/iconvme.c: Fix errno.
64696
64697 2005-08-29  Bruno Haible  <bruno@clisp.org>
64698
64699         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64700         that it works when the directory contains spaces.
64701
64702 2005-08-29  Bruno Haible  <bruno@clisp.org>
64703
64704         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64705
64706 2005-08-29  Bruno Haible  <bruno@clisp.org>
64707
64708         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64709         Emit more advice.
64710
64711 2005-08-29  Bruno Haible  <bruno@clisp.org>
64712         and Stepan Kasal  <kasal@ucw.cz>
64713
64714         * check-module: If more parameters are given, check each of them
64715         separately; add more exceptions, as noted by Jim Meyering.
64716         (check_module): New procedure.
64717         (%exempt_header): Now contains all exceptions.
64718
64719 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64720
64721         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64722
64723 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64724
64725         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64726
64727 2005-08-28  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/gnulib-tool.m4: New file.
64730
64731 2005-08-27  Jim Meyering  <jim@meyering.net>
64732
64733         * modules/unistd-safer (Files): Add pipe-safer.c.
64734         * modules/fcntl-safer (Files): Add creat-safer.c.
64735
64736 2005-08-27  Jim Meyering  <jim@meyering.net>
64737
64738         * m4/stdlib-safer.m4: New file.  From coreutils.
64739         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64740         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64741         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64742         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64743         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64744
64745 2005-08-27  Jim Meyering  <jim@meyering.net>
64746
64747         * lib/fopen-safer.c: Merge minor changes from coreutils.
64748         * lib/dup-safer.c: Likewise.
64749         * lib/fd-safer.c: Likewise.
64750
64751         Merge from coreutils.
64752         * lib/stdio--.h: New file.
64753         * lib/stdlib--.h: New file.
64754         * lib/mkstemp-safer.c: New file.
64755
64756         GNU tar needs these.
64757         * lib/pipe-safer.c: New file.
64758         * lib/creat-safer.c: New file.
64759         * lib/fcntl--.h (creat): Define to creat_safer.
64760         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64761         * lib/unistd--.h (pipe): Define to pipe_safer.
64762         * lib/unistd-safer.h: Declare pipe_safer.
64763
64764 2005-08-26  Simon Josefsson  <jas@extundo.com>
64765
64766         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64767         Haible <bruno@clisp.org>.
64768
64769 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         * lib/regex_internal.h: Remove all references to
64772         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64773         or better.
64774         (bitset_not, bitset_merge, bitset_not_merge):
64775         (bitset_mask, re_string_allocate, re_string_construct):
64776         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64777         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64778         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64779         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64780         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64781         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64782         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64783         (re_acquire_state_context):
64784         Remove unnecessary forward decls.
64785         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64786         Put __attribute at function definition,
64787         now that the function decl has been removed.
64788         * lib/regex_internal.c (re_string_peek_byte_case):
64789         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64790         Likewise.
64791
64792 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64793
64794         * m4/regex.m4: Add AC_PREREQ(2.50).
64795         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64796
64797 2005-08-25  Simon Josefsson  <jas@extundo.com>
64798
64799         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64800         __fsetlocking.
64801
64802 2005-08-25  Simon Josefsson  <jas@extundo.com>
64803
64804         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64805         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64806         GLIBC specific code.
64807
64808 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         Make regex safe for g++.  This fixes one real bug (an "err"
64811         that should have been "*err").  g++ problem reported by
64812         Sam Steingold.
64813         * lib/regex_internal.h (re_calloc): New macro, consistent with
64814         re_malloc etc.  All callers of calloc changed to use re_calloc.
64815         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64816         not int.  All callers changed.
64817         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64818         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64819         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64820         (find_recover_state): Change "err" to "*err"; this fixes what
64821         appears to be a real bug.
64822         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64823         versus int.
64824
64825 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         * modules/regex (Depends-on): Add malloc, since the code
64828         assumes that !malloc(0) means failure.
64829
64830 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64831
64832         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64833
64834         alloca modernization/simplification for regex.
64835         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64836         needs to be at the start of the file, and can be moved into
64837         regex_internal.h and simplified.
64838         * lib/regex_internal.h: Include <alloca.h>.
64839         (__libc_use_alloca) [!defined _LIBC]: New macro.
64840         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64841         now works outside glibc.
64842
64843 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         * config/srclist.txt: Add glibc bugs 1241, 1245.
64846
64847 2005-08-25  Jim Meyering  <jim@meyering.net>
64848
64849         * lib/open-safer.c: Include <config.h>.
64850         Otherwise, we'd lose LARGEFILE support in any file using
64851         e.g. "fcntl--.h"
64852
64853 2005-08-25  Bruno Haible  <bruno@clisp.org>
64854
64855         * m4/minmax.m4: Require autoconf 2.52.
64856         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64857         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64858         alternatives of translit over the alphabet.
64859         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64860
64861 2005-08-24  Simon Josefsson  <jas@extundo.com>
64862
64863         * tests/test-getpass.c: New file.
64864
64865 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64868         for GNU regex features.
64869
64870 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64873         * lib/regex.h (regerror): Likewise.
64874
64875         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64876         requires this.  (The code never needed it.)
64877
64878         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64879         All uses of recently-renamed identifiers changed to use the new,
64880         POSIX-compliant names.  The code will build and run just fine
64881         without these changes, but it's better to eat our own dog food
64882         and use the standard-conforming names.
64883
64884         * lib/regex.h: Fix a multitude of POSIX name space violations.
64885         These changes have an effect only for programs that define
64886         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64887         do not change anything for programs compiled in the normal way.
64888         Also, there is no effect on the ABI.
64889
64890         (_REGEX_SOURCE): New macro.
64891         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64892         defined and _GNU_SOURCE is not; this fixes a name space violation.
64893
64894         Rename the following macros to obey POSIX requirements.
64895         The old names are still visible as macros if _REGEX_SOURCE is defined.
64896         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64897         RE_BACKSLASH_ESCAPE_IN_LISTS.
64898         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64899         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64900         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64901         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64902         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64903         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64904         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64905         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64906         (REG_INTERVALS): renamed from RE_INTERVALS.
64907         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64908         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64909         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64910         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64911         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64912         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64913         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64914         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64915         RE_UNMATCHED_RIGHT_PAREN_ORD.
64916         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64917         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64918         (REG_DEBUG): renamed from RE_DEBUG.
64919         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64920         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64921         unusual, since we can't clash with the POSIX REG_ICASE.
64922         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64923         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64924         (REG_NO_SUB): renamed from RE_NO_SUB.
64925         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64926         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64927         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64928         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64929         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64930         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64931         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64932         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64933         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64934         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64935         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64936         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64937         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64938         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64939         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64940         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64941         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64942         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64943         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64944         (REG_FIXED): Renamed from REGS_FIXED.
64945         (REG_NREGS): Renamed from RE_NREGS.
64946
64947         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64948         of other REG_* macros, since POSIX says the user is allowed to
64949         #undef these macros selectively.
64950
64951         (reg_errcode_t): Update comment stating what other tables need
64952         to be consistent.
64953
64954         Rename the following enum values to obey POSIX requirements.
64955         The old names are still visible as macros.
64956         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64957         is not defined, since GNU is supposed to be a superset of POSIX as
64958         much as possible, and since we want reg_errcode_t to be a signed
64959         type for implementation consistency.
64960         (_REG_NOERROR): Renamed from REG_NOERROR.
64961         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64962         (_REG_BADPAT): Renamed from REG_BADPAT.
64963         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64964         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64965         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64966         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64967         (_REG_EBRACK): Renamed from REG_EBRACK.
64968         (_REG_EPAREN): Renamed from REG_EPAREN.
64969         (_REG_EBRACE): Renamed from REG_EBRACE.
64970         (_REG_BADBR): Renamed from REG_BADBR.
64971         (_REG_ERANGE): Renamed from REG_ERANGE.
64972         (_REG_ESPACE): Renamed from REG_ESPACE.
64973         (_REG_BADRPT): Renamed from REG_BADRPT.
64974         (_REG_EEND): Renamed from REG_EEND.
64975         (_REG_ESIZE): Renamed from REG_ESIZE.
64976         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64977         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64978         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64979         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64980         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64981
64982         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64983         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64984         changed.  But support the old name if the new one is not defined
64985         and if _REGEX_SOURCE.
64986
64987         Change the following member names in struct re_pattern_buffer.
64988         The old names are still supported if !_REGEX_SOURCE.
64989         The new names are always supported, regardless of _REGEX_SOURCE.
64990         (re_buffer): Renamed from buffer.
64991         (re_allocated): Renamed from allocated.
64992         (re_used): Renamed from used.
64993         (re_syntax): Renamed from syntax.
64994         (re_fastmap): Renamed from fastmap.
64995         (re_translate): Renamed from translate.
64996         (re_can_be_null): Renamed from can_be_null.
64997         (re_regs_allocated): Renamed from regs_allocated.
64998         (re_fastmap_accurate): Renamed from fastmap_accurate.
64999         (re_no_sub): Renamed from no_sub.
65000         (re_not_bol): Renamed from not_bol.
65001         (re_not_eol): Renamed from not_eol.
65002         (re_newline_anchor): Renamed from newline_anchor.
65003
65004         Change the following member names in struct re_registers.
65005         The old names are still supported if !_REGEX_SOURCE.
65006         The new names are always supported, regardless of _REGEX_SOURCE.
65007         (rm_num_regs): Renamed from num_regs.
65008         (rm_start): Renamed from start.
65009         (rm_end): Renamed from end.
65010
65011         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65012         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65013         Prepend __ to parameter names.
65014
65015         Undo yesterday's changes.
65016
65017 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65020         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65021         lib/regex.c.
65022
65023 2005-08-24  Jim Meyering  <jim@meyering.net>
65024
65025         Sync from coreutils.
65026         * m4/fcntl-safer.m4: New file.
65027
65028         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65029         and object files for this module.
65030
65031 2005-08-24  Jim Meyering  <jim@meyering.net>
65032
65033         Sync from coreutils.
65034         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65035
65036 2005-08-24  Jim Meyering  <jim@meyering.net>
65037
65038         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65039         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65040
65041 2005-08-24  Jim Meyering  <jim@meyering.net>
65042
65043         * modules/fcntl-safer: New module.
65044         * modules/fts (Depends-on): Add fcntl-safer.
65045         * MODULES.html.sh (File descriptor based Input/Output):
65046         Add fcntl-safer.
65047
65048 2005-08-24  Bruno Haible  <bruno@clisp.org>
65049
65050         Support for unit test modules.
65051         * modules/README: Mention tests modules.
65052         * modules/TEMPLATE-TESTS: New file.
65053         * gnulib-tool: New options --extract-tests-module, --with-tests and
65054         --tests-base (unused for the moment).
65055         (testsbase, inctests): New variables.
65056         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65057         (func_verify_module): Exclude TEMPLATE-TESTS.
65058         (func_verify_nontests_module, func_verify_tests_module): New functions.
65059         (func_get_dependencies): Add implicit dependency for tests modules.
65060         (func_get_tests_module): New function.
65061         (func_modules_transitive_closure): When --with-tests was specified,
65062         include the unit tests as well, unless explicitly avoided.
65063         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65064         (func_emit_tests_Makefile_am): New function.
65065         (func_create_testdir): When --with-tests was specified, emit a
65066         tests/ directory.
65067         * MODULES.html.sh (Future developments): Update.
65068
65069 2005-08-24  Bruno Haible  <bruno@clisp.org>
65070
65071         * modules/tls-tests: New file.
65072         * tests/test-tls.c: New file, from GNU gettext.
65073
65074 2005-08-24  Bruno Haible  <bruno@clisp.org>
65075
65076         * modules/lock-tests: New file.
65077         * tests/test-lock.c: New file, from GNU gettext.
65078
65079 2005-08-24  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/lock.h: Add multiple inclusion guard.
65082         * lib/tls.h: Add multiple inclusion guard.
65083
65084 2005-08-24  Bruno Haible  <bruno@clisp.org>
65085
65086         * gnulib-tool: Add support for the --aux-dir option to
65087         --create-testdir, --create-megatestdir, --test, --megatest.
65088         (func_create_testdir, func_create_megatestdir): Optionally emit a
65089         AC_CONFIG_AUX_DIR directive.
65090         (create-testdir, create-megatestdir, test, megatest): Provide a
65091         default value for $auxdir.
65092
65093 2005-08-24  Bruno Haible  <bruno@clisp.org>
65094
65095         * gnulib-tool (import): Use compound statement instead of subshell
65096         where possible.
65097
65098 2005-08-24  Bruno Haible  <bruno@clisp.org>
65099
65100         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65101
65102 2005-08-24  Bruno Haible  <bruno@clisp.org>
65103
65104         * gnulib-tool (func_version): Update.
65105
65106 2005-08-24  Bruno Haible  <bruno@clisp.org>
65107
65108         * gnulib-tool (func_import, func_create_testdir,
65109         func_create_megatestdir): Quote all autoconf macro arguments.
65110
65111 2005-08-24  Bruno Haible  <bruno@clisp.org>
65112
65113         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65114         option --force, because --force causes the aclocal.m4 of each
65115         subdirectory to be newer than the corresponding config.h.in.
65116
65117 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65120         All contents moved to gl_REGEX.
65121         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65122         assume that it does.
65123
65124 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * lib/regex.h (REG_NOSYS)
65127         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65128         Define, since POSIX requires it as of 2001.
65129         (_REG_ENOSYS)
65130         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65131         New private symbol, used to keep the enum signed in all cases.
65132         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65133         Youngman in
65134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65135
65136         * lib/regex_internal.c (re_string_skip_chars, register_state):
65137         (calc_state_hash):
65138         Remove forward decls; no longer needed now that we use prototypes.
65139         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65140         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65141         (clean_state_log_if_needed): Likewise.
65142
65143 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * config/srclist.txt: Add glibc bugs 1231-1233.
65146
65147 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65148
65149         Fix problems reported by Sam Steingold in
65150         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65151         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65152         assumed that reg_errcode_t is a signed type, which is not
65153         necessarily true if _XOPEN_SOURCE is not defined.
65154         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65155         since some compilers warn about it otherwise.
65156
65157 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65158
65159         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65160         (init_word_char, create_initial_state, duplicate_node_closure):
65161         (fetch_token, peek_token_bracket, build_range_exp):
65162         (build_collating_symbol): Remove forward decls; no longer needed
65163         now that we use prototypes.
65164
65165         * lib/regcomp.c:
65166         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65167         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65168         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65169         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65170         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65171         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65172         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65173         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65174         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65175         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65176         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65177         (build_charclass, build_charclass_op, fetch_number, create_tree):
65178         (create_token_tree, mark_opt_subexp, duplicate_tree):
65179         Use prototypes rather than old-style definitions.
65180
65181         * lib/regex_internal.c:
65182         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65183         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65184         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65185         (re_string_reconstruct, re_string_peek_byte_case):
65186         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65187         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65188         (re_node_set_init_copy, re_node_set_add_intersect):
65189         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65190         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65191         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65192         (re_acquire_state, re_acquire_state_context, register_state):
65193         (create_ci_newstate, create_cd_newstate, free_state):
65194         Likewise.
65195         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65196         re_search_2):
65197         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65198         (re_search_internal, prune_impossible_nodes):
65199         (acquire_init_state_context, check_matching, static):
65200         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65201         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65202         (update_regs, sift_states_backward, build_sifted_states):
65203         (clean_state_log_if_needed, merge_state_array):
65204         (update_cur_sifted_state, add_epsilon_src_nodes):
65205         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65206         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65207         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65208         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65209         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65210         (check_arrival, check_arrival_add_next_nodes):
65211         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65212         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65213         (check_node_accept_bytes, check_node_accept, extend_buffers):
65214         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65215         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65216         (sift_ctx_init):
65217         Likewise.
65218
65219         * lib/regex_internal.h:
65220         (re_string_allocate, re_string_construct, re_string_reconstruct):
65221         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65222         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65223         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65224         (re_string_context_at, re_string_peek_byte_case):
65225         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65226         is defined, since we now use prototypes always.
65227
65228         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65229         C89 or better.  All uses removed.
65230
65231 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * config/srclist.txt: Add glibc bugs 1220-1227.
65234
65235 2005-08-20  Jim Meyering  <jim@meyering.net>
65236
65237         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65238         of unused local, dfa.
65239
65240 2005-08-20  Bruno Haible  <bruno@clisp.org>
65241
65242         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65243
65244 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65245
65246         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65247         (re_node_set_insert_last, re_dfa_add_node):
65248         Rename local variables to avoid GCC shadowing warnings.
65249
65250 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65253         [defined lint]: Suppress bogus uninitialized-variable warnings.
65254
65255         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65256         and let the caller return REG_ESPACE if out of space.  This
65257         removes an uninitialied-variable warning with GCC 4.0.1, and also
65258         avoids taking the address of a local variable.  All callers
65259         changed.
65260
65261 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65262
65263         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65264         $LIBCSRC/posix/regexec.c.
65265         Add glibc bug 1217 for regcomp.c.
65266
65267 2005-08-19  Jim Meyering  <jim@meyering.net>
65268
65269         * lib/regexec.c (proceed_next_node): Redo local variables to
65270         avoid GCC shadowing warnings.
65271
65272 2005-08-18  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/strstr.c (strstr): Fix return value in multibyte case.
65275         * lib/strcasestr.c (strcasestr): Likewise.
65276
65277 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65278
65279         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65280
65281 2005-08-17  Jim Meyering  <jim@meyering.net>
65282
65283         Make the %s format (seconds since the epoch) work for a negative
65284         number and when used with a zero-padded field width, e.g. %015s.
65285
65286         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65287         label so that it precedes the code to set `digits'.  Otherwise,
65288         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65289         print `00-22'.  Now, it prints `-0022', as it should.
65290
65291 2005-08-17  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/strstr (Files): Add m4/mbrtowc.m4.
65294         (Depends-on): Add mbuiter.
65295
65296 2005-08-17  Bruno Haible  <bruno@clisp.org>
65297
65298         * modules/strcasestr: New file.
65299         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65300         strcasestr.
65301
65302 2005-08-17  Bruno Haible  <bruno@clisp.org>
65303
65304         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65305
65306 2005-08-17  Bruno Haible  <bruno@clisp.org>
65307
65308         * modules/mbuiter: New file.
65309         * MODULES.html.sh (Extended multibyte and wide character utilities):
65310         Add mbuiter.
65311
65312 2005-08-17  Bruno Haible  <bruno@clisp.org>
65313
65314         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65315         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65316
65317 2005-08-17  Bruno Haible  <bruno@clisp.org>
65318
65319         * m4/strcasestr.m4: New file.
65320
65321 2005-08-17  Bruno Haible  <bruno@clisp.org>
65322
65323         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65324         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65325
65326 2005-08-17  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/strcasestr.h: New file.
65329         * lib/strcasestr.c: New file.
65330
65331 2005-08-17  Bruno Haible  <bruno@clisp.org>
65332
65333         * lib/strcasecmp.c: Use mbuiter.h.
65334
65335 2005-08-17  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/mbuiter.h: New file.
65338
65339 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65342         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65343         and gl_GETOPT are both invoked via different paths (as happens
65344         with GNU tar CVS because it uses both argp and getopt), the former
65345         wins.
65346
65347 2005-08-16  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/tls: New file.
65350         * MODULES.html.sh (Multithreading): Add tls.
65351
65352 2005-08-16  Bruno Haible  <bruno@clisp.org>
65353
65354         * modules/strnlen1: New file.
65355         * MODULES.html.sh (String handling): Add strnlen1.
65356
65357 2005-08-16  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/strcase (Files): Add m4/mbrtowc.m4.
65360         (Depends-on): Add strnlen1, mbchar.
65361
65362 2005-08-16  Bruno Haible  <bruno@clisp.org>
65363
65364         * modules/mbiter: New file.
65365         * MODULES.html.sh (Extended multibyte and wide character utilities):
65366         Add mbiter.
65367
65368 2005-08-16  Bruno Haible  <bruno@clisp.org>
65369
65370         * modules/mbfile: New file.
65371         * MODULES.html.sh (Extended multibyte and wide character utilities):
65372         Add mbfile.
65373
65374 2005-08-16  Bruno Haible  <bruno@clisp.org>
65375
65376         * modules/mbchar: New file.
65377         * MODULES.html.sh (Extended multibyte and wide character utilities):
65378         New section.
65379
65380 2005-08-16  Bruno Haible  <bruno@clisp.org>
65381
65382         * m4/tls.m4: New file, from GNU gettext.
65383
65384 2005-08-16  Bruno Haible  <bruno@clisp.org>
65385
65386         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65387         always.
65388         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65389
65390 2005-08-16  Bruno Haible  <bruno@clisp.org>
65391
65392         * m4/mbiter.m4: New file.
65393
65394 2005-08-16  Bruno Haible  <bruno@clisp.org>
65395
65396         * m4/mbfile.m4: New file.
65397
65398 2005-08-16  Bruno Haible  <bruno@clisp.org>
65399
65400         * m4/mbchar.m4: New file.
65401
65402 2005-08-16  Bruno Haible  <bruno@clisp.org>
65403
65404         * lib/tls.h: New file, from GNU gettext.
65405         * lib/tls.c: New file, from GNU gettext.
65406
65407 2005-08-16  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/strnlen1.h: New file.
65410         * lib/strnlen1.c: New file.
65411
65412 2005-08-16  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65415         (mbi_init): Update.
65416         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65417         NUL byte, not after it.
65418
65419 2005-08-16  Bruno Haible  <bruno@clisp.org>
65420
65421         * lib/strcase.h (strcasecmp): Add note in comments.
65422         * lib/strncasecmp.c: Use code from strcasecmp.c.
65423         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65424         (strcasecmp): Work correctly in multibyte locales.
65425
65426 2005-08-16  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/mbiter.h: New file.
65429
65430 2005-08-16  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/mbfile.h: New file.
65433
65434 2005-08-16  Bruno Haible  <bruno@clisp.org>
65435
65436         * lib/mbchar.h: New file.
65437         * lib/mbchar.c: New file.
65438
65439 2005-08-16  Bruno Haible  <bruno@clisp.org>
65440
65441         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65442         the valid ones. Makes the comparison operations transitive:
65443         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65444         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65445
65446 2005-08-15  Simon Josefsson  <jas@extundo.com>
65447
65448         * modules/ssize_t (License): Change to 'unlimited'.
65449
65450         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65451
65452 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65455         Add comments for each pending glibc patch.
65456
65457 2005-08-15  Bruno Haible  <bruno@clisp.org>
65458
65459         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65460         __cplusplus is defined.
65461
65462 2005-08-14  Jim Meyering  <jim@meyering.net>
65463
65464         Sync from coreutils.
65465
65466         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65467         Use the hash-table-based cycle-detection code not just when
65468         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65469         Reported by James Youngman in
65470         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65471         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65472         FTS_TIGHT_CYCLE_CHECK.
65473         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65474         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65475         once again.
65476         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65477         * lib/fts.c (fd_safer): Remove decl.
65478         Include fcntl--.h rather than unistd-safer.h
65479         (fts_safe_changedir): Don't call fd_safer; no longer needed
65480         now that we include fcntl--.h.
65481
65482 2005-08-12  Simon Josefsson  <jas@extundo.com>
65483
65484         * modules/getndelim2: Use ssize_t module.
65485         * modules/getnline: Likewise.
65486         * modules/safe-read: Likewise.
65487         * modules/xreadlink: Likewise.
65488
65489         * modules/ssize_t: New file.
65490
65491 2005-08-12  Simon Josefsson  <jas@extundo.com>
65492
65493         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65494
65495 2005-08-12  Simon Josefsson  <jas@extundo.com>
65496
65497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65498         ssize_t.
65499
65500 2005-08-12  Simon Josefsson  <jas@extundo.com>
65501
65502         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65503         readline, getdelim and check_version.
65504         (Support for systems lacking ISO C 99: Sizes of integer types):
65505         Add size_max.
65506
65507 2005-08-12  Bruno Haible  <bruno@clisp.org>
65508
65509         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65510
65511 2005-08-11  Simon Josefsson  <jas@extundo.com>
65512
65513         * modules/readline: New file.
65514
65515         * modules/strnlen (Files): Add strnlen.h.
65516
65517 2005-08-11  Simon Josefsson  <jas@extundo.com>
65518
65519         * m4/readline.m4: New file.
65520
65521 2005-08-11  Simon Josefsson  <jas@extundo.com>
65522
65523         * lib/readline.h, readline.c: New file.
65524
65525 2005-08-11  Simon Josefsson  <jas@extundo.com>
65526
65527         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65528         gl_AVOID.
65529
65530 2005-08-11  Bruno Haible  <bruno@clisp.org>
65531
65532         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65533
65534 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65535
65536         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65537
65538 2005-08-10  Simon Josefsson  <jas@extundo.com>
65539
65540         * tests/test-iconvme.c: New file.
65541
65542 2005-08-10  Simon Josefsson  <jas@extundo.com>
65543
65544         * m4/strnlen.m4: New file.
65545
65546         * m4/strndup.m4: Don't check for strnlen declaration, done in
65547         strnlen.m4.
65548
65549 2005-08-10  Simon Josefsson  <jas@extundo.com>
65550
65551         * lib/strndup.c: Use strnlen.h.
65552
65553         * lib/strnlen.h: New file.
65554
65555 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65556
65557         * README: Typos.
65558
65559 2005-08-02  Simon Josefsson  <jas@extundo.com>
65560
65561         * modules/readline: New file.
65562
65563 2005-08-02  Simon Josefsson  <jas@extundo.com>
65564
65565         * modules/getdelim: New file.
65566
65567         * modules/getline: Rewrite, don't use getndelim2.
65568
65569 2005-08-02  Simon Josefsson  <jas@extundo.com>
65570
65571         * m4/getline.m4: Separate out getdelim stuff into separate module.
65572
65573         * m4/getdelim.m4: New file.
65574
65575 2005-08-02  Simon Josefsson  <jas@extundo.com>
65576
65577         * lib/getline.h, getline.c: Rewrite.
65578
65579         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65580
65581 2005-07-31  Bruno Haible  <bruno@clisp.org>
65582
65583         * lib/lock.h (gl_lock_initializer): New macro.
65584         (gl_lock_define_initialized): Use it.
65585         (gl_rwlock_initializer): New macro.
65586         (gl_rwlock_define_initialized): Use it.
65587         (gl_recursive_lock_initializer): New macro.
65588         (gl_recursive_lock_define_initialized): Use it.
65589
65590 2005-07-30  Karl Berry  <karl@gnu.org>
65591
65592         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65593         Report from Ben Pfaff, regarding getopt.
65594
65595 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65598         normal way.
65599         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65600         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65601         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65602         (gl_GETOPT): Use the new macros.  Most of the implementation
65603         is moved to the new macros.  This is for programs like Emacs
65604         that don't want all the functionality of gl_GETOPT.
65605
65606 2005-07-26  Bruno Haible  <bruno@clisp.org>
65607
65608         * m4/lock.m4: Update from GNU gettext.
65609
65610 2005-07-26  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/lock.h: Update from GNU gettext.
65613         * lib/lock.c: Update from GNU gettext.
65614
65615 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65618         obsolescent AC_TRY_RUN.  Include the default includes files, for
65619         'exit'.
65620
65621 2005-07-24  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/visibility: New file.
65624         * MODULES.html.sh (Misc): Add visibility.
65625
65626 2005-07-24  Bruno Haible  <bruno@clisp.org>
65627
65628         * m4/visibility.m4: New file.
65629
65630 2005-07-24  Bruno Haible  <bruno@clisp.org>
65631
65632         * doc/visibility.texi: New file.
65633
65634 2005-07-22  Bruno Haible  <bruno@clisp.org>
65635
65636         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65637         $(ALLOCA_H), redundant through BUILT_SOURCES.
65638         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65639         redundant through BUILT_SOURCES.
65640         * modules/byteswap (Makefile.am): Remove explicit dependency on
65641         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65642         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65643         $(FNMATCH_H), redundant through BUILT_SOURCES.
65644         * modules/getopt (Makefile.am): Remove explicit dependency on
65645         $(GETOPT_H), redundant through BUILT_SOURCES.
65646         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65647         redundant through BUILT_SOURCES.
65648         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65649         redundant through BUILT_SOURCES.
65650         * modules/stdbool (Makefile.am): Remove explicit dependency on
65651         $(STDBOOL_H), redundant through BUILT_SOURCES.
65652         * modules/stdint (Makefile.am): Remove explicit dependency on
65653         $(STDINT_H), redundant through BUILT_SOURCES.
65654         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65655         Remove explicit dependency on $(SYSEXITS_H).
65656         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65657
65658 2005-07-18  Simon Josefsson  <jas@extundo.com>
65659
65660         * lib/check-version.c (check_version): Accept identical versions too.
65661
65662 2005-07-18  Bruno Haible  <bruno@clisp.org>
65663
65664         * modules/lock: New file.
65665         * MODULES.html.sh (Multithreading): New section.
65666
65667 2005-07-18  Bruno Haible  <bruno@clisp.org>
65668
65669         * m4/lock.m4: New file, from GNU gettext.
65670
65671 2005-07-18  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/lock.h: New file, from GNU gettext.
65674         * lib/lock.c: New file, from GNU gettext.
65675
65676 2005-07-18  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/lock.h (gl_once_t): New type.
65679         (gl_once_define, gl_once): New macros.
65680         * lib/lock.c (fresh_once): New variable.
65681         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65682         functions.
65683
65684 2005-07-16  Simon Josefsson  <jas@extundo.com>
65685
65686         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65687         workaround, suggested by Bruno.
65688
65689 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * modules/xalloc (Depends-on): Add xalloc-die.
65692         * modules/xvasprintf (Depends-on): Add xalloc-die.
65693
65694 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65697         with a minor change.
65698
65699 2005-07-15  Bruno Haible  <bruno@clisp.org>
65700
65701         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65702         When using lib/poll.c, define poll as rpl_poll.
65703
65704 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * modules/argp (Depends-on): Remove unlocked-io.
65707
65708 2005-07-14  Derek Price  <derek@ximbiot.com>
65709
65710         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65711         for glob symlink bug.
65712
65713 2005-07-14  Bruno Haible  <bruno@clisp.org>
65714
65715         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65716         Instead, test for *_unlocked function declarations directly.
65717
65718 2005-07-11  Simon Josefsson  <jas@extundo.com>
65719
65720         * modules/size_max: New file.
65721
65722         * modules/xsize: Depend on size_max module for size_max.m4.
65723
65724 2005-07-11  Simon Josefsson  <jas@extundo.com>
65725
65726         * lib/size_max.h: New file.
65727
65728 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65731         copyright symbol and the year.
65732         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65733         (version_etc_va): Use parameterized copyright notice.
65734         Reword to conform to the current GNU coding standards.
65735
65736 2005-07-11  Karl Berry  <karl@gnu.org>
65737
65738         * doc/gnulib.texi (Quoting): new node.
65739         (Initial import): more info, from Patrice.
65740
65741 2005-07-11  Bruno Haible  <bruno@clisp.org>
65742
65743         * gnulib-tool (func_usage): Document option --avoid.
65744         (Command line options): Handle --avoid.
65745         (func_acceptable): New function.
65746         (func_modules_transitive_closure): Use it.
65747
65748 2005-07-11  Bruno Haible  <bruno@clisp.org>
65749
65750         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65751         Reported by Jim Meyering.
65752
65753 2005-07-10  Bruno Haible  <bruno@clisp.org>
65754
65755         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65756         Needed when size_t is smaller than 'unsigned int'.
65757         Reported by Paul Eggert.
65758
65759 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65760
65761         * modules/argp (Depends-on): Add unlocked-io
65762
65763 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65764
65765         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65766         block of defines.
65767
65768 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65771         fix now.
65772
65773 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65774         and Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65777         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65778
65779 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * modules/regex (Files): Add lib/regex_internal.c,
65782         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65783         (Depends-on): Add extensions.
65784         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65785
65786 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65789         pathconf.
65790         * m4/same.m4 (gl_SAME): Likewise.
65791         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65792
65793         * m4/regex.m4: Adjust to new libc regex implementation.
65794         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65795         all the .c and .h parts of (the new) regex.
65796         Quote the m4 stuff better.
65797         Check for RE_ICASE bug of old gnulib.
65798         Check for REG_STARTEND of recent libc.
65799         Rename local variables from jm_* to gl_*.
65800         Quote operand of "test -f".
65801         Say "recent enough" version of libc, not "version 2".
65802         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65803         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65804         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65805         Remove check for btowc, isascii.
65806         Require AM_LANGINFO_CODESET.
65807
65808 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         * lib/regex.c, regex.h: Sync from libc.
65811         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65812         * lib/regexec.c:
65813         New files, synced from libc, except that regex_internal.h
65814         currently has a small porting fix.
65815
65816 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65819         regex_internal.c, regexec.c.
65820         Add regex_internal.h too, but as a comment, since the libc version
65821         is currently broken in gnulib mode.
65822
65823 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Support programs like Emacs that use gnulib but not gettext.
65826         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65827         * modules/gettext-h: New file.
65828         * modules/gettext (Files): Remove lib/gettext.h.
65829         (Depends-on): Add gettext-h.
65830         (Makefile.am): Remove lib_SOURCES.
65831         * modules/argmatch, modules/c-stack, modules/closeout:
65832         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65833         * modules/execute, modules/file-type, modules/getaddrinfo:
65834         * modules/getopt, modules/human, modules/javacomp:
65835         * modules/javaexec, modules/mkdir-p, modules/obstack:
65836         * modules/openat, modules/pagealign_alloc, modules/pipe:
65837         * modules/quotearg, modules/regex, modules/rpmatch:
65838         * modules/unicodeio, modules/userspec, modules/version-etc:
65839         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65840         * modules/xsetenv:
65841         Depend on gettext-h, not gettext.
65842
65843 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         * gnulib-tool (func_import): Add support for 'public domain' license.
65846         * modules/alloca, modules/atexit, modules/memmove:
65847         Now public domain, not GPL.
65848         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65849         * modules/realloc, modules/strerror, modules/strtod:
65850         Now LGPL, not GPL.
65851
65852 2005-07-05  Bruno Haible  <bruno@clisp.org>
65853
65854         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65855         autoconf CVS. Needed for mingw.
65856
65857 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65858
65859         Remove the dependency of the strftime module on the tzset module.
65860         * modules/strftime (Depends-on): Remove dependency on tzset.
65861
65862 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65863
65864         Remove the dependency of the strftime module on the tzset module.
65865         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65866         gl_FUNC_TZSET_CLOBBER.
65867
65868 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         Remove the dependency of the strftime module on the tzset module.
65871         * lib/strftime.c (my_strftime)
65872         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65873         Copy the input structure, to work around some of the bug with
65874         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65875         Solaris releases, you should also use the tzset module, but we won't
65876         require it as a dependency any more since we don't want LGPLed code
65877         to depend on GPLed code.
65878
65879 2005-07-02  Jim Meyering  <jim@meyering.net>
65880
65881         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65882         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65883         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65884         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65885
65886 2005-07-02  Jim Meyering  <jim@meyering.net>
65887
65888         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65889
65890 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65893         declares only 'struct timespec;' (!).
65894
65895 2005-07-01  Jim Meyering  <jim@meyering.net>
65896
65897         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65898         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65899         * lib/save-cwd.c, tempname.c:
65900         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65901         and don't include <sys/file.h>).
65902
65903 2005-06-29  Jim Meyering  <jim@meyering.net>
65904
65905         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65906         type name.  Use the variable name instead.
65907         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65908         Likewise.
65909
65910 2005-06-28  Simon Josefsson  <jas@extundo.com>
65911
65912         * modules/check-version (Files): Add check-version.m4.
65913
65914 2005-06-28  Simon Josefsson  <jas@extundo.com>
65915
65916         * m4/check-version.m4: New file, suggested by Jim Meyering
65917         <jim@meyering.net>.
65918
65919 2005-06-28  Simon Josefsson  <jas@extundo.com>
65920
65921         * lib/check-version.h, lib/check-version.c: New files.
65922
65923 2005-06-28  Simon Josefsson  <jas@extundo.com>
65924
65925         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65926         collision with global variable.  Better indentation.  Don't
65927         increment buffer pointer beyond buffer end.  Based on comments
65928         from Paul Eggert <eggert@cs.ucla.edu>.
65929
65930         * lib/base64.h: Indent.
65931
65932 2005-06-28  Simon Josefsson  <jas@extundo.com>
65933
65934         * doc/gnulib.texi (Library version handling): New section.
65935
65936 2005-06-28  Jim Meyering  <jim@meyering.net>
65937
65938         * check-module (find_included_lib_files): Hard-code another
65939         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65940         but modules/fts-lgpl (correctly) does not list those files.
65941
65942         * modules/canonicalize (Files): Add lib/pathmax.h.
65943
65944 2005-06-25  Simon Josefsson  <jas@extundo.com>
65945
65946         * modules/check-version: New file.
65947
65948 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65949
65950         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65951         initializer of struct addrinfo, as an indication that we don't
65952         care how many members the structure has.
65953
65954 2005-06-24  Derek Price  <derek@ximbiot.com>
65955         and Bruno Haible  <bruno@clisp.org>
65956
65957         Remove stat module & update lstat.
65958         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65959         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65960         * m4/stat.m4: Remove this file.
65961
65962 2005-06-24  Derek Price  <derek@ximbiot.com>
65963         and Bruno Haible  <bruno@clisp.org>
65964
65965         Remove stat module & update lstat.
65966         * lib/stat.c: Remove this file...
65967         (slash_aware_lstat): ...moving this content and its support...
65968         * lib/lstat.c (rpl_lstat): ...into here.
65969         * lib/lstat.h: New file.
65970
65971 2005-06-24  Derek Price  <derek@ximbiot.com>
65972         and Bruno Haible  <bruno@clisp.org>
65973
65974         Remove stat module & update lstat.
65975         * config/srclist.txt (libc sources): Remove stat.
65976
65977 2005-06-24  Derek Price  <derek@ximbiot.com>
65978         and Bruno Haible  <bruno@clisp.org>
65979
65980         Remove stat module & update lstat.
65981         * MODULES.html.sh (stat): Remove.
65982         * MODULES.html: Regenerated.
65983         * modules/lstat (Description): Correct function name.
65984         (Files): Add "lstat.h".
65985         (Depends-on): Remove stat, add xalloc, stat-macros.
65986         * modules/stat: Remove this file.
65987         (Include): Add "lstat.h", remove <sys/stat.h>.
65988
65989 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65992         (ranged_convert): Don't save conversion in a temporary struct.
65993         This causes a warning with GCC 4.0.0, and anyway in the typical
65994         case it's not worth the extra 100 bytes or so of code.
65995         (ranged_convert, __mktime_internal): When calling a function via a
65996         pointer P, use P () rather than (*P) (), as we now assume C89 or
65997         better.
65998
65999 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66002         "who -r" failed to give output.  Problem reported by Tim Waugh.
66003
66004         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66005         (xcalloc): Use it to avoid needless tests.
66006         Problem reported by Jim Meyering.
66007
66008 2005-06-20  Derek Price  <derek@ximbiot.com>
66009
66010         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66011         unnecessary for Autoconfs > 2.59c.
66012
66013 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66014
66015         * lib/argp.h (__option_is_short): Check upper limit of
66016         __key. Isprint() requires its argument to have the value
66017         of an unsigned char or EOF.
66018
66019 2005-06-16  Jim Meyering  <jim@meyering.net>
66020
66021         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66022         when either N or S is zero.
66023
66024 2005-06-16  Derek Price  <derek@ximbiot.com>
66025
66026         * m4/bison.m4: Declare YACC & YFLAGS precious.
66027
66028 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66031         multibyte string or pattern, fall back on unibyte matching.
66032         Problem reported by James Youngman.
66033
66034 2005-06-08  Bruno Haible  <bruno@clisp.org>
66035
66036         * modules/csharpcomp: New file.
66037         * MODULES.html.sh (C#): Add csharpcomp.
66038
66039 2005-06-08  Bruno Haible  <bruno@clisp.org>
66040
66041         * m4/csharpcomp.m4: New file, from GNU gettext.
66042
66043 2005-06-08  Bruno Haible  <bruno@clisp.org>
66044
66045         * lib/csharpcomp.h: New file, from GNU gettext.
66046         * lib/csharpcomp.c: New file, from GNU gettext.
66047         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66048
66049 2005-06-08  Bruno Haible  <bruno@clisp.org>
66050
66051         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66052         warning on mingw.
66053
66054 2005-06-07  Derek Price  <derek@ximbiot.com>
66055
66056         Sync from CVS.
66057         * lib/glob_.h: Indent nested #ifdef.
66058
66059 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         Sync from coreutils.
66062         Use "file name" when talking about file names, instead of "filename"
66063         or "path", as per the GNU coding standards.
66064         * lib/mkdir-p.c: Renamed from makepath.c.
66065         (make_dir_parents): Renamed from make_path.  All callers changed.
66066         * lib/mkdir-p.h: Likewise.  All includers changed.
66067         * lib/filenamecat.c: Renamed from path-concat.c.
66068         (file_name_concat): Renamed from path_concat.  All callers changed.
66069         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66070         * lib/filenamecat.h: Likewise.  All includers changed.
66071         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66072         in comments or local variable names.
66073         * lib/basename.c: Likewise.
66074         * lib/canonicalize.c, canonicalize.h: Likewise.
66075         * lib/dirname.c, dirname.h: Likewise.
66076         * lib/euidaccess.c: Likewise.
66077         * lib/exclude.c: Likewise
66078         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66079         * lib/fsusage.c, fsuage.h: Likewise.
66080         * lib/fts.c, fts_.h: Likewise.
66081         * lib/getcwd.c: Likewise.
66082         * lib/getloadavg.c: Likewise.
66083         * lib/mkstemp.c: Likewise.
66084         * lib/mountlist.c, mountlist.h: Likewise.
66085         * lib/openat.c, openat.h: Likewise.
66086         * lib/readlink-stub.c: Likewise.
66087         * lib/readutmp.c, readutmp.h: Likewise.
66088         * lib/rename.c: Likewise.
66089         * lib/rmdir.c: Likewise.
66090         * lib/same.c: Likewise.
66091         * lib/savedir.c: Likewise.
66092         * lib/stripslash.c: Likewise.
66093         * lib/tempname.c: Likewise.
66094         * lib/xreadlink.c: Likewise.
66095         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66096         All uses changed.
66097         * lib/exclude.h: Likewise.
66098
66099         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66100         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66101         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66102         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66103         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66104         files have been getting away with it for years (MORE/BSD 4.3
66105         is extinct now).
66106         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66107         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66108
66109         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66110         Define to 256, not 255, as per modern POSIX.
66111
66112 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         Sync from coreutils.
66115         Use "file name" when talking about file names, instead of "filename"
66116         or "path", as per the GNU coding standards.
66117         * MODULES.html.sh: mkdir-p renamed from makepath.
66118         filenamecat renamed from path-concat.
66119         * modules/filenamecat: Renamed from modules/path-concat.
66120         (Files): filenamecat.h and filenamecat.c renamed from
66121         path-concat.h and path-concat.c.
66122         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66123         (Include): filenamecat.h, not path-concat.h.
66124         * modules/mkdir-p: Renamed from modules/makepath.
66125         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66126         makepath.c.
66127         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66128         (Include): mkdir-p.h, not makepath.h.
66129
66130 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         Sync from coreutils.
66133         * m4/mkdir-p.m4: Renamed from makepath.m4.
66134         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66135         Rename files from makepath.c to mkdir-p.c, and from
66136         makepath.h to mkdir-p.h.
66137         * m4/filenamecat.m4: Renamed from path-concat.m4.
66138         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66139         Rename files from path-concat.c to filenamecat.c,
66140         and from path-concat.h to filenamecat.h.
66141         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66142         "file name" in local variables or comments.
66143         * m4/rename.m4: Likewise.
66144
66145 2005-06-01  Bruno Haible  <bruno@clisp.org>
66146
66147         * modules/csharpexec: New file.
66148         * MODULES.html.sh (C#): New section.
66149
66150 2005-06-01  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/csharp.m4: New file, from GNU gettext.
66153         * m4/csharpexec.m4: New file, from GNU gettext.
66154
66155 2005-06-01  Bruno Haible  <bruno@clisp.org>
66156
66157         * lib/csharpexec.h: New file, from GNU gettext.
66158         * lib/csharpexec.c: New file, from GNU gettext.
66159         * lib/csharpexec.sh.in: New file, from GNU gettext.
66160
66161 2005-05-31  Derek Price  <derek@ximbiot.com>
66162             Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         Sync from cvs.
66165         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66166
66167 2005-05-31  Derek Price  <derek@ximbiot.com>
66168             Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         Sync from cvs.
66171         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66172
66173 2005-05-29  Derek Price  <derek@ximbiot.com>
66174
66175         * config/srclist.txt (glob_.h, glob.c): Add these files.
66176
66177 2005-05-29  Derek Price  <derek@ximbiot.com>
66178
66179         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66180         * modules/glob: New file.
66181         * modules/getlogin_r: Add link to POSIX spec in description.
66182
66183 2005-05-29  Derek Price  <derek@ximbiot.com>
66184             Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * m4/glob.m4: New file.
66187
66188 2005-05-29  Derek Price  <derek@ximbiot.com>
66189             Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         * lib/glob_.h, lib/glob.c: New files.
66192
66193 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66196         * modules/fts-lgpl (Depends-on): Remove gettext.
66197
66198 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66201         and don't require gt_INTTYPES_PRI.
66202
66203 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66206
66207         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66208         the configuration hassle isn't worth it.
66209         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66210         (LONGEST_MODIFIER, PRIuMAX): Remove.
66211
66212 2005-05-27  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66215
66216 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66219         _POSIX_PTHREAD_SEMANTICS for Solaris.
66220
66221 2005-05-25  Derek Price  <derek@ximbiot.com>
66222
66223         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66224
66225 2005-05-25  Derek Price  <derek@ximbiot.com>
66226             Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66229         * lib/getlogin_r.c, getlogin_r.h: New files.
66230
66231 2005-05-25  Bruno Haible  <bruno@clisp.org>
66232             Derek Price  <derek@ximbiot.com>
66233
66234         * lib/getlogin_r.h: Simplify API documentation.
66235
66236 2005-05-23  Derek Price  <derek@ximbiot.com>
66237
66238         * modules/minmax (Files): Add m4/minmax.m4.
66239         (configure.ac): Add gl_MINMAX.
66240
66241 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66244         so that unistd-safer.h (GPL'ed code) need not be included.
66245
66246 2005-05-22  Bruno Haible  <bruno@clisp.org>
66247
66248         * m4/minmax.m4: New file.
66249         Based on a patch by Derek Price <derek@ximbiot.com>.
66250
66251 2005-05-22  Bruno Haible  <bruno@clisp.org>
66252
66253         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66254         (INT64_MIN): Fix definition.
66255         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66256
66257         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66258         NEED_SIGNED_INT_TYPES.
66259
66260         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66261         HAVE_SYSTEM_INTTYPES.
66262
66263 2005-05-22  Bruno Haible  <bruno@clisp.org>
66264
66265         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66266         Also include <sys/param.h> if it defines MIN, MAX.
66267         Based on a patch by Derek Price <derek@ximbiot.com>.
66268
66269 2005-05-21  Jim Meyering  <jim@meyering.net>
66270
66271         * modules/fts (Files): Add m4/inttypes-pri.m4.
66272         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66273
66274 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         New fts module.
66277         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66278         (setup_dir, free_dir): New functions.
66279         (enter_dir, leave_dir): Define trivial
66280         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66281         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66282         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66283         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66284         Move to fts-cycle.c.
66285         (fts_open): Use setup_dir.
66286         (fts_close): Use free_dir.
66287         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66288         This adds a label and some gotos, but the alternatives were messier.
66289         Check for memory allocation failure when entering a dir.
66290         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66291         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66292         (FTS): New member fts_cycle, that is a union that contains the
66293         old active_dir_ht and cycle_state.  All uses changed to mention
66294         fts_cycle.ht and fts_cycle.state.
66295         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66296         fts.c, with the following changes:
66297         (setup_dir, free_dir): New functions.
66298         (enter_dir): Now returns bool.  Return true if successful, false
66299         if memory exhausted.  All callers changed.
66300         Do not bother partly cleaning up on
66301         memory allocation failure; that is free_dir's job.
66302         However, free ad if hash_insert fails, to avoid memory leak.
66303         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66304         fts->fts_options to see which union member to use.
66305
66306 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66307
66308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66309         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66310
66311 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66312
66313         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66314
66315 2005-05-20  Jim Meyering  <jim@meyering.net>
66316
66317         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66318         Now a macro, to pacify GCC.
66319
66320 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66321
66322         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66323         of -1.
66324
66325 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66326
66327         * lib/chown.c (rpl_chown): Return -1 on failure.
66328
66329 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66330
66331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66332         Don't check for stddef.h.
66333         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66334         don't use its results.
66335         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66336         since we include them unconditionally.  Don't require
66337         AM_STDBOOL_H, since stdbool is a prerequisite.
66338         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66339         since we assume C89 or better.
66340         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66341         as we don't use their results.
66342         Don't check for fchdir, memmove, memset, strrchr, as we use
66343         them unconditionally.
66344         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66345         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66346
66347 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66350         Include <stddef.h> unconditionally, since we assume C89 now.
66351         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66352         * lib/fts.c: Include fts_.h first, to check interface.
66353         Do not include intprops.h; no longer needed.
66354         Include cycle-check.h and hash.h, since fts_.h no longer does.
66355         Remove unnecessary casts of closedir to void.
66356         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66357         decide whether to decrement nlinks.
66358         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66359         (FTS): Use struct hash_table * instead of Hash_table, so that
66360         we no longer need to include hash.h here.
66361
66362 2005-05-18  Jim Meyering  <jim@meyering.net>
66363
66364         * modules/dirfd (License): Change to LGPL.  Most of the code
66365         is already in the public domain.
66366
66367 2005-05-18  Jim Meyering  <jim@meyering.net>
66368
66369         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66370         Reported by Yoann Vandoorselaere.
66371
66372 2005-05-17  Jim Meyering  <jim@meyering.net>
66373
66374         * m4/fts.m4: New file, from coreutils.
66375
66376 2005-05-17  Jim Meyering  <jim@meyering.net>
66377
66378         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66379
66380 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         Sync from coreutils.
66383         * m4/unlinkdir.m4: New file.
66384
66385 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         Sync from coreutils.
66388         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66389         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66390         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66391         White space changes only.
66392         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66393         special.
66394         * lib/yesno.c: Include getline.h, not ctype.h.
66395         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66396         Use getline to remove arbitrary restriction on response length.
66397
66398 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66399
66400         * config/srclist-update: Spell out "Street" in FSF postal
66401         mail address; this is the style the FSF seems to prefer.
66402
66403         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66404         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66405         this updates FSF postal mail address.
66406
66407         Sync from coreutils.
66408         * modules/unlinkdir: New file.
66409         * modules/yesno (Depends-on): Add getline.
66410         * MODULES.html.sh (File system functions): Add unlinkdir.
66411
66412 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66415         lib/strsep.h:
66416         Change the initial comment to refer to GPL, not LGPL.
66417         gnulib-tool will change it to LGPL as needed.
66418
66419         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66420         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66421         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66422         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66423         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66424         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66425         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66426         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66427         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66428         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66429         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66430         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66431         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66432         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66433         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66434         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66435         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66436         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66437         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66438         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66439         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66440         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66441         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66442         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66443         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66444         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66445         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66446         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66447         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66448         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66449         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66450         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66451         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66452         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66453         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66454         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66455         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66456         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66457         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66458         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66459         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66460         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66461         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66462         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66463         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66464         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66465         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66466         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66467         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66468         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66469         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66470         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66471         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66472         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66473         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66474         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66475         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66476         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66477         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66478         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66479         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66480         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66481         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66482         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66483         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66484         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66485         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66486         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66487         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66488         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66489         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66490         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66491         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66492         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66493         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66494         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66495         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66496         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66497         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66498         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66499         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66500         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66501         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66502         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66503         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66504         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66505         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66506         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66507         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66508         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66509         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66510         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66511         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66512         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66513         lib/yesno.c, lib/yesno.h:
66514         Update FSF postal mail address.
66515
66516 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66519         tests/test-memmem.c, tests/test-stpncpy.c:
66520         Update FSF postal mail address.
66521
66522 2005-05-13  Bruno Haible  <bruno@clisp.org>
66523
66524         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66525         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66526         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66527         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66528         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66529         Add support for 64-bit integers in the MSVC compiler.
66530
66531 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66532
66533         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66534
66535 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66536
66537         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66538
66539 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         * doc/getdate.texi (General date syntax): Don't say that date
66542         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66543         Problem reported by Nic Ferrier.
66544
66545 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66546
66547         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66548         specified in ai_socktype. Fix invalid ai_protocol
66549         check. ai_protocol is usually set to 0 or depending on
66550         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66551         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66552         ai_socktype / ai_protocol in the returned addrinfo structure.
66553
66554 2005-05-10  Simon Josefsson  <jas@extundo.com>
66555
66556         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66557         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66558
66559 2005-05-10  Karl Berry  <karl@gnu.org>
66560
66561         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66562         (from http://www.gnu.org/licenses).
66563         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66564         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66565         fdl.texi suffices.
66566
66567 2005-05-10  Karl Berry  <karl@gnu.org>
66568
66569         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66570         (COPYING.DOC): remove.
66571
66572         * config/srclist-update: new FSF address.
66573
66574 2005-05-10  Derek Price  <derek@ximbiot.com>
66575
66576         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66577         possible.
66578
66579 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66580             Bruno Haible  <bruno@clisp.org>
66581
66582         * modules/inet_ntop: New file.
66583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66584         inet_ntop.
66585
66586 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66587             Bruno Haible  <bruno@clisp.org>
66588
66589         * m4/inet_ntop.m4: New file.
66590
66591 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66592             Bruno Haible  <bruno@clisp.org>
66593
66594         * lib/inet_ntop.h: New file.
66595         * lib/inet_ntop.c: New file, from glibc with modifications.
66596
66597 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * modules/time_r (License): Change to LGPL.
66600         * modules/extensions (License): Change to LGPL.  Actually,
66601         the license is more permissive than that, but currently gnulib-tool
66602         doesn't know how to handle more-permissive licenses.
66603
66604         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66605         Problem reported by Dave Love.
66606
66607 2005-05-08  Jim Meyering  <jim@meyering.net>
66608
66609         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66610         blank.
66611
66612 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * modules/argmatch (Depends-on): Add stdbool.
66615         * modules/backupfile (Depends-on): Likewise.
66616         * modules/chdir-long (Depends-on): Likewise.
66617         * modules/closeout (Depends-on): Likewise.
66618         * modules/cycle-check (Depends-on): Likewise.
66619         * modules/dirname (Depends-on): Likewise.
66620         * modules/fnmatch (Depends-on): Likewise.
66621         * modules/fsusage (Depends-on): Likewise.
66622         * modules/fwriteerror (Depends-on): Likewise.
66623         * modules/getcwd (Depends-on): Likewise.
66624         * modules/getloadavg (Depends-on): Likewise.
66625         * modules/hard-locale (Depends-on): Likewise.
66626         * modules/makepath (Depends-on): Likewise.
66627         * modules/mountlist (Depends-on): Likewise.
66628         * modules/nanosleep (Depends-on): Likewise.
66629         * modules/posixtm (Depends-on): Likewise.
66630         * modules/quotearg (Depends-on): Likewise.
66631         * modules/readtokens (Depends-on): Likewise.
66632         * modules/readtokens0 (Depends-on): Likewise.
66633         * modules/readutmp (Depends-on): Likewise.
66634         * modules/save-cwd (Depends-on): Likewise.
66635         * modules/strftime (Depends-on): Likewise.
66636         * modules/userspec (Depends-on): Likewise.
66637         * modules/utimecmp (Depends-on): Likewise.
66638         * modules/xgetcwd (Depends-on): Likewise.
66639         * modules/xnanosleep (Depends-on): Likewise.
66640         * modules/xstrtod (Depends-on): Likewise.
66641         * modules/yesno (Depends-on): Likewise.
66642
66643 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66646         needless checks.
66647
66648 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         Merge from coreutils.  Among other things,
66651         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66652         * lib/fd-safer.c: New file.
66653         * lib/fcntl-safer.h, open-safer.c: Remove.
66654         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66655         * lib/dup-safer.c: Include unistd-safer.h first.
66656         Don't include errno.h.
66657         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66658         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66659         * lib/file-type.c: Rely on file-type.h change.
66660         * lib/getloadavg.c: Include unistd-safer.h.
66661         (getloadavg): Use safer open.
66662         * lib/getusershell.c: Include "stdio-safer.h".
66663         (getusershell): Use safer fopen.
66664         * lib/long-options.c (long_options): Use NULL rather than 0.
66665         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66666         'free'.
66667         * lib/modechange.c: Likewise.
66668         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66669         (MODE_DONE): New constant.
66670         (struct mode_change): Remove 'next' member.
66671         (make_node_op_equals): New function; like the old one of the
66672         same name, except it allocates an array.
66673         (mode_compile, mode_create_from_ref): Use it.
66674         (mode_compile): Allocate result as an array, not a linked list.
66675         Parse octal string ourself, so that we catch mistakes like "+0".
66676         (mode_adjust): Arg is an array, not a linked list.
66677         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66678         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66679         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66680         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66681         Remove.  This is now stat-macros.h's job.
66682         (talloc): Remove.  All callers replaced by xalloc, so that
66683         our invokers don't have to worry about reporting memory failures.
66684         (make_node_op_equals): Remove.
66685         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66686         New constants.
66687         (struct mode_change): Moved here from modechange.h.
66688         (mode_append_entry): Remove.
66689         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66690         apps to have incorrect behavior.  Use simpler algorithm for head
66691         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66692         Detect more invalid usages rather than having somewhat-random behavior.
66693         Don't insert an "a=" action, as that leads to incorrect behavior.
66694         (mode_compile, mode_create_from_ref): Return NULL on error instead
66695         of an enum, since now there's only one way to have an error.  All
66696         callers changed.
66697         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66698         at the correct time.  Simplify calculation of "+u" and its ilk.
66699         Don't mishandle "+X".
66700         (mode_free): Remove "register" and localize decls.
66701         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66702         (struct mode_change): Move to modechange.c; callers don't
66703         need to see this stuff.
66704         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66705         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66706         (mode_change, mode_adjust): Reflect the new signatures noted above.
66707         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66708         that might redefine system include files.
66709         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66710         (my_usleep): Use NULL rather than (void *) 0.
66711         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66712         Use siginterrupt to specify that system calls should be interrupted.
66713         (rpl_nanosleep): Move initialization of suspended closer to call of
66714         my_usleep.
66715         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66716         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66717         (desirable_utmp_entry): New function.
66718         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66719         using x2nrealloc, to simplify logic.
66720         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66721         size calculation.  Do not assume utmp file is a regular file.
66722         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66723         (READ_UTMP_CHECK_PIDS): New constant.
66724         * lib/save-cwd.c: Include unistd-safer.h.
66725         (save_cwd): Use fd_safer.
66726         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66727         [!_LIBC] Include "stat-macros.h" instead.
66728         * lib/unistd-safer.h (fd_safer): New decl.
66729
66730 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * modules/getloadavg (Depends-on): Add unistd-safer.
66733         * modules/getusershell (Depends-on): Add stdio-safer.
66734         * modules/lstat (Depends-on): Remove xalloc.
66735         * modules/mkstemp (Depends-on): Add stat-macros.
66736         * modules/modechange (Depends-on): Remove xstrtol.
66737         Add stat-macros, xalloc.
66738         * modules/save-cwd (Depends-on): Add unistd-safer.
66739         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66740         * modules/unistd-safer (Files): Add lib/fd-safer.c
66741         (Makefile.am): Remove lib_SOURCES.
66742
66743         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66744         Remove fcntl-safer; unistd-safer supersedes it.
66745
66746 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66749         AC_HEADER_STAT.
66750         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66751         (gl_PREREQ_CHOWN): Remove.
66752         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66753         it.  Don't require AC_HEADER_STAT.
66754         (gl_PREREQ_LSTAT): Remove.
66755         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66756         Don't require AC_HEADER_STAT.
66757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66758         (gl_PREREQ_RMDIR): Remove.
66759         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66760         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66761         the stat-macros module a prerequisite.
66762         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66763         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66764         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66765         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66766         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66767         variable names.
66768         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66769         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66770         variable prefixes.
66771         * m4/fcntl-safer.m4: Remove.
66772         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66773         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66774         Invoke gl_PREREQ_FD_SAFER.
66775         (gl_PREREQ_FD_SAFER): New macro.
66776         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66777         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66778         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66779         Remove duplicate call to AC_LIBOBJ(readutmp).
66780         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66781
66782         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66783         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66784
66785 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * MODULES.html.sh (Misc): Add byteswap.
66788
66789 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66790
66791         * modules/getcwd (Depends-on): Add extensions.
66792         * modules/openat (Depends-on): Likewise.
66793
66794 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66795
66796         * modules/byteswap: New file.
66797
66798 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66799
66800         * m4/byteswap.m4: New file.
66801
66802 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66803
66804         * lib/byteswap_.h: New file.
66805
66806 2005-04-25  Karl Berry  <karl@gnu.org>
66807
66808         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66809
66810 2005-04-25  Albert Chin  <china@thewrittenword.com>
66811
66812         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66813         Toolkit C bug.
66814
66815 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66816
66817         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66818         (func_ln_if_changed) Remove forcibly for no error message
66819         in case file does not exist.
66820
66821 2005-04-19  Simon Josefsson  <jas@extundo.com>
66822
66823         * gnulib-tool (Options): Make --symlink mean --symbolic.
66824
66825 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66826
66827         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66828
66829 2005-04-16  Simon Josefsson  <jas@extundo.com>
66830
66831         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66832
66833 2005-04-15  Simon Josefsson  <jas@extundo.com>
66834
66835         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66836
66837 2005-04-15  Simon Josefsson  <jas@extundo.com>
66838
66839         * gnulib-tool: Rename --symlink to --symbolic.
66840
66841 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66842
66843         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66844         symbolic links to files instead of copying/moving.  Add --aux-dir,
66845         specifying directory relative --dir where auxiliary build tools
66846         are placed.
66847
66848 2005-04-14  Bruno Haible  <bruno@clisp.org>
66849
66850         * modules/allocsa (License): Change to LGPL.
66851         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66852
66853 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66856         that "UTC +1 second" continues to work.  Problem reported
66857         by Dmitry V. Levin.
66858         (relunit_snumber): New rule.
66859         (relunit): Use it.
66860
66861 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * lib/getdate.y (universal_time_zone_table): New constant.
66864         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66865         universal_time_zone_table.
66866         (lookup_zone): Prefer universal_time_zone_table to
66867         local_time_zone_table, so that "GMT" time stamps are allowed in
66868         London during the summer.  Problem reported by Ian Abbott.
66869
66870 2005-04-12  Jim Meyering  <jim@meyering.net>
66871
66872         * lib/human.c (humblock): Set *options even when returning due to
66873         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66874         warning from gcc-4.
66875
66876 2005-04-09  Jim Meyering  <jim@meyering.net>
66877
66878         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66879         -Wuninitialized: initialize tm0.tm_year.
66880
66881 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66884         count, since there's no maximum.  All uses changed.
66885         Add member dsts_seen.
66886         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66887         not being INT_MAX.
66888         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66889         Use pc_rels_seen to decide whther a date is absolute.
66890
66891         * lib/getdate.y (number): Don't overwrite year.
66892         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66893         check.
66894
66895 2005-04-02  Simon Josefsson  <jas@extundo.com>
66896
66897         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66898         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66899
66900 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66901
66902         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66903         where no absolute path name can be longer than PATH_MAX.
66904
66905 2005-03-27  Jim Meyering  <jim@meyering.net>
66906
66907         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66908
66909 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66912         "one's complement" -> "ones' complement" in comment, as per Knuth.
66913         "value of type" -> "type or expression" in comment.
66914         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66915
66916 2005-03-26  Jim Meyering  <jim@meyering.net>
66917
66918         Comment nits.
66919         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66920         Correct typos: s/or/of/.
66921
66922 2005-03-26  Jim Meyering  <jim@meyering.net>
66923
66924         * modules/check-include-files: Move to ../ and rename to...
66925         * check-module: ...this.
66926
66927 2005-03-25  Jim Meyering  <jim@meyering.net>
66928
66929         * modules/xvasprintf (Files): Add xalloc.h.
66930
66931 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * modules/gettext (Files): config/config.rpath ->
66934         build-aux/config.rpath
66935         * modules/iconv (Files): Likewise.
66936         Problem reported by Oskar Liljeblad.
66937
66938 2005-03-23  Jim Meyering  <jim@meyering.net>
66939
66940         * modules/check-include-files: New script to check for
66941         missing dependencies, multiple includes, etc.
66942
66943         * modules/c-strtold (Depends-on): Add xalloc.
66944         * modules/c-strtod (Depends-on): Add xalloc.
66945         * modules/hash (Depends-on): Add xalloc.
66946         (Files): Remove lib/xalloc.h.
66947
66948         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66949         * modules/userspec (Files): Add lib/inttostr.h.
66950
66951 2005-03-23  Jim Meyering  <jim@meyering.net>
66952
66953         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66954
66955 2005-03-22  Jim Meyering  <jim@meyering.net>
66956
66957         * modules/stat-macros: New module.
66958         * modules/canonicalize, modules/euidaccess, modules/file-type,
66959         * modules/filemode, modules/lchown, modules/makepath,
66960         * modules/rmdir, modules/stat: Depend on new stat-macros module
66961         rather than listing lib/stat-macros.h manually.
66962         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66963
66964 2005-03-22  Jim Meyering  <jim@meyering.net>
66965
66966         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66967
66968 2005-03-22  Bruno Haible  <bruno@clisp.org>
66969
66970         * config/srclist.txt: Replace target directory 'config' with
66971         'build-aux'.
66972         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66973         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66974         ../build-aux/.
66975
66976 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * modules/chdir-long (Depends-on): Add mempcpy.
66979
66980         * modules/acl, modules/backupfile, modules/c-strtod,
66981         modules/c-strtold, modules/canon-host, modules/canonicalize,
66982         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66983         modules/exclude, modules/exitfail, modules/file-type,
66984         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66985         modules/getdate, modules/getline, modules/getpagesize,
66986         modules/getpass, modules/getugroups, modules/group-member,
66987         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66988         modules/inttostr, modules/long-options, modules/makepath,
66989         modules/md5, modules/memcasecmp, modules/memcoll,
66990         modules/modechange, modules/mountlist, modules/path-concat,
66991         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66992         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66993         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66994         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66995         modules/strftime, modules/strndup, modules/strverscmp,
66996         modules/timespec, modules/unlocked-io, modules/userspec,
66997         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66998         modules/yesno:
66999         Remove lib_SOURCES line from Makefile.am section, as this is now
67000         done automatically by the corresponding Autoconf macro.
67001
67002 2005-03-21  Jim Meyering  <jim@meyering.net>
67003
67004         Changes imported from coreutils.
67005
67006         * lib/cycle-check.c: Don't include xalloc.h.
67007
67008         * lib/path-concat.c: Don't include assert.h.
67009         (path_concat): Remove assertion that would have triggered
67010         for ABASE starting with more than one slash.
67011         Reported by Andreas Schwab.
67012
67013         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67014         properly when ABASE is an absolute file name.
67015         Correct the description of this function.
67016         Include <assert.h>.
67017         Add an assertion and a test driver.
67018         This fixes a bug introduced on 2004-07-02.
67019         Andreas Schwab reported the resulting failure of cp --parents:
67020         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67021
67022 2005-03-21  Jim Meyering  <jim@meyering.net>
67023
67024         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67026
67027 2005-03-21  Jim Meyering  <jim@meyering.net>
67028         and  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67031         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67032         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67033         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67034         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67035         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67036         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67037         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67038         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67039         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67040         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67041         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67042         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67043         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67044         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67045         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67046         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67047         for these modules.
67048
67049 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67050
67051         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67052         (which shouldn't happen), generate nothing instead of returning 0
67053         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67054
67055 2005-03-16  Bruno Haible  <bruno@clisp.org>
67056
67057         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67058         HAVE_LONGLONG_64BIT.
67059
67060 2005-03-16  Bruno Haible  <bruno@clisp.org>
67061
67062         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67063         HAVE_LONGLONG_64BIT.
67064
67065 2005-03-16  Bruno Haible  <bruno@clisp.org>
67066
67067         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67068         HAVE_LONGLONG_64BIT.
67069
67070 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67073         reliably distinguish strftime failure from empty output on POSIX
67074         hosts.
67075
67076 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67079         (iconv_string): Don't guess a size-zero buffer, as that might cause
67080         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67081         result would be 'too large', where 'too large' is (heuristically)
67082         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67083         overflow concerns.  This will prevent some unwanted malloc failures
67084         when the inputs are very large.
67085
67086 2005-03-15  Karl Berry  <karl@gnu.org>
67087
67088         * config/srclist.txt (config.rpath): from gettext.
67089         * config/config.rpath: update.
67090
67091 2005-03-15  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67094         to 'negate'.
67095
67096         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67097         variable.
67098
67099         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67100         results.
67101
67102 2005-03-14  Simon Josefsson  <jas@extundo.com>
67103
67104         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67105         <fx@gnu.org>.
67106
67107 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67110         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67111         intprops.h.
67112         * lib/strtol.c: Likewise.
67113
67114 2005-03-14  Jim Meyering  <jim@meyering.net>
67115
67116         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67117         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67118         to be nonzero so that we (and caller) can detect the difference
67119         between a valid zero-length expansion and an error return, even
67120         when the underlying strftime fails before writing anything into
67121         that location.
67122
67123 2005-03-14  Bruno Haible  <bruno@clisp.org>
67124
67125         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67126         Update from GNU gettext 0.14.3.
67127
67128 2005-03-10  Jim Meyering  <jim@meyering.net>
67129
67130         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67131
67132 2005-03-10  Jim Meyering  <jim@meyering.net>
67133
67134         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67135         so that this module works on systems without fchdir.
67136
67137 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         Factor int-properties macros into a single file, except for
67140         glibc-related files.
67141         * lib/intprops.h: New file.
67142         * lib/getloadavg.c: Include it instead of limits.h.
67143         (INT_STRLEN_BOUND): Remove.
67144         * lib/human.c: Include intprops.h.
67145         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67146         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67147         302/1000.
67148         * lib/inttostr.h: Include intprops.h instead of limits.h.
67149         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67150         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67151         for consistency with intprops.h.
67152         (time_t_is_integer, twos_complement_arithmetic): Use them.
67153         * lib/sig2str.h: Include <signal.h>, intprops.h.
67154         (INT_STRLEN_BOUND): Remove.
67155         * lib/strftime.c (TYPE_SIGNED): Remove.
67156         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67157         * lib/strtol.c: Adjust comments to match intprops.h.
67158         * lib/userspec.c: Include intprops.h.
67159         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67160         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67161         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67162         instead of rolling our own expressions.
67163         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67164
67165         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67166         instead of int.
67167         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67168         the right thing even if adding 1900 would overflow.  Similarly
67169         for tm_mon + 1 and tm_yday + 1.
67170         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67171         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67172         (DO_SIGNED_NUMBER): New macro.
67173         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67174
67175 2005-03-07  Bruno Haible  <bruno@clisp.org>
67176
67177         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67178
67179 2005-03-07  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67182
67183 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67184
67185         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67186         (func_import): Only replace files via --import when they have actually
67187         changed.
67188
67189 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67190
67191         * m4/mmap-anon.m4: New file.
67192         * m4/pagealign_alloc.m4: New file.
67193
67194 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67195             Bruno Haible  <bruno@clisp.org>
67196
67197         * modules/pagealign_alloc: New file.
67198         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67199
67200 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67201             Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/pagealign_alloc.h: New file.
67204         * lib/pagealign_alloc.c: New file.
67205
67206 2005-03-03  Bruno Haible  <bruno@clisp.org>
67207
67208         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67209         Use an all-permissive copyright notice, recommended by RMS.
67210
67211 2005-03-02  Bruno Haible  <bruno@clisp.org>
67212
67213         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67214         of AIX, the replacement has to be done only after <string.h> is
67215         included, therefore not in config.h. stpncpy.h does the replacement,
67216         and stpncpy.c uses it.
67217
67218 2005-03-02  Bruno Haible  <bruno@clisp.org>
67219
67220         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67221         stpncpy.c uses it.
67222
67223 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67226         The workaround isn't strictly needed for POSIX conformance, and
67227         it's too much of a pain to configure and maintain.  We'll ask
67228         people to fix their kernels instead.
67229         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67230         (NANOSLEEP_BUG_WORKAROUND): Remove.
67231         (xnanosleep): Remove the workaround.
67232
67233 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67236         Reported by Derek Price.
67237         (Include): Add "timespec.h".
67238
67239         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67240
67241 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67244         to detect nanosleep bug.
67245
67246 2005-03-01  Bruno Haible  <bruno@clisp.org>
67247
67248         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67249
67250 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * modules/gethrxtime: New file.
67253         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67254         (Depends-on): Add gethrxtime.
67255         (configure.ac): Add gl_XNANOSLEEP.
67256         (Makefile.am): Remove lib_SOURCES line.
67257
67258 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67261         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67262
67263 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67266         * lib/timespec.h (gettime): Return void, since it always
67267         succeeds now.  All uses changed.
67268         * lib/gettime.c (gettime) Likewise.
67269         [HAVE_NANOTIME]: Prefer nanotime.
67270         Assume gettimeofday succeeds, as POSIX requires.
67271         Assime time () succeeds, since other code already does.
67272         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67273         (timespec_subtract): Remove.
67274         (NANOSLEEP_BUG_WORKAROUND): New constant.
67275         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67276         things considerably.  Use it only on GNU/Linux hosts, since the
67277         workaround shouldn't be needed elsewhere.
67278
67279 2005-02-24  Bruno Haible  <bruno@clisp.org>
67280
67281         * modules/gettext (Files): Add m4/glibc2.m4.
67282
67283 2005-02-24  Bruno Haible  <bruno@clisp.org>
67284
67285         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67286         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67287         * m4/progtest.m4:
67288         Update from GNU gettext 0.14.2.
67289         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67290
67291 2005-02-24  Bruno Haible  <bruno@clisp.org>
67292
67293         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67294         * lib/config.charset: Update from GNU gettext 0.14.2.
67295
67296 2005-02-24  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/gettext.h: Update from GNU gettext 0.14.2.
67299
67300 2005-02-23  Simon Josefsson  <jas@extundo.com>
67301
67302         * m4/iconvme.m4: New file.
67303
67304 2005-02-23  Jim Meyering  <jim@meyering.net>
67305
67306         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67307         change.
67308         Thanks to Bruno Haible for catching it.
67309
67310 2005-02-22  Simon Josefsson  <jas@extundo.com>
67311
67312         * modules/iconvme: New file.
67313
67314         * MODULES.html.sh: Add iconvme.
67315
67316 2005-02-22  Simon Josefsson  <jas@extundo.com>
67317
67318         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67319
67320 2005-02-22  Simon Josefsson  <jas@extundo.com>
67321
67322         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67323
67324 2005-02-22  Jim Meyering  <jim@meyering.net>
67325
67326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67327         s/ifndef/ifdef/.
67328
67329 2005-02-20  Neil Conway  <neilc@samurai.com>
67330
67331         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67332         returned by OSX/Darwin if the specified buffer is not large
67333         enough for the hostname.
67334
67335 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67336
67337         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67338         pass it to _help, otherwise the latter coredumps trying to
67339         dereference state.root_argp.
67340
67341 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         * modules/chdir-long (Depends-on): Add memrchr.
67344         * modules/memrchr (Files): Add lib/memrchr.h.
67345         (Include): "memrchr.h".
67346
67347 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67350
67351 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * lib/memrchr.h: New file.
67354         * lib/chdir-long.c: Include it.
67355         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67356         Don't bother including stddef.h.
67357
67358 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67361         inclusion.
67362         Include <sys/types.h>, for dev_t.
67363         (ME_DUMMY, ME_REMOTE): Move from here....
67364         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67365         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67366         Dmitry V. Levin.
67367         Include mountlist.h first, to test the interface.
67368
67369 2005-01-29  Bruno Haible  <bruno@clisp.org>
67370
67371         * lib/progname.c (program_name): Initialize.
67372         Needed when linking statically on MacOS X.
67373
67374 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         Sync from coreutils.
67377         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67378         (Depends-on): Add c-strtod.
67379         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67380
67381 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         Sync from coreutils.
67384         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67385
67386         Remove files that are specific to coreutils.
67387         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67388
67389 2005-01-28  Bruno Haible  <bruno@clisp.org>
67390
67391         * modules/javacomp: New file.
67392         * MODULES.html.sh (Java): Add javacomp.
67393
67394 2005-01-28  Bruno Haible  <bruno@clisp.org>
67395
67396         * m4/javacomp.m4: New file, from GNU gettext.
67397
67398 2005-01-28  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/javacomp.sh.in: New file, from GNU gettext.
67401         * lib/javacomp.h: New file, from GNU gettext.
67402         * lib/javacomp.c: New file, from GNU gettext.
67403
67404 2005-01-26  Simon Josefsson  <jas@extundo.com>
67405
67406         * lib/gai_strerror.c: Use GPL in header.
67407
67408 2005-01-26  Bruno Haible  <bruno@clisp.org>
67409
67410         * modules/javaexec: New file.
67411         * MODULES.html.sh (Java): Add javaexec.
67412
67413 2005-01-26  Bruno Haible  <bruno@clisp.org>
67414
67415         * m4/javaexec.m4: New file, from GNU gettext.
67416
67417 2005-01-26  Bruno Haible  <bruno@clisp.org>
67418
67419         * lib/javaexec.sh.in: New file, from GNU gettext.
67420         * lib/javaexec.h: New file, from GNU gettext.
67421         * lib/javaexec.c: New file, from GNU gettext.
67422
67423 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67424
67425         * modules/lchown (Depends-on): Remove lchown.h
67426
67427 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67428
67429         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67430         must be defined if the header file was not found, in order
67431         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67432
67433 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67434
67435         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67436         initializers for struct pentry_state.
67437         (__argp_error): Check return value of __asprintf
67438         (__argp_failure): Translate error message
67439
67440         * lib/argp-parse.c: Removed braces around the expansion of N_()
67441
67442 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67445         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67446         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67447         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67448         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67449         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67450         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67451         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67452         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67453         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67454         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67455         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67456         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67457         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67458         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67459         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67460         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67461         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67462         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67463         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67464         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67465         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67466         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67467         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67468         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67469         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67470         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67471         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67472         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67473         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67474         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67475         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67476         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67477         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67478         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67479         Use an all-permissive copyright notice, recommended by RMS.
67480
67481 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * modules/chdir-long (Depends-on): Remove mempcpy.
67484
67485 2005-01-21  Jim Meyering  <jim@meyering.net>
67486
67487         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67488         same value as for Solaris 9.
67489
67490         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67491         component length.  This included changing the parameter to be
67492         of type `char *' rather than `char const *'.
67493         * lib/chdir-long.h (chdir_long): Update prototype.
67494
67495         * lib/openat.c (fdopendir, fstatat): New functions.
67496         * lib/openat.h: Include headers required for use of DIR and struct
67497         stat.
67498         [AT_SYMLINK_NOFOLLOW]: Define.
67499         (fdopendir, fstatat): Add prototypes.
67500
67501 2005-01-21  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/classpath: New file.
67504         * MODULES.html.sh (Java): Add classpath.
67505
67506 2005-01-21  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/classpath.h: New file, from GNU gettext.
67509         * lib/classpath.c: New file, from GNU gettext.
67510
67511 2005-01-20  Simon Josefsson  <jas@extundo.com>
67512
67513         * modules/version-etc-fsf: New file.
67514
67515 2005-01-20  Simon Josefsson  <jas@extundo.com>
67516
67517         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67518         * lib/version-etc.c: Remove version_etc_copyright.
67519         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67520         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67521
67522 2005-01-20  Simon Josefsson  <jas@extundo.com>
67523
67524         * lib/base64.h (isbase64): Add.
67525
67526         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67527         using a unsigned prototype, don't inline.
67528         (base64_decode): Use it.
67529
67530 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67533         it.
67534
67535 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * lib/save-cwd.c (save_cwd): Remove code to support the case
67538         where fchdir is missing or flaky.
67539
67540 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67543
67544 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67547         AC_LIBSOURCES now does this.
67548         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67549         with new ullong_max module.
67550
67551 2005-01-19  Bruno Haible  <bruno@clisp.org>
67552
67553         * modules/sh-quote: New file.
67554         * MODULES.html.sh (Executing programs): Add sh-quote.
67555
67556 2005-01-19  Bruno Haible  <bruno@clisp.org>
67557
67558         * lib/sh-quote.h: New file, from GNU gettext.
67559         * lib/sh-quote.c: New file, from GNU gettext.
67560
67561 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         Merge from coreutils.
67564         * m4/ullong_max.m4: New file.
67565         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67566         (gl_MACROS): Assume localeconv exists.
67567
67568 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         Merge changes from coreutils, as described below in several
67571         changelogs dated today.
67572
67573         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67574         (O_DIRECTORY): Remove; not needed here, since "." must be
67575         a directory.  All uses removed.
67576         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67577         universal on Suns, and we also need to test for IRIX.
67578         Revamp code to use 'if' rather than '#if'.
67579         Avoid unnecessary comparison of cwd->desc to 0.
67580
67581         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67582         for known valid error numbers rather than observed invalid ones.
67583
67584 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * modules/ullong_max: New file.
67587
67588         * modules/chdir-long, modules/openat: New files.
67589         * modules/save-cwd (Depends-on): Depend on chdir-long.
67590         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67591
67592 2005-01-18  Jim Meyering  <jim@meyering.net>
67593
67594         Merge from coreutils.
67595         * m4/chdir-long.m4, m4/openat.m4: New files.
67596         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67597         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67598         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67599         is sane and DOES follow symlinks.  Besides, testing 20 different
67600         systems found no broken chown implementations.
67601         Prompted by a change in rsync's copy of this macro.
67602         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67603
67604         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67605
67606         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67607         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67608         NULL-means-set-to-current-time semantics.
67609         Remove temporary file immediately, rather than waiting
67610         for configure's at-exit trap code to do it.
67611
67612 2005-01-18  Jim Meyering  <jim@meyering.net>
67613
67614         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67615
67616         * lib/utimens.c (futimens): Account for the fact that futimes
67617         can also fail with errno == ENOSYS or errno == ENOENT.
67618         Patch from Dmitry V. Levin.
67619
67620         Change the name of the robust chdir function from chdir to chdir_long.
67621         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67622         (restore_cwd): Use chdir_long, not chdir.
67623         * lib/chdir-long.c: Renamed from chdir.c.
67624         * lib/chdir-long.h: Renamed from chdir.h.
67625         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67626         Hurd.
67627
67628 2005-01-18  Bruno Haible  <bruno@clisp.org>
67629
67630         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67631         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67632         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67633         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67634         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67635         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67636         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67637         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67638         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67639         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67640         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67641         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67642         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67643         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67644         Use an all-permissive copyright notice, recommended by RMS.
67645
67646 2005-01-18  Bob Proulx  <bob@proulx.com>
67647
67648         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67649         simplify offsetof() macro construct to avoid compile failure with
67650         native HP-UX 11.0 ANSI C compiler.
67651
67652 2005-01-17  Bruno Haible  <bruno@clisp.org>
67653
67654         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67655         redundant because stpncpy.m4 takes care of it.
67656
67657 2005-01-17  Bruno Haible  <bruno@clisp.org>
67658
67659         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67660
67661 2005-01-17  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67664         used.
67665
67666 2005-01-17  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/fwriteerror.h (fwriteerror): Change specification to include
67669         fclose.
67670         * lib/fwriteerror.c: Include <stdbool.h>.
67671         (fwriteerror): At the end, close the file stream. Record whether
67672         stdout was already closed.
67673
67674 2005-01-17  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/execute.c (environ): Declare if needed.
67677         * lib/pipe.c (environ): Likewise.
67678         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67679
67680 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67681
67682         * modules/argp: Depend on vsnprintf
67683
67684 2005-01-10  Jim Meyering  <jim@meyering.net>
67685
67686         * modules/closeout (Depends-on): Add atexit.
67687
67688 2005-01-06  Bruno Haible  <bruno@clisp.org>
67689
67690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67691
67692 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67693
67694         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67695         definitions to be after all include files, to avoid collisions.
67696         Problem reported by Bob Proulx.
67697
67698 2005-01-04  Jim Meyering  <jim@meyering.net>
67699
67700         Changes imported from coreutils.
67701         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67702         as the mkstemp template, use a temporary directory and an
67703         8.3-friendly template to avoid trouble on systems like DJGPP.
67704         Reported by Juan M. Guerrero via Stepan Kasal.
67705         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67706         close. Remove the temporary directory right away, rather than waiting
67707         for configure's at-exit trap code to do it.
67708         Suggestion from Stepan Kasal.
67709
67710 2005-01-01  Simon Josefsson  <jas@extundo.com>
67711
67712         * gnulib-tool: Print #include directives when --import'ing.
67713
67714 2004-12-28  Simon Josefsson  <jas@extundo.com>
67715
67716         * tests/test-base64.c: Include required header files.  Remove
67717         unused variables.
67718
67719 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * modules/error (Depends-on): Remove gettext.
67722
67723 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67726         not needed.  This removes a dependency on the gettext module.
67727         [defined _LIBC]: Do not include <libintl.h>; not needed.
67728
67729 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67732         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67733
67734 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67737         HAVE_DECL_STRTOLD.
67738
67739 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * modules/getdate (Depends-on): Remove alloca-opt.
67742
67743 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67746
67747 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * lib/argp-parse.c: Include <stddef.h>.
67750         (alignof, alignto): New macros.
67751         (parser_init): Don't assume that void * is aligned sufficiently
67752         for struct option.
67753
67754         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67755         need to extend the stack.
67756         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67757         large.
67758
67759 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67760
67761         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67762
67763 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67766         (2004-10-24) change.  Apparently this was a false alarm.
67767
67768         * modules/getdate: Depend on alloca-opt, not alloca.
67769
67770 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67771
67772         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67773         Remove now-obsolete comment about AIX.
67774         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67775         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67776         (YYMAXDEPTH): New macro.
67777
67778 2004-12-18  Simon Josefsson  <jas@extundo.com>
67779
67780         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67781
67782 2004-12-18  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67785
67786 2004-12-18  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/fatal-signal.c (fatal_signals): Make non-const.
67789         (init_fatal_signals): New function.
67790         (uninstall_handlers, install_handlers): Ignore signals that were set to
67791         SIG_IGN.
67792         (at_fatal_signal): Call init_fatal_signals.
67793         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67794         SIG_IGN.
67795         Reported by Paul Eggert.
67796
67797 2004-12-18  Bruno Haible  <bruno@clisp.org>
67798
67799         * doc/alloca.texi: New file.
67800         * doc/alloca-opt.texi: New file.
67801
67802 2004-12-17  Jim Meyering  <jim@meyering.net>
67803
67804         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67805         Otherwise, install-sh could exit with improper exit status when
67806         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67807
67808 2004-12-16  Simon Josefsson  <jas@extundo.com>
67809
67810         * tests/test-base64.c: Add license.
67811
67812 2004-12-15  Stepan Kasal  <address@hidden>
67813
67814         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67815
67816 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * modules/getcwd (Files): Add m4/d-ino.m4.
67819         Suggested by Mark D. Baushke.
67820
67821 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * lib/getdate.y (textint): New member "negative".
67824         (time_zone_hhmm): New function.
67825         Expect 14 shift-reduce conflicts, not 13.
67826         (o_colon_minutes): New rule.
67827         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67828         (yylex): Set the "negative" member of signed numbers.
67829
67830 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * doc/getdate.texi (Time of day items, Time zone items):
67833         Describe new formats +00:00, UTC+00:00.
67834
67835 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67838         spurious "-l"s.  Problem reported by Stepan Kasal.
67839
67840 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67843         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67844
67845 2004-12-04  Simon Josefsson  <jas@extundo.com>
67846
67847         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67848         Vandoorselaere <yoann@prelude-ids.org>.
67849
67850 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         Changes imported from coreutils.
67853         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67854         exist.
67855         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67856
67857 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67858
67859         Changes imported from coreutils.
67860         * lib/hard-locale.c: Assume <locale.h> exists.
67861         Include "strdup.h".
67862         (GLIBC_VERSION): New macro.
67863         (hard_locale): Assume setlocale exists.
67864         Rewrite to avoid #ifdef.
67865         Use strdup rather than malloc + strcpy.
67866         * lib/human.c: Assume <locale.h> exists.
67867         (human_readable): Assume localeconv exists.
67868
67869 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67870
67871         * modules/hard-locale (Depends-on): Add strdup.
67872
67873 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67874
67875         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67876         convert T2, not T.  (Imported from libc.)
67877
67878 2004-11-30  Simon Josefsson  <jas@extundo.com>
67879
67880         * modules/restrict (License): Change to LGPL.
67881
67882 2004-11-30  Simon Josefsson  <jas@extundo.com>
67883
67884         * m4/restrict.m4: Add copyright and copying conditions.
67885
67886 2004-11-30  Simon Josefsson  <jas@extundo.com>
67887
67888         * m4/base64.m4: New file.
67889
67890 2004-11-30  Simon Josefsson  <jas@extundo.com>
67891
67892         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67893         base64.
67894
67895         * tests/test-base64.c: New file.
67896
67897         * modules/base64: New file.
67898
67899 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67902         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67903
67904         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67905
67906 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67909         (__getcwd.c): Don't restore errno; glibc doesn't.
67910         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67911         first, falling back to our code only if its results look suspicious.
67912         Ensure that the resulting buffer is only as large as necessary.
67913
67914         * lib/readutmp.c: Include readutmp.h first.
67915         Include <errno.h>, since readutmp.h no longer does that.
67916         * lib/readutmp.h: Don't include <errno.h>,
67917         <sys/param.h>, <time.h>; not needed to establish interface.
67918         (errno): Remove decl.
67919         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67920         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67921         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67922
67923 2004-11-28  Simon Josefsson  <jas@extundo.com>
67924
67925         * lib/base64.h, base64.c: New file.
67926
67927 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67930
67931 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67934         (Depends-on): Remove pathmax, same.  Add mempcpy.
67935         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67936         (Makefile.am): Append getcwd.h to lib_SOURCES.
67937         (Include): Add getcwd.h.
67938         (Maintainer): Change from Jim Meyering to "all, glibc",
67939         since getdate now uses intended-for-glibc code.
67940         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67941         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67942
67943 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67946         HP's ANSI C compiler.
67947         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67948         Declaring int functions causes warnings on some modern systems and
67949         shouldn't be needed to compile on ancient ones.
67950         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67951         defined.
67952
67953         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67954         with the following changes.
67955         (__set_errno): Parenthesize properly.
67956         Include <stdbool.h>.
67957         (MIN, MAX, MATCHING_INO): New macros.
67958         (__getcwd): Define with prototype, not K&R form.
67959         Use heuristics to allocate default buffer on stack if possible.
67960         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67961         behavior, and to avoid the PATH_MAX limit when computing
67962         ../../../../...
67963         Use MATCHING_INO to compare inode number to file.
67964         Check for arithmetic overflow in size calculations.
67965         Fix bug in reallocation of dot array that caused getcwd to fail
67966         on directories nested deeper than 75.
67967         Be more careful about saving errno on error.
67968         Do not use realloc; use only free+malloc, as this is a bit
67969         more flexible and avoids a needless copy operation.
67970         Do not inspect st_dev and st_ino for symbolic links; POSIX
67971         doesn't specify the latter.
67972         Check for closedir errors.
67973         Avoid needless casts.
67974         Use "#ifdef weak_alias" around weak_alias, to be like other
67975         glibc code.
67976         The following changes to getcwd.c have effect only when used in
67977         gnulib; they have no effect inside glibc proper.
67978         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67979         as alloca isn't used.
67980         (alloca, __alloca): Likewise.
67981         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67982         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67983         unconditionally, as gnulib assumes C89 or better.
67984         Do not include <sys/param.h>.
67985         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67986         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67987         better.
67988         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67989         Include <dirent.h> in a way that is compatible with modern Autoconf.
67990         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67991         New macros, if not already defined.
67992         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67993         Use "_LIBC", not "defined _LIBC", for consistency.
67994         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67995         a mempcpy module.
67996         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67997         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67998         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67999         credit only to Jim Meyering and adjust the copyright dates.
68000         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68001         <stdlib.h>, <unistd.h>, "pathmax.h".
68002         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68003         (INITIAL_BUFFER_SIZE): Remove.
68004         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68005
68006 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68009         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68010         Use the _ONCE methods, for efficiency.
68011         Check for fcntl.h.  In test program, include <errno.h>
68012         and <fcntl.h> if available.  Remove old K&R cruft from
68013         test program.  Check for common errors in GNU/Linux,
68014         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68015         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68017         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68018         name accordingly.
68019         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68020         accommodate new getcwd.c.
68021         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68022         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68023         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68024         that's all we need now.
68025
68026 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68027
68028         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68029         argp-parse.c depends on getopt internals, that means we should
68030         always use our getopt, to be on the safe side.
68031         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68032         order not to spoil the result of an eventual previous invocation
68033         of gl_GETOPT_SUBSTITUTE.
68034
68035 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68036
68037         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68038         redefinition warnings. To avoid them, include the defines
68039         in `#if !defined __need_getopt ... #endif'. The only place
68040         where __getopt_argv_const is used is in definitions
68041         of getopt_long and getopt_long_only below, which are as well
68042         protected by `#ifndef __need_getopt'.
68043         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68044         __need_getopt after including <stdio.h> and <unistd.h> These
68045         headers might have defined it.
68046
68047 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68050
68051 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68054         (futimens): New function, which uses futimes if available.
68055         (futimens, utimens): Support timespec==NULL, with same semantics
68056         as utime and utimens.
68057         * lib/utimens.h (futimens): New decl.
68058
68059 2004-11-23  Jim Meyering  <jim@meyering.net>
68060
68061         * lib/getopt_.h: Remove trailing blanks.
68062
68063 2004-11-23  Jim Meyering  <jim@meyering.net>
68064
68065         * lib/__fpending.c: Add comment.
68066
68067 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         * modules/canonicalize (Depends-on): Add xreadlink.
68070         Problem reported by James Youngman.
68071
68072 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68075         New macros.
68076         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68077         optopt): Use them instead of invoking ## directly; otherwise, the
68078         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68079
68080 2004-11-19  Bruno Haible  <bruno@clisp.org>
68081
68082         * lib/strtok_r.c: Move comments from here...
68083         * lib/strtok_r.h: ... to here.
68084
68085 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68088         implementations that mishandle size_t overflow.
68089
68090 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68093         might fail.  Problem reported by Yoann Vandoorselaere.
68094         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68095         implementations that mishandle size_t overflow.
68096
68097 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * modules/canon-host (Depends-on): Add strdup.
68100
68101 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68104
68105 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         * lib/canon-host.c: Include "strdup.h".
68108         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68109         Use strdup instead of malloc/strcpy to duplicate strings.
68110
68111         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68112         (human_space_before_unit): New constant.
68113         * lib/human.c (human_readable): Support it.
68114
68115         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68116         (xgetcwd): Set errno correctly when failing.
68117         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68118         the failure is actually due to a PATH_MAX problem.
68119
68120         Further getopt changes to make it more likely that glibc will
68121         buy the changes back.
68122         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68123         (getopt): Use it, so to preserve glibc semantic
68124         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68125         when compiling for libc.
68126         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68127         (getopt_long, getopt_long_only): Use it.
68128
68129         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68130         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68131         (getopt): Argv is now char * const *, as per standard.
68132         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68133         not char *__getopt_argv_const *.
68134         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68135         _getopt_long_only_r): Likewise.
68136         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68137         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68138         _getopt_long_r, _getopt_long_only_r): Likewise.
68139         * lib/getopt_.h (__getopt_argv_const): Remove.
68140         (getopt): Argv is now char * const *, as per standard.
68141
68142         * lib/getdate.y (tORDINAL): New token.
68143         (day, relunit): Allow it for relative times.
68144         (relative_time_table): Use tORDINAL for ordinals.
68145
68146 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68149         Document that "second" isn't allowed as an ordinal number.
68150
68151 2004-11-16  Jim Meyering  <jim@meyering.net>
68152
68153         * modules/closeout (Depends-on): Add fpending.
68154
68155 2004-11-15  Jim Meyering  <jim@meyering.net>
68156
68157         * lib/closeout.c: Include "__fpending.h" once again.
68158         Include <stdbool.h>.
68159         (close_stdout): Don't fail just because stdout was closed initially,
68160         since some programs don't write to stdout in the normal course of
68161         operation (other than --version and --help), and we don't want this
68162         function to make e.g. `touch file >&-' fail.
68163         But do fail if it was closed and someone has tried to write to it.
68164         E.g., `printf foo >&-' must fail.
68165
68166 2004-11-13  Jim Meyering  <jim@meyering.net>
68167
68168         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68169
68170 2004-11-12  Simon Josefsson  <jas@extundo.com>
68171
68172         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68173         small doc fix is still pending.
68174
68175 2004-11-11  Simon Josefsson  <jas@extundo.com>
68176
68177         * modules/strtok_r: New file.
68178
68179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68180         strtok_r.
68181
68182 2004-11-11  Simon Josefsson  <jas@extundo.com>
68183
68184         * m4/strtok_r.m4: New file.
68185
68186         * m4/getopt.m4: Replace opterr.
68187
68188 2004-11-11  Simon Josefsson  <jas@extundo.com>
68189
68190         * lib/strtok_r.h, strtok_r.c: New file.
68191
68192 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68195         of replacing opterr, getopt, etc.  This should handle the
68196         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68197
68198 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68201         we can stop lying to compilers about the constness of argv when we
68202         are compiled outside glibc.
68203         (getopt, getopt_long, getopt_long_only): Use it.
68204         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68205         _getopt_internal, getopt): Likewise.
68206         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68207         _getopt_long_only_r): Likewise.
68208         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68209         _getopt_long_r, _getopt_long_only_r): Likewise.
68210
68211         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68212         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68213         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68214         the other external symbols.
68215         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68216         declaration, since the above renaming now works around collisions.
68217
68218 2004-11-11  Jim Meyering  <jim@meyering.net>
68219
68220         * lib/linebreak.c: Remove trailing blanks.
68221         * lib/alloca_.h: Likewise.
68222         * lib/acosl.c: Likewise.
68223         * lib/euidaccess.c: Likewise.
68224         * lib/allocsa.h: Likewise.
68225
68226 2004-11-10  Simon Josefsson  <jas@extundo.com>
68227
68228         * m4/getaddrinfo.m4: New file.
68229
68230 2004-11-10  Simon Josefsson  <jas@extundo.com>
68231
68232         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68233
68234 2004-11-10  Simon Josefsson  <jas@extundo.com>
68235
68236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68237         getaddrinfo.
68238
68239         * modules/getaddrinfo: New file.
68240
68241 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68244
68245 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68246
68247         * lib/mktime.c (SHR): New macro, which is a portable
68248         substitute for >> that should work even on Crays.
68249         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68250         Problem reported by Mark D. Baushke in
68251         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68252         * lib/getdate.y (SHR): Likewise.
68253         (tm_diff): Use it.
68254         * lib/strftime.c (SHR): Likewise.
68255         (tm_diff): Use it.
68256         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68257         quote_these_too, so that right shifts are well defined.  All uses
68258         changed.
68259
68260 2004-11-10  Jim Meyering  <jim@meyering.net>
68261
68262         Ensure that no close failure goes unreported.
68263         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68264         return early when it seems there's nothing to flush.
68265         Don't include __fpending.h.
68266
68267 2004-11-10  Jim Meyering  <jim@meyering.net>
68268
68269         * modules/closeout (Depends-on): Remove fpending.
68270
68271 2004-11-10  Jim Meyering  <jim@meyering.net>
68272
68273         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68274
68275 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68278         gl_FUNC_STRFTIME.
68279         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68280         and AC_REQUIRE when possible, to avoid duplicate checks.
68281         Check for <wchar.h>.
68282
68283 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68286
68287 2004-11-09  Bruno Haible  <bruno@clisp.org>
68288
68289         * m4/sockpfaf.m4: New file.
68290
68291 2004-11-05  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68294         Reported by Mark D. Baushke <mdb@cvshome.org>.
68295
68296 2004-11-04  Bruno Haible  <bruno@clisp.org>
68297
68298         2004-09-11  Bruno Haible  <bruno@clisp.org>
68299                 * allocsa.valgrind: New file.
68300         2004-02-06  Bruno Haible  <bruno@clisp.org>
68301                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68302                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68303                 Reported by Christopher Seip <chris.seip@hp.com>.
68304
68305 2004-11-04  Bruno Haible  <bruno@clisp.org>
68306
68307         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68308         (Makefile.am): Distribute it.
68309
68310 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68313         with errno == ERANGE if the buffer is too small.
68314         Problem reported by Mark D. Baushke.
68315
68316 2004-11-03  Albert Chin  <china@thewrittenword.com>
68317             Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68320         equivalent, substitute $ac_type for equivalent type rather than
68321         blindly using uint32_t *always* which won't work if uint32_t is not
68322         available.  Define _UINT32_T to work around typedef of uint32_t if
68323         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68324         2.5.1.
68325
68326 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * m4/jm-macros.m4: Sync from coreutils.
68329         (gl_MACROS): Check for mbrlen, for pathchk.
68330         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68331
68332 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         * lib/xreadlink.c (MAXSIZE): New macro.
68335         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68336         size does not exceed MAXSIZE.  Avoid cast.
68337         As suggested by Mark D. Baushke in
68338         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68339         if readlink fails with buffer size just under MAXSIZE, try again
68340         with MAXSIZE.
68341
68342 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68345
68346 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68347         and  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68350         (get_date): Overparenthesize to avoid GCC warning.
68351
68352 2004-11-02  Bruno Haible  <bruno@clisp.org>
68353
68354         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68355         returns void.
68356
68357 2004-11-02  Bruno Haible  <bruno@clisp.org>
68358
68359         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68360         function returns void.
68361
68362 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68365         fflush_unlocked, flockfile, funlockfile, funlockfile,
68366         fputs_unlocked, putc_unlocked.
68367
68368 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68371         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68372         already declared.
68373
68374 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * modules/getdate (Files): Add doc/getdate.texi.
68377         (Depends-on): Add setenv, xalloc.
68378
68379 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * lib/getdate.y: Add support for TZ="foo" within a date string.
68382         Fix some bugs near time_t boundaries.  Reject dates with
68383         out-of-range components, e.g., "Sept 31".
68384         Include <stdlib.h>, "setenv.h", "xalloc.h".
68385         (ISDIGIT_LOCALE): Remove; unused.
68386         Note that the TZ and time functions used here are not reentrant.
68387         (mktime_ok, get_tz): New functions.
68388         (TZBUFSIZE): New constant.
68389         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68390         This requires that we sometimes generate our own TZ="XXX..." setting.
68391
68392 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * doc/getdate.texi: New file, from coreutils with modifications for
68395         the new TZ parsing.
68396
68397 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68398
68399         * lib/mktime.c (not_equal_tm): Remove redundant check.
68400
68401 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * modules/regex (lib_SOURCES): Add regex.c.
68404         Reported by James Youngman in
68405         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68406
68407 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * lib/getdate.y: Use Bison 1.875 features, and some minor
68410         code cleanups.  This change does not affect semantics.
68411         Don't include <stdlib.h>; no longer needed.
68412         Don't include unlocked-io.h; only the "#if TEST" code uses
68413         stdio, and performance isn't crucial there.
68414         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68415         Bison 1.875 features as described below.
68416         All uses of "PC." replaced by "pc->".
68417         (YYSTYPE): Add a forward declaration.
68418         (yylex, yyerror): Use full prototypes in forward decls.
68419         Use "%pure-parser" rather than obsolescent "%pure_parser".
68420         Use %parse-param and %lex-param instead of obsolescent
68421         YYPARSE_PARAM and YYLEX_PARAM.
68422         (meridian_table, month_and_day_table, time_units_table,
68423         relative_time_table, time_zone_table, military_table,
68424         lookup_zone, lookup_word, get_date):
68425         Use NULL instead of 0 where appropriate.
68426         (to_hour): Avoid abort (), to avoid a dependency on
68427         stdlib.h.
68428         (yyerror, yylex): Now accepts parser_control * arg.
68429         (main) [TEST]: Use '\0' rather than 0 for char.
68430
68431 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68434
68435 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68438         It's now the caller's responsibility to handle the case where
68439         !HAVE_GETPAGESIZE && !defined getpagesize.
68440
68441         * lib/mktime.c (leapyear): Arg is long int, not int.
68442
68443 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68446
68447 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68450         missing.  Problem reported by James Youngman.
68451
68452 2004-10-16  Simon Josefsson  <jas@extundo.com>
68453
68454         * gnulib-tool: Fix comments.  Fix parse problem.
68455         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68456
68457 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68460         implementation of getopt_long.  Problem reported by Alexander Taler in:
68461         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68462
68463 2004-10-15  Bruno Haible  <bruno@clisp.org>
68464
68465         * gnulib-tool: Untabify. Initialize supplied_libname.
68466         (func_usage): More homogenous output.
68467         (func_modules_transitive_closure, func_modules_to_filelist,
68468         func_emit_lib_Makefile_am): New functions.
68469         (func_import): New function, extracted from big case statement. Use
68470         func_get_license, func_modules_transitive_closure,
68471         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68472         opt_lgpl. Don't use test -a, as it's not portable.
68473         (func_create_testdir): Use func_modules_transitive_closure,
68474         func_modules_to_filelist, func_emit_lib_Makefile_am.
68475
68476 2004-10-15  Bruno Haible  <bruno@clisp.org>
68477
68478         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68479
68480 2004-10-15  Bruno Haible  <bruno@clisp.org>
68481
68482         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68483         the portions belonging to each module.
68484         Suggested by Derek Robert Price <derek@ximbiot.com>.
68485
68486 2004-10-12  Simon Josefsson  <jas@extundo.com>
68487
68488         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68489         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68490         to real functions.
68491
68492 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68493
68494         * modules/vsnprintf: New file.
68495
68496 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68497
68498         * m4/vsnprintf.m4: New file.
68499
68500 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68501
68502         * lib/vsnprintf.h: New file.
68503         * lib/vsnprintf.c: New file.
68504
68505 2004-10-11  Bruno Haible  <bruno@clisp.org>
68506
68507         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68508         vsnprintf.
68509
68510 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68513
68514 2004-10-07  Bruno Haible  <bruno@clisp.org>
68515
68516         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68517         fits into the provided buffer.
68518
68519 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68520
68521         * lib/diacrit.c, diacrit.h: Add GPL notice.
68522
68523         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68524         notice.
68525         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68526         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68527         This avoids a potential constant-folding bug.
68528
68529 2004-10-05  Bruno Haible  <bruno@clisp.org>
68530
68531         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68532         for the declaration of strsep.
68533
68534 2004-10-05  Bruno Haible  <bruno@clisp.org>
68535
68536         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68537
68538 2004-10-04  Simon Josefsson  <jas@extundo.com>
68539
68540         * modules/memmem: New file.
68541         * tests/test-memmem.c: New file.
68542         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68543
68544 2004-10-04  Simon Josefsson  <jas@extundo.com>
68545
68546         * m4/memmem.m4: New file.
68547
68548 2004-10-04  Simon Josefsson  <jas@extundo.com>
68549
68550         * lib/memmem.h: New file.
68551         * lib/memmem.c: New file, taken from glibc.
68552
68553 2004-10-04  Simon Josefsson  <jas@extundo.com>
68554
68555         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68556         '#ifdef USE_UNLOCKED_IO'.
68557
68558 2004-10-04  Simon Josefsson  <jas@extundo.com>
68559
68560         * config/srclist.txt: Add memmem from glibc.
68561
68562 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68565
68566         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68567         modules/exclude, modules/getdate, modules/getline,
68568         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68569         modules/getusershell, modules/linebuffer, modules/md5,
68570         modules/mountlist, modules/posixtm, modules/readtokens,
68571         modules/readutmp, modules/regex, modules/sha1,
68572         modules/version-etc, modules/yesno:
68573         Remove dependency on unlocked-io.
68574
68575 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68578
68579         * m4/unlocked-io.m4: Add copyright notice.
68580         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68581
68582 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68585         * lib/xmalloc.c (xmemdup): Likewise.
68586         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68587         XFREE): Remove these long-obsolescent macros.
68588         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68589         * lib/xstrdup.c: Remove.
68590
68591         * lib/regex.c (re_comp): Cast gettext return value to char *,
68592         Problem reported by Martin Neitzel via Mark D. Baushke.
68593
68594 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68597         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68598         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68599         regex.c, sha1.c, version-etc.c, yesno.c:
68600         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68601         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68602         the includer's responsibility.
68603
68604         Sync from coreutils.
68605
68606         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68607         points to the start of a string, as the C Standard says the
68608         resulting behavior is undefined.
68609
68610         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68611         simple -> simple_backups, numbered_existing ->
68612         numbered_existing_backups, numbered -> numbered_backups
68613         to avoid shadowing problems.  All uses changed.
68614         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68615         * lib/backupfile.c (check_extension, numbered_backup):
68616         Rename locals to avoid shadowing 'basename'.
68617         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68618         once.
68619
68620         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68621         * lib/.cvsignore: Add getopt.h.
68622
68623 2004-10-04  Bruno Haible  <bruno@clisp.org>
68624
68625         * modules/README: New file.
68626         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68627         not a module.
68628
68629 2004-10-02  Jim Meyering  <jim@meyering.net>
68630
68631         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68632
68633 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68634
68635         * modules/strsep: New file.
68636
68637 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68638
68639         * m4/strsep.m4: New file.
68640
68641 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68642
68643         * lib/strsep.h: New file.
68644         * lib/strsep.c: New file.
68645
68646 2004-10-01  Simon Josefsson  <jas@extundo.com>
68647
68648         * lib/snprintf.c (snprintf): Handle size==0.
68649
68650 2004-10-01  Simon Josefsson  <jas@extundo.com>
68651             Bruno Haible  <bruno@clisp.org>
68652
68653         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68654         (snprintf): Declare 'args'.
68655
68656 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * lib/snprintf.c: Remove comments as to why each header is needed.
68659
68660 2004-10-01  Bruno Haible  <bruno@clisp.org>
68661
68662         * MODULES.html.sh: Add strsep.
68663
68664 2004-09-30  Simon Josefsson  <jas@extundo.com>
68665
68666         * modules/snprintf: New file.
68667
68668 2004-09-30  Simon Josefsson  <jas@extundo.com>
68669
68670         * m4/snprintf.m4: New file.
68671
68672 2004-09-30  Simon Josefsson  <jas@extundo.com>
68673
68674         * lib/snprintf.h, lib/snprintf.c: New files.
68675
68676 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68677
68678         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68679         (hol_entry_help): Never translate an empty string.
68680         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68681         * lib/argp.h (OPTION_NO_TRANS): New option.
68682
68683 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68684
68685         * modules/argp (Maintainer): Replace Simon Josefsson
68686         by Sergey Poznyakoff.
68687
68688 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68691         changes merged back into glibc.
68692
68693 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68696
68697 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68698
68699         * lib/xvasprintf.c: Include xalloc.h.
68700         (xvasprintf): Use xalloc_die, not xmalloc_die.
68701
68702 2004-09-29  Bruno Haible  <bruno@clisp.org>
68703
68704         * modules/alloca-opt: New file, derived from modules/alloca.
68705         * modules/allocsa: Depend on alloca-opt instead of alloca.
68706         * modules/setenv: Likewise.
68707         * modules/vasnprintf: Likewise.
68708         * MODULES.html.sh: Add alloca-opt.
68709
68710 2004-09-28  Simon Josefsson  <jas@extundo.com>
68711
68712         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68713         LGPL, and to replace license template from GPL to LGPL.
68714
68715 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * modules/dummy: Change license to LGPL.
68718
68719 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68722
68723 2004-09-24  Simon Josefsson  <jas@extundo.com>
68724
68725         * modules/minmax (License): Change from GPL to LGPL.
68726
68727 2004-09-23  Simon Josefsson  <jas@extundo.com>
68728
68729         * gnulib-tool (--import): Typo.
68730
68731 2004-09-23  Simon Josefsson  <jas@extundo.com>
68732
68733         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68734
68735 2004-09-22  Bruno Haible  <bruno@clisp.org>
68736
68737         * modules/*: Add 'License' field.
68738         * gnulib-tool: Accept --extract-license option.
68739         (func_get_license): New function.
68740
68741 2004-09-21  Bruno Haible  <bruno@clisp.org>
68742
68743         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68744         Reported by Simon Josefsson.
68745
68746 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68749         gl_AC_TYPE_LONG_LONG.
68750
68751 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68752
68753         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68754
68755 2004-09-18  Simon Josefsson  <jas@extundo.com>
68756         and  Paul Eggert  <eggert@cs.ucla.edu>
68757
68758         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68759         calls with autoreconf.  Define GL_LIB.
68760
68761 2004-09-14  Karl Berry  <karl@gnu.org>
68762
68763         * config/srclist.txt: unsync setenv.c, sigh.
68764
68765 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68768         Problem reported by Bruno Haible in:
68769         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68770
68771 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * config/srclist.txt: Comment out argp-pvh.c.
68774
68775 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68778         in case some system header has #define'd it.  Problem reported by
68779         Soeren D. Schulze in
68780         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68781
68782 2004-09-09  Karl Berry  <karl@gnu.org>
68783
68784         * regex.[ch]: delete from the root.  These were supposed to be
68785                 synced with emacs cvs, but this has not happened for about
68786                 a year, and anyway nothing else uses emacs regex.[ch].
68787                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68788                 lib/regex[.ch] is untouched.
68789
68790 2004-09-09  Bruno Haible  <bruno@clisp.org>
68791
68792         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68793
68794 2004-09-09  Bruno Haible  <bruno@clisp.org>
68795
68796         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68797         modifications.
68798         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68799
68800 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68801
68802         * modules/xvasprintf: New file.
68803         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68804
68805 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68806
68807         * lib/xvasprintf.h: New file.
68808         * lib/xvasprintf.c: New file.
68809         * lib/xasprintf.c: New file.
68810
68811 2004-09-08  Bruno Haible  <bruno@clisp.org>
68812
68813         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68814
68815 2004-09-08  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68818         length is > INT_MAX.
68819         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68820         more.
68821
68822 2004-09-08  Bruno Haible  <bruno@clisp.org>
68823
68824         * lib/stdint_.h: New file, taken from GNU clisp.
68825
68826 2004-09-08  Bruno Haible  <bruno@clisp.org>
68827             Oskar Liljeblad  <oskar@osk.mine.nu>
68828
68829         * modules/stdint: New file.
68830         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68831
68832 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         Import from coreutils.
68835         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68836         strings on unbounded length.  alloca's performance benefits aren't
68837         that important here.
68838         (V_STRDUP): Remove.
68839         (parse_with_separator): New function, with most of the internals
68840         of the old parse_user_spec.  Allow user to omit both user and group,
68841         for compatibility with FreeBSD.
68842         Clone only the user name, not the entire spec.
68843         Do not set *uid, *gid unless entirely successful.
68844         Avoid memory leak in some failing cases.
68845         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68846         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68847         (parse_user_spec): Rewrite to use parse_with_separator.
68848
68849 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * modules/userspec: Don't depend on alloca.
68852
68853 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68856
68857 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68860         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68861         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68862
68863 2004-08-16  Simon Josefsson  <jas@extundo.com>
68864
68865         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68866         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68867         Add --dry-run for --import.
68868         Let user provided command line parameters override configure.ac
68869         settings.
68870
68871 2004-08-12  Simon Josefsson  <jas@extundo.com>
68872
68873         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68874         as discussed with Paul Eggert in threads rooted at
68875         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68876         and
68877         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68878         Before, the test was empty, and relied on ELIDE_CODE in source
68879         code.)
68880         (gl_PREREQ_GETOPT): New macro.
68881         (gl_GETOPT): Use them.
68882
68883 2004-08-12  Simon Josefsson  <jas@extundo.com>
68884
68885         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68886         * lib/getopt_.h: Renamed from getopt.h.
68887
68888 2004-08-12  Simon Josefsson  <jas@extundo.com>
68889
68890         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68891         Change default library name from libfoo to libgnu.
68892         Now, if you have a configure.ac that says:
68893                 gl_SOURCE_BASE(gl)
68894                 gl_M4_BASE(gl/m4)
68895                 gl_MODULES(error getopt etcetera)
68896                 gl_INIT
68897         you can import all you need by running:
68898                 ../gnulib/gnulib-tool --import
68899
68900         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68901         (Makefile.am): Rewrite, use logic from argz.
68902         (Include): Use <getopt.h> instead of "getopt.h".
68903
68904 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * modules/argp (Files): Add m4/unlocked-io.m4.
68907         (Depends-on): Add extensions.
68908
68909 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68912         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68913         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68914         Check for program_invocation_name, program_invocation_short_name,
68915         flockfile, funlockfile, features.h, _getopt_long_only_r.
68916
68917 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68920         its complicated substitute.
68921         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68922         and program_invocation_name.
68923         (__argp_basename) [!_LIBC]: Remove; the only use was
68924         replaced by its body.
68925         (__argp_short_program_name): Change condition from
68926         !defined __argp_short_program_name to
68927         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68928         to match argp-namefrob.h.
68929         (__argp_failure): Don't assume strerror_r returns char *.
68930         * lib/argp-parse.c (N_): Define unconditionally.
68931         (argp_default_options): Fill out initializers with 0 to avoid
68932         gcc warnings.
68933
68934 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68937         getopt1.c.
68938
68939 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         Merge from coreutils.
68942
68943         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68944
68945         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68946         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68947
68948 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         Merge from coreutils.
68951
68952         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68953         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68954         for Reliant Unix 5.43.
68955
68956         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68957         (union fooround): Use uintmax_t, not long int.
68958         The rest is a merge from libc:
68959         [defined _LIBC]: Include <shlib-compat.h>.
68960         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68961
68962         * lib/settime.c (settime): Recode to avoid warning with
68963         Sun Forte C 6U2.
68964
68965         * lib/strverscmp.c: Convert to UTF-8.
68966
68967 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68970         m4/uintmax_t.m4.
68971
68972 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * modules/xalloc-die: New file.
68975         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68976
68977         * modules/md5 (Files): Add m4/uint32_t.m4.
68978         * modules/sha1: Renamed from modules/sha.
68979         (Files):
68980         Rename lib/sha.h to lib/sha1.h.
68981         Rename lib/sha.c to lib/sha1.c.
68982         Rename m4/sha.m4 to m4/sha1.m4.
68983         (lib_SOURCES): Likewise.
68984         (configure.ac): Rename gl_SHA to gl_SHA1.
68985         (Include): sha.h -> sha1.h.
68986
68987 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68990         * m4/sha1.m4: Renamed from sha.m4.
68991         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68992
68993 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68994
68995         * lib/obstack.h (obstack_empty_p):
68996         Don't assume that chunk->contents is suitably aligned.
68997         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68998         Likewise. Problem reported by Benno in
68999         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69000
69001         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69002         readable.  This could be improved further but it'd take some work.
69003
69004 2004-08-08  Simon Josefsson  <jas@extundo.com>
69005
69006         * modules/xgethostname (Depends-on): Remove exit and error (not
69007         used).
69008
69009         * modules/getpass-gnu: Add getpass.h.
69010         (Depends-on): Add stdbool.
69011         * modules/getpass: Add getpass.h.
69012
69013 2004-08-08  Simon Josefsson  <jas@extundo.com>
69014
69015         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69016         Check getpass declaration.
69017
69018 2004-08-08  Simon Josefsson  <jas@extundo.com>
69019
69020         * lib/xgethostname.c: Don't include error.h (not used).
69021
69022         * lib/getpass.h: Add.
69023         * lib/getpass.c: Include getpass.h first.
69024
69025 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/xalloc-die.c: New file.
69028         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69029         All uses removed.
69030         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69031         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69032         xalloc-die.c.
69033         (_, N_, xalloc_die): Move to xalloc-die.c.
69034         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69035         so that we needn't mess with xalloc_msg_memory_exhausted.
69036
69037         * lib/sha1.h: Renamed from sha.h.
69038         (SHA1_H): Renamed from _SHA_H.
69039         (sha1_ctx): Renamed from sha_ctx.
69040         (sha1_init_ctx): Renamed from sha_init_ctx.
69041         (sha1_process_block): Renamed from sha_process_block.
69042         (sha1_process_bytes): Renamed from sha_process_bytes.
69043         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69044         (sha1_read_ctx): Renamed from sha_read_ctx.
69045         (sha1_stream): Renamed from sha_stream.
69046         (sha1_buffer): Renamed from sha_buffer.
69047         * lib/sha1.c: Likewise; renamed from sha.c.
69048         Do not include <sys/types.h>.
69049         Include <stddef.h> rather than <stdlib.h>.
69050
69051 2004-08-08  Bruno Haible  <bruno@clisp.org>
69052
69053         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69054         FILESYSTEM_PREFIX_LEN.
69055         * lib/progreloc.c: Likewise.
69056         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69057
69058 2004-08-06  Simon Josefsson  <jas@extundo.com>
69059
69060         * modules/progname (Depends-on): Don't depend on stdbool.
69061
69062 2004-08-06  Simon Josefsson  <jas@extundo.com>
69063
69064         * modules/getsubopt: New file.
69065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69066         getsubopt.
69067
69068 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         More merge from coreutils.
69071
69072         * m4/utimens.m4, m4/utimecmp.m4: New files.
69073         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69074         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69075         prereq.m4, sha.m4: Import changes from coreutils.
69076
69077 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         More merge from coreutils.
69080         * modules/raise, modules/readtokens0, modules/utimens:
69081         * modules/utimecmp, module/xnanosleep: New files.
69082         * modules/strftime: Add lib/strftime.h.
69083         Change include from <time.h> to "strftime.h".
69084         * modules/yesno: Add lib/yesno.h.
69085         * modules/backupfile: Remove lib/addext.c.
69086         * modules/euidaccess: Add stat-macros.h.
69087         * modules/canonicalize, modules/euidaccess,
69088         modules/filemode, modules/lchown, modules/makepath,
69089         modules/rmdir, modules/stat: Likewise.
69090
69091 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         Merge from tar.
69094         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69095         SIZE_MAX is a valid preprocessor constant.
69096         (__argp_basename): Change from "#ifndef _LIBC"
69097         to "#ifndef __argp_short_program_name", so that
69098         we don't compile these functions for tar.
69099
69100         More merges from coreutils.
69101         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69102         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69103         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69104         * lib/addext.c: Remove; no longer needed.
69105         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69106         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69107         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69108         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69109         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69110         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69111         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69112         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69113         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69114         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69115         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69116         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69117         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69118         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69119         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69120         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69121         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69122         Import changes from coreutils.
69123
69124 2004-08-05  Simon Josefsson  <jas@extundo.com>
69125
69126         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69127
69128 2004-08-05  Simon Josefsson  <jas@extundo.com>
69129
69130         * m4/getsubopt.m4: New file.
69131
69132 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         Merge from coreutils.
69135
69136         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69137         * m4/getcwd-path-max.m4: New files.
69138
69139         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69140         FILESYSTEM_PREFIX_LEN ->
69141         FILE_SYSTEM_PREFIX_LEN.
69142         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69143         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69144         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69145         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69146
69147         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69148         prerequisite modules now handle the DOS stuff.
69149         Don't check for unistd.h.
69150
69151 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         Merge from coreutils.
69154
69155         * lib/.gdb-history: Remove; this doesn't belong here.
69156
69157         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69158         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69159         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69160         * lib/getcwd.c: New files.
69161
69162         * lib/dirname.h: Include <stdbool.h>.
69163         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69164         for consistency with POSIX terminology.  All uses changed.
69165         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69166         (strip_trailing_slashes): Use bool for booleans.
69167         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69168
69169         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69170         sometimes returns a positive errno value even when it succeeds.
69171         (print_errno_message) [!LIBC]: Fall back on strerror if
69172         __strerror_r fails.
69173
69174         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69175         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69176         (longest_relative_suffix): New function.
69177         (path_concat): Use it.  Assume first argument is not NULL.
69178         Port to DOS.  Omit redundant separators.
69179         Report an error instead of returning NULL.
69180         Use mempcpy instead of memcpy.
69181         (xpath_concat): Remove: not declared or used.
69182
69183         * lib/same.h: Include <stdbool.h>
69184         (same_name): Return bool, not int.
69185         * lib/same.c (same_name): Likewise.
69186         (errno): Don't declare; we assume C89 or better now.
69187
69188         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69189         if not already defined.
69190
69191         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69192         * lib/dup-safer.c (errno): Likewise.
69193
69194 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         Merge from coreutils.
69197         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69198         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69199         * modules/path-concat: Don't depend on strdup.
69200
69201 2004-08-03  Simon Josefsson  <jas@extundo.com>
69202
69203         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69204         * lib/progname.h: Don't include stdbool.h.
69205
69206 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69209         * MODULES.html.sh (func_all_modules): Remove fatal.
69210
69211 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69214
69215 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69218         working.
69219
69220 2004-08-02  Simon Josefsson  <jas@extundo.com>
69221
69222         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69223         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69224         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69225
69226 2004-08-01  Simon Josefsson  <jas@extundo.com>
69227
69228         * lib/xgetdomainname.c: Include stdlib.h, for free().
69229
69230 2004-07-19  Bruno Haible  <bruno@clisp.org>
69231
69232         * MODULES.html.sh (func_all_modules): Add dummy.
69233
69234 2004-07-16  Simon Josefsson  <jas@extundo.com>
69235
69236         * modules/dummy: New file.
69237
69238 2004-07-16  Simon Josefsson  <jas@extundo.com>
69239
69240         * lib/dummy.c: New file.
69241
69242 2004-07-16  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/backupfile.h: Add extern "C" for C++.
69245         * lib/closeout.h: Likewise.
69246         * lib/copy-file.h: Likewise.
69247         * lib/findprog.h: Likewise.
69248         * lib/full-write.h: Likewise.
69249         * lib/pathname.h: Likewise.
69250         * lib/progname.h: Likewise.
69251         * lib/stpcpy.h: Likewise.
69252         * lib/stpncpy.h: Likewise.
69253         * lib/strcase.h: Likewise.
69254         * lib/strstr.h: Likewise.
69255         * lib/xalloc.h: Likewise.
69256
69257         * lib/mbswidth.h: Add extern "C" for C++.
69258         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69259
69260 2004-07-13  Robert Millan  <robertmh@gnu.org>
69261
69262         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69263
69264 2004-07-09  Simon Josefsson  <jas@extundo.com>
69265
69266         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69267         failed without this.)
69268
69269 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69270
69271         * modules/chown (Files): Add lib/fchown-stub.c, since
69272         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69273
69274 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/fchown-stub.c: New file.
69277
69278 2004-06-24  Jim Meyering  <jim@meyering.net>
69279
69280         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69281
69282 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * modules/argz: Omit "#include".
69285
69286         * MODULES.html.sh (func_all_modules): Add calloc, to match
69287         2004-06-01 addition of calloc module.
69288
69289 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * m4/argz.m4: New file, which is autoupdated from libtool.
69292
69293 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69296         libtool.
69297
69298 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * config/srclist-update: Don't insist on "USA." before the
69301         close-comment, as libtool omits the period and puts the */ on a
69302         separate line.
69303         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69304         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69305
69306 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69307
69308         * modules/argz: New file.
69309         * MODULES.html.sh (func_all_modules): Add argz.
69310
69311 2004-06-12  Jim Meyering  <jim@meyering.net>
69312         and  Paul Eggert  <eggert@cs.ucla.edu>
69313
69314         * modules/hash (Files): Add lib/xalloc.h.
69315         * modules/pipe (Depends-on): Add wait-process.
69316         * modules/stat (Depends-on): Add xalloc.
69317         * modules/userspec (Files): Add lib/userspec.h.
69318         * modules/xstrto
69319
69320         Upgrade from gettext-0.13.
69321         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69322         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69323         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69324
69325 2004-06-10  Jim Meyering  <jim@meyering.net>
69326
69327         * lib/calloc.c: New file.
69328
69329 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * lib/getdate.y (yylex): Allow space between sign and number.
69332         Problem reported by Dan Jacobson.
69333
69334 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         Merge from coreutils CVS.
69337
69338         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69339         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69340         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69341         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69342         xstrtol.m4: Fix copyright date and/or serial number.
69343
69344         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69345         See if we need an fchown replacement.
69346         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69347         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69348         and use the replacement function if we detect either defect.
69349
69350         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69351         gl_UTIMECMP.
69352
69353 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69354         and  Jim Meyering  <jim@meyering.net>
69355
69356         Merge from coreutils CVS.
69357
69358         * lib/stat-macros.h: New file, with contents from file-type.h
69359         and coreutils' system.h.
69360         * lib/file-type.c: Include "stat-macros.h".
69361         * lib/file-type.h (file_type): Move all macro definitions to new file,
69362         stat-macros.h.
69363
69364         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69365         Wrap old code with this conditional.
69366         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69367         function that does not dereference symlinks.
69368         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69369
69370         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69371         dependency problems.
69372         (xreadlink): Accept new arg SIZE, for efficiency.
69373         All decls and uses changed.
69374         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69375
69376         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69377         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69378
69379         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69380         sysexits.h.
69381
69382 2004-06-01  Jim Meyering  <jim@meyering.net>
69383
69384         * m4/calloc.m4: New file.
69385
69386 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69389         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69390         Also, fix a typo in a diagnostic.
69391
69392 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69395         or AC_FUNC_REALLOC.
69396
69397 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69400         macros to be defined.
69401         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69402         the allocator returns NULL because the requested size is zero.
69403
69404 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69407         var.  Add comment explaining why libc still defines it.  This
69408         merges the following patch from glibc:
69409         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69410
69411 2004-05-20  Andreas Schwab  <schwab@suse.de>
69412
69413         * m4/free.m4: Replace free if it not known to work, not the other
69414         way round.
69415
69416 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69419         present in glibc since revision 1.1 of this file.
69420         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69421         obstack_alignment_mask, obstack_alloc, obstack_base,
69422         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69423         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69424         obstack_grow0, obstack_init, obstack_int_grow,
69425         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69426         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69427         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69428         nonexistent functions.
69429
69430 2004-05-18  Karl Berry  <karl@gnu.org>
69431
69432         * config/srclist.txt: break link for vasnprintf.c.
69433
69434 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         Port obstack to the AS/400, where pointers are 16 bytes wide and
69437         you cannot cast an integer to a valid pointer.  This patch is
69438         currently waiting to be integrated into glibc; see
69439         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69440
69441         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69442         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69443         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69444         (struct obstack): temp member is now a union of a pointer and
69445         an integer, instead of an integer.  All integer uses changed.
69446         This does not affect the physical layout of struct obstack,
69447         except on hosts (like the AS/400) where the size or alignment of
69448         void * is greater than that of ptrdiff_t.
69449         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69450         __STDC__)]: Store temporary in pointer member of union, not
69451         integer member.
69452         * lib/obstack.c: Include <stddef.h>, for offsetof.
69453         (struct fooalign): Remove; it doesn't need a name.
69454         (union fooround): Change double to long double, and add void *.
69455         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69456         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69457         not a macro.  Hence the values are always int; so remove all
69458         casts-to-int in uses.
69459
69460 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69463         we can get this patch merged into glibc.
69464
69465 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69466             Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * m4/argp: Depend on alloca.
69469
69470 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69471             Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69474         freecoding.
69475
69476 2004-05-17  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69479         precision that consists of a '.' followed by an empty digit string.
69480         Patch by Tor Lillqvist <tml@iki.fi>.
69481
69482 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69485         for backward compatibility with older code.  We need our own
69486         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69487         it under some other name, and our alloca.h will define it.
69488
69489 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69490             Derek Price  <derek@ximbiot.com>
69491
69492         * lib/alloca.c: Include <alloca.h>, to get our interface.
69493         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69494         include <alloca.h> first.  Use C89 prototype for alloca; this
69495         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69496         Use #elif for simplicity, since we can assume C89 now.
69497         Don't try to source the system alloca.h since it will not be found
69498         and to prevent recursively including its replacement.
69499         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69500         * lib/regex.c: Likewise.
69501
69502 2004-05-16  Derek Price  <derek@ximbiot.com>
69503             Paul Eggert  <eggert@cs.ucla.edu>
69504
69505         getline cleanup.  This changes the getndelim2 API: both order of
69506         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69507         no delimiter).
69508
69509         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69510         interface does that.
69511         (getline): Always use getdelim, so that we don't have two
69512         copies of this code.
69513         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69514         if available.
69515         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69516         (GETNDELIM2_MAXIMUM): New macro.
69517         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69518         instead of the old practice of delim2==0.  All callers changed.
69519         Return -1 on overflow, instead of returning junk.
69520         Do not set *linesize unless allocation succeeds.
69521         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69522         that we include sys/types.h.
69523         * lib/getnline.h: Likewise.
69524         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69525         (getndelim2): Reorder arguments.
69526         * lib/getnline.c (getnline, getndelim):
69527         Don't discard the NMAX argument.
69528         (getnline): Invoke getndelim, to avoid code duplication.
69529         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69530         of (size_t) -1 by callers of the getnline family.
69531
69532 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69533
69534         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69535         Check for gettimeofday.
69536         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69537         Check for settimeofday, stime.
69538
69539 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * lib/nanosleep.c (suspended): Change its type from int to
69542         sig_atomic_t volatile.
69543         (first_call): Make it private to rpl_nanosleep, and have it
69544         be zero initially as that's a bit faster.
69545         (my_usleep): Round up fractional times instead of truncating them,
69546         as this is the usual meaning for 'sleep'.
69547
69548         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69549         doesn't work.
69550         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69551         (ENOSYS): Define if not defined.
69552         (settime): Fall back on stime if it exists and settimeofday fails.
69553         But don't bother with fallbacks if a method fails with errno == EPERM.
69554
69555 2004-05-11  Jim Meyering  <jim@meyering.net>
69556
69557         Prior to this change, the save_cwd caller required read access to the
69558         current directory on most systems (ones with the fchdir function).
69559
69560         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69561         fails, try write-only, and finally, resort to using xgetcwd.
69562
69563 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * lib/obstack.c, obstack.h: Import changes from libc.
69566
69567 2004-04-28  Bruno Haible  <bruno@clisp.org>
69568
69569         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69570         also implicitly appends .exe to executables.
69571         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69572         accepts Windows pathnames.
69573         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69574         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69575         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69576         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69577         Reported by Derek Robert Price <derek@ximbiot.com>.
69578
69579 2004-04-21  Karl Berry  <karl@gnu.org>
69580
69581         * config/srclist.txt (localcharset.c): break sync.
69582
69583 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69584
69585         * m4/host-os.m4: Add a copyright notice.
69586
69587 2004-04-20  Jim Meyering  <jim@meyering.net>
69588
69589         Change UTILS_ to gl_ in AC_DEFINE'd names.
69590         Change utils_- and jm_-prefixed variables, too.
69591         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69592         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69593         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69594
69595         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69596         Don't emit trailing blanks.
69597         Also rename jm_-prefixed variables to have gl_ prefix.
69598
69599         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69600         Also rename jm_-prefixed variables to have gl_ prefix.
69601
69602         * m4/jm-macros.m4: Reflect the renamings.
69603         * m4/prereq.m4: Likewise.
69604
69605 2004-04-20  Jim Meyering  <jim@meyering.net>
69606
69607         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69608         memory.
69609
69610 2004-04-20  Jim Meyering  <jim@meyering.net>
69611             Bruno Haible  <bruno@clisp.org>
69612
69613         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69614         memory when realloc fails.
69615
69616 2004-04-19  Jim Meyering  <jim@meyering.net>
69617
69618         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69619         now that readutmp.c may call `free (0)'.
69620
69621 2004-04-19  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69624         * m4/inttypes_h.m4: Likewise.
69625         * m4/stdint_h.m4: Likewise.
69626         * m4/intmax_t.m4: Likewise.
69627         * m4/uintmax_t.m4: Likewise.
69628
69629 2004-04-18  Jim Meyering  <jim@meyering.net>
69630
69631         * m4/prereq.m4: Don't forbid jm_ prefix.
69632
69633         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69634         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69635         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69636         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69637         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69638         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69639         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69640         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69641         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69642         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69643         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69644         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69645         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69646         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69647         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69648         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69649         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69650         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69651         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69652
69653 2004-04-18  Jim Meyering  <jim@meyering.net>
69654
69655         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69656         failure, don't leak memory and do call END_UTMP_ENT.
69657
69658 2004-04-16  Jim Meyering  <jim@meyering.net>
69659
69660         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69661         coreutils' stat program.
69662         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69663
69664 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69665
69666         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69667         C89.
69668         (CHAR_BIT): Remove, since we assume C89.
69669         Include <stdint.h> if available, as per current Autoconf CVS advice.
69670
69671 2004-03-31  Jim Meyering  <jim@meyering.net>
69672
69673         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69674         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69675         * m4/xalloc.m4: Likewise.
69676
69677 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69678
69679         Merge from coreutils.
69680
69681         * m4/inttostr.m4: New file.
69682         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69683         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69684         Require gl_CLOCK_TIME.
69685         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69686
69687 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69688
69689         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69690         not bool, to be more consistent with Unix conventions.
69691         Suggested by Bruno Haible.
69692
69693         Merge from coreutils.
69694
69695         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69696         * lib/umaxtostr.c: New files.
69697
69698         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69699         the usual <time.h> dance.
69700         (get_date): Change signature to support fractional time stamps.
69701         All callers changed.
69702         * lib/getdate.y: Include "getdate.h" first, as we can now
69703         assume C89 and don't need to worry about 'const'.
69704         Similarly, include "unlocked-io.h" near start, not in middle.
69705         Include <limits.h>.
69706         (textint.value): Use long int rather than int.
69707         (textint.digits): Use size_t rather than int.
69708         (BILLION, LOG10_BILLION): New constants.
69709         (parser_control): New member rel_ns.  Members day_ordinal,
69710         time_zone, month, day, hour, minutes, rel_year, rel_month,
69711         rel_day, rel_hour, rel_minutes, rel_seconds
69712         are now long int, not int.  Member seconds is now struct timespec,
69713         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69714         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69715         not int.
69716         (%union.intval): Now long int, not int.
69717         New member timespec.
69718         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69719         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69720         (spec): Now is a timespec or an item list.
69721         (timespec, items): New nonterminals.
69722         (time, rel, relunit, number, get_date):
69723         Add support for fractional seconds.
69724         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69725         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69726         (to_hour): First arg is now long int, not int.
69727         (to_year): Returns long int, not int.
69728         Don't treat year -70 like 70.
69729         (tm_diff): Returns long int, not int.
69730         (lookup_word): Use bool instead of int when appropriate.
69731         (yylex): Use size_t for count, not int.
69732         Detect overflow when parsing large integer constants.
69733         Add support for fractions.
69734         (get_date): Make pointers 'const' if possible.
69735         Use more-portable code to detect integer overflow.
69736         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69737         Don't use ctime; it's not reliable if the year has >4 digits.
69738
69739         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69740         This is for compatibility with BSD.
69741
69742         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69743         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69744         From coreutils' system.h.
69745
69746         * lib/userspec.c: Don't include "posixver.h".
69747         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69748         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69749         compatible extension.  Simplify code by removing a boolean int
69750         that was always nonzero if a string was nonnull.
69751
69752 2004-03-30  Jim Meyering  <jim@meyering.net>
69753
69754         Merge from coreutils.
69755
69756         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69757         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69758         on some systems one must include <grp.h> before it.
69759         Reported by Christian Krackowizer.
69760
69761 2004-03-30  Jim Meyering  <jim@meyering.net>
69762
69763         Merge from coreutils.
69764
69765         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69766
69767         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69768         an empty input stream.
69769
69770         * lib/readtokens.c: Include <stdbool.h>.
69771         (readtoken): Use `size_t' rather than int/long.
69772         All callers adjusted.
69773         Use `bool' rather than `int' where appropriate.
69774         Use memset rather than an explicit loop.
69775         Use x2nrealloc rather than xrealloc.
69776         Allow the use of `\0' as a delimiter.
69777         (readtokens): Likewise.
69778         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69779
69780 2004-03-30  Jim Meyering  <jim@meyering.net>
69781
69782         * m4/realloc.m4: Remove file, since now it does no more than
69783         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69784         the `configure.ac' section of module/realloc.
69785         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69786
69787 2004-03-30  Bruno Haible  <bruno@clisp.org>
69788
69789         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69790         nonnull.
69791
69792 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69793
69794         Merge changes to getloadavg.c from coreutils and Emacs.
69795
69796         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69797         Define to an expression, not to the empty string.
69798         Include cloexec.h and xalloc.h.
69799         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69800         Use set_cloexec_flag rather than rolling our own.
69801         * lib/cloexec.c, lib/cloexec.h: New files.
69802
69803 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69804
69805         * m4/cloexec.m4: New file.
69806
69807 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69808
69809         * lib/getopt.h: Sync with libc CVS.
69810
69811 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69812             Bruno Haible  <bruno@clisp.org>
69813
69814         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69815         mbswidth.
69816
69817 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69818             Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/mbswidth.h: Include <wchar.h> only if
69821         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69822         <wchar.h>.
69823         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69824
69825 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69826
69827         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69828         Sync with libc CVS.
69829         * lib/getopt_int.h: New file, also synced from libc.
69830
69831 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69832
69833         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69834         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69835         Bring back getopt.c, getopt.h, getopt1.c.
69836
69837 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69838
69839         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69840         All uses changed.  Check for sa_sigaction member; this fixes
69841         a bug first reported by Jason Andrade in
69842         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69843
69844 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69845
69846         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69847         '#if' expressions.  Unlike the code it replaces, it does not
69848         depend on (defined _SC_PAGESIZE).  However, it does depend on
69849         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69850         first reported by Jason Andrade in
69851         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69852
69853 2004-02-25  Simon Josefsson  <jas@extundo.com>
69854
69855         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69856
69857 2004-02-25  Simon Josefsson  <jas@extundo.com>
69858
69859         * lib/strdup.h: New file.
69860         * lib/strdup.c: Include it.
69861         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69862         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69863
69864 2004-02-23  Karl Berry  <karl@gnu.org>
69865
69866         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69867         (from fencepost.gnu.org:/gd/gnuorg).
69868
69869 2004-02-23  Karl Berry  <karl@gnu.org>
69870
69871         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69872         * config/srclist.txt: add maintain/standards documents.
69873
69874 2004-02-18  Bruno Haible  <bruno@clisp.org>
69875
69876         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69877         Reported by Derek Robert Price <derek@ximbiot.com>.
69878
69879 2004-02-16  Karl Berry  <karl@gnu.org>
69880
69881         * config/mkinstalldirs, install-sh: update from automake.
69882
69883 2004-02-06  Karl Berry  <karl@gnu.org>
69884
69885         * m4/po.m4: update from gettext 0.14.1.
69886
69887 2004-02-06  Karl Berry  <karl@gnu.org>
69888
69889         * lib/config.charset: update from gettext 0.14.1.
69890
69891 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69892
69893         Add comments and code, prompted by suggestions from Bruno Haible
69894         for sh-quote.
69895         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69896         describing the enum quoting_style values.
69897         * lib/quotearg.c (quotearg_alloc): New function.
69898         (quotearg_buffer_restyled): Treat lone { and } as special.
69899         Treat = as special.  Work around bug with older shells
69900         that "see" a '\' that is really the 2nd byte of a multibyte char.
69901         Quote empty string with shell_quoting_style.
69902
69903 2004-02-03  Bruno Haible  <bruno@clisp.org>
69904
69905         * m4/pipe.m4: New file, from GNU gettext.
69906
69907 2004-02-03  Bruno Haible  <bruno@clisp.org>
69908
69909         * lib/pipe.h: New file, from GNU gettext.
69910         * lib/pipe.c: New file, from GNU gettext.
69911
69912 2004-01-27  Bruno Haible  <bruno@clisp.org>
69913
69914         * m4/execute.m4: New file, from GNU gettext.
69915
69916 2004-01-27  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/execute.h: New file, from GNU gettext.
69919         * lib/execute.c: New file, from GNU gettext.
69920         * lib/w32spawn.h: New file, from GNU gettext.
69921
69922 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69923
69924         Merge from diffutils.
69925
69926         * lib/file-type.c (file_type): Add typed memory objects.
69927         * lib/file-type.h (S_TYPEISTMO): New macro.
69928
69929         * lib/c-stack.h (c_stack_action): Remove argv argument.
69930         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69931         (die): Don't calculate message unless segv_action returns.
69932         (get_stack_location, min_address_from_argv, max_address_from_argv,
69933         volatile stack_base, volatile_stack_size): Remove.
69934         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69935         that every segmentation violation is a stack overflow.  (Ouch!)
69936         See Debian bug 136249 (still outstanding) for more info about why
69937         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69938
69939 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69940
69941         Exit-status fix from coreutils.
69942
69943         Use exit_failure consistently in place of EXIT_FAILURE,
69944         so that program exit statuses are consistent on failure.
69945
69946         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69947         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69948         * lib/argmatch.h: Comment fix to match the above.
69949         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69950         Now a macro referring to exit_failure, instead of a separate
69951         variable.  Include "exitfail.h" to get it.
69952         * lib/xstrtol.h: Include "exitfail.h".
69953         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69954
69955         * lib/long-options.c (parse_long_options): Use prototype
69956         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69957         for clarity.
69958
69959 2004-01-21  Jim Meyering  <jim@meyering.net>
69960
69961         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69962         so as not to conflict with a different-sized __mktime_internal
69963         function in GNU libc.
69964         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69965         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69966
69967 2004-01-20  Karl Berry  <karl@gnu.org>
69968
69969         * config/config.guess: update from config.
69970
69971         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69972
69973 2004-01-20  Bruno Haible  <bruno@clisp.org>
69974
69975         Safer stack allocation.
69976         * lib/setenv.c: Include allocsa.h.
69977         (alloca): Remove fallback definition.
69978         (freea): Remove macro.
69979         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69980         instead of freea.
69981
69982 2004-01-20  Bruno Haible  <bruno@clisp.org>
69983
69984         * m4/eealloc.m4: New file, from GNU gettext.
69985
69986 2004-01-20  Bruno Haible  <bruno@clisp.org>
69987
69988         * m4/allocsa.m4: New file, from GNU gettext.
69989
69990 2004-01-20  Bruno Haible  <bruno@clisp.org>
69991
69992         * lib/xallocsa.h: New file, from GNU gettext.
69993         * lib/xallocsa.c: New file, from GNU gettext.
69994
69995 2004-01-20  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69998
69999 2004-01-20  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70002         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70003         specially.
70004
70005 2004-01-20  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70008         patch.
70009
70010 2004-01-20  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70013
70014 2004-01-20  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/eealloc.h: New file.
70017
70018 2004-01-20  Bruno Haible  <bruno@clisp.org>
70019
70020         * lib/binary-io.h: Avoid warnings on Cygwin.
70021
70022 2004-01-20  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/allocsa.h: New file, from GNU gettext.
70025         * lib/allocsa.c: New file, from GNU gettext.
70026
70027 2004-01-18  Karl Berry  <karl@gnu.org>
70028
70029         * doc/gpl.texi, doc/lgpl.texi: new files.
70030
70031 2004-01-18  Karl Berry  <karl@gnu.org>
70032
70033         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70034         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70035
70036 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70037
70038         Merge from coreutils.
70039
70040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70041         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70042         (gl_DEFAULT_POSIX2_VERSION): Move
70043         the documentation from 'configure' into 'config.hin',
70044         so that 'configure --help' isn't burdened by it and
70045         we don't have to worry about its formatting there.
70046         Reword the documentation so that it's more succinct
70047         and can be run together into a single paragraph.
70048         * m4/same.m4 (gl_SAME): Check for pathconf.
70049
70050 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70051
70052         Merge from coreutils.
70053
70054         * lib/posixver.c: Include posixver.h.
70055
70056         * lib/same.c: Include <stdbool.h>, <limits.h>.
70057         (_POSIX_NAME_MAX): Define if not defined.
70058         (MIN): New macro.
70059         (same_name): If file names are silently truncated, report
70060         that the file names are the same if they are the same after
70061         the silent truncation.
70062
70063         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70064         conversion function.
70065         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70066         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70067         longer needed.
70068
70069 2004-01-15  Jim Meyering  <jim@meyering.net>
70070
70071         Merge from coreutils.
70072
70073         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70074         if no library is required.
70075         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70076         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70077         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70078         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70079         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70080         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70081         value, $ac_cv_search_crypt, if it's "none required".
70082         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70083         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70084         not gl_FUNC_GETLOADAVG.
70085         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70086         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70087
70088 2004-01-15  Jim Meyering  <jim@meyering.net>
70089
70090         Merge from coreutils.
70091
70092         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70093         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70094         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70095
70096         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70097         optional configure-time default.
70098
70099         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70100
70101         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70102
70103 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70104
70105         Merge from coreutils.
70106
70107         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70108         value, $ac_cv_search_nanosleep, if it's "none required".
70109
70110 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70111
70112         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70113         with like-named macro in fnmatch.c.
70114         (EXT): Use an internal constant instead.
70115
70116         Merge fnmatch patches from glibc.
70117         * lib/fnmatch.c (mbsinit): Remove define.
70118         Add libc_hidden_ver (__fnmatch, fnmatch).
70119         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70120         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70121
70122 2004-01-14  Karl Berry  <karl@gnu.org>
70123
70124         * config/install-sh: update from automake.
70125
70126 2004-01-13  Karl Berry  <karl@gnu.org>
70127
70128         * config/install-sh: update from automake.
70129
70130 2004-01-09  Karl Berry  <karl@gnu.org>
70131
70132         * config/install-sh: update from automake.
70133
70134 2004-01-05  Karl Berry  <karl@gnu.org>
70135
70136         * config/config.{sub,guess}: update from config.
70137
70138 2003-12-31  Karl Berry  <karl@gnu.org>
70139
70140         * config/depcomp: update from automake.
70141
70142 2003-12-14  Karl Berry  <karl@gnu.org>
70143
70144         * lib/config.charset: update from gettext-runtime.
70145
70146 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70147
70148         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70149         Bug reported by Alfred M. Szmidt.
70150
70151 2003-12-03  Bruno Haible  <bruno@clisp.org>
70152
70153         * m4/gettext.m4: Upgrade from gettext-0.13.
70154         * m4/po.m4: Upgrade from gettext-0.13.
70155         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70156         * m4/intmax.m4: New file, from gettext-0.13.
70157         * m4/printf-posix.m4: New file, from gettext-0.13.
70158
70159 2003-11-29  Karl Berry  <karl@gnu.org>
70160
70161         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70162
70163 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70164             Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/printf-parse.h: Don't include sys/types.h.
70167         (ARG_NONE): New macro.
70168         (char_directive): Change type of *arg_index fields to size_t.
70169         * lib/printf-parse.c: Don't include sys/types.h.
70170         (SSIZE_MAX): Remove macro.
70171         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70172         Remove unnecessary overflow check.
70173         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70174         fields.
70175
70176 2003-11-25  Bruno Haible  <bruno@clisp.org>
70177
70178         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70179
70180 2003-11-25  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70183         gt_TYPE_SSIZE_T.
70184
70185 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70186
70187         * modules/alloca: Remove dependency on xalloc.
70188
70189 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70190
70191         * lib/alloca.c: Remove dependency on xalloc module.
70192         (xalloc_die): Remove.
70193         (memory_full) [!defined emacs]: New macro.
70194         [!defined emacs]: Don't include xalloc.h.
70195         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70196         address arithmetic overflows.  Change datatypes a bit to avoid
70197         unnecessary casts.
70198
70199 2003-11-22  Jim Meyering  <jim@meyering.net>
70200
70201         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70202         s/size/size_t/.
70203
70204 2003-11-21  Karl Berry  <karl@gnu.org>
70205
70206         * config/config.{sub,guess}: update from config.
70207
70208 2003-11-18  Karl Berry  <karl@gnu.org>
70209
70210         * config/config.{sub,guess}: update from config.
70211
70212         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70213
70214 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70215
70216         * README: Mention that S+T cannot overflow if S is the size of
70217         an existing object and T is sufficiently small.
70218
70219 2003-11-17  Jim Meyering  <jim@meyering.net>
70220
70221         On systems without utime and without a utimes function capable of
70222         dealing with a NULL struct utimbuf* argument, this utime replacement
70223         could -- in unusual circumstances -- leak a file descriptor.
70224         * lib/utime.c: Include <unistd.h> and <errno.h>.
70225         (utime_null): Be sure to close `fd' and to preserve errno.
70226         Reported by Geoff Collyer via Arnold Robbins.
70227
70228 2003-11-17  Bruno Haible  <bruno@clisp.org>
70229
70230         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70231         (Depends-on): Add xsize.
70232
70233 2003-11-17  Bruno Haible  <bruno@clisp.org>
70234
70235         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70236
70237 2003-11-17  Bruno Haible  <bruno@clisp.org>
70238
70239         * lib/vasnprintf.c (alloca): Remove fallback definition.
70240         (freea): Remove definition.
70241         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70242         Reported by Paul Eggert.
70243
70244 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70245             Bruno Haible  <bruno@clisp.org>
70246
70247         Protect against address arithmetic overflow.
70248         * lib/printf-args.h: Include stddef.h.
70249         (arguments): Change type of field 'count' to size_t.
70250         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70251         'unsigned int' where appropriate.
70252         * lib/printf-parse.h: Include sys/types.h.
70253         (char_directive): Change type of *arg_index fields to ssize_t.
70254         (char_directives): Change type of fields 'count', max_*_length to
70255         size_t.
70256         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70257         (SSIZE_MAX): Define fallback value.
70258         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70259         instead of 'int' where appropriate. Check a_allocated, d_allocated
70260         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70261         * lib/vasnprintf.c: Include xsize.h.
70262         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70263         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70264         overflow. Avoid wraparound when converting a width or precision from
70265         decimal to binary.
70266
70267 2003-11-16  Bruno Haible  <bruno@clisp.org>
70268
70269         Update from GNU gettext.
70270         * lib/printf-parse.c: Generalize to it can be compiled for wide
70271         strings.
70272         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70273         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70274         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70275         SNPRINTF): New macros.
70276         Don't include <alloca.h> if the file is used inside libintl.
70277         (local_wcslen): New function, for Solaris 2.5.1.
70278         (VASNPRINTF): Use it instead of wcslen.
70279
70280 2003-11-16  Bruno Haible  <bruno@clisp.org>
70281
70282         * lib/xsize.h (xmax): New function.
70283         (xsum, xsum3, xsum4): Declare as "pure" functions.
70284
70285 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70286
70287         * modules/xalloc (Files): Undo latest change, since xalloc.h
70288         no longer needs SIZE_MAX or PTRDIFF_MAX.
70289
70290 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70291
70292         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70293         gl_PTRDIFF_MAX.
70294
70295 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70296
70297         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70298         "return", to pacify some unknown compiler.  Problem reported
70299         by Joerg Schilling.
70300
70301 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70302
70303         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70304         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70305         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70306         heuristic is just as accurate as far as we know, and it removes a
70307         dependency on size_max.m4 and ptrdiff_max.m4.
70308
70309 2003-11-11  Bruno Haible  <bruno@clisp.org>
70310
70311         * modules/xsize (Files): Add m4/size_max.m4.
70312         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70313
70314 2003-11-11  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/size_max.m4: New file.
70317         * m4/ptrdiff_max.m4: New file.
70318         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70320         (gl_XALLOC): Invoke it.
70321
70322 2003-11-11  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70325         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70326         defined.
70327
70328 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70329
70330         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70331         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70332         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70333         From Bruno Haible.
70334         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70335         not (size_t) -1, since it's defined here.
70336
70337 2003-11-09  Karl Berry  <karl@gnu.org>
70338
70339         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70340
70341 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70342
70343         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70344         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70345         Reject sizes of exactly SIZE_MAX bytes.
70346         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70347         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70348
70349 2003-11-05  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70352         SIZE_MAX defined in <limits.h> on Solaris.
70353
70354 2003-11-04  Jim Meyering  <jim@meyering.net>
70355
70356         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70357         variable names, rather than @VAR@.
70358         * modules/poll: Likewise.
70359
70360 2003-11-04  Bruno Haible  <bruno@clisp.org>
70361
70362         * modules/xsize: New file.
70363         * modules/linebreak: Depend on xsize.
70364         * MODULES.html.sh (func_all_modules): Add xsize.
70365
70366 2003-11-04  Bruno Haible  <bruno@clisp.org>
70367
70368         * m4/xsize.m4: New file.
70369
70370 2003-11-04  Bruno Haible  <bruno@clisp.org>
70371
70372         * lib/xsize.h: New file.
70373         * lib/linebreak.c: Include xsize.h.
70374         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70375         argument for overflow.
70376         Suggested by Paul Eggert.
70377
70378 2003-11-03  Karl Berry  <karl@gnu.org>
70379
70380         * config/config.{guess,sub}: update from config.
70381
70382 2003-11-03  Jim Meyering  <jim@meyering.net>
70383
70384         * modules/userspec (lib_SOURCES): Add userspec.h.
70385         (Include): Add "userspec.h".
70386         Improve description.
70387
70388 2003-11-03  Jim Meyering  <jim@meyering.net>
70389
70390         * lib/userspec.c: Include "userspec.h".
70391         * lib/userspec.h: New file.
70392
70393 2003-11-03  Bruno Haible  <bruno@clisp.org>
70394
70395         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70396
70397 2003-11-03  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70400         available, to avoid (extremely rare) race condition.
70401         Suggested by Paul Eggert.
70402
70403 2003-11-02  Karl Berry  <karl@gnu.org>
70404
70405         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70406
70407 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70408
70409         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70410         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70411         (read_filesystem_list): Set and use me_type_malloced.
70412         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70413         whatever the type happens to be), for brevity and consistency.
70414         Check for size calculation overflow on Alphas running OSF/1.
70415
70416 2003-10-31  Jim Meyering  <jim@meyering.net>
70417
70418         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70419
70420         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70421
70422 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70423             Bruno Haible  <bruno@clisp.org>
70424
70425         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70426         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70427
70428 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70429
70430         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70431         netbsd*-gnu*.  Suggested by Robert Millan.
70432
70433 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70434
70435         * modules/group-member: Depend on stdbool.
70436
70437 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70438
70439         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70440
70441 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70442
70443         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70444         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70445         after the 'gnu' in these cases.  This fixes some bugs in the
70446         previous change, and is based on suggestions by Robert Millan.
70447
70448 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70449
70450         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70451         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70452         no longer needed.
70453         * lib/quotearg.c (quotearg_n_options): Use it.
70454         * lib/group-member.c: Include <stdbool.h>.
70455         (free_group_info): Arg is now const *; don't free arg.
70456         (get_group_info): Now returns bool and accepts struct group_info *,
70457         rather than returning a malloc'ed struct group_info *.
70458         All uses changed.  Check for overflow in internal size calculation.
70459
70460         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70461         rather than xmalloc/xrealloc.
70462         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70463         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70464         conformance bug: the old code used a pointer after freeing the
70465         storage that it addressed.
70466         * lib/hash.c (hash_initialize): Simplify the code by using
70467         xalloc_oversized rather than doing it by hand.
70468         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70469         the buffer preserved.  Use free and xmalloc instead.
70470         * lib/quotearg.c (quotearg_n_options): Likewise.
70471         Use a simpler test for size overflow.  Don't use xalloc_oversized
70472         because unsigned int might be wider than size_t (!); this suggests
70473         that we should switch from unsigned int to size_t for slot numbers.
70474
70475 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70476
70477         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70478         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70479         NetBSD kernels.  Requested by Richard Stallman.
70480
70481 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70482
70483         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70484         to allocate the returned structure.  Do not allocate a subarray,
70485         as x2nrealloc will do that.
70486         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70487         instead of xnrealloc.
70488         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70489
70490 2003-10-27  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/stdbool_.h: Better support for BeOS.
70493
70494 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70495
70496         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70497         now uses inline.
70498
70499 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70500
70501         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70502         callers that want to do their own size-overflow checking.  Include
70503         <stdbool.h>, since xalloc_oversized returns bool.
70504         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70505         to use xalloc_oversized.
70506
70507         Add two functions x2realloc, x2nrealloc, for programs that grow
70508         arrays dynamically by doubling their sizes.
70509         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70510         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70511         New functions.
70512
70513         Port to C99 semantics for 'inline' of external functions.
70514         Bug reported by Bruno Haible.
70515         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70516         with the old contents of xnmalloc.
70517         (xnmalloc, xmalloc): Use it.
70518         (xnrealloc_inline): New static inline function,
70519         with the old contents of xnrealloc.
70520         (xnrealloc, xrealloc): Use it.
70521
70522         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70523         that.
70524
70525 2003-10-26  Karl Berry  <karl@gnu.org>
70526
70527         * config/srclist.txt (COPYING.DOC): no longer available from
70528         /gd/gnuorg; don't know where the ultimate source is.
70529
70530 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70531
70532         Fix several address-calculation bugs in the hash modules,
70533         plus some minor code cleanup.
70534
70535         * lib/hash.h: Include <stdbool.h>, for bool.
70536         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70537         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70538         hash_get_n_entries, hash_get_max_bucket_length,
70539         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70540         hash_rehash): Use size_t rather than unsigned.
70541         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70542         hash_get_n_buckets_used, hash_get_n_entries,
70543         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70544         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70545         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70546         Likewise.
70547         (SIZE_MAX): Define if not defined.
70548         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70549         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70550         hash_print):
70551         Use const * when possible.
70552         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70553         (check_tuning): Fix bug: if tuning parameters were very close to
70554         0 or 1, rounding errors could have caused subscript violations.
70555         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70556         (hash_initialize): Add 'fail:' label
70557         to free table and return NULL, and use it to simplify code.
70558         Use calloc rather than clearing the storage ourself.
70559         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70560         buffer size calculations.
70561         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70562         Include <stddef.h>, for size_t.
70563         * lib/hash-pjw.c (hash_pjw): Likewise.
70564         Switch to method described by Bruno Haible.
70565         Include <limits.h>, for CHAR_BIT.
70566         (SIZE_BITS): New macro.
70567
70568 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70569
70570         * m4/getline.m4 (AM_FUNC_GETLINE):
70571         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70572         hosts.  Problem reported by Derek Robert Price in
70573         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70574         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70575         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70576
70577 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70578
70579         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70580         ceiling the allocation at NMAX bytes rather than silently
70581         discarding input bytes before NMAX is reached.  This makes
70582         a difference only if NMAX exceeds SIZE_MAX / 2.
70583
70584         * lib/obstack.c: Merge from glibc.
70585         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70586         Add libc_hidden_def (_obstack_newchunk).
70587         (_obstack_free) [! defined _LIBC]: Remove.
70588         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70589         a clone of the function body.
70590         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70591         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70592
70593         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70594         glibc.
70595         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70596         arg to memcpy.
70597
70598         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70599         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70600         Don't use lvalue casts, as GCC plans to remove support for them
70601         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70602         was also present in the non-GCC version, indicating that this
70603         code had always been buggy and had never been widely used.
70604         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70605         Use the fast variant of each macro, rather than copying the
70606         definiens of the fast variant; that way, we'll be more likely to
70607         catch future bugs in the fast variants.
70608
70609 2003-10-20  Bruno Haible  <bruno@clisp.org>
70610
70611         * modules/wait-process: New file.
70612         * MODULES.html.sh (func_all_modules): Add wait-process.
70613
70614 2003-10-20  Bruno Haible  <bruno@clisp.org>
70615
70616         * m4/wait-process.m4: New file.
70617
70618 2003-10-20  Bruno Haible  <bruno@clisp.org>
70619
70620         * lib/wait-process.h: New file, from GNU gettext.
70621         * lib/wait-process.c: New file, from GNU gettext.
70622
70623 2003-10-19  Jim Meyering  <jim@meyering.net>
70624
70625         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70626         HPUX 10.20.
70627
70628 2003-10-18  Karl Berry  <karl@gnu.org>
70629
70630         * config/config.guess: update from config.
70631
70632 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70635         (getgroups): First arg is int, not size_t.
70636         Don't let 'free' mangle errno.
70637
70638 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70639
70640         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70641
70642 2003-10-16  Karl Berry  <karl@gnu.org>
70643
70644         * config/config.{guess,sub}: update from config.
70645
70646 2003-10-16  Jim Meyering  <jim@meyering.net>
70647
70648         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70649         memcpy.
70650
70651 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70652
70653         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70654         (SIZE_MAX): Remove.
70655         (new_exclude, add_exclude_file): Initial size no longer needs to
70656         be a power of 2.
70657         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70658         our own address arithmetic overflow checking.
70659
70660         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70661         (fnmatch): Do not alloca more than 2000 wide characters;
70662         instead, use malloc for large buffers.
70663         Check for address arithmetic overflow, and return -1
70664         with errno set to ENOMEM in that case.
70665         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70666         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70667         instead, return -1.  Check for address arithmetic overflow.
70668
70669 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70670
70671         Handle invalid suffixes and overflow independently, so that
70672         callers can treat them independently as needed.  Fix some bugs in
70673         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70674         suffix for a human-readable blocksize.  The major caller-visible
70675         change is the addition of a new
70676         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70677         that both overflow and suffix chars were found.
70678
70679         * lib/human.c (humblock): Don't check separately for invalid suffix
70680         char; that is xstrtoumax's job (now that its bug is fixed).
70681         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70682         INTMAX_MAX]: New macros.
70683         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70684         TYPE_MAXIMUM): New macros.
70685         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70686         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70687         if overflow occurs, as it's what __strtol does and it's more useful
70688         in practice.
70689         (__xstrtol): If __strtol reports some error other than ERANGE,
70690         reflect it to the caller as LONGINT_INVALID.  If it reports
70691         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70692         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70693         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70694         value.
70695         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70696         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70697         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70698         [defined UINTMAX_MAX]: New macros.
70699
70700 2003-10-14  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70703
70704 2003-10-14  Bruno Haible  <bruno@clisp.org>
70705
70706         * m4/sig_atomic_t: New file, from GNU gettext.
70707         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70708
70709 2003-10-14  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70712         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70713         Also use volatile where needed.
70714
70715 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70716
70717         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70718         Change maintainer from Bruno Haible to 'all'.
70719
70720 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70721
70722         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70723
70724 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70725
70726         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70727         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70728         and define in terms of the other primitives.
70729         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70730         (SIZE_MAX): Define if not already defined.
70731         (array_size_overflow): New function.
70732         (xalloc_die): Abort instead of exiting if 'error' returns.
70733         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70734         (xmalloc, xrealloc): Use them.
70735         (xcalloc): Check for address arithmetic overflow.
70736         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70737         a bit faster than strcpy.
70738
70739 2003-10-10  Simon Josefsson  <jas@extundo.com>
70740
70741         * modules/argp (Depends-on): Add restrict and strcase.
70742
70743 2003-10-10  Simon Josefsson  <jas@extundo.com>
70744
70745         * m4/argp.m4: Add AC_C_INLINE.
70746
70747 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70748
70749         Merge getpass from libc, plus a few fixes.
70750
70751         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70752         Include <stdbool.h>.
70753         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70754         __fsetlocking to empty.
70755         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70756         do include <bits/libc-lock.h>.
70757         Do not include <fcntl.h>; not needed.
70758         [_LIBC]: Include <wchar.h>.
70759         (NOTCANCEL_MODE): New macro.
70760         (flockfile, funlockfile) [_LIBC]: New macros.
70761         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70762         [!_LIBC]: New macros.
70763         (call_fclose): New function.
70764         (getpass): Use it.  Save tty stream separately; this simplifies the
70765         code and makes it more reliable if stdin happens to equal stdout.
70766         Invoke __fsetlocking on tty.
70767         Handle thread cancellation if needed.
70768         Namespace cleanup (use __tcgetattr, __getline).
70769         Use bool for Booleans.
70770         [USE_IN_LIBIO]: Handle wide streams.
70771         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70772         stream might go where.
70773
70774         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70775         doesn't have to include <stdio.h> before us.
70776         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70777         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70778         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70779         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70780         if not declared, so that we can use getpass.c code from libc without
70781         rewriting it.
70782         (flockfile, ftrylockfile, funlockfile): New macros.
70783
70784 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70785
70786         * modules/getpass: Depend on stdbool.
70787
70788 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70789
70790         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70791
70792 2003-10-07  Karl Berry  <karl@gnu.org>
70793
70794         * config/config.{guess,sub}: update from config.
70795
70796 2003-10-06  Jim Meyering  <jim@meyering.net>
70797             Bruno Haible  <bruno@clisp.org>
70798
70799         This lets translators provide better translations for the
70800         "Written by ..." part of --version output.
70801         * lib/version-etc.h: Include stdarg.h.
70802         (version_etc_copyright): Declare as readonly.
70803         (version_etc): Make this function variadic with a NULL-terminated list
70804         of author name strings.
70805         (version_etc_va): New declaration.
70806         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70807         (version_etc_copyright): Declare as readonly.
70808         (version_etc_va): New function. Provide a different translatable string
70809         for each possible number of authors < 10. Abbreviate when there are 10
70810         authors or more.
70811         (version_etc): Make this function variadic. Call version_etc_va.
70812         Suggestion from Gary V. Vaughan.
70813
70814         * lib/long-options.h (parse_long_options): Change prototype: the
70815         authors string is moved to the end and becomes variadic.
70816         * lib/long-options.c: Include stdarg.h.
70817         (parse_long_options): Make this function variadic, too.
70818         Call version_etc_va, not version_etc.
70819
70820 2003-10-06  Bruno Haible  <bruno@clisp.org>
70821
70822         * modules/version-etc-2: Remove file.
70823         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70824
70825 2003-10-06  Bruno Haible  <bruno@clisp.org>
70826
70827         * modules/fatal-signal: New file.
70828         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70829
70830 2003-10-06  Bruno Haible  <bruno@clisp.org>
70831
70832         * m4/fatal-signal.m4: New file.
70833         * m4/signalblocking.m4: New file, from GNU gettext.
70834
70835 2003-10-06  Bruno Haible  <bruno@clisp.org>
70836
70837         * lib/version-etc-2.h: Remove file.
70838         * lib/version-etc-2.c: Remove file.
70839
70840 2003-10-06  Bruno Haible  <bruno@clisp.org>
70841
70842         * lib/fatal-signal.h: New file, from GNU gettext.
70843         * lib/fatal-signal.c: New file, from GNU gettext.
70844
70845 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70846
70847         * README: Rework advice for preventing empty .o files.
70848         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70849         not <sys/types.h>.
70850
70851 2003-10-04  Karl Berry  <karl@gnu.org>
70852
70853         * lib/argp*: update from libc.
70854
70855 2003-10-04  Karl Berry  <karl@gnu.org>
70856
70857         * config/config.{guess,sub}: update from config.
70858
70859 2003-10-02  Bruno Haible  <bruno@clisp.org>
70860
70861         * modules/lchown (Include): Add lchown.h.
70862         * modules/time_r (Include): Use "..." syntax.
70863         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70864
70865 2003-10-01  Simon Josefsson  <jas@extundo.com>
70866
70867         * MODULES.html.sh (func_all_modules): Move gethostname from section
70868         'based on' to section 'lacking' POSIX:2001.
70869
70870 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70871
70872         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70873         to output mode on the same stream.
70874
70875 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70876
70877         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70878         Fix arg typo in previous patch.
70879
70880 2003-09-28  Jim Meyering  <jim@meyering.net>
70881
70882         * lib/error.c: Correct cpp indentation.
70883
70884 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70885
70886         * modules/free: New file.
70887
70888 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70889
70890         * m4/free.m4: New file.
70891
70892 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70893
70894         * lib/minmax.h (MIN, MAX)
70895         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70896         Omit the special code that used __typeof__, since we worry that
70897         it could be more trouble than it's worth.  See:
70898         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70899         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70900
70901         * lib/free.c: New file.
70902
70903 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70904
70905         Trivial fixes to Makefile.am parts of module listings.
70906         * modules/strstr: Append strstr.h to lib_SOURCES.
70907         * modules/strcase: Likewise, for strcase.h.
70908
70909 2003-09-27  Karl Berry  <karl@gnu.org>
70910
70911         * config/mkinstalldirs: update from automake.
70912
70913 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70914
70915         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70916         (error_tail): Do not loop, reallocating temporary buffer, since
70917         the output cannot contain more wide characters than the input
70918         contains bytes, the size must be big enough already.  This avoids
70919         one potential size overflow calculation.  Check for size overflow
70920         when calculating temporary buffer size.  Free temporary buffer
70921         when done, if it was allocated with malloc; this plugs a memory
70922         leak.  Remove casts from void * to pointers, that are no longer
70923         needed now that we're assuming C89 or better.
70924
70925         Merge error changes from glibc.
70926
70927         * lib/error.c, error.h: Update copyright notice header to match glibc.
70928         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70929         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70930         Disable cancellation while printing error.
70931         * lib/error.h: Prepend __ to parameter names.
70932
70933 2003-09-26  Jim Meyering  <jim@meyering.net>
70934
70935         * lib/error.c (error_tail): Move some declarations
70936         into inner scope where the local variables are used.
70937
70938 2003-09-26  Bruno Haible  <bruno@clisp.org>
70939
70940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70941         stpncpy().
70942         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70943
70944 2003-09-26  Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70947         (stpncpy): Define as alias for gnu_stpncpy.
70948         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70949
70950 2003-09-25  Simon Josefsson  <jas@extundo.com>
70951
70952         * lib/xgetdomainname.h: New file.
70953         * lib/xgetdomainname.c: New file.
70954
70955 2003-09-25  Simon Josefsson  <jas@extundo.com>
70956             Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/getdomainname: New file.
70959         * modules/xgetdomainname: New file.
70960         * MODULES.html.sh (func_all_modules): Add getdomainname,
70961         xgetdomainname.
70962
70963 2003-09-25  Simon Josefsson  <jas@extundo.com>
70964             Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/getdomainname.m4: New file.
70967
70968 2003-09-25  Simon Josefsson  <jas@extundo.com>
70969             Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/getdomainname.h: New file.
70972         * lib/getdomainname.c: New file.
70973
70974 2003-09-25  Karl Berry  <karl@gnu.org>
70975
70976         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70977
70978 2003-09-25  Karl Berry  <karl@gnu.org>
70979
70980         * config/install-sh: update from automake.
70981
70982 2003-09-25  Bruno Haible  <bruno@clisp.org>
70983
70984         * modules/version-etc-2: New file, from modules/version-etc with
70985         modifications.
70986         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70987
70988 2003-09-25  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70991         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70992
70993 2003-09-24  Simon Josefsson  <jas@extundo.com>
70994
70995         * modules/xgethostname: Add xgethostname.h.
70996
70997 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70998
70999         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71000         the buffer associated with the argument.  Bug reported by
71001         Simon Josefsson.
71002
71003 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71004
71005         * README: Document assumptions that 'int' is at least 32 bits
71006         wide, that integer arithmetic is 2's complement without overflow,
71007         that there are no holes in integer values, that adding sizes of
71008         two nonoverlapping objects can't overflow, and that all-bits-zero
71009         yields scalar zero.  Fix spelling and capitalization typos.
71010
71011 2003-09-19  Karl Berry  <karl@gnu.org>
71012
71013         * lib/argp.h: update from libc.
71014
71015 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71016
71017         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71018         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71019         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71020
71021 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71022
71023         * gnulib-tool: Use "test -h", not "test -L", for portability
71024         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71025         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71026         (sed_extract_prog): Issue s commands one-by-one, rather than
71027         using \| in one s command.
71028
71029 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71030
71031         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71032         input error, instead of returning NULL the next time we are called
71033         (and therefore losing track of errno).
71034
71035 2003-09-16  Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_create_testdir): Warn about duplicated
71038         dependencies.
71039
71040 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71041
71042         * modules/argmatch, modules/fatal, modules/obstack,
71043         modules/xalloc, modules/xgethostname: Sort dependencies by
71044         importance, not alphabetically.
71045
71046 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71047
71048         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71049         fails, so that the caller gets the proper errno.
71050
71051         * lib/readutmp.c (read_utmp): Likewise.
71052         Check for fstat error.  Close stream and free storage
71053         when failing.
71054
71055 2003-09-14  Karl Berry  <karl@gnu.org>
71056
71057         * config/srclist.txt (strdup.c): disable for c89 changes.
71058
71059 2003-09-14  Jim Meyering  <jim@meyering.net>
71060
71061         * lib/getloadavg.c: Correct cpp indentation.
71062         * lib/strdup.c: Likewise.
71063         * lib/vasnprintf.c: Likewise.
71064
71065 2003-09-14  Bruno Haible  <bruno@clisp.org>
71066
71067         * modules/fwriteerror: New file.
71068         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71069
71070 2003-09-14  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/fwriteerror.h: New file.
71073         * lib/fwriteerror.c: New file.
71074
71075 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71076
71077         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71078         modules/xgethostname, modules/xalloc: Depend on exit.
71079
71080 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71081
71082         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71083
71084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71085         and AC_MINIX, too, so that their extensions are available.
71086
71087         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71088         This macro has been superseded by gl_BACKUPFILE.
71089
71090         More patches to assume C89 or better.
71091
71092         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71093
71094         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71095         unconditionally.
71096         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71097         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71098         Include <string.h>, <stdlib.h> unconditionally.
71099         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71100         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71101         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71102         headers or for string.h.
71103         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71104         or strtoul.
71105
71106         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71107         headers.
71108         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71109         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71110         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71111         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71112         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71113         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71114         memcpy, memset.
71115         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71116         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71117         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71118         strtol.
71119         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71120         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71121         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71122         strtoul.
71123
71124 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71125
71126         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71127         * lib/obstack.c [!defined _LIBC]: Likewise.
71128         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71129         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71130         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71131
71132         More changes to assume C89 or better.
71133
71134         * lib/error.c (error_tail): Assume vprintf.
71135
71136         * lib/argmatch.c (getenv): Remove decl.
71137         * lib/progreloc.c (get_full_program_name): Define via prototype.
71138         * lib/setenv.c (clearenv): Likewise.
71139         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71140         needed.
71141         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71142         (malloc, memcpy): Remove decls.
71143         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71144         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71145         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71146         (memcpy): Remove macro.
71147         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71148         (__P): Remove.  All uses removed.
71149         (PTR): Remove.  All uses changed to void *.
71150         (CHAR_BIT, NULL): Remove.
71151         (spaces, zeros, memset_space, memset_zero)
71152         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71153         Remove.
71154         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71155         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71156         Define with prototype.
71157         Remove now-unnecessary prototype decl.
71158         (extra_args_spec): Assume ANSI C.  All uses changed.
71159         (extra_args_spec_iso): Remove.
71160         (my_strftime, emacs_strftimeu): Define via prototype.
71161         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71162         unconditionally.
71163         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71164         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71165         (strtoul, strtol): Remove decls.
71166         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71167         LONG_MAX): Remove.
71168         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71169         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71170         (LOCALE_PARAM_PROTO): New macro.
71171         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71172         (INTERNAL (strtol), strtol): Define with a prototype.
71173         (PARAMS): Remove.  All uses removed.
71174         * lib/tempname.c: Include <string.h> unconditionally.
71175         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71176         * lib/xgethostname.c (main): Define with a prototype.
71177         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71178         Include <stdlib.h> unconditionally.
71179         (calloc, malloc, realloc, free): Remove decls.
71180         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71181         Include <stdlib.h> unconditionally.  Sort include file names.
71182         (strtod): Remove.
71183         (xstrtod): Define with a prototype.
71184         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71185         (strtol, strtoul): Remove decls.
71186
71187 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71188
71189         More patches to assume C89 or better.
71190         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71191         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71192         string.h, memchr, STDC_HEADERS.
71193
71194 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71195
71196         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71197         Include <stdlib.h>, <string.h> unconditionally.
71198         Remove now-unnecessary cast to char *.
71199         * lib/strnlen.c: Include <string.h> unconditionally.
71200         * lib/yesno.c (yesno): Define with a prototype.
71201
71202 2003-09-11  Bruno Haible  <bruno@clisp.org>
71203
71204         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71205
71206 2003-09-10  Jim Meyering  <jim@meyering.net>
71207
71208         * lib/error.c: Correct indentation of cpp directives.
71209
71210 2003-09-10  Bruno Haible  <bruno@clisp.org>
71211
71212         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71213         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71214         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71215         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71216         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71217         <stdlib.h> and <string.h> checks.
71218         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71219         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71220
71221 2003-09-10  Bruno Haible  <bruno@clisp.org>
71222
71223         * lib/strcspn.c: Include <string.h> unconditionally.
71224         * lib/strpbrk.c: Include <string.h> unconditionally.
71225         * lib/strstr.c: Include <string.h> unconditionally.
71226         * lib/unicodeio.c: Include <string.h> unconditionally.
71227         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71228         * lib/unsetenv.c: Likewise.
71229         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71230         * lib/yesno.c: Include <stdlib.h> unconditionally.
71231         (rpmatch): Add prototype.
71232
71233 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71234
71235         More patches to assume C89 or better.
71236         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71237         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71238         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71239         or for string.h.
71240         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71241         stdlib.h.
71242         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71243         C headers.
71244         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71245         string.h.
71246         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71247         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71248         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71249         or for string.h.
71250         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71251         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71252         C headers.
71253         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71254         memcpy.
71255         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71256         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71257         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71258         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71259         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71260         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71261         string.h, free.
71262         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71263         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71264         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71265         C headers, or for string.h.
71266         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71267         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71268         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71269         headers, memory.h, stdlib.h, string.h, strings.h.
71270         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71271         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71272         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71273         strchr.
71274         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71275         headers, memory.h, string.h.
71276         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71277         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71278         free.
71279         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71280         headers.
71281         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71282         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71283         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71284         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71285         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71286
71287 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71288
71289         More K&R removal.
71290
71291         * lib/acosl.c (main): Use a prototype.
71292         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71293         tanl.c: Likewise.
71294
71295         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71296
71297         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71298         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71299         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71300         with a prototype.
71301         * lib/getopt.c (const): Remove macro.
71302         Include <string.h> unconditionally.
71303         (my_index): Remove; all uses changed to strchr.
71304         (strlen): Remove decl.
71305         (exchange): Remove forward decl; no longer needed.
71306         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71307         Define with prototype.
71308         * lib/getopt1.c (const): Remove macro.
71309         (getopt_long, getopt_long_only, main): Define with prototype.
71310
71311         * lib/getugroups.c: Include <string.h> unconditionally.
71312
71313         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71314         (getusershell, setusershell, endusershell, readname, main):
71315         Define with prototypes.
71316
71317         * lib/group-member.c: Include group-member.h first.
71318         Include <stdlib.h> unconditionally.
71319
71320         * lib/hard-locale.c: Include hard-locale.h first.
71321         Include <stdlib.h>, <string.h> unconditionally.
71322
71323         * lib/hash.c (free, malloc): Remove decls.
71324         Include <stdlib.h> unconditionally.
71325
71326         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71327         (getenv): Do not declare.
71328
71329         * lib/idcache.c: Include <string.h> unconditionally.
71330
71331         * lib/long-options.c: Include long-options.h first, to test interface.
71332         Include <stdlib.h> unconditionally.
71333
71334         * lib/makepath.c: Include makepath.h first, to test interface.
71335         Include <stdlib.h> and <string.h> unconditionally.
71336
71337         * lib/linebuffer.c: Include <stdlib.h>.
71338         (free): Remove decl.
71339
71340         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71341         stddef.h. rpl_malloc returns void *, not char *.
71342         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71343         prototype.
71344
71345         * lib/md5.h: Include <limits.h> unconditionally.
71346         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71347         (__P): Remove; all uses removed.
71348         * lib/md5.c: Include "md5.h" first.
71349         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71350         md5_buffer, md5_process_bytes, md5_process_block):
71351         Define with prototypes.
71352         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71353         * lib/sha.c: Include "sha.h" first.
71354         Include <stdlib.h>, <string.h> unconditionally.
71355
71356         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71357         * lib/memcmp.c (__ptr_t): Likewise.
71358         * lib/memrchr.c (__ptr_t): Likewise.
71359         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71360         Include <string.h> unconditionally.
71361         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71362         * lib/memchr.c: Include <stdlib.h> unconditionally.
71363         * lib/memchr.c (LONG_MAX): Remove.
71364         * lib/memrchr.c (LONG_MAX): Likewise.
71365         * lib/memchr.c (__memchr): Define via a prototype.
71366         * lib/memrchr.c (__memrchr): Likewise.
71367         * lib/memcmp.c (__P): Remove, and remove all uses.
71368         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71369         Remove forward decls; no longer needed.
71370         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71371         Use types required by C89 in prototype.
71372
71373         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71374         * lib/savedir.c: Likewise.
71375         * lib/mkdir.c (free): Remove decl.
71376         * lib/rmdir.c (rmdir): Define with a prototype.
71377         * lib/savedir.c: Include savedir.h first, to test interface.
71378
71379         * lib/mktime.c (STDC_HEADERS): Remove.
71380         Include <stdlib.h>, <string.h> unconditionally.
71381
71382         * lib/modechange.c: Include <stdlib.h> unconditionally.
71383         (malloc): Remove decl.
71384
71385         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71386         (free): Remove decl.
71387
71388         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71389         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71390         (This type really should be intptr_t, but that's a C99ism.)
71391         (_obstack_memcpy): Remove: all uses changed to memcpy.
71392         Include <string.h> unconditionally.
71393         (struct obstack): Assume __STDC__ for types of members
71394         chunkfun, freefun, extra_arg.
71395         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71396         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71397         obstack_begin, obstack_specify_allocation,
71398         obstack_specify_allocation_with_arg, obstack_chunkfun,
71399         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71400         Remove unprototyped decls and the macros that use them.
71401         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71402         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71403         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71404         (defined __STDC__ && __STDC__)]:
71405         Remove nonprototyped code.
71406         Include <stdlib.h> unconditionally.
71407         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71408         _obstack_allocated_p, _obstack_free, obstack_free,
71409         _obstack_memory_used, print_and_abort):
71410         Define using prototypes.
71411         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71412         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71413         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71414         obstack_next_free, obstack_object_size, obstack_room) [0]:
71415         Remove unused, unprototyped code.
71416
71417         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71418
71419         * lib/physmem.c (physmem_total, physmem_available, main): Define
71420         with prototypes.
71421
71422         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71423         (main): Define with a prototype.
71424
71425         * lib/posixver.c (getenv): Remove decl.
71426
71427         * lib/putenv.c (malloc): Returns void *, not char *.
71428         Include <string.h> unconditionally.
71429         (strchr, memcpy, NULL): Do not define.
71430
71431         * lib/readtokens.c: Include readtokens.h first, to test interface.
71432         Include <stdlib.h>, <string.h> unconditionally.
71433         (init_tokenbuffer): Define with a prototype.
71434
71435         * lib/regex.c (PARAMS): Remove.  All uses removed.
71436         All uses of _RE_ARGS removed, too.
71437         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71438         unconditionally.
71439         (bzero): Assume memset exists.
71440         (memcmp, memcpy, NULL): Remove.
71441         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71442         char, or assignments to local vars of type signed char.
71443         (init_syntax_once, PREFIX(extract_number_and_incr),
71444         PREFIX(print_partial_compiled_pattern),
71445         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71446         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71447         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71448         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71449         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71450         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71451         wcs_compile_range, byte_compile_range, truncate_wchar,
71452         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71453         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71454         count_mbs_length, wcs_re_match_2_internal,
71455         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71456         PREFIX(alt_match_null_string_p),
71457         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71458         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71459         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71460         now-unnecessary declaration, if any.
71461         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71462         regcomp, regexec):
71463         Remove now-unnecessary casts among pointer types.
71464         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71465
71466         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71467         (free): Remove decl.
71468
71469         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71470
71471         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71472         (free): Remove decl.
71473
71474         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71475         * lib/xgetcwd.c: Likewise.
71476
71477         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71478         (free): Remove decl.
71479
71480         * lib/strchrnul.c (strchrnul): Define with a prototype.
71481         Fix bug: c_in was not converted to char before searching.
71482
71483         The following changes are not K&R related:
71484
71485         * lib/group-member.h: Include <sys/types.h>, so that this file is
71486         self-contained.
71487         * lib/makepath.h: Likewise.
71488
71489         * lib/getusershell.c (readname, default_index, line_size, readname):
71490         Use size_t, not int, for sizes.
71491         (readname): If the size overflows, report an error instead of
71492         looping forever.
71493
71494 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71495
71496         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71497         libc.
71498
71499 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71500
71501         * README: New section: portability guidelines.
71502
71503 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71504
71505         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71506         C89 spec.
71507
71508 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71509
71510         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71511
71512 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71513
71514         Assume C89 or better; remove K&R cruft.
71515         A few of these changes were first proposed by Derek Robert Price
71516         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71517
71518         * lib/addext.c: Include <string.h> unconditionally.
71519         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71520         Don't declare getenv or malloc.
71521
71522         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71523         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71524         (NULL): Remove.
71525         (find_stack_direction, alloca): Use prototypes.
71526
71527         * lib/atexit.c (atexit): Define using a prototype.
71528
71529         * lib/basename.c, dirname.c, stripslash.c:
71530         Include <string.h> unconditionally.
71531
71532         * lib/bcopy.c: Include <stddef.h>.
71533         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71534
71535         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71536
71537         * lib/error.h (error, error_at_line, error_print_progname)
71538         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71539         * lib/error.c: Include error.h first, to check interface.
71540         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71541         (VA_START): Remove; all uses changeed to va_start.
71542         (exit, strerror): Remove decls.
71543         (error_print_progname): Prototype uncondionally.
71544         Don't include <errno.h>; no longer needed.
71545         (private_strerror): Remove.
71546         (error_tail): Always define.
71547         (error, error_at_line): Assume C89 or better; always use prototypes.
71548         * lib/fatal.c: Include "fatal.h" first, to test interface.
71549         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71550         (VA_START): Remove; all uses changed to va_start.
71551         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71552         this case.
71553         (exit): Remove decl.
71554         (fatal): Prototype unconditionally.  Assume va_start works.
71555         Abort at end, to pacify gcc.
71556
71557         * lib/euidaccess.c (main): Define with a prototype.
71558
71559         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71560
71561         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71562
71563         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71564         prototypes.
71565         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71566         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71567         (getenv): Remove decl.
71568         (fnmatch): Define using a prototype.
71569         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71570         (FCT): Define using a prototype.
71571
71572         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71573
71574         * lib/gethostname.c: Include <stddef.h>.
71575         (gethostname): Define with prototype.  Length is size_t, not int.
71576
71577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71578
71579         Assume C89 or better; remove K&R cruft.
71580         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71581         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71582         string.h, getenv, malloc.
71583         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71584         headers.
71585         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71586         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71587         do not check for strerror.
71588         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71589         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71590         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71591         do not check for doprnt or vprintf.
71592         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71593         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71594
71595 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71596
71597         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71598         getversion.c should have been removed then, but was accidentally
71599         preserved.
71600
71601         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71602         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71603
71604 2003-09-08  Karl Berry  <karl@gnu.org>
71605
71606         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71607                 config, forget about prep.
71608
71609         * config/depcomp, missing: update from automake.
71610
71611 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71612
71613         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71614         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71615
71616 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71617
71618         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71619         copy_tm_result.  Bug reported by Simon Josefsson in
71620         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71621
71622 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71623
71624         * m4/time_r.m4: New file.
71625         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71626         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71627         is. Check for timegm declaration.
71628         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71629         Do not check for gmtime_r.
71630         Replace mktime if __mktime_internal does not exist and if mktime
71631         hasn't been replaced already.
71632
71633 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71634
71635         * lib/time_r.c, lib/time_r.h: New files.
71636
71637         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71638         __localtime_r.
71639         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71640         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71641
71642         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71643         __gmtime_r.
71644         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71645         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71646         Include <time_r.h>.
71647
71648         * lib/timegm.c: Switch to glibc implementation, with the following
71649         changes:
71650         [defined HAVE_CONFIG_H]: Include <config.h>.
71651         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71652         (__mktime_internal) [!defined _LIBC]: New decl.
71653         (__gmtime_r) [!defined _LIBC]: New macro and function.
71654         (timegm): Use a prototype, since gnulib assumes C89.
71655         Do not bother declaring tmp to be const, as it's not really usefu.
71656         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71657         (timegm): Declare only if HAVE_DECL_TIMEGM.
71658
71659 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71660
71661         * MODULES.html.sh (func_all_modules): Add time_r.
71662         * modules/time_r: New file.
71663         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71664         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71665
71666 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71667
71668         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71669         Bug reported by Lute Kamstra in
71670         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71671
71672         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71673         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71674         course with correspondingly smaller numbers for tomorrow and
71675         yesterday.  From Tadayoshi Funaba.  Originally installed into
71676         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71677         coreutils merge?).
71678
71679 2003-08-31  Simon Josefsson  <jas@extundo.com>
71680
71681         * modules/timegm: New file.
71682         * MODULES.html.sh (func_all_modules): Add timegm.
71683
71684 2003-08-31  Simon Josefsson  <jas@extundo.com>
71685
71686         * m4/timegm.m4: New file.
71687
71688 2003-08-31  Simon Josefsson  <jas@extundo.com>
71689
71690         * lib/timegm.h: New file.
71691         * lib/timegm.c: New file.  Based on
71692         wget-1.8.2/src/http.c:mktime_from_utc.
71693
71694 2003-08-31  Karl Berry  <karl@gnu.org>
71695
71696         * lib/argp.h: update from libc.
71697
71698 2003-08-28  Bruno Haible  <bruno@clisp.org>
71699
71700         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71701         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71702         followed by '#define fnmatch fnmatch_posix' gives an error.
71703
71704 2003-08-28  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71707         warning on QNX, which defines O_BINARY to 000000.
71708
71709 2003-08-27  Jim Meyering  <jim@meyering.net>
71710
71711         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71712         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71713         would fail after 32.  Reported by Danny Levinson.  Details here:
71714         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71715
71716 2003-08-24  Bruno Haible  <bruno@clisp.org>
71717
71718         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71719         MSVC7 <stdio.h> is included later.
71720
71721 2003-08-22  Simon Josefsson  <jas@extundo.com>
71722
71723         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71724
71725 2003-08-20  Karl Berry  <karl@gnu.org>
71726
71727         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71728
71729 2003-08-20  Bruno Haible  <bruno@clisp.org>
71730
71731         * modules/progname: New file.
71732         * MODULES.html.sh (func_all_modules): Add progname.
71733
71734 2003-08-20  Bruno Haible  <bruno@clisp.org>
71735
71736         * lib/progname.h: New file, from GNU gettext.
71737         * lib/progname.c: New file, from GNU gettext.
71738         * lib/progreloc.c: New file, from GNU gettext.
71739
71740 2003-08-19  Jim Meyering  <jim@meyering.net>
71741
71742         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71743         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71744
71745 2003-08-19  Bruno Haible  <bruno@clisp.org>
71746
71747         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71748         more.
71749
71750 2003-08-19  Bruno Haible  <bruno@clisp.org>
71751
71752         * lib/xstrdup.c: Assume <string.h> exists.
71753
71754 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71755
71756         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71757         in makefile rules.
71758
71759 2003-08-18  Jim Meyering  <jim@meyering.net>
71760
71761         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71762         * m4/lib-ld.m4: Likewise.
71763
71764 2003-08-18  Jim Meyering  <jim@meyering.net>
71765
71766         * lib/setenv.h: Indent nested cpp directive.
71767         * lib/vasnprintf.c: Remove trailing blanks.
71768
71769 2003-08-17  Simon Josefsson  <jas@extundo.com>
71770
71771         * modules/xstrndup: New file.
71772         * MODULES.html.sh (func_all_modules): Add xstrndup.
71773
71774 2003-08-17  Simon Josefsson  <jas@extundo.com>
71775
71776         * modules/argp: Fix autoconf macro name. Add more dependencies.
71777
71778 2003-08-17  Simon Josefsson  <jas@extundo.com>
71779
71780         * m4/xstrndup.m4: New file.
71781
71782 2003-08-17  Simon Josefsson  <jas@extundo.com>
71783
71784         * m4/argp.m4: New file.
71785
71786 2003-08-17  Simon Josefsson  <jas@extundo.com>
71787             Bruno Haible  <bruno@clisp.org>
71788
71789         * lib/xstrndup.h: New file.
71790         * lib/xstrndup.c: New file.
71791
71792 2003-08-17  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/strndup (Files, Include): Add lib/strndup.h.
71795
71796 2003-08-17  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/euidaccess (Files): Add lib/euidaccess.h.
71799
71800 2003-08-17  Bruno Haible  <bruno@clisp.org>
71801
71802         * lib/strndup.h: New file.
71803
71804 2003-08-17  Bruno Haible  <bruno@clisp.org>
71805
71806         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71807         like AC_GNU_SOURCE.
71808         * modules/extensions (configure.ac): Comment out the invocation of
71809         gl_USE_SYSTEM_EXTENSIONS.
71810
71811 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71812
71813         Merges from coreutils, etc.
71814         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71815         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71816         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71817         fixing a typo.
71818         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71819         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71820
71821 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71822
71823         Document merge from coreutils.
71824         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71825         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71826         * modules/utime: Add m4/utimes-null.m4.
71827
71828 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71829
71830         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71831         space, undoing this 2003-08-12 change:
71832         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71833
71834 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71835
71836         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71837         strtoul.c from libc, undoing this 2003-08-12 change:
71838         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71839
71840 2003-08-16  Jim Meyering  <jim@meyering.net>
71841
71842         Merges from coreutils.
71843         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71844         prefix.  Adjust cache variables similarly.  Create 500 rather than
71845         just 300 files, to exercise bug on Darwin6.5, too.
71846         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71847         $missing_dir.
71848         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71849         AM_SYS_POSIX_TERMIOS.
71850         Reported by mkc@mathdogs.com.
71851         Also change use of $am_cv_sys_posix_termios
71852         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71853         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71854         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71855         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71856         in /proc/mounts until it finds one with matching device number.  This
71857         is unnecessary when the FILE argument *is* a mount point.  No stat call
71858         is necessary in that case.  So, disable the statvfs-testing code on
71859         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71860         as RedHat bug# 84846.
71861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71862         to 1MB, so as not to render systems with no stack size limit (e.g.,
71863         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71864         Include <unistd.h>.  On some systems,
71865         it is required for the definition of _SC_PAGESIZE.
71866
71867 2003-08-16  Jim Meyering  <jim@meyering.net>
71868
71869         Merge from coreutils.
71870         * lib/xstrtoimax.c: #else #if -> #elif.
71871         * lib/xstrtoumax.c: Likewise.
71872
71873 2003-08-16  Jim Meyering  <jim@meyering.net>
71874
71875         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71876         * m4/utimes.m4: Removed.
71877         * m4/utimes-null.m4: Renamed from utimes.m4.
71878
71879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71880         to 1MB, so as not to render systems with no stack size limit (e.g.,
71881         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71882         Include <unistd.h>.  On some systems,
71883         it is required for the definition of _SC_PAGESIZE.
71884
71885 2003-08-16  Jim Meyering  <jim@meyering.net>
71886         and Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         Merges from coreutils, etc.
71889
71890         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71891         using the latest version from cvs.  This avoids problems with #line
71892         directives using a vendor (Sun) compiler.
71893         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71894         Don't set GETGROUPS_LIB here; now it's
71895         done via getgroups.m4's wrapper function.
71896         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71897         rather than just in sh-util/configure.in, so that the
71898         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71899         same.
71900         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71901         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71902         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71903         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71904         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71905         Remove code that is now done by the newly-required macros.
71906         Append $(EXEEXT) to DF_PROG.
71907         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71908         Do not invoke or require the following here,
71909         since prereq.m4 or some gnulib .m4 now does this for us:
71910         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71911         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71912         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71913         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71914         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71915         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71916         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71917         AC_FUNC_OBSTACK.
71918         Do not replace the following functions, as this is now the job
71919         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71920         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71921         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71922         atexit getpass, strdup, getpagesize.
71923         Replace 'raise'.
71924         Do not check for the following functions, as this is now the job
71925         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71926         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71927         setregid.
71928         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71929         Check for sys/sysctl.h.
71930         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71931         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71932         of checking for ssize_t ourselves.
71933
71934         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71935         Require every macro that gnulib/modules/* suggests for us.
71936         (jm_PREREQ_ADDEXT): New macro.
71937         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71938         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71939
71940         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71941         (gl_PHYSMEM): Use it.
71942         Also check for `table' function.
71943         Check for new headers and functions.
71944         Add check for sys/sysmp.h.
71945         With suggestions from Kaveh Ghazi.
71946         Ignore headers that are present but cannot be compiled.  This
71947         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71948         C 5.4.
71949
71950 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71951
71952         Document merge from coreutils.
71953         * modules/userspec: Depend on posixver.
71954         * modules/strftime: Depend on tzset.
71955
71956 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71957
71958         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71959         rather than tab, after '#' in shell-script copyright notices.
71960         Suggested by Bruno Haible.
71961
71962 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71963
71964         * config/srclist-update: Use three spaces, rather than tab, after '#'
71965         in shell-script copyright notices.  Suggested by Bruno Haible.
71966         Remove unnecessary parenthesization in regular expression.
71967
71968 2003-08-15  Jim Meyering  <jim@meyering.net>
71969
71970         Merge from coreutils.
71971         * lib/xgethostname.c: Include <stdlib.h>.
71972         (xghostname): Don't exit for anything other than memory-related
71973         failure; just return NULL.
71974         * lib/userspec.c: Include "posixver.h".
71975         (parse_user_spec): Accept `.' as a separator only
71976         in pre-POSIX-200112 mode.
71977         * lib/strtoimax.c: Use #elif rather than #else #if.
71978         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71979         Remove function, now that we can rely on a working tzset function.
71980         [!_LIBC]: Ensure that the required autoconf test has been run.
71981         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71982         Use underlying_strftime for %r.
71983         * lib/sha.c: Merge in some clean-up and optimization changes from
71984         glibc.
71985         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71986         Ensure that it is a multiple of 64.
71987         Rearrange loop exit tests so as to avoid performing an
71988         additional fread after encountering an error or EOF.
71989         * lib/realloc.c: Update copyright date.
71990
71991 2003-08-15  Jim Meyering  <jim@meyering.net>
71992         and Paul Eggert  <eggert@twinsun.com>
71993
71994         Merge from coreutils.
71995         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71996         member but strut utmpx does not.  Needed for AIX 4.3.3.
71997         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71998
71999 2003-08-15  Jim Meyering  <jim@meyering.net>
72000         and Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         Merges from coreutils, etc.
72003         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72004         Require gl_FUNC_TZSET_CLOBBER.
72005         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72006         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72007         members.
72008
72009 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72010
72011         Help the merge from coreutils.
72012         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72013         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72014         * m4/tzset.m4: Use it too.
72015
72016 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72017
72018         * modules/tzset: New file.
72019
72020 2003-08-14  Jim Meyering  <jim@meyering.net>
72021
72022         Merges from coreutils.
72023         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72024         variable names, rather than @FNMATCH_H@.
72025         * modules/alloca: Likewise for $(ALLOCA_H).
72026
72027         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72028         the three copies of the literal target, `fnmatch.h'.
72029         * modules/alloca (alloca.h): Likewise.
72030
72031 2003-08-14  Jim Meyering  <jim@meyering.net>
72032
72033         Merge from coreutils.
72034         * m4/tzset.m4: New file.
72035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72036         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72037         otherwise, AIX 5.1 systems would end up using the latter.
72038         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72039         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72040         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72041         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72042
72043 2003-08-14  Jim Meyering  <jim@meyering.net>
72044
72045         Merge from coreutils.
72046         * lib/obstack.h: Whitespace changes.
72047         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72048         and xcalloc return values.
72049         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72050         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72051         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72052         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72053         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72054         error from mntctl.
72055         Use mntctl's return value to drive the entry-processing loop, since
72056         we can't rely on the value of the vmt_length member in the last
72057         entry.  On some systems doing so could result in exhausting
72058         virtual memory.  Based in part on a patch from Mike Jetzer.
72059
72060 2003-08-14  Jim Meyering  <jim@meyering.net>
72061         and Paul Eggert  <eggert@twinsun.com>
72062
72063         Merges from coreutils, plus other fixes.
72064         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72065         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72066         for credits and details.  Thanks to Kaveh Ghazi for helping
72067         to keep these files in sync.
72068         (ARRAY_SIZE): Define it.
72069         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72070         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72071         (memcasecmp): Don't assume size_t fits in unsigned int.
72072         Remove casts and duplicate code.
72073         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72074         (memcpy): Remove definition.
72075         Merge in some clean-up and optimization changes from glibc.
72076         [BLOCKSIZE]: Move definition to top of file.
72077         Ensure that it is a multiple of 64.
72078         Rearrange loop exit tests so as to avoid performing an
72079         additional fread after encountering an error or EOF.
72080         * lib/md5.h (md5_uintptr): Define.
72081         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72082         return to the initial working directory.  Preserve errno
72083         for caller.
72084         * lib/idcache.c: Include "xalloc.h".
72085         (xmalloc, xrealloc): Remove decls.
72086         (getuser): Remove casts no longer required in C89.
72087         * lib/human.c: Include stdio.h, for sprintf.
72088         * lib/group-member.c: Include "xalloc.h".
72089         (xmalloc, xrealloc): Remove decls.
72090         (get_group_info): Remove casts no longer required in C89.
72091         * lib/getusershell.c (readname): Remove casts no longer required in
72092         C89.
72093         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72094         * lib/getline.c: Whitespace fix, from coreutils.
72095
72096 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72097
72098         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72099         Check for isascii.
72100
72101         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72102         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72103         Undo previous (whitespace-only) change.
72104
72105 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72106
72107         * lib/exclude.c: Include <ctype.h>
72108         (IN_CTYPE_DOMAIN): New macro.
72109         (is_space): New fn.
72110         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72111         and empty lines.
72112
72113         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72114         Undo previous (whitespace-only) change.
72115
72116 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72117
72118         * config/srclist-update: Change update back to the old behavior,
72119         leaving whitespace alone.  Use one 'sed' command rather than a
72120         pipeline.
72121         (fixlicense): Now a variable, not a function.
72122         (remove_trailing_blanks): Remove.
72123         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72124         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72125         Undo previous (whitespace-only) change.
72126
72127 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72128
72129         Merge from coreutils.
72130         * modules/euidaccess: Add lib_SOURCES, include for new
72131         file euidaccess.h
72132
72133 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72134
72135         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72136         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72137         Normalize leading white space and remove trailing white space.
72138
72139         Merge from coreutils
72140         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72141
72142         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72143         0.12.1.  These files are now being upgraded automatically by
72144         ../config/srclist-update.
72145
72146 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72147
72148         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72149         Normalize leading white space and remove trailing white space.
72150         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72151         notice, as per ../config/srclist-update.
72152
72153         Merge from coreutils.
72154         * lib/euidaccess.h: New file.
72155         * lib/euidaccess.c: Include it.
72156         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72157         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72158         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72159
72160 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72161
72162         * config/srclist-update: Add copyright notice.
72163         (remove_id_lines, remove_trailing_blanks): New constants.
72164         (fixfile): Use them to normalize spacing a bit in copied files.
72165         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72166         Normalize leading white space and remove trailing white space.
72167
72168         * config/texinfo.tex: Sync with texinfo.
72169
72170         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72171         strtoul.c from libc, to merge coreutils whitespace changes.
72172
72173         * config/srclist.txt: Get the following m4 files from gettext:
72174         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72175         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72176         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72177         wint_t.m4.
72178
72179 2003-08-12  Karl Berry  <karl@gnu.org>
72180
72181         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72182         been made.
72183
72184 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72185
72186         * modules/gnu-source, m4/gnu-source.m4:
72187         Remove; we're assuming Autoconf 2.54 or later now.
72188         Suggested by Bruno Haible.
72189         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72190
72191 2003-08-11  Bruno Haible  <bruno@clisp.org>
72192
72193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72194
72195 2003-08-11  Bruno Haible  <bruno@clisp.org>
72196
72197         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72198         (vasnprintf): Use it instead of wcslen.
72199
72200 2003-08-11  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72203         value to ensure that _Bool promotes to int. Use #define for _Bool when
72204         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72205
72206 2003-08-10  Karl Berry  <karl@gnu.org>
72207
72208         * lib/regex.h: update from libc (whitespace fix).
72209
72210 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72211
72212         Merge some files from coreutils.  These changes were
72213         originally made by Jim Meyering.
72214         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72215         many older Unixes require this.
72216         * lib/alloca.c (alloca): Remove cast to argument of free;
72217         no longer needed in C89.
72218         * lib/alloca_.h, regex.h: Fix white space to match
72219         what GNU indent does.
72220
72221 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72222
72223         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72224         apparently Emacs's Unicode mode got confused before my 2003-08-05
72225         checkin.
72226
72227 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72228
72229         * m4/extensions.m4: New file.
72230         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72231         Require gl_USE_SYSTEM_EXTENSIONS.
72232         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72233         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72234
72235 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72236
72237         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72238         * modules/extensions, modules/gnu-source: New files.
72239         * modules/timespec, modules/unlocked-io: Depend on extensions.
72240
72241 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72242
72243         * modules/restrict: New file.
72244         * MODULES.html.sh (func_all_modules): Add restrict.
72245         * modules/regex: Depend on restrict.
72246
72247 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72248
72249         * m4/restrict.m4: New file.
72250         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72251
72252 2003-08-07  Bruno Haible  <bruno@clisp.org>
72253
72254         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72255         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72256
72257 2003-08-07  Bruno Haible  <bruno@clisp.org>
72258
72259         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72260         makes the module 'getndelim2' compatible with the module 'getline'.
72261
72262 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72263
72264         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72265         byte with "\201" to avoid glitches when editing that source file
72266         with multi-gnome-terminal.
72267
72268 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72269
72270         * lib/bumpalloc.h: Remove.
72271
72272 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72273
72274         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72275         * modules/bumpalloc: Remove.
72276
72277 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72278
72279         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72280         GNU coding style.
72281
72282         Merge from coreutils.
72283         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72284         1. From glibc.
72285         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72286         from Karl Berry, implemented by Jim Meyering.
72287         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72288         from Dmitry V. Levin.
72289         Remove anachronistic cast of xrealloc.
72290         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72291         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72292         type. Otherwise, it wouldn't compile with at least /bin/cc on
72293         ymp-cray-unicos9.0.2.X.
72294         Combine two mostly-identical uses of alloca into one.
72295         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72296
72297 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72298
72299         [From Emacs.]
72300
72301         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72302         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72303         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72304         obsolete NLIST_NAME_UNION.
72305         [__GNU__]: Undef BSD and FSCALE.
72306         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72307
72308 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72309
72310         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72311         an enum type, so that it's guaranteed to promote to int.  See:
72312         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72313
72314 2003-08-03  Karl Berry  <karl@gnu.org>
72315
72316         * config/depcomp: update from automake.
72317
72318 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72319
72320         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72321         (strerror): Don't assume that a printable int fits in 14 bytes.
72322
72323 2003-07-31  Bruno Haible  <bruno@clisp.org>
72324
72325         * modules/getpass-gnu: New file.
72326         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72327
72328 2003-07-31  Bruno Haible  <bruno@clisp.org>
72329
72330         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72331
72332 2003-07-24  Karl Berry  <karl@gnu.org>
72333
72334         * config/missing: update from automake.
72335
72336 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72337             Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72340         * lib/getline.c (getline, getdelim): Likewise.
72341         Remove _GNU_SOURCE define; now it's defined in config.h through
72342         m4/getline.m4.
72343
72344 2003-07-23  Karl Berry  <karl@gnu.org>
72345
72346         * config/config.sub: update from prep.
72347
72348 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72349
72350         * modules/xalloc (Depends-on): Add exitfail.
72351         * modules/xmemcoll: Likewise.
72352
72353 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72354
72355         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72356         over-parenthesization in macros.
72357
72358         Sync with coreutils.
72359
72360         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72361         required by C99.
72362
72363         Use `exit_failure' for xalloc and xmemcoll instead of their own
72364         private exit-failure variables.
72365         * lib/xalloc.h (xalloc_exit_failure): Remove.
72366         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72367         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72368         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72369         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72370         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72371
72372 2003-07-20  Jim Meyering  <jim@meyering.net>
72373
72374         * modules/closeout (Depends-on): Add exitfail.
72375         Suggestion from Bruno Haible.
72376
72377 2003-07-19  Karl Berry  <karl@gnu.org>
72378
72379         * config/config.sub: update from prep.
72380
72381 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72382
72383         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72384         Remove.
72385         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72386         to test that it can stand by itself.  Include "exitfail.h".
72387         Clients should set exit_failure instead.
72388         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72389
72390 2003-07-18  Bruno Haible  <bruno@clisp.org>
72391
72392         * modules/getndelim2: New file.
72393         * modules/getline: Share files with module getndelim2.
72394         * modules/getnline: Depend on getndelim2 instead of sharing files with
72395         it. Add getnline.c to lib_SOURCES.
72396         * MODULES.html.sh (func_all_modules): Add getndelim2.
72397
72398 2003-07-18  Bruno Haible  <bruno@clisp.org>
72399
72400         * m4/getndelim2.m4: New file.
72401         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72402         invoke gl_PREREQ_GETNDELIM2.
72403         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72404         gl_PREREQ_GETNDELIM2.
72405         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72406         gl_GETNDELIM2.
72407
72408 2003-07-18  Bruno Haible  <bruno@clisp.org>
72409
72410         * lib/getndelim2.h: New file.
72411         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72412         getndelim2.h.
72413         (getndelim2): Make non-static. Change return type to ssize_t.
72414         * lib/getline.h: Change argument names.
72415         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72416         * lib/getnline.c: Include getndelim2.h.
72417
72418 2003-07-18  Andreas Schwab  <schwab@suse.de>
72419
72420         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72421
72422 2003-07-17  Karl Berry  <karl@gnu.org>
72423
72424         * config/config.sub: update from prep.
72425
72426 2003-07-17  Bruno Haible  <bruno@clisp.org>
72427
72428         * modules/getnline: New file.
72429         * modules/getline: Add lib/getndelim2.c to source file list.
72430         * MODULES.html.sh (func_all_modules): Add getnline.
72431
72432 2003-07-17  Bruno Haible  <bruno@clisp.org>
72433
72434         * m4/getnline.m4: New file.
72435
72436 2003-07-17  Bruno Haible  <bruno@clisp.org>
72437
72438         * m4/Makefile.am.in: Remove file.
72439         * m4/Makefile.am: Remove file.
72440         * m4/Makefile.in: Remove file.
72441
72442 2003-07-17  Bruno Haible  <bruno@clisp.org>
72443
72444         * lib/getnline.h: New file.
72445         * lib/getnline.c: New file.
72446         * lib/getndelim2.c: New file, extracted from getline.c.
72447         (getndelim2): Renamed from getdelim2, with added nmax argument.
72448         * lib/getline.c: Include getndelim2.c.
72449         (getdelim2): Moved out to getndelim2.c.
72450         (getline, getdelim): Update.
72451
72452 2003-07-17  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/Makefile.am: Remove file.
72455         * lib/Makefile.in: Remove file.
72456
72457 2003-07-17  Bruno Haible  <bruno@clisp.org>
72458
72459         * configure.in: Remove file.
72460         * Makefile.in: Remove file.
72461
72462 2003-07-17  Bruno Haible  <bruno@clisp.org>
72463
72464         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72465
72466 2003-07-16  Karl Berry  <karl@gnu.org>
72467
72468         * config/srclist-update: was running fixlicense twice, which caused
72469                 texinfo.tex to be nullified for some reason.  Simplify,
72470                 $gplsrc is no longer needed as far as I can see?
72471
72472 2003-07-16  Jim Meyering  <jim@meyering.net>
72473
72474         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72475
72476 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72477
72478         * config/srclist.txt: Get the following files from gettext-runtime/intl
72479         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72480         ref-del.sin.  From Bruno Haible.
72481         * config/srclist-update (fixfile): Change grep pattern again, since the
72482         previous fix didn't work (there was another trailing $).  Use
72483         '[$]' to escape the $s.
72484
72485 2003-07-15  Karl Berry  <karl@gnu.org>
72486
72487         * lib/vasnprintf.c: update from gettext.
72488
72489 2003-07-15  Karl Berry  <karl@gnu.org>
72490
72491         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72492         gets expanded when surrounded by '$'.
72493
72494 2003-07-15  Jim Meyering  <jim@meyering.net>
72495
72496         * modules/save-cwd: Don't depend on error.  From Derek Price.
72497
72498 2003-07-15  Jim Meyering  <jim@meyering.net>
72499
72500         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72501
72502 2003-07-14  Simon Josefsson  <jas@extundo.com>
72503
72504         * modules/mempcpy: New file.
72505         * MODULES.html.sh (func_all_modules): Add mempcpy.
72506
72507 2003-07-14  Simon Josefsson  <jas@extundo.com>
72508
72509         * m4/mempcpy.m4: New file.
72510
72511 2003-07-14  Simon Josefsson  <jas@extundo.com>
72512
72513         * lib/mempcpy.h: New file.
72514         * lib/mempcpy.c: New file.
72515
72516 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72517
72518         * modules/getdate, modules/posixtm: Depend on mktime.
72519
72520 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72521
72522         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72523         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72524         unicodeio.c, unicodeio.h, unlocked-io.h:
72525         Switch from LGPL to GPL.
72526
72527 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72528
72529         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72530         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72531         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72532         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72533         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72534         updated automatically by ../config/srclist-update.  This changes
72535         their license from LPGL to GPL.
72536
72537 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72538
72539         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72540         assumed to refer to the root of the most recent stable gettext version.
72541         * config/srclistvars.sh: Add defaults for eggert.
72542         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72543         Match "This program" as well as "The program".  This is needed
72544         for gettext.
72545
72546 2003-07-14  Jim Meyering  <jim@meyering.net>
72547
72548         Don't emit diagnostics.  Let callers do that.
72549         * lib/save-cwd.c: Don't include "error.h".
72550         (save_cwd): Don't call error.  Ensure that errno is valid
72551         when returning nonzero.
72552
72553         * lib/save-cwd.h (restore_cwd): Update prototype.
72554         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72555         Simplify.  Don't call error upon failure.  Let callers do that.
72556         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72557         when auditing is enabled.  But don't bother updating the #if.
72558
72559 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72560
72561         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72562         it breaks C++ compilation.
72563         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72564
72565 2003-07-10  Simon Josefsson  <jas@extundo.com>
72566
72567         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72568
72569 2003-07-10  Jim Meyering  <jim@meyering.net>
72570
72571         * m4/clock_time.m4: Remove trailing blank.
72572         * m4/intmax_t.m4: Likewise.
72573
72574 2003-07-10  Jim Meyering  <jim@meyering.net>
72575
72576         * lib/vasnprintf.c: Remove trailing blanks.
72577         Make cpp indentation consistent.
72578
72579 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72580
72581         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72582         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72583         Switch from LGPL to GPL.
72584
72585 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72586
72587         * config/srclist.txt: Sort sublists.  Add
72588         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72589         that differ from gnulib for one reason or another; we'd like this list
72590         to be smaller but for now let's document what we have.
72591
72592 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72593
72594         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72595         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72596         and sweeter "eval x=$x".
72597         * config/srclist.txt: Get lib/argp* from glibc.
72598
72599 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72600
72601         * lib/mktime.c: Fix some boundary cases and remove need for floating
72602         point.
72603
72604         Issue a compile-time diagnostic if time_t is floating point, or if
72605         two's complement arithmetic is not in effect, or if arithmetic
72606         right shift does not propagate the sign.  These assumptions were
72607         all in the original code but they weren't checked.
72608
72609         (TIME_T_MIDPOINT, verify): New macros.
72610         (__isleap): Remove; it has integer overflow problems.
72611         (leapyear): New function, without those problems.
72612         (ydhms_tm_diff): Remove; splitting into two parts.
72613         (ydhms_diff): New function, containing the arithmetic part of
72614         the old ydhms_tm_diff function.  Issue a compile-time
72615         diagnostic if we are not using C99 integer division.
72616         Avoid casts when possible.
72617         (guess_time_tm): New function, containing the checking part of
72618         the old ydhms_tm_diff function.  Return the new value, rather than
72619         the difference between it and the old.  Accept a new argument T
72620         so that *T specifies the old value.  Check for overflow in the result.
72621
72622         (__mktime_internal): Use a time_t offset, not a long int offset.
72623         This undoes the 2003-06-04 change, which is no longer needed now
72624         that we have better overflow checking.
72625         (localtime_offset): Likewise.
72626
72627         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72628         and long are 64-bit but int is only 32-bit.
72629         (ydhms_diff): Use long int to store year1 and yday1.
72630         Issue a compile-time diagnostic if long int is not wide enough.
72631
72632         (__mktime_internal): Use long int to store adjusted year and yday.
72633         Use plain C rather than preprocessor commands, if that doesn't
72634         affect efficiency.
72635         Check for overflow (and try to repair) after each probe
72636         rather than checking only at the very end.  This avoids some bugs
72637         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72638         does not equal GMT offset at maximum time).
72639         Use integer to check for overflow rather than floating point; this
72640         is more portable to non-IEEE hosts, and is a tad faster.
72641         When we detect that we are oscillating between two values,
72642         don't check whether tm_isdst has the requested value, since
72643         we already know the answer.  When tm_isdst has the wrong value,
72644         use a different heuristic to find the right one, based on the
72645         extreme values actually observed in practice in tz2003a,
72646         rather than the (overly optimistic) "previous 3 calendar quarters".
72647
72648         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72649         "T const" to accommodate glibc style.
72650         (check_result): Use less-confusing report format.  "long" -> "long int.
72651         (main): Likewise.
72652         Don't loop if the iteration overflows time_t.
72653         Allow a negative step in the iteration.
72654
72655 2003-07-06  Karl Berry  <karl@gnu.org>
72656
72657         * config/depcomp: update from automake.
72658         * config/config.sub: update from prep.
72659
72660 2003-07-03  Karl Berry  <karl@gnu.org>
72661
72662         * config/config.guess: update from prep.
72663
72664 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72665
72666         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72667         xreadlink.c now includes it unconditionally.
72668
72669 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72670
72671         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72672         having it depend on HAVE_SYS_TYPES_H.
72673
72674 2003-07-01  Bruno Haible  <bruno@clisp.org>
72675
72676         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72677         <sys/types.h> should be sufficient.
72678         Reported by Paul Eggert.
72679
72680 2003-06-26  Karl Berry  <karl@gnu.org>
72681
72682         * config/depcomp: update from automake.
72683
72684 2003-06-26  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/human: Depend on module stdbool.
72687
72688 2003-06-25  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/readlink: New file.
72691         * modules/xreadlink: Depend on it.
72692         * MODULES.html.sh (func_all_modules): Add readlink.
72693
72694 2003-06-25  Bruno Haible  <bruno@clisp.org>
72695
72696         * m4/readlink.m4: New file.
72697
72698 2003-06-25  Bruno Haible  <bruno@clisp.org>
72699
72700         * lib/readlink.c: New file.
72701
72702 2003-06-22  Karl Berry  <karl@gnu.org>
72703
72704         * config/srclist.txt: update mkinstalldirs from automake.
72705         * config/mkinstalldirs: update.
72706
72707 2003-06-22  Bruno Haible  <bruno@clisp.org>
72708
72709         Portability to mingw32.
72710         * m4/ssize_t.m4: New file, from GNU gettext.
72711         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72712         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72713
72714 2003-06-22  Bruno Haible  <bruno@clisp.org>
72715
72716         * modules/safe-read: Add m4/ssize_t.m4.
72717         * modules/xreadlink: Add m4/ssize_t.m4.
72718
72719 2003-06-20  Bruno Haible  <bruno@clisp.org>
72720
72721         Assume C89, so PARAMS isn't needed.
72722         * lib/unicodeio.h (PARAMS): Remove.
72723         * lib/unicodeio.c: Don't use PARAMS.
72724
72725 2003-06-18  Karl Berry  <karl@gnu.org>
72726
72727         * config/config.{guess,sub}: update from prep.
72728
72729 2003-06-18  Jim Meyering  <jim@meyering.net>
72730
72731         Merge changes from coreutils.
72732         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72733         Remove explicit declarations of xmalloc and realloc.
72734         Include xalloc.h.
72735         (read_utmp): Remove anachronistic cast of xmalloc.
72736
72737 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72738
72739         Assume C89, so PARAMS isn't needed.
72740         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72741         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72742         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72743         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72744         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72745         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72746         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72747         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72748         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72749         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72750         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72751         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72752         no longer needed. Anyway, config.h should always be included before any
72753         other file.
72754
72755 2003-06-11  Simon Josefsson  <jas@extundo.com>
72756
72757         * modules/sysexits: New file.
72758         * MODULES.html.sh (func_all_modules): Add sysexits.
72759
72760 2003-06-11  Simon Josefsson  <jas@extundo.com>
72761
72762         * lib/sysexit_.h: New file.
72763
72764 2003-06-11  Derek Price  <derek@ximbiot.com>
72765
72766         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72767         necessary.
72768
72769 2003-06-11  Bruno Haible  <bruno@clisp.org>
72770
72771         * m4/sysexits.m4: New file.
72772
72773 2003-06-10  Simon Josefsson  <jas@extundo.com>
72774
72775         * lib/argp.h: New file, from glibc.
72776         * lib/argp-ba.c: New file, from glibc.
72777         * lib/argp-eexst.c: New file, from glibc.
72778         * lib/argp-fmtstream.c: New file, from glibc.
72779         * lib/argp-fmtstream.h: New file, from glibc.
72780         * lib/argp-fs-xinl.c: New file, from glibc.
72781         * lib/argp-help.c: New file, from glibc.
72782         * lib/argp-namefrob.h: New file, from glibc.
72783         * lib/argp-parse.c: New file, from glibc.
72784         * lib/argp-pv.c: New file, from glibc.
72785         * lib/argp-pvh.c: New file, from glibc.
72786         * lib/argp-xinl.c: New file, from glibc.
72787
72788 2003-06-10  Simon Josefsson  <jas@extundo.com>
72789
72790         * modules/strchrnul: New file.
72791
72792 2003-06-10  Simon Josefsson  <jas@extundo.com>
72793
72794         * modules/argp: New file.
72795
72796 2003-06-10  Simon Josefsson  <jas@extundo.com>
72797
72798         * m4/strchrnul.m4: New file.
72799
72800 2003-06-10  Simon Josefsson  <jas@extundo.com>
72801
72802         * lib/strchrnul.h: New file.
72803         * lib/strchrnul.c: New file.
72804
72805 2003-06-10  Bruno Haible  <bruno@clisp.org>
72806
72807         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72808
72809 2003-06-07  Karl Berry  <karl@gnu.org>
72810
72811         * config/config.{guess,sub}: update from prep.
72812
72813 2003-06-07  Jim Meyering  <jim@meyering.net>
72814
72815         * modules/strtod: Use $(...) notation, not @...@ for
72816         AC_REPLACE'd variables.
72817         * modules/localcharset: Likewise.
72818
72819 2003-06-07  Jim Meyering  <jim@meyering.net>
72820
72821         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72822         in place of my name in the copyright comment.
72823         Remove definition and uses of __P.
72824
72825         From coreutils.
72826         * lib/stat.c: Don't declare xmalloc explicitly.
72827         Instead, include "xalloc.h".
72828         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72829         xrealloc, and xcalloc return values.
72830         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72831         Improve comment.
72832         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72833
72834 2003-06-07  Bruno Haible  <bruno@clisp.org>
72835
72836         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72837         avoid AC_CONFIG_LINKS.
72838         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72839         fnmatch.h, to avoid AC_CONFIG_LINKS.
72840         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72841
72842 2003-06-07  Bruno Haible  <bruno@clisp.org>
72843
72844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72845         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72846         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72847         directory.
72848         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72849         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72850         directory.
72851
72852 2003-06-06  Jim Meyering  <jim@meyering.net>
72853
72854         Merge from coreutils.
72855         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72856         Consolidate declarations and initializations of *_base* locals.
72857
72858         Merge from coreutils.
72859         This avoids a core dump on systems without GNU putenv,
72860         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72861         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72862         (unsetenv): New static function, from GNU libc.
72863         (rpl_putenv): Use it.
72864
72865         * lib/modechange.c: Remove trailing blanks.
72866
72867         Merge from coreutils.
72868         * lib/fsusage.c: Remove declaration of statfs.
72869         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72870
72871         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72872
72873 2003-06-06  Jim Meyering  <jim@meyering.net>
72874
72875         * lib/stdbool_.h: Renamed from stdbool.h.in.
72876
72877 2003-06-06  Jim Meyering  <jim@meyering.net>
72878             Bruno Haible  <bruno@clisp.org>
72879
72880         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72881         Adjust Makefile.am snippet not to redirect directly to target.
72882         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72883
72884 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72885
72886         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72887         mismatch, look in future quarters as well as past.  This fixes a
72888         bug when processing fall-backwards gaps immediately after a long
72889         period of daylight-saving time.
72890
72891         * lib/mktime.c: Assume freestanding C89 or better.
72892         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72893         (__P): Remove; not used.
72894         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72895         (mktime, not_equal_tm, print_tm, check_result,
72896         main): Use prototypes.  Use const * where appropriate.
72897         (main): Fix typo in testing code that uncovered by above changes.
72898         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72899
72900 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72901
72902         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72903         locale.h, localeconv.  This merges changes from coreutils.
72904
72905         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72906         It can be removed after the next Autoconf is released.
72907         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72908         needed.
72909
72910 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72911
72912         * lib/mktime.c: Fix Debian bug 177940
72913         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72914         (localtime_offset): Now long int, not time_t, because we want it
72915         to be guaranteed to be signed.  All uses changed.
72916         (__mktime_internal): If overflow would occur when adding offset,
72917         don't add it.
72918
72919         Merge 'human' changes from coreutils.  Rewrite to support
72920         locale-specific notations like thousands separators.
72921         * lib/human.c: Simplify authorship notice.
72922         Include human.h immediately after config.h.
72923         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72924         <limits.h>: Do not include, since human.h does.
72925         (SIZE_MAX, UINTMAX_MAX): New macros.
72926         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72927         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72928         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72929         (power_letter): Renamed from suffixes.
72930         (generate_suffix_backwards): Remove.
72931         (adjust_value): Now takes int style (because of human.h changes)
72932         and long double value (for greater precision on some platforms).
72933         (group_number): New function.
72934         (human_readable): Use it.  Use integer options, not enum.
72935         Put the options before the sizes in the arg list.
72936         Support all the new options.
72937         The old human_readable function has been removed;
72938         use inttostr.h instead.
72939         (human_readable, default_block_size, humblock):
72940         Use uintmax_t, not int, for block sizes.
72941         (human_readable_inexact, block_size_types): Remove.
72942         (block_size_opts): New constant.
72943         (human_options): Renamed from human_block_size, with new signature
72944         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72945         * lib/human.h: Add copyright and authorship notice.
72946         Include <limits.h> and <stdbool.h> unconditionally.
72947         (PARAMS): Remove.  All uses removed.
72948         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72949         (enum human_inexact_style): Remove tag; now a nameless enum.
72950         (human_floor, human_ceiling, human_round_to_even): Now have
72951         values 2, 0, 1 rather than -1, 1, 0.
72952         (human_group_digits, human_suppress_point_zero, human_autoscale,
72953         human_base_1024, human_SI, human_B): New constants.
72954         (human_readable_inexact, human_block_size): Remove.
72955         (human_readable): Size args are now uintmax_t, not int.
72956         (human_options): New decl.
72957
72958         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72959         unnecessary now that we assume C89 or better.  This change
72960         imported from coreutils.
72961
72962         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72963         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72964         in the 2003-05-30 sync from glibc.
72965
72966         .h files should stand alone, but we shouldn't include <sys/types.h>
72967         if we can get away with just <stddef.h>.
72968
72969         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72970         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72971         rather than <sys/types.h>, as we merely need size_t.
72972         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72973         to get size_t.
72974         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72975         Include <stdio.h>, to get FILE.
72976         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72977         memcasecmp.h has included <stddef.h> and all we need is size_t.
72978         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72979         our interface, instead of including <sys/types.h>
72980
72981 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72982
72983         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72984         now, as glibc mktime is buggy on non-glibc systems.
72985
72986 2003-06-03  Karl Berry  <karl@gnu.org>
72987
72988         * config/config.sub: update from prep.
72989
72990 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72991
72992         [from coreutils]
72993         Fix some minor time-related bugs with POSIX time arguments.
72994         Some valid time stamps were being rejected (notably -1, and
72995         time stamps before 1900 on 64-bit hosts).  And some invalid
72996         time stamps were being accepted, e.g. September 31.
72997
72998         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72999         that we can return (time_t) -1 successfully.
73000         * lib/posixtm.c: Likewise.
73001         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73002         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73003         (t): Remove static var.
73004         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73005         of static var.  All uses changed.
73006         (year): Do not reject years before 1900; they can occur with
73007         64-bit time_t.
73008         (posix_time_parse): Do not check for out-of-range components;
73009         that is now the caller's responsibility, since our checks were
73010         only approximations.
73011         (posixtime): Use mktime to check for out-of-range components,
73012         since it knows them exactly.
73013         If mktime returns (time_t) -1, check whether an error actually occurred
73014         by invoking localtime on -1.
73015         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73016         posixtime failures better.
73017         Improve the test data (in comments only).
73018
73019 2003-06-02  Karl Berry  <karl@gnu.org>
73020
73021         * config/mkinstalldirs (version): new variable.
73022         (--version): new option.
73023         (usage): improve message.
73024
73025 2003-05-30  Karl Berry  <karl@gnu.org>
73026
73027         * lib/mktime.c: update from libc.
73028
73029 2003-05-30  Bruno Haible  <bruno@clisp.org>
73030
73031         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73032         * config/config.rpath: Upgrade to gettext-0.12.1.
73033
73034 2003-05-30  Bruno Haible  <bruno@clisp.org>
73035
73036         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73037         * m4/nls.m4: New file, from gettext-0.12.1.
73038         * m4/po.m4: New file, from gettext-0.12.1.
73039         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73040
73041 2003-05-30  Bruno Haible  <bruno@clisp.org>
73042
73043         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73044         * lib/localcharset.h: Likewise.
73045         * lib/localcharset.c: Likewise.
73046
73047 2003-05-29  Karl Berry  <karl@gnu.org>
73048
73049         * config/config.rpath: update from gettext.
73050
73051 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73052
73053         Assume the headers required for C89 freestanding compilers.
73054         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73055         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73056         * m4/human.m4 (gl_HUMAN): Likewise.
73057         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73058         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73059         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73060         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73061         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73062         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73063
73064 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73065
73066         Assume the headers required for C89 freestanding compilers.
73067         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73068         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73069         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73070         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73071         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73072         define, since <limits.h> is guaranteed to do that.
73073         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73074         * lib/exclude.c: Include <stdbool.h> unconditionally.
73075         * lib/tempname.c: Include <stddef.h> unconditionally.
73076         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73077         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73078         <stddef.h> does that.
73079         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73080         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73081         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73082         needed.
73083         * lib/xstrtol.c: Likewise.
73084         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73085         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73086
73087         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73088         warnings on some platforms.
73089
73090         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73091         arbitrarily.
73092
73093 2003-05-26  Jim Meyering  <jim@meyering.net>
73094
73095         Merge in a change from coreutils:
73096         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73097         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73098         that condition, rather than `-1' which is slightly misleading.
73099         Change the name of the cache variable to have the gl_ prefix.
73100         Prompted by a patch from Richard Dawe for DJGPP.
73101
73102 2003-05-24  Karl Berry  <karl@gnu.org>
73103
73104         * config/config.guess: update from prep.
73105
73106 2003-05-22  Karl Berry  <karl@gnu.org>
73107
73108         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73109
73110 2003-05-20  Karl Berry  <karl@gnu.org>
73111
73112         * config/config.guess: update from prep.
73113
73114 2003-05-18  Karl Berry  <karl@gnu.org>
73115
73116         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73117         might actually be set by the user.
73118
73119         * config/depcomp, install-sh, mdate-sh: update from automake.
73120
73121 2003-05-17  Bruno Haible  <bruno@clisp.org>
73122
73123         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73124         invalid expansion for AC_EGREP_CPP.
73125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73126         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73127         Suggested by Akim Demaille <akim@epita.fr> in
73128         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73129
73130 2003-05-12  Jim Meyering  <jim@meyering.net>
73131
73132         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73133         the space-padded-by-default conversion specifiers, %e, %k, %l.
73134
73135 2003-05-12  Bruno Haible  <bruno@clisp.org>
73136
73137         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73138         the string is longer than 4 KB.
73139
73140 2003-05-11  Karl Berry  <karl@gnu.org>
73141
73142         * config/config.{guess,sub}: update from prep.
73143
73144 2003-05-09  Bruno Haible  <bruno@clisp.org>
73145
73146         * modules/error: Add m4/strerror_r.m4 to file list.
73147
73148 2003-05-03  Bruno Haible  <bruno@clisp.org>
73149
73150         Upgrade to Unicode-4.0.
73151         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73152         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73153         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73154         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73155         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73156         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73157         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73158         Change width of U+E0100..U+E01EF from 1 to 0.
73159
73160 2003-04-25  Jim Meyering  <jim@meyering.net>
73161
73162         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73163         of type size_t, not int.
73164
73165 2003-04-25  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/copy-file.c: Include <stddef.h>, for size_t.
73168
73169 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73170
73171         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73172         code which expansion is under static control.  Patch imported from
73173         Akim Demaille's patch to Bison; see
73174         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73175
73176 2003-04-14  Bruno Haible  <bruno@clisp.org>
73177
73178         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73179
73180 2003-04-11  Jim Meyering  <jim@meyering.net>
73181
73182         Merge changes from Coreutils.
73183
73184         2003-03-22  Jim Meyering  <jim@meyering.net>
73185
73186         * lib/strftime.c (widen): Cast alloca return value to proper type.
73187
73188         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73189
73190         From GNU libc.
73191         * lib/strftime.c (my_strftime): Handle very large width
73192         specifications for numeric values correctly.  Improve checks for
73193         overflow.
73194
73195         2003-01-19  Jim Meyering  <jim@meyering.net>
73196
73197         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73198         definitions.
73199         (nl_get_alt_digit) [! defined my_strftime]: Define.
73200         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73201         _nl_get_alt_digit and _nl_get_walt_digit.
73202
73203         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73204         libc. These changes have no effect outside of _LIBC.
73205
73206 2003-04-10  Bruno Haible  <bruno@clisp.org>
73207
73208         * modules/findprog: New file.
73209         * MODULES.html.sh (func_all_modules): Add it.
73210
73211 2003-04-10  Bruno Haible  <bruno@clisp.org>
73212
73213         * m4/findprog.m4: New file.
73214         * m4/eaccess.m4: New file.
73215
73216 2003-04-10  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/findprog.h: New file, from GNU gettext.
73219         * lib/findprog.c: New file, from GNU gettext.
73220
73221 2003-04-05  Jim Meyering  <jim@meyering.net>
73222
73223         Merge changes from Coreutils.
73224
73225         * lib/exclude.h (PARAMS): Remove definition and uses.
73226         * lib/exclude.c: Remove uses of `PARAMS'.
73227
73228         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73229         Add test-cases for DOS filenames. Declare program_name.
73230         (main): Set up program_name.  Patch by Rich Dawe.
73231
73232         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73233         error from mntctl.
73234         Use mntctl's return value to drive the entry-processing loop, since
73235         we can't rely on the value of the vmt_length member in the last
73236         entry.  On some systems doing so could result in exhausting
73237         virtual memory.  Based in part on a patch from Mike Jetzer.
73238
73239 2003-04-04  Bruno Haible  <bruno@clisp.org>
73240
73241         * modules/linebreak: New file.
73242         * MODULES.html.sh (func_all_modules): Add it.
73243
73244 2003-04-04  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/linebreak.m4: New file.
73247
73248 2003-04-04  Bruno Haible  <bruno@clisp.org>
73249
73250         * lib/linebreak.h: New file, from GNU gettext.
73251         * lib/linebreak.c: New file, from GNU gettext with slight
73252         modifications.
73253         * lib/lbrkprop.h: New file, from GNU gettext.
73254
73255 2003-04-03  Bruno Haible  <bruno@clisp.org>
73256
73257         * modules/utf8-ucs4: New file.
73258         * modules/utf16-ucs4: New file.
73259         * modules/ucs4-utf8: New file.
73260         * modules/ucs4-utf16: New file.
73261         * MODULES.html.sh (func_all_modules): Add them.
73262
73263 2003-04-03  Bruno Haible  <bruno@clisp.org>
73264
73265         * m4/utf-ucs4.m4: New file.
73266         * m4/ucs4-utf.m4: New file.
73267
73268 2003-04-03  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/utf8-ucs4.h: New file, from GNU gettext.
73271         * lib/utf16-ucs4.h: New file, from GNU gettext.
73272         * lib/ucs4-utf8.h: New file, from GNU gettext.
73273         * lib/ucs4-utf16.h: New file, from GNU gettext.
73274
73275 2003-04-02  Bruno Haible  <bruno@clisp.org>
73276
73277         * modules/binary-io: New file.
73278         * MODULES.html.sh (func_all_modules): Add it.
73279
73280 2003-04-02  Bruno Haible  <bruno@clisp.org>
73281
73282         * lib/binary-io.h: New file, from GNU gettext.
73283
73284 2003-04-01  Bruno Haible  <bruno@clisp.org>
73285
73286         * modules/pathname: New file.
73287         * MODULES.html.sh (func_all_modules): Add it.
73288
73289 2003-04-01  Bruno Haible  <bruno@clisp.org>
73290
73291         * lib/pathname.h: New file, from GNU gettext.
73292         * lib/concatpath.c: New file, from GNU gettext.
73293
73294 2003-03-30  Bruno Haible  <bruno@clisp.org>
73295
73296         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73297
73298 2003-03-30  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73301         function chown() doesn't exist.
73302
73303 2003-03-28  Bruno Haible  <bruno@clisp.org>
73304
73305         * modules/copy-file: New file.
73306         * MODULES.html.sh (func_all_modules): Add it.
73307
73308 2003-03-28  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/copy-file.m4: New file.
73311
73312 2003-03-28  Bruno Haible  <bruno@clisp.org>
73313
73314         * lib/copy-file.h: New file, from GNU gettext.
73315         * lib/copy-file.c: New file, from GNU gettext.
73316
73317 2003-03-18  Jim Meyering  <jim@meyering.net>
73318
73319         * lib/quote.c (quote_n): Fix typo in comment.
73320
73321 2003-03-18  Bruno Haible  <bruno@clisp.org>
73322
73323         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73324         checking.
73325         * m4/onceonly_2_57.m4: Likewise.
73326
73327 2003-03-17  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73330         (m4_quote): Remove macro.
73331         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73332
73333 2003-03-14  Jim Meyering  <jim@meyering.net>
73334
73335         Merge changes from Coreutils.
73336         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73337         to be const, in order to avoid warnings.
73338         (obstack_room): Likewise.
73339         (obstack_empty_p): Likewise.
73340
73341 2003-03-14  Bruno Haible  <bruno@clisp.org>
73342
73343         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73344         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73345
73346 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73347
73348         Merge changes from Bison.
73349         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73350         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73351         when compiling Bison 1.875's `bitset bset = obstack_alloc
73352         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73353         * lib/hash.c: Include <stdbool.h> unconditionally.
73354
73355 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73356
73357         * m4/onceonly.m4 (m4_quote): New macro.
73358         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73359         Quote AC_FOREACH variable-expansions properly.
73360
73361 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73362
73363         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73364
73365 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73366
73367         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73368         Reported by Bruce Becker; see:
73369         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73370
73371 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73372             Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73375         Reported by John Hughes, see
73376         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73377
73378 2003-02-20  Bruno Haible  <bruno@clisp.org>
73379
73380         * MODULES.html.sh (func_all_modules): Add poll.
73381
73382 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73383
73384         * modules/poll: New file.
73385
73386 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73387
73388         * lib/poll_.h: New file.
73389         * lib/poll.c: New file.
73390
73391 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73392
73393         * m4/poll.m4: New file.
73394
73395 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73396
73397         * modules/mathl: New file.
73398
73399 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73400
73401         * lib/mathl.h: New file.
73402         * lib/acosl.c: New file.
73403         * lib/asinl.c: New file.
73404         * lib/atanl.c: New file.
73405         * lib/ceill.c: New file.
73406         * lib/cosl.c: New file.
73407         * lib/expl.c: New file.
73408         * lib/floorl.c: New file.
73409         * lib/frexpl.c: New file.
73410         * lib/ldexpl.c: New file.
73411         * lib/logl.c: New file.
73412         * lib/sincosl.c: New file.
73413         * lib/sinl.c: New file.
73414         * lib/sqrtl.c: New file.
73415         * lib/tanl.c: New file.
73416         * lib/trigl.c: New file.
73417         * lib/trigl.h: New file.
73418
73419 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73420
73421         * m4/mathl.m4: New file.
73422
73423 2003-02-18  Bruno Haible  <bruno@clisp.org>
73424
73425         * MODULES.html.sh (func_all_modules): Add mathl.
73426
73427 2003-02-17  Bruno Haible  <bruno@clisp.org>
73428
73429         * modules/mkdtemp: New module.
73430         * MODULES.html.sh (func_all_modules): Add it.
73431
73432 2003-02-17  Bruno Haible  <bruno@clisp.org>
73433
73434         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73435
73436 2003-02-17  Bruno Haible  <bruno@clisp.org>
73437
73438         * lib/mkdtemp.h: New file, from GNU gettext.
73439         * lib/mkdtemp.c: New file, from GNU gettext.
73440
73441 2003-02-02  Jim Meyering  <jim@meyering.net>
73442
73443         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73444         e.g. glibc-2.2.93.
73445
73446 2003-01-31  Bruno Haible  <bruno@clisp.org>
73447
73448         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73449         'rpl_rename'.
73450         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73451         'rpl_strnlen'.
73452         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73453         'rpl_strtod'.
73454         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73455         'rpl_utime'.
73456
73457 2003-01-31  Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/rename.c: #undef rename before defining rpl_rename.
73460         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73461
73462 2003-01-30  Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/vasnprintf, modules/vasprintf: New modules.
73465         * MODULES.html.sh (func_all_modules): Add them.
73466
73467 2003-01-30  Bruno Haible  <bruno@clisp.org>
73468
73469         * m4/signed.m4: New file, from GNU gettext.
73470         * m4/longdouble.m4: New file, from GNU gettext.
73471         * m4/wchar_t.m4: New file, from GNU gettext.
73472         * m4/wint_t.m4: New file, from GNU gettext.
73473         * m4/vasnprintf.m4: New file.
73474         * m4/vasprintf.m4: New file.
73475
73476 2003-01-30  Bruno Haible  <bruno@clisp.org>
73477
73478         * lib/printf-args.h: New file, from GNU gettext.
73479         * lib/printf-args.c: New file, from GNU gettext.
73480         * lib/printf-parse.h: New file, from GNU gettext.
73481         * lib/printf-parse.c: New file, from GNU gettext.
73482         * lib/vasnprintf.h: New file, from GNU gettext.
73483         * lib/vasnprintf.c: New file, from GNU gettext.
73484         * lib/asnprintf.c: New file, from GNU gettext.
73485         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73486         * lib/vasprintf.c: New file, from GNU gettext.
73487         * lib/asprintf.c: New file, from GNU gettext.
73488
73489 2003-01-29  Bruno Haible  <bruno@clisp.org>
73490
73491         * modules/stpncpy: New module.
73492         * MODULES.html.sh (func_all_modules): Add it.
73493
73494 2003-01-29  Bruno Haible  <bruno@clisp.org>
73495
73496         * m4/stpncpy.m4: New file.
73497
73498 2003-01-29  Bruno Haible  <bruno@clisp.org>
73499
73500         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73501         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73502
73503 2003-01-28  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/c-ctype: New module.
73506         * MODULES.html.sh (func_all_modules): Add it.
73507
73508 2003-01-28  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73511         Paul Eggert.
73512         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73513         Paul Eggert.
73514
73515 2003-01-27  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/xsetenv: New module.
73518         * MODULES.html.sh (func_all_modules): Add it.
73519
73520 2003-01-27  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/xsetenv.h: New file, from GNU gettext.
73523         * lib/xsetenv.c: New file, from GNU gettext.
73524
73525 2003-01-23  Jim Meyering  <jim@meyering.net>
73526
73527         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73528         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73529
73530 2003-01-23  Bruno Haible  <bruno@clisp.org>
73531
73532         * modules/minmax: New module.
73533         * MODULES.html.sh (func_all_modules): Add it.
73534
73535 2003-01-23  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73538         Eggert.
73539
73540 2003-01-22  Bruno Haible  <bruno@clisp.org>
73541
73542         * modules/exit: New module.
73543         * MODULES.html.sh (func_all_modules): Add it.
73544
73545 2003-01-22  Bruno Haible  <bruno@clisp.org>
73546
73547         * lib/exit.h: New file, from GNU gettext.
73548
73549 2003-01-19  Bruno Haible  <bruno@clisp.org>
73550
73551         * gnulib-tool: Recognize option --extract-maintainer.
73552         (func_get_maintainer): New function.
73553         * modules/*: Add Maintainer entry.
73554
73555 2003-01-16  Jim Meyering  <jim@meyering.net>
73556
73557         * m4/regex.m4: The `regex' struct is both input and output.
73558         Initialize it before each use.  Patch by Tim Waugh.
73559
73560 2003-01-16  Bruno Haible  <bruno@clisp.org>
73561
73562         * MODULES.html.sh: Add a table of contents. Add the module name as
73563         leftmost column. Add hyperlinks.
73564
73565 2003-01-15  Bruno Haible  <bruno@clisp.org>
73566
73567         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73568
73569 2003-01-15  Bruno Haible  <bruno@clisp.org>
73570
73571         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73572         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73573         suffix.
73574
73575 2003-01-15  Bruno Haible  <bruno@clisp.org>
73576
73577         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73578
73579 2003-01-15  Bruno Haible  <bruno@clisp.org>
73580
73581         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73582         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73583
73584 2003-01-14  Jim Meyering  <jim@meyering.net>
73585
73586         * lib/same.c (same_name): Tweak a comment.
73587
73588 2003-01-14  Bruno Haible  <bruno@clisp.org>
73589
73590         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73591         when a string comparison is sufficient.
73592
73593 2003-01-14  Bruno Haible  <bruno@clisp.org>
73594
73595         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73596         'unsigned int'.
73597
73598 2003-01-14  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/hash-pjw.c: Add comment about low quality of this function.
73601
73602 2003-01-13  Bruno Haible  <bruno@clisp.org>
73603
73604         * modules/stpcpy: Distribute lib/stpcpy.h.
73605         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73606
73607 2003-01-13  Bruno Haible  <bruno@clisp.org>
73608
73609         * modules/*: Add a description.
73610         * modules/strpbrk: Fix Makefile.am snippet.
73611         * modules/strtoimax: Fix dependencies.
73612         * modules/strtoumax: Likewise.
73613
73614 2003-01-13  Bruno Haible  <bruno@clisp.org>
73615
73616         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73617         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73618         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73619
73620 2003-01-13  Bruno Haible  <bruno@clisp.org>
73621
73622         * gnulib-tool (func_create_testdir): Store config/* files in the main
73623         directory.
73624         * config.rpath: Move to ...
73625         * config/config.rpath: ... here.
73626         * modules/gettext: Contains config/config.rpath, not config.rpath.
73627         * modules/iconv: Likewise.
73628
73629 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73630
73631         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73632         to avoid collisions with libcurses and libreadline.
73633
73634         * m4/getstr.m4: Remove.
73635         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73636
73637 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73638
73639         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73640         to avoid collisions with libcurses and libreadline.
73641
73642         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73643         * lib/getstr.h, getstr.c: Remove.
73644         * lib/getline.c: Include "getline.h", to check interface.
73645         Move body of old getstr.c here: this defines MIN_CHUNK and
73646         declares getdelim2, which is renamed from getstr.
73647         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73648
73649         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73650         All uses changed.
73651         * lib/linebuffer.h: Likewise.
73652         (readline): Remove backward-compatibility macro.
73653
73654 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73655
73656         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73657         to avoid collisions with libcurses and libreadline.
73658         * getstr: Remove.
73659         * MODULES.html.sh: Remove getstr.
73660         * modules/getline: Depend on unlocked-io, not getstr.
73661
73662 2003-01-12  Jim Meyering  <jim@meyering.net>
73663
73664         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73665
73666 2003-01-10  Bruno Haible  <bruno@clisp.org>
73667
73668         * modules/alloca: Change Makefile.am requirements. Simplify Include
73669         requirements. Add lib/alloca_.h to file list.
73670
73671 2003-01-10  Bruno Haible  <bruno@clisp.org>
73672
73673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73674
73675 2003-01-10  Bruno Haible  <bruno@clisp.org>
73676
73677         * lib/alloca_.h: New file.
73678         * lib/getdate.y: Unconditionally include alloca.h.
73679         * lib/makepath.c: Likewise.
73680         * lib/setenv.c: Likewise.
73681         * lib/userspec.c: Likewise.
73682
73683 2003-01-09  Karl Berry  <karl@gnu.org>
73684
73685         * MODULES.html.sh: include `dirname $0` in PATH, to find
73686         gnulib-tool.
73687
73688 2003-01-09  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73691         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73692
73693 2003-01-09  Bruno Haible  <bruno@clisp.org>
73694
73695         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73696
73697 2003-01-09  Bruno Haible  <bruno@clisp.org>
73698
73699         * lib/stdbool.h.in: New file.
73700
73701 2003-01-09  Bruno Haible  <bruno@clisp.org>
73702
73703         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73704         * MODULES.html.sh: Likewise.
73705
73706 2003-01-08  Jim Meyering  <jim@meyering.net>
73707
73708         * lib/full-write.c: Undefine and define-away `const' after inclusion
73709         of errno.h, not before.  Suggestion from Bruno Haible.
73710
73711 2003-01-08  Bruno Haible  <bruno@clisp.org>
73712
73713         * modules/full-read: Depend on full-write.
73714
73715 2003-01-08  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/safe-read.c: Include specification header first, to ensure its
73718         selfcontainedness.
73719         * lib/full-write.c: Likewise.
73720
73721 2003-01-07  Jim Meyering  <jim@meyering.net>
73722
73723         * lib/full-write.c: Rework so that it may serve to define full_read,
73724         too.
73725         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73726
73727 2003-01-07  Bruno Haible  <bruno@clisp.org>
73728
73729         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73730         <inttypes.h>.
73731         * lib/xstrtol.h: Likewise.
73732         * lib/xstrtoimax.c: Likewise.
73733         * lib/xstrtoumax.c: Likewise.
73734         * lib/human.h: Likewise.
73735
73736         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73737         on systems that have <inttypes.h> but not <stdint.h>.
73738
73739 2003-01-07  Bruno Haible  <bruno@clisp.org>
73740
73741         * MODULES.html.sh: Add copyright notice.
73742         (missed_files): Omit CVS directory entries.
73743         (func_module): Make it work with sed-3.02.
73744         * MODULES.txt: Remove file.
73745
73746 2003-01-06  Jim Meyering  <jim@meyering.net>
73747
73748         * lib/version-etc.c: Update year in translatable copyright string.
73749
73750 2003-01-03  Karl Berry  <karl@gnu.org>
73751
73752         * config/config.{guess,sub}: update from prep.
73753
73754 2003-01-02  Karl Berry  <karl@gnu.org>
73755
73756         * doc/COPYING.DOC: belatedly updated to 1.2.
73757
73758 2003-01-01  Karl Berry  <karl@gnu.org>
73759
73760         * gnulib-tool (func_verify_module): report module name $module in
73761         error message, not $1.
73762         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73763         be created, only if it doesn't exist.
73764         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73765
73766 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73767
73768         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73769
73770 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73771
73772         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73773         memcmp if strcoll doesn't work.
73774
73775 2002-12-31  Bruno Haible  <bruno@clisp.org>
73776
73777         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73778         nonempty.
73779
73780 2002-12-31  Bruno Haible  <bruno@clisp.org>
73781
73782         * lib/memcoll.c (STRCOLL): New macro.
73783         (memcoll): Use it.
73784
73785 2002-12-31  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/localcharset.h: New file.
73788         * lib/localcharset.c: Include it.
73789         * lib/unicodeio.c: Likewise.
73790
73791 2002-12-31  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73794         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73795
73796 2002-12-31  Bruno Haible  <bruno@clisp.org>
73797
73798         * lib/getline.h: Include <stddef.h>, for size_t.
73799
73800         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73801         * lib/unicodeio.c: Don't include <stddef.h>.
73802
73803 2002-12-31  Bruno Haible  <bruno@clisp.org>
73804
73805         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73806         HAVE_TM_ZONE.
73807
73808 2002-12-24  Karl Berry  <karl@gnu.org>
73809
73810         * config/config.guess: update from prep.
73811
73812 2002-12-24  Bruno Haible  <bruno@clisp.org>
73813
73814         General infrasructure.
73815         * m4/README: Rewritten.
73816         * m4/onceonly.m4: New file.
73817         * m4/onceonly_2_57.m4: New file.
73818
73819         Module atexit.
73820         * m4/atexit.m4: New file.
73821
73822         Module strtod.
73823         * m4/strtod.m4: New file.
73824
73825         Module strtol.
73826         * m4/strtol.m4: New file.
73827
73828         Module strtoul.
73829         * m4/strtoul.m4: New file.
73830
73831         Module memchr.
73832         * m4/memchr.m4: New file.
73833
73834         Module memcmp.
73835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73836         (jm_FUNC_MEMCMP): Invoke it.
73837
73838         Module memcpy.
73839         * m4/memcpy.m4: New file.
73840
73841         Module memmove.
73842         * m4/memmove.m4: New file.
73843
73844         Module memset.
73845         * m4/memset.m4: New file.
73846
73847         Module strcspn.
73848         * m4/strcspn.m4: New file.
73849
73850         Module strpbrk.
73851         * m4/strpbrk.m4: New file.
73852
73853         Module strstr.
73854         * m4/strstr.m4: New file.
73855
73856         Module strerror.
73857         * m4/strerror.m4: New file.
73858
73859         Module mktime.
73860         * m4/mktime.m4: Renamed from jm-mktime.m4.
73861         (gl_PREREQ_MKTIME): New macro.
73862         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73863
73864         Module malloc.
73865         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73866         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73867         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73868
73869         Module realloc.
73870         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73871         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73872         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73873
73874         Module strftime.
73875         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73877         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73878         gl_TM_GMTOFF.
73879         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73880
73881         Module xalloc.
73882         * m4/xalloc.m4: New file.
73883
73884         Module alloca.
73885         * m4/alloca.m4: New file.
73886
73887         Module putenv.
73888         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73889         (jm_FUNC_PUTENV): Invoke it.
73890
73891         Module setenv.
73892         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73893         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73894         when invoked twice.
73895         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73896         gt_FUNC_SETENV.
73897
73898         Module memrchr.
73899         * m4/memrchr.m4: New file.
73900
73901         Module stpcpy.
73902         * m4/stpcpy.m4: New file.
73903
73904         Module strcase.
73905         * m4/strcase.m4: New file.
73906
73907         Module strdup.
73908         * m4/strdup.m4: New file.
73909
73910         Module strnlen.
73911         * m4/strnlen.m4: New file.
73912
73913         Module strndup.
73914         * m4/strndup.m4: New file.
73915
73916         Module xstrtod.
73917         * m4/xstrtod.m4: New file.
73918
73919         Module xstrtol.
73920         * m4/xstrtol.m4: New file.
73921
73922         Module getdate.
73923         * m4/getdate.m4: New file.
73924
73925         Module unlocked-io.
73926         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73927         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73928         * m4/jm-glibc-io.m4n: Remove file.
73929
73930         Module long-options.
73931         * m4/long-options.m4: New file.
73932
73933         Module md5.
73934         * m4/md5.m4: New file.
73935
73936         Module sha.
73937         * m4/sha.m4: New file.
73938
73939         Module getstr.
73940         * m4/getstr.m4: New file.
73941
73942         Module getline.
73943         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73944         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73945         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73946         simply getline. Infoke gl_PREREQ_GETLINE.
73947
73948         Module obstack.
73949         * m4/obstack.m4: New file.
73950
73951         Module hash.
73952         * m4/hash.m4: New file.
73953
73954         Module readtokens.
73955         * m4/readtokens.m4: New file.
73956
73957         Module strverscmp.
73958         * m4/strverscmp.m4: New file.
73959
73960         Module stdbool.
73961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73962         OSF/1.
73963
73964         Module strtoll.
73965         * m4/strtoll.m4: New file.
73966
73967         Module strtoull.
73968         * m4/strtoull.m4: New file.
73969
73970         Module strtoimax.
73971         * m4/strtoimax.m4: New file.
73972
73973         Module strtoumax.
73974         * m4/strtoumax.m4: New file.
73975
73976         Module xstrtoimax.
73977         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73978         jm_AC_PREREQ_XSTRTOIMAX.
73979         Moved the strtol prerequisites to strtol.m4.
73980         Moved the strtoll prerequisites to strtoll.m4.
73981         Moved the strtoimax prerequisites to strtoimax.m4.
73982
73983         Module xstrtoumax.
73984         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73985         jm_AC_PREREQ_XSTRTOUMAX.
73986         Moved the strtoul prerequisites to strtoul.m4.
73987         Moved the strtoull prerequisites to strtoull.m4.
73988         Moved the strtoumax prerequisites to strtoumax.m4.
73989
73990         Module chown.
73991         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73992         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73993
73994         Module dup2.
73995         * m4/dup2.m4: New file.
73996
73997         Module ftruncate.
73998         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73999         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74000
74001         Module getgroups.
74002         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74003         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74004
74005         Module gettimeofday.
74006         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74007         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74008         gl_PREREQ_GETTIMEOFDAY.
74009
74010         Module mkdir.
74011         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74012         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74013
74014         Module mkstemp.
74015         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74016         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74017         jm_AC_TYPE_UINTMAX_T.
74018         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74019
74020         Module stat.
74021         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74022         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74023
74024         Module lstat.
74025         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74026         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74027
74028         Module timespec.
74029         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74030         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74031         * m4/st_mtim.m4: Indentation.
74032
74033         Module nanosleep.
74034         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74035         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74036         gl_PREREQ_NANOSLEEP.
74037
74038         Module regex.
74039         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74040         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74041         (gl_REGEX): New macro.
74042
74043         Module rename.
74044         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74045         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74046
74047         Module rmdir.
74048         * m4/rmdir.m4: New file.
74049
74050         Module utime.
74051         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74052         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74053         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74054
74055         Module dirname.
74056         * m4/dirname.m4: New file.
74057
74058         Module getopt.
74059         * m4/getopt.m4: New file.
74060
74061         Module unistd-safer.
74062         * m4/unistd-safer.m4: New file.
74063
74064         Module fnmatch.
74065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74066         declaration.
74067         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74068         (gl_FUNC_FNMATCH_POSIX): New macro.
74069         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74070         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74071         simply fnmatch.
74072
74073         Module exclude.
74074         * m4/exclude.m4: New file.
74075
74076         Module human.
74077         * m4/human.m4: New file.
74078
74079         Module acl.
74080         * m4/acl.m4: Nop.
74081
74082         Module backupfile.
74083         * m4/backupfile.m4: New file.
74084         * m4/d-ino.m4: Indentation.
74085
74086         Module fsusage.
74087         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74088         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74089         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74090
74091         Module dirfd.
74092         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74093         requirements.
74094
74095         Module euidaccess.
74096         * m4/euidaccess.m4: New file.
74097
74098         Module file-type.
74099         * m4/file-type.m4: New file.
74100
74101         Module fileblocks.
74102         * m4/fileblocks.m4: New file.
74103
74104         Module filemode.
74105         * m4/filemode.m4: New file.
74106
74107         Module isdir.
74108         * m4/isdir.m4: New file.
74109
74110         Module lchown.
74111         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74112         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74113
74114         Module makepath.
74115         * m4/makepath.m4: New file.
74116
74117         Module modechange.
74118         * m4/modechange.m4: New file.
74119
74120         Module mountlist.
74121         * m4/mountlist.m4: New file.
74122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74123         Indentation.
74124
74125         Module path-concat.
74126         * m4/path-concat.m4: New file.
74127
74128         Module pathmax.
74129         * m4/pathmax.m4: New file.
74130
74131         Module same.
74132         * m4/same.m4: New file.
74133
74134         Module save-cwd.
74135         * m4/save-cwd.m4: New file.
74136
74137         Module savedir.
74138         * m4/savedir.m4: New file.
74139
74140         Module xgetcwd.
74141         * m4/xgetcwd.m4: New file.
74142         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74143
74144         Module xreadlink.
74145         * m4/xreadlink.m4: New file.
74146
74147         Module safe-read.
74148         * m4/safe-read.m4: New file.
74149
74150         Module safe-write.
74151         * m4/safe-write.m4: New file.
74152
74153         Module closeout.
74154         * m4/closeout.m4: New file.
74155
74156         Module stdio-safer.
74157         * m4/stdio-safer.m4: New file.
74158
74159         Module getpass.
74160         * m4/getpass.m4: New file.
74161
74162         Module getugroups.
74163         * m4/getugroups.m4: New file.
74164
74165         Module group-member.
74166         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74167         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74168
74169         Module idcache.
74170         * m4/idcache.m4: New file.
74171
74172         Module userspec.
74173         * m4/userspec.m4: New file.
74174
74175         Module gettime.
74176         * m4/clock_time.m4: New file.
74177         * m4/gettime.m4: New file.
74178
74179         Module settime.
74180         * m4/settime.m4: New file.
74181
74182         Module posixtm.
74183         * m4/posixtm.m4: New file.
74184
74185         Module gethostname.
74186         * m4/gethostname.m4: New file.
74187
74188         Module canon-host.
74189         * m4/canon-host.m4: New file.
74190
74191         Module gettext.
74192         * m4/codeset.m4: New file, from gettext-0.11.5.
74193         * m4/gettext.m4: New file, from gettext-0.11.5.
74194         * m4/glibc21.m4: New file, from gettext-0.11.5.
74195         * m4/iconv.m4: New file, from gettext-0.11.5.
74196         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74197         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74198         * m4/inttypes.m4: New file, from gettext-0.11.5.
74199         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74200         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74201         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74202         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74203         * m4/lib-link.m4: New file, from gettext-0.11.5.
74204         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74205         * m4/progtest.m4: New file, from gettext-0.11.5.
74206         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74207         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74208         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74209
74210         Module localcharset.
74211         * m4/localcharset.m4: New file.
74212
74213         Module hard-locale.
74214         * m4/hard-locale.m4: New file.
74215
74216         Module mbswidth.
74217         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74218         onceonly macros.
74219         * m4/mbrtowc.m4: Add comment.
74220
74221         Module memcasecmp.
74222         * m4/memcasecmp.m4: New file.
74223
74224         Module memcoll.
74225         * m4/memcoll.m4: New file.
74226
74227         Module unicodeio.
74228         * m4/unicodeio.m4: New file.
74229
74230         Module rpmatch.
74231         * m4/rpmatch.m4: New file.
74232
74233         Module yesno.
74234         * m4/yesno.m4: New file.
74235
74236         Module exitfail.
74237         * m4/exitfail.m4: New file.
74238
74239         Module c-stack.
74240         * m4/c-stack.m4 (gl_C_STACK): New macro.
74241         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74242
74243         Module error.
74244         * m4/error.m4 (gl_ERROR): New macro.
74245         (jm_PREREQ_ERROR): Use onceonly macros.
74246
74247         Module fatal.
74248         * m4/fatal.m4: New file.
74249
74250         Module getloadavg.
74251         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74252         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74253
74254         Module getpagesize.
74255         * m4/getpagesize.m4: New file.
74256
74257         Module getusershell.
74258         * m4/getusershell.m4: New file.
74259
74260         Module physmem.
74261         * m4/physmem.m4: New file.
74262
74263         Module posixver.
74264         * m4/posixver.m4: New file.
74265
74266         Module quotearg.
74267         * m4/quotearg.m4: New file.
74268
74269         Module quote.
74270         * m4/quote.m4: New file.
74271
74272         Module readutmp.
74273         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74274
74275         Module sig2str.
74276         * m4/sig2str.m4: New file.
74277
74278         Other.
74279         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74280         ulonglong.m4.
74281         * m4/intmax_t.m4: New file.
74282         * m4/d-type.m4: Indentation.
74283         * m4/jm-macros.m4: Update.
74284         * m4/prereq.m4 (jm_PREREQ): Update.
74285         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74286         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74287         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74288         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74289         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74290         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74291         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74292         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74293         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74294         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74295         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74296         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74297         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74298         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74299         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74300         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74301         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74302         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74303         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74304
74305 2002-12-24  Bruno Haible  <bruno@clisp.org>
74306
74307         * MODULES.txt: Update according to m4/ changes.
74308
74309         Module gettext.
74310         * config.rpath: New file, from gettext-0.11.5.
74311
74312         * modules/*: New module descriptions.
74313         * gnulib-tool: New file.
74314         * MODULES.html.sh: New file.
74315
74316 2002-12-21  Karl Berry  <karl@gnu.org>
74317
74318         * doc/fdl.texi: update to version 1.2.
74319
74320 2002-12-19  Karl Berry  <karl@gnu.org>
74321
74322         * config/config.guess: update from prep.
74323
74324 2002-12-18  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74327         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74328
74329 2002-12-17  Bruno Haible  <bruno@clisp.org>
74330
74331         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74332         stdlib.h, string.h.
74333
74334 2002-12-17  Bruno Haible  <bruno@clisp.org>
74335
74336         * lib/canon-host.c (strdup): Remove unused declaration.
74337
74338         * lib/fsusage.c: Include full_read.h.
74339         (get_fs_usage): Use full_read instead of safe_read.
74340
74341         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74342
74343 2002-12-12  Karl Berry  <karl@gnu.org>
74344
74345         * config/config.guess: update from prep.
74346
74347 2002-12-11  Bruno Haible  <bruno@clisp.org>
74348
74349         * m4/setenv.m4: New file, from gettext-0.11.5.
74350
74351 2002-12-11  Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74354         not unsetenv().
74355         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74356         modifications:
74357
74358         2002-12-11  Bruno Haible  <bruno@clisp.org>
74359
74360                 * setenv.c (alloca): Fall back to malloc.
74361                 (freea): New macro.
74362                 (setenv): Use freea() to free memory allocated with alloca().
74363
74364         2002-11-13  Bruno Haible  <bruno@clisp.org>
74365
74366                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74367                 function declarations.
74368                 * unsetenv.c (unsetenv): Likewise.
74369
74370         2002-03-04  Bruno Haible  <bruno@clisp.org>
74371
74372                 Portability to AIX 4.3.3.
74373                 * unsetenv.c: New file, extracted from setenv.c.
74374                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74375
74376         2001-12-20  Bruno Haible  <bruno@clisp.org>
74377
74378                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74379                 use malloc instead. For SunOS 4.
74380
74381         2001-12-11  Bruno Haible  <bruno@clisp.org>
74382
74383                 * setenv.c: Declare alloca.
74384                 (compar_fn_t): New typedef.
74385                 (KNOWN_VALUE, STORE_VALUE): Use it.
74386
74387         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74388         setenv.h.
74389
74390 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74391
74392         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74393         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74394         Choose values that are less likely to collide with system fnmatch
74395         options.
74396         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74397         defined (e.g., a pure POSIX system).
74398         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74399         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74400
74401 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74402
74403         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74404         a pain in practice to deal with generated m4 files.  This change
74405         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74406
74407         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74408         and jm-glibc-io.m4, as they are no longer a special case.
74409         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74410         kludge and the auto-generation stuff.  Check only whether the
74411         functions are declared, not whether they exist, since older hosts
74412         that don't declare the functions can't use the optimization anyway.
74413
74414 2002-12-06  Jim Meyering  <jim@meyering.net>
74415
74416         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74417
74418         Merge in changes from libc's misc/error.c, in preparation
74419         for the merge of gnulib's changes back into libc.
74420
74421         * lib/error.c (_): Define only if not already defined.
74422         Move definition to follow all #include directives.
74423         Include unlocked-io.h only if !_LIBC.
74424         [_LIBC]: Include <libio/libioP.h>.
74425         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74426         (fflush): Tweak definition to use INTUSE.
74427         (putc): Define.
74428
74429 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74430
74431         * lib/alloca.c [defined emacs]: Include "lisp.h".
74432         (xalloc_die) [defined emacs]: New macro.
74433         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74434         [! defined emacs]: Include <xalloc.h>.
74435         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74436         (pointer): Typedef to POINTER_TYPE *.
74437         (malloc): Remove decl; we now always use xmalloc.
74438         (alloca): Use old-style definition, since Emacs needs this.
74439         Check for arithmetic overflow when computing combined size.
74440
74441 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74442
74443         Do not generate unlocked-io.h automatically, since it's easier to
74444         maintain it by hand.
74445
74446         * lib/unlocked-io.h: New file, from GNU diffutils,
74447         but with proper copyright notice and attribution.
74448         * lib/gen-uio: Remove.
74449         * lib/Makefile.am: Add copyright notice.
74450         (libfetish_a_SOURCES): Add unlocked-io.h.
74451         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74452         (DISTCLEANFILES, io_functions): Remove macros.
74453         (EXTRA_DIST): Remove gen_uio.
74454         (unlocked-io.h): Remove rule.
74455
74456 2002-12-04  Jim Meyering  <jim@meyering.net>
74457
74458         Reflect the fact that stat.c and lstat.c are no longer generated.
74459         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74460         (DISTCLEANFILES): Likewise.
74461         (EXTRA_DIST): Likewise.
74462         (all_local): Don't depend on stat.c or lstat.c.
74463         (stat.c, lstat.c): Remove rules.
74464         (EXTRA_DIST): Remove xstat.in.
74465
74466         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74467         * lib/stat.c: New file.  Contents mostly from xstat.in.
74468         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74469         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74470
74471         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74472         too.
74473         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74474
74475 2002-12-03  Jim Meyering  <jim@meyering.net>
74476
74477         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74478         but not semantics, to minimize the differences between these two files.
74479         (safe_read): Change comment to mention SAFE_READ_ERROR.
74480
74481         * lib/safe-read.c (IS_EINTR): Define.
74482         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74483
74484 2002-12-02  Jim Meyering  <jim@meyering.net>
74485
74486         * lib/safe-read.c (EINTR): Define.
74487         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74488         (INT_MAX): Provide fallback.
74489         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74490
74491         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74492
74493 2002-12-02  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74496         Define, taken from safe-read.c.
74497         (INT_MAX): Provide fallback.
74498         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74499         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74500
74501         * lib/safe-read.c (EINTR): Remove definition.
74502         (safe_read): Don't use EINTR if it is absent.
74503
74504 2002-12-01  Jim Meyering  <jim@meyering.net>
74505
74506         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74507         zero.
74508         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74509
74510 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74511
74512         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74513         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74514         with `if (! (value < limit)) abort ();', for readability.
74515
74516 2002-11-26  Karl Berry  <karl@gnu.org>
74517
74518         * lib/strdup.c: copy from libc again, with jim's ok.
74519         * lib/.cppi-disable: re-add strdup.c
74520
74521 2002-11-25  Karl Berry  <karl@gnu.org>
74522
74523         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74524         instead of "strtol.c".
74525
74526 2002-11-25  Karl Berry  <karl@gnu.org>
74527
74528         * config/install-sh: update from automake for variable quoting, $0 in
74529         error msgs, etc.
74530
74531         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74532         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74533         entry.
74534
74535 2002-11-25  Jim Meyering  <jim@meyering.net>
74536
74537         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74538
74539 2002-11-24  Karl Berry  <karl@gnu.org>
74540
74541         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74542         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74543
74544 2002-11-24  Jim Meyering  <jim@meyering.net>
74545
74546         Update from coreutils:
74547
74548         * lib/mktime.c: Merge in changes from libc.
74549
74550         Avoid a link-time failure on some Linux systems.
74551         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74552         (otherwise).
74553         (__mon_yday): Declare with the STATIC attribute.
74554         (__mktime_internal): Likewise.
74555         Based on a report from Greg Schafer.
74556
74557 2002-11-23  Jim Meyering  <jim@meyering.net>
74558
74559         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74560         Use `unsigned', not `int', as type of index.
74561
74562         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74563
74564         * lib/fsusage.c: Remove unneeded parentheses around operands of
74565         `defined'.
74566
74567 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74568
74569         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74570         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74571         so that we can be included first.
74572         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74573         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74574         No need to include stddef.h or sys/types.h any more.
74575         Surround local include files with "", not "<>".
74576         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74577         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74578         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74579         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74580         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74581         (ISPRINT): Remove; no longer needed now that we assume C89.
74582
74583         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74584         Preserve errno.
74585
74586         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74587         quotearg_char): Use SIZE_MAX rather than
74588         (size_t) -1 when we are talking about "infinity".
74589
74590         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74591
74592 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74593
74594         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74595         hint that one should use `if (! x) abort ();' rather than `assert
74596         (x);', and anyway it's one less thing to worry about configuring.
74597         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74598         hash_rehash, hash_insert): Use abort rather than assert.
74599
74600 2002-11-22  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/safe-read.h: Assume C89. Add comments.
74603         (safe_read): Change return type to size_t.
74604         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74605         byte counts > SSIZE_MAX correctly.
74606         * lib/safe-write.h: New file.
74607         * lib/safe-write.c: New file.
74608         * lib/full-read.h: New file.
74609         * lib/full-read.c: New file.
74610         * lib/full-write.h: Assume C89. Add comments.
74611         * lib/full-write.c: Include safe-write.h.
74612         (full_write): Rewritten to use safe_write.
74613         Suggested by Jim Meyering and Paul Eggert.
74614
74615 2002-11-21  Jim Meyering  <jim@meyering.net>
74616
74617         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74618
74619         Merge in changes from the coreutils.
74620
74621         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74622         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74623         <stdint.h>.
74624         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74625         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74626         int.  Work more efficiently if X is the same width as uintmax_t.
74627         Do not compare X to -1, to avoid bogus compiler warning.
74628         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74629         Don't assume that f_frsize and f_bsize are the same type.
74630
74631         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74632         warning on FreeBSD.
74633
74634         * lib/makepath.c (make_path): Restore umask *before* creating the final
74635         component.
74636         (make_path): Minor reformatting.
74637
74638         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74639         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74640         HAVE_MALLOC/HAVE_REALLOC.
74641
74642         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74643         dummy ones.  At least on GNU/Linux systems, `auto' means something
74644         else.
74645         From Michael Stone.
74646
74647 2002-11-21  Bruno Haible  <bruno@clisp.org>
74648
74649         Remove case insensitive option matching.
74650         * lib/argmatch.h (argcasematch): Remove declaration.
74651         (ARGCASEMATCH): Remove macro.
74652         (__xargmatch_internal): Remove case_sensitive argument.
74653         (XARGMATCH): Update.
74654         (XARGCASEMATCH): Remove macro.
74655         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74656         case_sensitive argument.
74657         (argcasematch): Remove function.
74658         (__xargmatch_internal): Remove case_sensitive argument.
74659         (main): Use XARGMATCH instead of XARGCASEMATCH.
74660
74661         * lib/xmalloc.c: Change compile-time error message. Add comment about
74662         required autoconf version.
74663
74664 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74665
74666         Merge argmatch cleanups from Bison.  Assume C89.
74667
74668         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74669         Include stdlib.h, for EXIT_FAILURE.
74670         Always include <string.h>, since we assume C89.
74671         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74672         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74673         Include <stddef.h> instead, since it's all we need for size_t.
74674         (PARAMS): Remove.  All uses removed.
74675         (ARRAY_CARDINALITY): Do not bother to #undef.
74676         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74677         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74678         Remove unnecessary parentheses.
74679         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74680         Insert necessary parentheses.
74681         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74682         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74683
74684 2002-11-19  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74687         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74688
74689         * lib/mbswidth.h (PARAMS): Remove macro.
74690         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74691         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74692
74693         * lib/gcd.h (PARAMS): Remove macro.
74694         (gcd): Use ANSI C function declarations.
74695         * lib/gcd.c (gcd): Likewise.
74696
74697 2002-11-15  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/strcspn.c: Include <stddef.h>.
74700         (strcspn): Use ANSI C function declaration. Change return type to
74701         size_t. Use NULL.
74702         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74703         (strpbrk): Use NULL.
74704         * lib/strpbrk.h (PARAMS): Remove macro.
74705         (strpbrk): Use ANSI C function declaration.
74706         * lib/strstr.c: Don't include <sys/types.h>.
74707         * lib/strstr.h (PARAMS): Remove macro.
74708         (strstr): Use ANSI C function declarations.
74709
74710 2002-11-14  Karl Berry  <karl@gnu.org>
74711
74712         * config/mkinstalldirs: `do' on separate line, instead of
74713         `for var; do'.
74714
74715 2002-11-06  Bruno Haible  <bruno@clisp.org>
74716
74717         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74718         * lib/gcd.c (gcd): Likewise.
74719
74720 2002-11-05  Bruno Haible  <bruno@clisp.org>
74721
74722         * lib/gcd.h: New file, from gettext-0.11.5.
74723         * lib/gcd.c: New file, from gettext-0.11.5.
74724
74725 2002-11-05  Bruno Haible  <bruno@clisp.org>
74726
74727         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74728         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74729         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74730         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74731
74732         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74733         <libintl.h>.
74734         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74735         <libintl.h>.
74736
74737         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74738         * lib/human.c: Include gettext.h instead of <libintl.h>.
74739         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74740         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74741         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74742         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74743         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74744         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74745         (textdomain): Remove definition.
74746         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74747
74748         * lib/long-options.c: Remove include of <libintl.h> and definition of
74749         _.
74750         * lib/same.c: Remove include of <libintl.h> and definition of _.
74751
74752 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74753
74754         * lib/config.charset: A few additions for Solaris.
74755
74756 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74757
74758         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74759         * lib/localcharset.c (locale_charset): Declare as extern "C".
74760
74761 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74762
74763         * lib/config.charset: msdos in uk_UA uses CP1125.
74764
74765 2002-11-04  Bruno Haible  <bruno@clisp.org>
74766
74767         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74768         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74769         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74770         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74771         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74772
74773 2002-11-04  Bruno Haible  <bruno@clisp.org>
74774
74775         * lib/localcharset.c (locale_charset): Don't return an empty string.
74776
74777 2002-11-04  Bruno Haible  <bruno@clisp.org>
74778
74779         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74780         aliases.
74781
74782 2002-11-04  Bruno Haible  <bruno@clisp.org>
74783
74784         * lib/config.charset: Update for newest glibc. Add canonical names
74785         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74786
74787 2002-11-04  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/config.charset: Add support for NetBSD.
74790
74791 2002-11-04  Bruno Haible  <bruno@clisp.org>
74792
74793         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74794
74795 2002-11-01  Bruno Haible  <bruno@clisp.org>
74796
74797         * configure.in: Add AC_CONFIG_AUX_DIR call.
74798         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74799         test/Makefile.
74800         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74801
74802 2002-09-28  Karl Berry  <karl@gnu.org>
74803
74804         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74805         installed automake until the next release, since changes have been
74806         made.
74807
74808 2002-09-25  Karl Berry  <karl@gnu.org>
74809
74810         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74811         * lib/getopt*: copy from libc/posix.
74812         * lib/gettext.h: copy from gettext.
74813         * lib/.cppi-disable: add strdup.c, gettext.h.
74814
74815 2002-09-25  Karl Berry  <karl@gnu.org>
74816
74817         * config/srclist.txt: enable gettext.h check.
74818         * config/config.{guess,sub}: update from prep.
74819         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74820                 from automake 1.6.3.
74821         See srclist*.
74822
74823 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74824
74825         * regex.c (PATFETCH): Remove the translating fetch.
74826         (PATFETCH_RAW): Rename to PATFETCH.
74827         (set_image_of_range): New fun.
74828         (SET_RANGE_TABLE_WORK_AREA): Use it.
74829         (regex_compile): Don't translate the pattern chars so eagerly.
74830         Only do it when inserting an `exactn' bytecode or when handling
74831         a char-range.
74832         (mutually_exclusive_p): Avoid empty statement.
74833
74834 2002-07-06  Jim Meyering  <meyering@lucent.com>
74835
74836         * m4/README: Don't mention Makefile.am.in.
74837         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74838
74839 2002-07-01  Jim Meyering  <meyering@lucent.com>
74840
74841         * lib/c-stack.c: Include sys/time.h.
74842         From Volker Borchert.
74843
74844 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74845
74846         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74847
74848 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74849
74850         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74851         New macro.  Use it uniformly instead of
74852         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74853         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74854         reported by Vin Shelton.
74855
74856 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74857
74858         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74859         Do not assume SA_SIGINFO behavior.
74860         Bug reported by Jim Meyering on NetBSD 1.5.2.
74861
74862 2002-06-22  Jim Meyering  <meyering@lucent.com>
74863
74864         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74866
74867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74868         now that configure.ac uses AC_GNU_SOURCE.
74869         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74870         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74871
74872         Update to latest tools.  Suggestions from Paul Eggert.
74873         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74874         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74875         * m4/fnmatch.m4: Likewise.
74876         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74877         to AC_HEADER_STDBOOL
74878
74879 2002-06-22  Jim Meyering  <meyering@lucent.com>
74880
74881         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74882         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74883
74884 2002-06-22  Jim Meyering  <meyering@lucent.com>
74885
74886         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74887
74888         * lib/exitfail.c, exitfail.h: Likewise.
74889         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74890
74891         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74892         of fnmatch.h.
74893         (EXTRA_DIST): Add fnmatch_loop.c.
74894         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74895
74896         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74897         * lib/fnmatch.c: Update from diffutils-2.8.2.
74898         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74899         * lib/fnmatch.h: Remove file.
74900
74901 2002-06-21  Jim Meyering  <meyering@lucent.com>
74902
74903         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74904         * m4/mbrtowc.m4: Likewise.
74905
74906         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74907         * m4/mbswidth.m4: Reflect name change:
74908         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74910
74911         * m4/lib-link.m4: Update from gettext-0.11.2.
74912         * m4/gettext.m4: Likewise.
74913
74914         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74915         From Alfred M. Szmidt.
74916
74917 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74918
74919         * lib/file-type.h: Report an error if neither S_ISREG nor
74920         S_IFREG is defined, instead of using a test specific to glibc
74921         2.2.  This should be safe, since POSIX requires S_ISREG and
74922         Unix Version 7 had S_IFREG.  We don't need to check for
74923         <sys/types.h> since we don't use any symbols that it defines.
74924
74925 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74926
74927         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74928         $@-t, so that each temporary file name is unique and valid in the first
74929         8 characters, for operation under DOS.
74930
74931 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74932
74933         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74934
74935 2002-06-15  Jim Meyering  <meyering@lucent.com>
74936
74937         Work even with DJGPP 2.03, which lacks support for symlinks.
74938         From Richard Dawe.
74939         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74940         is defined.
74941         * lib/lchown.c (S_ISLNK): Likewise.
74942
74943 2002-06-15  Jim Meyering  <meyering@lucent.com>
74944
74945         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74946         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74947         have been included before this file.
74948
74949 2002-06-14  Jim Meyering  <meyering@lucent.com>
74950
74951         * lib/file-type.h: Use the version from diffutils-2.8.2.
74952         * lib/file-type.c: Likewise.
74953
74954 2002-06-07  Jim Meyering  <meyering@lucent.com>
74955
74956         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74957         They're needed at least for NetBSD 1.5.2.
74958         ($statxfs_includes): Include those same headers.
74959         ($statxfs_includes): Include sys/vfs.h if available.
74960         ($statxfs_includes): Likewise for sys/statvfs.h.
74961         Check for the following members in both structs statfs and statvfs:
74962         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74963
74964 2002-06-01  Jim Meyering  <meyering@lucent.com>
74965
74966         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74967         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74968
74969 2002-05-28  Jim Meyering  <meyering@lucent.com>
74970
74971         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74972         Reported by Volker Borchert.
74973
74974 2002-05-27  Jim Meyering  <meyering@lucent.com>
74975
74976         Fix a problem seen only on nonconforming systems whereby ls.c's
74977         use of localtime, and then of gettimeofday would cause trouble:
74978         the localtime call used to initialize rpl_gettimeofday's save
74979         mechanism would clobber ls's current local time information so
74980         that in any long listing the first file would always be listed
74981         with date 1970-01-01.  Analysis by Volker Borchert.
74982
74983         * lib/gettimeofday.c (localtime): Undefine.
74984         (rpl_localtime): New function.
74985
74986 2002-05-27  Jim Meyering  <meyering@lucent.com>
74987
74988         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74989         localtime.
74990
74991         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74992         use the replacement function; it wouldn't resolve at link time.
74993         Reported by Volker Borchert.
74994
74995 2002-05-22  Jim Meyering  <meyering@lucent.com>
74996
74997         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74998         file-type.h.
74999         * lib/file-type.h: New file.
75000         * lib/file-type.c (file_type): New file/function.  Extracted from
75001         diffutils.
75002
75003 2002-04-30  Jim Meyering  <meyering@lucent.com>
75004
75005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75006
75007 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75008
75009         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75010
75011 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75012
75013         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75014         Do not check for alloca.h (no longer used) or stdbool.h (was never
75015         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75016
75017 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75018
75019         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75020
75021 2002-04-29  Jim Meyering  <meyering@lucent.com>
75022
75023         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75024         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75025         Use AC_FUNC_STRNLEN here instead.
75026
75027         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75028         With autoconf-2.53a, it's part of AC_PROG_CC.
75029
75030 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75031
75032         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75033         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75034
75035 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75036
75037         * lib/sig2str.h, lib/sig2str.c: New files.
75038         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75039
75040 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75041
75042         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75043         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75044         of 127, since 64 is the largest conceivable number for ancient
75045         nonstandard hosts.
75046         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75047
75048 2002-04-28  Jim Meyering  <meyering@lucent.com>
75049
75050         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75051
75052 2002-04-24  Jim Meyering  <meyering@lucent.com>
75053
75054         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75055         (jm_PREREQ): Use it.
75056
75057         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75058         mach/mach.h fcntl.h.
75059         Check for this function: setlocale.
75060
75061 2002-04-24  Jim Meyering  <meyering@lucent.com>
75062
75063         * lib/gettext.h: New file, from Gettext.
75064         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75065         (libfetish_a_SOURCES): Add gettext.h.
75066
75067 2002-04-16  Jim Meyering  <meyering@lucent.com>
75068
75069         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75070         ut_pid, ut_id, ut_exit.
75071
75072 2002-04-16  Jim Meyering  <meyering@lucent.com>
75073
75074         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75075         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75076         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75077
75078 2002-04-12  Jim Meyering  <meyering@lucent.com>
75079
75080         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75081         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75082         existence of the getmntinfo function.  Needed for Darwin 5.3.
75083
75084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75085         This is necessary at least on Darwin 5.3.
75086
75087         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75088         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75089         strnlen.o in the library, and that makes some versions of ranlib
75090         object.
75091
75092 2002-04-12  Jim Meyering  <meyering@lucent.com>
75093
75094         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75095
75096 2002-04-09  Jim Meyering  <meyering@lucent.com>
75097
75098         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75099         to be more precise.  Rather than saying we're checking whether the
75100         function `works', say what we're testing.
75101         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75102         Reported by Bruno Haible.
75103
75104 2002-03-10  Jim Meyering  <meyering@lucent.com>
75105
75106         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75107         Suggestion from Santiago Vila.
75108
75109 2002-03-08  Jim Meyering  <meyering@lucent.com>
75110
75111         * lib/rename.c: Mention that this wrapper is needed also on
75112         mips-dec-ultrix4.4 systems.
75113
75114 2002-03-02  Jim Meyering  <meyering@lucent.com>
75115
75116         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75117         not HAVE_CLOCK_SETTIME.
75118
75119 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75120
75121         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75122         Check for clock_settime.
75123
75124 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75125
75126         * lib/nanosleep.h: Rename to....
75127         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75128
75129         * lib/gettime.c: New file.
75130         * lib/settime.c: New file.
75131         * lib/stime.c: Remove.
75132
75133         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75134         timespec.h.  Remove nanosleep.h.
75135
75136 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75137
75138         * m4/acl.m4: New file.
75139         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75140         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75141
75142 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75143
75144         * lib/acl.c, lib/acl.h: New files.
75145         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75146
75147 2002-02-24  Jim Meyering  <meyering@lucent.com>
75148
75149         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75150         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75151         cause trouble.  Reported by Nelson Beebe.
75152
75153 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75154
75155         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75156         compilers that don't know that xalloc_die never returns.
75157
75158 2002-02-20  Jim Meyering  <meyering@lucent.com>
75159
75160         * lib/getdate.c: Regenerate using bison-1.33.
75161
75162 2002-02-17  Jim Meyering  <meyering@lucent.com>
75163
75164         * config/config.guess (main): Don't use `head -1'; it's no longer
75165         portable. Use `sed 1q' instead.
75166
75167 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75168
75169         * m4/codeset.m4: Upgrade to gettext-0.11.
75170         * m4/gettext.m4: Upgrade to gettext-0.11.
75171         * m4/glibc21.m4: Upgrade to gettext-0.11.
75172         * m4/iconv.m4: Upgrade to gettext-0.11.
75173         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75174         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75175         * m4/lib-ld.m4: New file, from gettext-0.11.
75176         * m4/lib-link.m4: New file, from gettext-0.11.
75177         * m4/lib-prefix.m4: New file, from gettext-0.11.
75178         * m4/progtest.m4: Upgrade to gettext-0.11.
75179
75180 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75181
75182         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75183         (jm_PREREQ): Use it.
75184
75185 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75186
75187         * lib/posixver.c, lib/posixver.h: New files.
75188         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75189
75190 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75191             Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75194         (fwrite_success_callback): New declaration.
75195         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75196         print_unicode_char. Call failure callback instead of error.
75197         (fwrite_success_callback): New function.
75198         (exit_failure_callback): New function.
75199         (fallback_failure_callback): New function.
75200         (print_unicode_char): Call unicode_to_mb.
75201
75202 2002-01-26  Jim Meyering  <meyering@lucent.com>
75203
75204         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75205         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75206
75207 2002-01-26  Jim Meyering  <meyering@lucent.com>
75208
75209         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75210
75211 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75212
75213         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75214
75215 2002-01-22  Jim Meyering  <meyering@lucent.com>
75216
75217         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75218         Otherwise, some versions of automake would omit the rule that makes
75219         Makefile from Makefile.in.
75220
75221 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75222
75223         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75224         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75225         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75226         (memcoll): Set errno to zero if there is no error.
75227
75228         * lib/quotearg.c (quotearg_buffer_restyled):
75229         Fix bug with quoting buffers containing NUL when backslashing escapes.
75230         This bug was exposed by the other changes in this patch.
75231         (quotearg_n_options): New arg ARGSIZE.
75232         All callers changed.
75233         (quoting_options_from_style): New function.
75234         (quotearg_n_style): Use it.
75235         (quotearg_n_style_mem): New function.
75236
75237         * lib/quotearg.h (quotearg_n_style_mem): New function.
75238
75239 2002-01-19  Jim Meyering  <meyering@lucent.com>
75240
75241         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75242         Remove useless quotes: DF_PROG="df".
75243         * m4/strnlen.m4: New file.
75244
75245 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75246
75247         * lib/backupfile.c (ISDIGIT): Comment fix.
75248         * lib/getdate.y (ISDIGIT): Likewise.
75249         * lib/posixtm.c (ISDIGIT, year): Likewise.
75250         * lib/strverscmp.c (ISDIGIT): Likewise.
75251         * lib/userspec.c (ISDIGIT): Likewise.
75252
75253 2002-01-16  Jim Meyering  <meyering@lucent.com>
75254
75255         * lib/getdate.y: Add three semicolons, each just before a closing
75256         brace. Bison (as of version 1.31) no longer papers over that mistake.
75257
75258 2002-01-05  Jim Meyering  <meyering@lucent.com>
75259
75260         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75261
75262 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75263
75264         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75265         not silently exit merely because the output buffer happens to
75266         have nothing pending.
75267
75268 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75269
75270         See the big note in ../ChangeLog.
75271         * lib/human.c (suffixes): Prefer K to k for 1024.
75272         (generate_suffix_backwards): New function.
75273         (human_readable_inexact): Use it.
75274         * lib/xstrtol.c (__xstrtol): If there is no number but there
75275         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75276         Accept 'K' as well as 'k'.
75277
75278 2001-12-15  Jim Meyering  <meyering@lucent.com>
75279
75280         * lib/regex.h (__restrict_arr): Update from libc.
75281
75282         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75283         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75284         (STREQ): Define.
75285
75286 2001-12-14  Jim Meyering  <meyering@lucent.com>
75287
75288         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75289         Suggestion from Bruno Haible.
75290
75291 2001-12-10  Jim Meyering  <meyering@lucent.com>
75292
75293         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75294         xrealloc, Instead, include "xalloc.h".
75295         (initbuffer): Don't cast xmalloc return value to char*.
75296         (readline): Reword comment.
75297         Don't cast xrealloc return value to char*
75298         Return NULL, not 0.
75299
75300 2001-12-09  Jim Meyering  <meyering@lucent.com>
75301
75302         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75303         about `signed and unsigned type in conditional expression'.
75304         * lib/posixtm.c (posix_time_parse): Likewise.
75305
75306         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75307
75308         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75309         to avoid a pedantic warning.
75310
75311         * lib/getstr.c: Don't include assert.h.
75312         (getstr): Remove warning-evoking assertions.
75313         Return -1 if offset parameter is out of bounds.
75314         Change the type of a local from int to size_t.
75315
75316         * lib/strftime.c (my_strftime_localtime_r): Include this function
75317         definition in the `#if ! HAVE_TM_GMTOFF' block.
75318
75319         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75320         Include xalloc.h instead.
75321
75322 2001-12-02  Jim Meyering  <meyering@lucent.com>
75323
75324         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75325         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75326         included.
75327
75328         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75329         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75330
75331 2001-11-30  Akim Demaille  <akim@epita.fr>
75332
75333         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75334         before being defined.
75335
75336 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75337
75338         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75339         First arg is int, not unsigned.
75340         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75341         (SIZE_MAX, UINT_MAX): New macros.
75342         (quotearg_n_options): Abort if N is negative.
75343         Avoid overflow check on hosts where size_t is 64 bits and int
75344         is 32 bits, as overflow is impossible there.
75345         Fix off-by-one typo that caused unnecessary reallocation.
75346
75347 2001-11-27  Jim Meyering  <meyering@lucent.com>
75348
75349         * lib/tempname.c: Merge with version from libc.
75350         * lib/regex.c: Likewise.
75351
75352         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75353         systems for which STDC_HEADERS is 0, it was not included, resulting in
75354         a warning about an integer-to-pointer conversion problem with getenv.
75355         Reported by Volker Borchert.
75356
75357 2001-11-26  Jim Meyering  <meyering@lucent.com>
75358
75359         * lib/gtod.h: Remove file.
75360         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75361         * lib/gettimeofday.c: Don't include gtod.h.
75362         (GTOD_init): Remove function.
75363         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75364         Suggestion from Volker Borchert.
75365
75366 2001-11-23  Jim Meyering  <meyering@lucent.com>
75367
75368         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75369         it.
75370         * lib/hash.c (struct hash_table): Define it here instead.
75371
75372 2001-11-22  Jim Meyering  <meyering@lucent.com>
75373
75374         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75375
75376 2001-11-20  Jim Meyering  <meyering@lucent.com>
75377
75378         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75379         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75380
75381 2001-11-19  Jim Meyering  <meyering@lucent.com>
75382
75383         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75384         directory.  Use "conftestXXXXXX" as the template.
75385         Suggestion from Paul Eggert.
75386
75387         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75388         immediately, so the test doesn't mistakenly hit the max-open-files
75389         limit.
75390
75391 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75392
75393         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75394         (TEMPORARIES): New macro.
75395         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75396         removes an artificial limitation (e.g. HP-UX 10.20, where
75397         TMP_MAX is 17576).
75398
75399 2001-11-18  Jim Meyering  <meyering@lucent.com>
75400
75401         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75402
75403 2001-11-18  Jim Meyering  <meyering@lucent.com>
75404
75405         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75406         on SunOS 4.
75407
75408         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75409         files will be created before anything else.
75410
75411 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75412
75413         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75414         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75415
75416 2001-11-17  Jim Meyering  <meyering@lucent.com>
75417
75418         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75419         Prompted by a report from Bob Proulx.
75420
75421         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75422         Instead, require UTILS_FUNC_MKSTEMP.
75423
75424 2001-11-17  Jim Meyering  <meyering@lucent.com>
75425
75426         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75427         Now, that's done as part of AC_FUNC_STRTOD.
75428
75429 2001-11-17  Jim Meyering  <meyering@lucent.com>
75430
75431         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75432         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75433         rather than group writable.  Patch by Juan F. Codagnone.
75434
75435         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75436         xrealloc, Instead, include "xalloc.h".
75437
75438         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75439         Remove explicit declarations of xmalloc, xrealloc,
75440         and xstrdup.  Instead, include "xalloc.h".
75441
75442         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75443         unlocked-io.h.
75444         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75445         Likewise.
75446         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75447
75448         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75449         Reported by Padraig Brady.
75450
75451         * lib/mkstemp.c: #undef mkstemp.
75452         Include config.h.
75453         (rpl_mkstemp): Rename from mkstemp.
75454         Protoize.
75455
75456 2001-11-16  Jim Meyering  <meyering@lucent.com>
75457
75458         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75459         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75460         determine the amount of total physical memory, use pstat_getstatic.
75461         HPUX-11 doesn't define _SC_PHYS_PAGES.
75462         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75463         If sysconf couldn't be used to determine the amount of available
75464         physical memory, use both pstat_getstatic and pstat_getdynamic.
75465         Based on a patch from Bob Proulx.
75466
75467 2001-11-10  Jim Meyering  <meyering@lucent.com>
75468
75469         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75470         (jm_PREREQ): Use it.
75471
75472 2001-11-09  Jim Meyering  <meyering@lucent.com>
75473
75474         * m4/jm-macros.m4: Require autoconf-2.52f.
75475         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75476         Use these AC_-prefixed names, not the AM_-prefixed ones.
75477
75478         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75479
75480 2001-11-05  Jim Meyering  <meyering@lucent.com>
75481
75482         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75483
75484 2001-11-04  Jim Meyering  <meyering@lucent.com>
75485
75486         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75487         $DEFS.
75488
75489 2001-11-03  Jim Meyering  <meyering@lucent.com>
75490
75491         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75492         of AC_DEFUN.
75493
75494         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75495         know the name of the variable in the macro definition.
75496
75497 2001-11-03  Jim Meyering  <meyering@lucent.com>
75498
75499         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75500         in argmatch_to_argument call.
75501
75502         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75503         argument.
75504
75505         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75506         e.g., a fault due to an attempt to free a NULL pointer.
75507
75508 2001-11-01  Jim Meyering  <meyering@lucent.com>
75509
75510         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75511         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75512
75513 2001-11-01  Jim Meyering  <meyering@lucent.com>
75514
75515         * lib/dirfd.c, lib/dirfd.h: New files.
75516         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75517
75518         * lib/hash.c (hash_print) [TESTING]: Clean up.
75519
75520 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75521
75522         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75523         to avoid a warning if -Wall.
75524
75525 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75526
75527         * README: New file
75528         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75529         (per RMS's instructions, this is now the canonical source)
75530         * lgpl/, gpl/: New directories.
75531
75532 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75533
75534         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75535
75536 2001-10-21  Jim Meyering  <meyering@lucent.com>
75537
75538         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75539         this code would end up calling gettext even in packages built
75540         with --disable-nls.
75541         * lib/getopt.c (_): Likewise.
75542         * lib/regex.c (_): Likewise.
75543
75544 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75545
75546         * m4/error.m4 (jm_PREREQ_ERROR):
75547         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75548         AC_FUNC_STRERROR_R does that.
75549         Check for strerror declaration.
75550
75551         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75552         are supposed to have them these days.
75553         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75554         Merge changes from latest Autoconf CVS.
75555         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75556         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75557         POSIX decided to standardize on the int flavor of strerror_r.
75558
75559 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75560
75561         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75562         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75563         Use strerror_r that is only a macro, even if it is not a function.
75564         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75565         (private_strerror): Use prototypes, not old-style function definition.
75566         (print_errno_message): New function.
75567         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75568         char*-flavored one.
75569         (error_tail, error, error_at_line): Use it.
75570
75571 2001-10-11  Jim Meyering  <meyering@lucent.com>
75572
75573         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75574         and quote_n (1, ... to avoid clobbering a buffer.
75575
75576 2001-10-05  Jim Meyering  <meyering@lucent.com>
75577
75578         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75579         hash-pjw.h.
75580         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75581         * lib/hash-pjw.h: New file.
75582
75583 2001-09-30  Jim Meyering  <meyering@lucent.com>
75584
75585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75586         `struct fsstat' has the `f_fstypename' member.
75587         Use that to define FS_TYPE, which is now used to make
75588         the getfsstat link test tighter.
75589
75590 2001-09-30  Jim Meyering  <meyering@lucent.com>
75591
75592         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75593         Include <sys/ucred.h>, for Apple Darwin.
75594         Include sys/mount.h and sys/fs_types.h only if available.
75595         (FS_TYPE): Define.
75596         (read_filesystem_list): Use FS_TYPE.
75597
75598 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75599
75600         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75601         a boolean context.
75602
75603 2001-09-29  Jim Meyering  <meyering@lucent.com>
75604
75605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75606         [one-argument getmntent function]): Include stdio.h before mntent.h.
75607         SunOS 4.1.x needs it for the declaration of `FILE'.
75608         Patch by Volker Borchert.
75609
75610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75611         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75612         sys/fs_types.h, and make the link-test for getfsstat guard #include
75613         directives with appropriate #if HAVE_*_H tests so that we can
75614         detect getfsstat on Apple Darwin1.3.7 systems.
75615         Reported by Nelson Beebe.
75616         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75617
75618 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75619
75620         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75621         #defines strtoimax.  Also treat the other strto* functions
75622         like strtoimax.
75623
75624         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75625         Check for strtoul and strtoumax,
75626         as those declarations are made even in the signed case.
75627         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75628         Likewise, for strtol and strtoimax.
75629
75630 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75631
75632         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75633         #defines strtoimax.  Also treat the other strto* functions
75634         like strtoimax.
75635
75636         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75637         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75638         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75639
75640 2001-09-26  Jim Meyering  <meyering@lucent.com>
75641
75642         Most macros in unlocked-io.h had the wrong number of arguments.
75643         * lib/gen-uio: New script.
75644         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75645         * lib/unlocked-io.hin: Remove file.
75646         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75647         rather than trying to embed it here.
75648         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75649         Reported by Padraig Brady.
75650
75651 2001-09-25  Volker Borchert  <bt@teknon.de>
75652
75653         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75654         `result'.
75655
75656 2001-09-24  Jim Meyering  <meyering@lucent.com>
75657
75658         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75659
75660 2001-09-23  Jim Meyering  <meyering@lucent.com>
75661
75662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75663         instead of the mere test for existence of mntent.h.  The latter
75664         would get a false-positive on AIX 3.4 systems.
75665         In the outer getmntent if-block, don't die if neither of the getmntent
75666         tests succeeds.  Instead, just fall through and continue with the
75667         remaining tests.
75668
75669 2001-09-23  Jim Meyering  <meyering@lucent.com>
75670
75671         * lib/mountlist.c: Remove useless parentheses in #if directives.
75672         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75673         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75674
75675 2001-09-22  Jim Meyering  <meyering@lucent.com>
75676
75677         * m4/gettext.m4: New file.  From gettext.
75678         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75679         * m4/progtest.m4: Likewise
75680         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75681         * m4/glibc21.m4: Likewise.
75682
75683         * m4/libintl.m4: Remove.  No longer used.
75684
75685 2001-09-22  Jim Meyering  <meyering@lucent.com>
75686
75687         * lib/localcharset.c: Update from latest gettext.
75688         * lib/config.charset: Likewise.
75689
75690 2001-09-20  Jim Meyering  <meyering@lucent.com>
75691
75692         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75693         strtoimax.
75694         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75695         strtoumax.
75696
75697 2001-09-20  Jim Meyering  <meyering@lucent.com>
75698
75699         * lib/xstrtol.c (strtoimax): Guard declaration with
75700         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75701         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75702         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75703         (strtoumax): Likewise, for completeness (it wasn't necessary).
75704
75705 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75706
75707         * lib/strtoimax.c (HAVE_LONG_LONG):
75708         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75709         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75710         to work around bug in IBM C compiler.
75711
75712 2001-09-17  Jim Meyering  <meyering@lucent.com>
75713
75714         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75715         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75716         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75717         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75718         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75719         whenever the right hand side need not be expanded by the shell.
75720
75721 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75722
75723         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75724         library.  It's not correct, as some older glibcs are buggy.
75725         fnmatch wasn't fixed until glibc 2.2.
75726
75727         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75728         special shell magic here.
75729
75730 2001-09-16  Jim Meyering  <meyering@lucent.com>
75731
75732         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75733         * m4/jm-macros.m4: Require it.
75734
75735 2001-09-16  Jim Meyering  <meyering@lucent.com>
75736
75737         * lib/mkdir.c: New file.
75738
75739 2001-09-15  Jim Meyering  <meyering@lucent.com>
75740
75741         * m4/jm-macros.m4: Check for help2man.
75742
75743 2001-09-11  Jim Meyering  <meyering@lucent.com>
75744
75745         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75746         The body, by Paul Eggert, was moved here from configure.in.
75747         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75748
75749 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75750
75751         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75752         (jm_PREREQ): Use it.
75753
75754 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75755
75756         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75757         Use ssize_t, not int, to store result of readlink.
75758         Check for ssize_t overflow as well as size_t overflow,
75759         as POSIX says the result of readlink is implementation-defined
75760         when ssize_t overflows.
75761         Remove unnecessary cast to char*.
75762         Use free+malloc instead of realloc, as the storage doesn't need
75763         to be preserved and it's clearer and can be more efficient that way.
75764         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75765         * lib/xreadlink.h (xreadlink): Update prototype.
75766
75767 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75768
75769         * lib/xgetcwd.c: Revert some of the previous change; intead,
75770         fix the HAVE_GETCWD_NULL code to behave more like the
75771         !HAVE_GETCWD_NULL code used to.
75772
75773         Include "xalloc.h".
75774         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75775         invoke xalloc_die.
75776
75777 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75778
75779         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75780         sys/param.h, as pathmax.h includes them.
75781
75782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75783
75784         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75785         (jm_PREREQ_XGETCWD): New macro.
75786
75787         * m4/getcwd.m4: New file.
75788
75789 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75790
75791         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75792         like the HAVE_GETCWD_NULL code.
75793         Include pathmax.h if not HAVE_GETCWD.
75794         Do not include xalloc.h.
75795         (INITIAL_BUFFER_SIZE): New symbol.
75796         Do not use xmalloc / xrealloc, since the caller is responsible for
75797         handling errors.  Preserve errno around `free' during failure.
75798         Do not overrun buffer when using getwd.
75799
75800 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75801
75802         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75803         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75804         getcwd (NULL, 0).
75805
75806 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75807
75808         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75809         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75810         spotted by Jim Meyering.
75811
75812 2001-09-03  Jim Meyering  <meyering@lucent.com>
75813
75814         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75815         failure.
75816
75817 2001-09-02  Jim Meyering  <meyering@lucent.com>
75818
75819         * lib/error.c: Update from GNU libc.
75820
75821 2001-09-01  Jim Meyering  <meyering@lucent.com>
75822
75823         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75824         Used by df.
75825
75826 2001-09-01  Jim Meyering  <meyering@lucent.com>
75827
75828         * lib/xreadlink.c: New file.
75829         * lib/xreadlink.h: New file.
75830         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75831         xreadlink.h.
75832
75833         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75834         doesn't conflict with sparc Solaris 7's definition in
75835         /usr/include/sys/int_types.h.
75836
75837         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75838         files.
75839         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75840         and strncasecmp as r-values.  Unixware didn't have declarations.
75841
75842 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75843
75844         * lib/xstrtol.h: Add copyright notice.
75845         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75846         LONGINT_INVALID_SUFFIX_CHAR.
75847
75848 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75849
75850         * lib/xstrtol.c (strtoimax): New decl.
75851
75852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75853
75854         * lib/xgetcwd.c: Don't include pathmax.h.
75855         Include stdlib.h and unistd.h if available.
75856         Include xalloc.h.
75857         (xmalloc, xstrdup, free): Remove decls.
75858         (xgetcwd): Don't assume sizes fit in unsigned.
75859         Check for overflow when computing sizes.
75860         Simplify reallocation code.
75861
75862 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75863
75864         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75865         a directory's st_size can have an arbitrary value, so the old
75866         usage could waste an arbitrary amount of memory.  All uses
75867         changed.
75868         * lib/savedir.h: Update prototype.
75869
75870 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75871
75872         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75873
75874         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75875         old strtoimax.c.
75876
75877         Also, make the following further changes to make this file's
75878         configuration more similar to that of strtol.c:
75879         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75880         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75881         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75882         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75883         changed to signed values.
75884
75885         And make the following changes as well:
75886         Fix copyright notice, as 1999 was missing.
75887         (verify): New macro.
75888         (strtoimax): Check sizes at compile-time, not run-time.
75889         Prefer strtol to strtoll if both work.
75890         (main): Remove; it was not that useful and was a pain to maintain.
75891
75892         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75893
75894 2001-08-31  Jim Meyering  <meyering@lucent.com>
75895
75896         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75897         Use an initial, malloc'd, buffer of length 128 rather than
75898         a statically allocated one of length 1024.
75899
75900 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75901
75902         Simplify code, partly by assuming autoconf 2.52 semantics.
75903
75904         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75905
75906         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75907         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75908         All uses removed.
75909         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75910         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75911         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75912         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75913         jm_AC_HEADER_INTTYPES_H.
75914         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75915
75916         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75917
75918         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75919         Quote first arg of AC_DEFUN.
75920         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75921         since they are needed to parse the include file even if we need
75922         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75924         but with opposite signedness.
75925
75926 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75927
75928         Merge 'exclude' changes from tar 1.13.22.
75929         This fixes one or two unlikely storage allocation overflow bugs,
75930         but doesn't change user-visible behavior otherwise.
75931
75932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75933
75934         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75935         (jm_PREREQ_EXCLUDE): New macro.
75936
75937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75938
75939         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75940         tm to be declared.
75941
75942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75943
75944         * lib/hash.c: Remove '2001' from copyright notice.
75945
75946 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75947
75948         * lib/full-write.h: New file.
75949         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75950         * lib/full-write.c: Correct credits, as cccp.c no longer
75951         exists and anyway it was so heavily changed from the old cccp
75952         code as to be unrecognizable.  Include full-write.h.
75953         (full_write) Return size_t, with short writes meaning failure.
75954         All callers changed.  This fixes a bug with large buffers
75955         on 64-bit hosts.
75956         * lib/utime.c: Include full-write.h.
75957
75958 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75959
75960         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75961         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75962         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75963         Include if available.
75964         (<xalloc.h>): Include
75965         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75966         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75967         collide with FNM macros.
75968         (struct patopts): New struct.
75969         (struct exclude): Use it, as exclude patterns now come with options.
75970         (new_exclude): Support above changes.
75971         (new_exclude, add_exclude_file):
75972         Initial size must now be a power of two to simplify overflow checking.
75973         (free_exclude, fnmatch_no_wildcards): New function.
75974         (excluded_filename): No longer requires options arg, as the options
75975         are determined by add_exclude.  Now returns bool, not int.
75976         (excluded_filename, add_exclude):
75977         Add support for the fancy new exclusion options.
75978         (add_exclude, add_exclude_file): Now takes int options arg.
75979         Check for arithmetic overflow when computing sizes.
75980         (add_exclude_file): xrealloc might modify errno, so don't
75981         realloc until after errno might be used.
75982
75983         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75984         New macros.
75985         (free_exclude): New decl.
75986         (add_exclude, add_exclude_file): Now takes int options arg.
75987         (excluded_filename): No longer requires options arg, as the options
75988         are determined by add_exclude.  Now returns bool, not int.
75989
75990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75991
75992         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75993
75994 2001-08-27  Jim Meyering  <meyering@lucent.com>
75995
75996         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75997
75998         * lib/version-etc.c (N_): Remove definition.
75999         Revert most of last change.
76000         Instead, simply don't mark the `Copyright...' string for translation.
76001         Based on advice from Paul Eggert.
76002
76003         * lib/strtoxmax.c: Tweak comment.
76004
76005 2001-08-26  Jim Meyering  <meyering@lucent.com>
76006
76007         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76008
76009         * m4/xstrtoimax.m4: New file.
76010         * m4/xstrtoumax.m4: Add comments explaining why we
76011         AC_REPLACE_FUNCS(strtol).
76012
76013 2001-08-26  Jim Meyering  <meyering@lucent.com>
76014
76015         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76016         of copyright with `%s' so translators don't get an untranslated
76017         message in 2002.
76018         (COPYRIGHT_YEAR): Define.
76019         (version_etc): Use fprintf rather than fputs.
76020         Suggestion from Ulrich Drepper.
76021
76022         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76023
76024         * lib/strtoll.c: New file, from GNU libc.
76025         * lib/xstrtoimax.c: New file.
76026
76027         * lib/xstrtol.h: Add xstrtoimax.
76028         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76029         * lib/strtoimax.c: New file.  Likewise, but first define
76030         STRTOUXMAX_SIGNED.
76031
76032         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76033         ...
76034         * lib/strtoxmax.c: ... then renamed to this.
76035
76036 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76037
76038         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76039         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76040         (jm_AC_TYPE_INTMAX_T): New macro.
76041         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76042
76043         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76044
76045         * m4/longlong.m4: Renamed from ulonglong.m4.
76046         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76047         * m4/uintmax_t.m4: Removed.
76048
76049 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76050
76051         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76052         Port to Solaris 8, where 'sed' requires a space after the 'r'
76053         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76054         Redirect output to $tmp just once.
76055
76056 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76057
76058         * lib/addext.c (<errno.h>): Include.
76059         (errno): Declare if not defined.
76060         (addext): Work correctly when pathconf returns -1 and leaves
76061         errno alone because there is no limit.  Also, work even if
76062         pathconf returns a value greater than SIZE_MAX.
76063
76064 2001-08-12  Jim Meyering  <meyering@lucent.com>
76065
76066         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76067         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76068         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76069         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76070         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76071         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76072         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76073         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76074         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76075         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76076         utime.m4, utimes.m4, xstrtoumax.m4:
76077         Quote the first argument in each use of AC_DEFUN.
76078
76079 2001-08-12  Jim Meyering  <meyering@lucent.com>
76080
76081         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76082         Simply `return getcwd (NULL, 0);'.
76083         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76084         Use 1300 as initial value for length, not PATH_MAX.
76085
76086         * lib/pathmax.h: Clean up cpp syntax.
76087
76088 2001-08-12  Jim Meyering  <meyering@lucent.com>
76089
76090         * lib/gettimeofday.c: New file.
76091         * lib/gtod.h: New file.
76092         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76093
76094 2001-08-05  Jim Meyering  <meyering@lucent.com>
76095
76096         * m4/jm-macros.m4: Require autoconf-2.52.
76097
76098 2001-08-04  Jim Meyering  <meyering@lucent.com>
76099
76100         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76101         stmt, to get in sync with glibc.
76102
76103 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76104
76105         The following changes are from gettext 0.10.39 as maintained by
76106         Bruno Haible.
76107
76108         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76109         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76110         with inverted sense.  All uses changed.
76111
76112         * lib/mbswidth.c: Don't include <limits.h>.
76113         Include <stdlib.h> and <string.h> unconditionally.
76114         (iswcntrl, mbsinit, ISCNTRL): New macros.
76115         (mbsnwidth): Use K&R style function declarations.
76116         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76117         can optimize it when MB_CUR_MAX == 1.
76118         The width of control characters is zero, not 1.
76119
76120 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76121
76122         The following changes are from gettext 0.10.39 as maintained by
76123         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76124
76125         * m4/codeset.m4: Upgrade to serial AM1.
76126         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76127         all uses changed.  Quote first arg of AC_DEFUN.
76128         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76129
76130         * m4/iconv.m4: Upgrade to serial AM2.
76131         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76132         Add --with-libconv-prefix.
76133         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76134         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76135         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76136         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76137         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76138
76139         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76140         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76141         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76142         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76143         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76144         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76145         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76146         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76147         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76148
76149         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76150         string.h any more.
76151
76152         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76153         not the default value.
76154
76155         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76156         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76157         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76158         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76159         Also check for iswcntrl, used for wcwidth fallback.
76160         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76161         to Autoconf 2.13.
76162
76163 2001-08-03  Jim Meyering  <meyering@lucent.com>
76164
76165         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76166         as it was in the original.  Reported by Paul Eggert.
76167
76168 2001-07-16  Jim Meyering  <meyering@lucent.com>
76169
76170         * m4/gettimeofday.m4: New file.
76171         Prompted by a report from Bernhard Baehr.
76172
76173 2001-07-15  Jim Meyering  <meyering@lucent.com>
76174
76175         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76176         stuff. Now it's in ../Makefile.cfg.
76177
76178 2001-07-15  Jim Meyering  <meyering@lucent.com>
76179
76180         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76181         (BUILT_SOURCES): Add unlocked-io.h.
76182         (io_functions): Define.
76183         (unlocked-io.h): New rule.
76184         (DISTCLEANFILES): Add unlocked-io.h.
76185         (all-local): Depend on unlocked-io.h, to ensure it is created.
76186
76187         * lib/unlocked-io.hin: New file
76188
76189         * lib/regex.c: Update from glibc.
76190
76191 2001-07-05  Jim Meyering  <meyering@lucent.com>
76192
76193         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76194         recommendation.
76195         (libfetish_a_SOURCES): Put all .h files here instead.
76196         Remove a thus-exposed (better checks in automake) duplicate and
76197         two unnecessary .h files.
76198
76199 2001-07-04  Jim Meyering  <meyering@lucent.com>
76200
76201         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76202         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76203         distcheck failure.
76204
76205 2001-07-02  Jim Meyering  <meyering@lucent.com>
76206
76207         The following changes were prompted by suggestions from Bruno Haible.
76208
76209         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76210         is now generated.
76211         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76212         definition of EXTRA_DIST.
76213         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76214         ensure that the generated file is created/updated whenever the list
76215         of $(unlocked_functions) is changed.
76216         (jm-glibc-io.m4): New rule.
76217         (unlocked-io.h): New rule -- currently unused.
76218
76219 2001-06-24  Jim Meyering  <meyering@lucent.com>
76220
76221         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76222         unmatched right bracket, rather than kludging it with an extra,
76223         falsely-matching quote in a comment.  Patch by Akim Demaille.
76224
76225 2001-06-11  Jim Meyering  <meyering@lucent.com>
76226
76227         * lib/regex.c: Update from GNU libc.
76228
76229 2001-05-27  Jim Meyering  <meyering@lucent.com>
76230
76231         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76232         Check for ut_type in struct utmp.
76233
76234 2001-05-27  Jim Meyering  <meyering@lucent.com>
76235
76236         * lib/readutmp.h (UT_TYPE): Define.
76237
76238 2001-05-24  Jim Meyering  <meyering@lucent.com>
76239
76240         * lib/argmatch.c: Include "quote.h".
76241         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76242         quote function.  Reported by Göran Uddeborg.
76243
76244 2001-05-22  Jim Meyering  <meyering@lucent.com>
76245
76246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76247         now that we use the package-supplied version unconditionally.
76248         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76249
76250 2001-05-21  Jim Meyering  <meyering@lucent.com>
76251
76252         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76253         shell syntax errors.
76254
76255 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76256
76257         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76258
76259 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76260
76261         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76262         Don't bother to check library strftime, since
76263         we'll be using our own my_strftime function anyway.
76264         Define my_strftime instead of strftime.
76265
76266 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76267
76268         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76269         which is not yet declared.
76270
76271 2001-05-15  Jim Meyering  <meyering@lucent.com>
76272
76273         * m4/regex.m4: Use proper quoting so brackets appear in the test
76274         program.
76275         Reported by, and with help from, Bruno Haible.
76276
76277 2001-05-13  Jim Meyering  <meyering@lucent.com>
76278
76279         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76280         undefined.
76281
76282 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76283
76284         dirname code cleanup.  base_name now behaves more compatibly
76285         with POSIX basename when given file names that have trailing
76286         slashes, and similarly for dir_name.  Add new primitives
76287         base_len and dir_len.  Put the directory-name-related decls
76288         into dirname.h.
76289
76290         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76291         * lib/backupfile.c (base_name): Likewise.
76292         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76293         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76294         * lib/makepath.c (strip_trailing_slashes): Likewise.
76295         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76296         ISSLASH): Likewise.
76297         * lib/rename.c (strip_trailing_slashes): Likewise.
76298         * lib/same.c (base_name): Likewise.
76299         * lib/stripslash.c (ISSLASH): Likewise.
76300
76301         * lib/addext.c: Include <dirname.h> after size_t is defined.
76302         * lib/backupfile.c: Likewise.
76303
76304         * lib/addext.c (addext): Use base_len to trim redundant
76305         trailing slashes instead of doing it ourselves.
76306         But do not trim the last slash if it is not redundant.
76307
76308         * lib/backupfile.c (find_backup_file_name,
76309         max_backup_version): Use base_len instead of rolling it ourselves.
76310         Handle the case of "" and (on DOS) "C:" correctly.
76311
76312         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76313         needed. Include <string.h>, <dirname.h>.
76314         (base_name): Allow file names ending in slashes, other than names
76315         that are all slashes.  In this case, return the basename followed
76316         by the slashes.  This is more general, and can be used in places
76317         where the original base_name purposely had an assertion failure.
76318         (base_len): New function.
76319
76320         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76321         Do not include <assert.h>; no longer needed.
76322         Include xalloc.h.
76323         (memrchr): Remove decl.
76324         (dir_name_r): Remove.
76325         (dir_len): Renamed from dirlen.  All callers changed.
76326         Rewrite in terms of base_name, for simplicity and consistency.
76327         (dir_name): Never return NULL.  All callers changed.
76328         Do not include <stdlib.h> in test program; no longer needed.
76329         return 0; is fine for test program.
76330
76331         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76332         New macros.
76333         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76334
76335         * lib/path-concat.c (path_concat): Use base_len to compute
76336         base length, not strlen; this means we cannot rely on memcpy
76337         to null-terminate.
76338
76339         * lib/same.c (STREQ): Remove.
76340         (same_name): Handle the case where the basename ends in trailing '/'.
76341
76342         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76343         a slash was stripped.  Do not strip the last slash after a
76344         file system prefix.
76345
76346 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76347
76348         * lib/Makefile.am (libfetish_a_SOURCES):
76349         Add strftime.c, since we now compile it on all hosts.
76350
76351         * lib/strftime.c (my_strftime):
76352         Define to nstrftime if emacs, but only if my_strftime is not defined.
76353         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76354         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76355         Add one more extra argument: a nanoseconds value.
76356         All uses changed.
76357         (ns): New macro.
76358         (my_strftime function): Add %N format.
76359         (emacs_strftimeu): Renamed from emacs_strftime,
76360         with extra ut argument.
76361
76362 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76363
76364         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76365
76366 2001-04-21  Jim Meyering  <meyering@lucent.com>
76367
76368         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76369         doesn't interfere.
76370
76371 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76372
76373         * m4/ftruncate.m4: Check for chsize.
76374         Link with ftruncate.o unconditionally if ftruncate is missing.
76375         This was required when cross-compiling to i586-mingw32msvc.
76376
76377 2001-04-08  Jim Meyering  <meyering@lucent.com>
76378
76379         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76380         recomputed; that's necessary when the offset spans a DST transition.
76381         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76382
76383 2001-04-02  Jim Meyering  <meyering@lucent.com>
76384
76385         * lib/regex.h, regex.c: Update from GNU libc.
76386
76387 2001-03-24  Jim Meyering  <meyering@lucent.com>
76388
76389         * m4/jm-macros.m4: Require autoconf-2.49d.
76390
76391 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76392
76393         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76394
76395 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76396
76397         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76398
76399 2001-03-17  Jim Meyering  <meyering@lucent.com>
76400
76401         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76402         now that the version in autoconf is equivalent.
76403         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76404
76405         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76406         Suggestion from Akim Demaille.
76407
76408         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76409         (jm_PREREQ_TEMPNAME): New function.
76410
76411 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76412
76413         * lib/tempname.c (uint64_t): Define to uintmax_t if
76414         not defined, and if UINT64_MAX is not defined.
76415         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76416         Reported by John David Anglin.
76417
76418 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76419
76420         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76421         resolve alias if codeset is empty.
76422         * lib/config.charset (BeOS): Use wildcard syntax.
76423
76424 2001-03-13  Jim Meyering  <meyering@lucent.com>
76425
76426         * lib/path-concat.c (path_concat)
76427         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76428         concatenating e.g., `C:' and `foo'.
76429         From Bruno Haible.
76430
76431 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76432
76433         * lib/localcharset.c (locale_charset): Don't use
76434         setlocale(LC_CTYPE,NULL). Don't return NULL.
76435         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76436
76437 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76438
76439         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76440         support for DOS/DJGPP.
76441
76442 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76443
76444         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76445         lacks mkstemp.  Compile our own tempname.c if we compile our own
76446         mkstemp.c, as mkstemp relies on tempname.
76447
76448 2001-03-01  Jim Meyering  <meyering@lucent.com>
76449
76450         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76451         AH_VERBATIM really does output its argument verbatim.
76452
76453 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76454
76455         * lib/Makefile.am (libfetish_a_SOURCES):
76456         Add dup-safer.c, fopen-safer.c.
76457         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76458
76459         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76460         * lib/unistd-safer.h: New files.
76461
76462 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76463
76464         The mkstemp replacement is taken from glibc 2.2.2, with some
76465         portability fixes for use outside glibc, as follows:
76466
76467         * lib/tempname.c (struct_stat64): New macro.
76468         (direxists, __gen_tempname): Use it.
76469         This avoids a portability problem with Solaris 8.
76470
76471         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76472         (<stddef.h>, <stdint.h>, <string.h>):
76473         Include only if STDC_HEADERS || _LIBC.
76474         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76475         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76476         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76477         (__set_errno): Define this macro if <errno.h> doesn't.
76478         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76479         Define these macros if <stdio.h> doesn't.
76480         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76481         Define these macros if <sys/stat.h>
76482         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76483         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76484         __xstat64): Define if not _LIBC.
76485         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76486         (__gen_tempname): Invoke gettimeofday only if
76487         HAVE_GETTIMEOFDAY || _LIBC;
76488         otherwise, fall back on plain "time".
76489         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76490
76491         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76492
76493         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76494
76495 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76496
76497         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76498
76499 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76500
76501         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76502         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76503         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76505
76506 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76507
76508         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76509         Remove workaround macros for hosts that have mbrtowc but not
76510         mbstate_t, as we now insist on proper declarations for both
76511         before using mbrtowc.
76512
76513 2001-02-17  Jim Meyering  <meyering@lucent.com>
76514
76515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76516         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76517         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76518         UnixWare 7.1.1.
76519
76520         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76521         rather than AC_CACHE_VAL.
76522
76523 2001-02-17  Jim Meyering  <meyering@lucent.com>
76524
76525         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76526         around included file name.
76527
76528         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76529
76530         * lib/strftime.c: Update from GNU libc (the only changes were to
76531         comments).
76532
76533 2001-02-17  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/regex.c: Update from libc.
76536
76537 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76538
76539         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76540         clash.
76541
76542 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76543
76544         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76545         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76546         Reported by Mark Hounschell via Paul Eggert.
76547
76548 2001-02-07  Jim Meyering  <meyering@lucent.com>
76549
76550         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76551
76552 2001-02-05  Jim Meyering  <meyering@lucent.com>
76553
76554         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76555         it includes the patch required for `large file' support with at least
76556         HP-UX's 10.20 /bin/cc.
76557
76558 2001-02-03  Jim Meyering  <meyering@lucent.com>
76559
76560         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76561         AS_IF, now that it works once again (mysteriously).
76562         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76563
76564 2001-01-30  Jim Meyering  <meyering@lucent.com>
76565
76566         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76567         * m4/chown.m4: Rename conftestchown to conftest.chown.
76568         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76569         s/conftestdir2/conftest.d2/.
76570         * m4/utimes.m4: s/conftestdata/conftest.data/
76571         Inspired by Pavel Roskin's change in autoconf.
76572
76573 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76574
76575         * lib/config.charset: Update for FreeBSD 4.2.
76576
76577 2001-01-27  Jim Meyering  <meyering@lucent.com>
76578
76579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76580         a use of AS_IF.
76581         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76582
76583 2001-01-26  Jim Meyering  <meyering@lucent.com>
76584
76585         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76586         quotearg.c includes it.
76587
76588 2001-01-26  Jim Meyering  <meyering@lucent.com>
76589
76590         * lib/quotearg.c: Include stddef.h.
76591         * lib/quote.c: Include stddef.h.
76592         Reported by Axel Kittenberger.
76593
76594         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76595         line in double quotes so that it evokes a better diagnostic.
76596         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76597         Reported by Axel Kittenberger.
76598
76599 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76600
76601         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76602         as if it was a `charset'.
76603
76604 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76605
76606         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76607         has const.
76608
76609 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76610
76611         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76612         to avoid a warning.  Add back 'const' to inptr.
76613
76614 2001-01-20  Jim Meyering  <meyering@lucent.com>
76615
76616         Be sure that headers are checked before used in code compiled
76617         for the type checks.
76618         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76619         In place of that, invoke jm_CHECK_ALL_TYPES.
76620         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76621         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76622         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76623         The check for ssize_t was mistakenly run before the test for unistd.h.
76624
76625         The configure-time check for stdbool.h was missing.
76626         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76627         (jm_PREREQ_HASH): New function.
76628
76629 2001-01-17  Jim Meyering  <meyering@lucent.com>
76630
76631         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76632         for autoconf-2.49c.
76633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76634
76635 2001-01-16  Jim Meyering  <meyering@lucent.com>
76636
76637         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76638         From Bruno Haible.
76639
76640 2001-01-14  Jim Meyering  <meyering@lucent.com>
76641
76642         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76643         foo and bar.  Create conftestdir/ in the script, not in the C code.
76644         Remove directories in the script, not in the C code.
76645         Remove conftestdir{,2} before trying to create the directory.
76646         Make the entire configure script fail if the mkdir fails.
76647
76648 2001-01-14  Jim Meyering  <meyering@lucent.com>
76649
76650         * lib/rename.c: New file.  From Volker Borchert.
76651         Include stdlib.h, string.h or strings.h, and xalloc.h.
76652         Use strip_trailing_slashes rather than open-coding it.
76653
76654 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76655
76656         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76657
76658 2001-01-03  Jim Meyering  <meyering@lucent.com>
76659
76660         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76661         of local `inptr' to avoid warning with some system declarations of
76662         iconv.
76663
76664 2001-01-02  Volker Borchert  <bt@teknon.de>
76665
76666         * m4/rename.m4: New file.
76667         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76668
76669 2001-01-01  Jim Meyering  <meyering@lucent.com>
76670
76671         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76672         even on systems with utmpx.h.  It's necessary for the declaration of
76673         utmp's ut_user member.  Reported by Andreas Jaeger.
76674
76675         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76676         available. They are required for the declarations of getgrgid and
76677         getpwuid resp.
76678         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76679         Reported by Andreas Jaeger.
76680
76681 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76682
76683         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76684         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76685         so `make install' also works in VPATH builds.
76686
76687 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76688
76689         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76690         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76691         can be used in subdirectories.
76692
76693 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76694
76695         * lib/modechange.c: Do not assume that mode_t uses the
76696         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76697         the other-execute bit of FOO even if S_IXOTH != 1.
76698
76699         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76700         WOTH, XOTH, ALLM): New macros.
76701         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76702          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76703         Use them.
76704         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76705         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76706         (mode_compile):
76707         No need to use uintmax_t; unsigned long is long enough.
76708         Don't bother to get suffix since we don't use it.
76709
76710 2000-12-26  Jim Meyering  <meyering@lucent.com>
76711
76712         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76713         better with autoheader.
76714
76715 2000-12-24  Jim Meyering  <meyering@lucent.com>
76716
76717         * lib/hash.c (is_prime): Return explicit boolean values.
76718         (hash_get_first): Return NULL to appease Irix5.6's 89.
76719         Reported by Nelson Beebe.
76720
76721 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76722
76723         * lib/localcharset.c (locale_charset): Add support for Win32.
76724
76725 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76726
76727         * lib/physmem.h, lib/physmem.c: New files.
76728
76729         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76730         (noinst_HEADERS): Add physmem.h.
76731
76732         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76733         't' for compatibility with Solaris 8 sort.
76734
76735 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76736
76737         * lib/config.charset: Add support for BeOS.
76738
76739 2000-12-17  Jim Meyering  <meyering@lucent.com>
76740
76741         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76742         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76743
76744 2000-12-16  Jim Meyering  <meyering@lucent.com>
76745
76746         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76747         N and M) would have treated it like `chown N:N FILE'.
76748
76749         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76750
76751 2000-12-16  Jim Meyering  <meyering@lucent.com>
76752
76753         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76754         SHELLS_FILE to a file name that's useful on djgpp systems.
76755         Include stdlib.h.
76756         (ADDITIONAL_DEFAULT_SHELLS): Define.
76757         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76758         Based mostly on a patch from Prashant TR.
76759
76760 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76761
76762         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76763         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76764         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76765
76766 2000-12-08  Andreas Schwab  <schwab@suse.de>
76767
76768         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76769         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76770
76771 2000-12-07  Jim Meyering  <meyering@lucent.com>
76772
76773         * lib/stripslash.c (ISSLASH): Define.
76774         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76775         `/'.
76776         From Prashant TR.
76777
76778         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76779         (dir_name_r): Declare this function as static.
76780         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76781         manifest itself on a name containing a mix of slashes and
76782         backslashes.
76783         Make this function work with names starting with a DOS-style
76784         drive letter and colon prefix.
76785         (dir_name): Append `.' if necessary.
76786         Based mostly on patches from Prashant TR and Eli Zaretskii.
76787
76788         * lib/dirname.h (dir_name_r): Remove prototype.
76789
76790 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76791
76792         * m4/off_t-format.m4: Remove this file.
76793         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76794
76795 2000-12-06  Jim Meyering  <meyering@lucent.com>
76796
76797         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76798         replacement strtoull, we may well need the replacement strtoul, too.
76799         Check for declarations of strtoul and strtoull.
76800         Check for strtol.  Mainly as a cue to cause automake to include
76801         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76802         Check for limits.h -- strtol.c needs it.
76803
76804 2000-12-05  Jim Meyering  <meyering@lucent.com>
76805
76806         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76807
76808 2000-12-04  Jim Meyering  <meyering@lucent.com>
76809
76810         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76811         Also include memory.h, stdlib.h, unistd.h if appropriate.
76812         Reported by Andreas Jaeger (conflicting declaration of malloc).
76813
76814 2000-12-02  Jim Meyering  <meyering@lucent.com>
76815
76816         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76817         * m4/jm-macros.m4 (jm_MACROS): require it.
76818
76819 2000-12-02  Jim Meyering  <meyering@lucent.com>
76820
76821         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76822
76823 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76824
76825         * lib/memrchr.c: Include <config.h> before any system include file.
76826
76827 2000-11-30  Jim Meyering  <meyering@lucent.com>
76828
76829         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76830
76831 2000-11-30  Jim Meyering  <meyering@lucent.com>
76832
76833         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76834
76835 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76836
76837         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76838
76839 2000-11-26  Jim Meyering  <meyering@lucent.com>
76840
76841         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76842
76843 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76844
76845         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76846         size of (size_t) -1; it's not portable.
76847
76848 2000-11-17  Jim Meyering  <meyering@lucent.com>
76849
76850         * lib/strstr.c: Update from GNU libc.
76851
76852 2000-11-17  Akim Demaille  <akim@epita.fr>
76853
76854         * lib/obstack.h: Formatting changes.
76855         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76856         prevent type checking.
76857         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76858         cast the value to (void *): assigning a `foo *' to a `void *'
76859         variable is valid.
76860         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76861
76862 2000-11-16  Jim Meyering  <meyering@lucent.com>
76863
76864         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76865
76866 2000-11-11  Jim Meyering  <meyering@lucent.com>
76867
76868         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76869
76870 2000-11-10  Jim Meyering  <meyering@lucent.com>
76871
76872         * lib/obstack.h: Update from GNU libc.
76873         * lib/obstack.c: Likewise.
76874
76875 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76876
76877         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76878
76879 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76880
76881         * lib/getusershell.c (setusershell): Use rewind rather than
76882         fseek/fseeko, to avoid configuration hassles with fseeko.
76883         Don't bother opening SHELLS_FILE if shellstream is NULL;
76884         it's not necessary.
76885
76886 2000-11-05  Jim Meyering  <meyering@lucent.com>
76887
76888         * lib/makepath.h (make_dir): Declare.
76889         * lib/makepath.c (make_dir): Remove `static' attribute.
76890         Tweak a comment.
76891
76892 2000-11-04  Jim Meyering  <meyering@lucent.com>
76893
76894         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76895
76896 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76897
76898         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76899         last one in a bucket, advance to the next bucket.
76900
76901 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76902
76903         * lib/fnmatch.c: Do not comment out all the code if we are using
76904         the GNU C library, because in some cases we are replacing buggy
76905         code in the GNU C library itself.
76906
76907 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76908
76909         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76910         (regex_compile): Catch bogus \(\1\).
76911
76912 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76913
76914         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76915         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76916         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76917
76918 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76919
76920         * lib/error.h, getline.h, modechange.h:
76921         Remove "2000" from Copyright line, as the file hasn't been
76922         changed this year other than in the copyright notice.
76923
76924         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76925         was changed this year.
76926
76927 2000-10-29  Jim Meyering  <meyering@lucent.com>
76928
76929         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76930         renaming.
76931         * m4/ls-mntd-fs.m4: Likewise
76932
76933 2000-10-29  Jim Meyering  <meyering@lucent.com>
76934
76935         * lib/xstat.in: Fix grammar in comment.
76936
76937 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76938
76939         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76940         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76941         doesn't define __restrict_arr.
76942
76943 2000-10-28  Jim Meyering  <meyering@lucent.com>
76944
76945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76946         (jm_PREREQ_MEMCHR): New function.
76947
76948 2000-10-28  Jim Meyering  <meyering@lucent.com>
76949
76950         * lib/memchr.c: Update from libc.
76951         Adjust for portability:
76952         [HAVE_STDLIB_H]: Include stdlib.h.
76953         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76954         Undef __memchr, too.
76955         [!weak_alias]: Define __memchr to memchr.
76956
76957         * lib/regex.c: Update from libc.
76958         * lib/regex.h: Likewise.
76959         * lib/getopt1.c: Likewise.
76960         * lib/memcmp.c: Likewise.
76961
76962         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76963         Avoid using fseek, when possible -- it's broken by design.
76964         Patch by Ulrich Drepper.
76965
76966 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76967
76968         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76969         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76970         Giving in to popular pressure to shut up the compiler with casts.
76971
76972 2000-10-26  Jim Meyering  <meyering@lucent.com>
76973
76974         * lib/strftime.c: Update from libc.
76975
76976 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76977
76978         * regex.c: More `unsigned char' -> `re_char' changes.
76979         Also change several `int' into `re_wchar_t'.
76980         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76981         (PUSH_FAILURE_POINTER): Don't cast any more.
76982         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76983         We want GCC to complain, since this piece of code makes
76984         re_match non-reentrant, which *should* be fixed.
76985         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76986         (EXTEND_BUFFER): Use RETALLOC.
76987         (SET_LIST_BIT): Don't cast.
76988         (re_wchar_t): New type.
76989         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76990         that those two functions will always properly return.
76991         (IMMEDIATE_QUIT_CHECK): Cast to void.
76992         (analyse_first): Use recursion rather than an explicit stack.
76993         (re_compile_fastmap): Can't fail anymore.
76994         (re_search_2): Don't check re_compile_fastmap for failure.
76995         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76996         Now also sets the new value (passed in a new argument).
76997         (re_match_2_internal): Use it.
76998         Also, use a new var `reg' of type size_t when looping through regs
76999         rather than reuse the inappropriate `mcnt'.
77000
77001 2000-10-25  Jim Meyering  <meyering@lucent.com>
77002
77003         * lib/obstack.c: Update from libc.
77004
77005 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77006
77007         * regex.c (regex_compile): Change the way of handling a range from
77008         a char less than 256 to a char not less than 256.
77009
77010 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77011
77012         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77013         NT-Emacs only.
77014         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77015         so that re_search functions only quit when callers expect them to.
77016
77017 2000-10-23  Jim Meyering  <meyering@lucent.com>
77018
77019         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77020         wrong.  That set_locale call must not have any side effects.
77021         From Paul Eggert.
77022
77023 2000-10-22  Jim Meyering  <meyering@lucent.com>
77024
77025         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77026         [CYCLIC]: Remove now-unused definition.
77027
77028         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77029         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77030         Suggestion from Ulrich Drepper.
77031
77032 2000-10-21  Jim Meyering  <meyering@lucent.com>
77033
77034         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77035         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77037
77038 2000-10-21  Jim Meyering  <meyering@lucent.com>
77039
77040         * lib/dirname.c (memrchr): Declare if necessary.
77041         (dir_name): Remove the restriction that there be no
77042         trailing slashes.  Now, this code skips past them, effectively
77043         ignoring them.
77044         [TEST_DIRNAME] (main): New unit tests.
77045
77046         * lib/memrchr.c: New file from GNU libc.
77047         Undef __memrchr, too.
77048         [!weak_alias]: Define __memrchr to memrchr.
77049         Guard weak_alias use with `#ifdef weak_alias'.
77050
77051 2000-10-21  Jim Meyering  <meyering@lucent.com>
77052
77053         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77054         (dir_name): Use dir_name_r.
77055         * lib/dirname.h (dir_name_r): Declare it.
77056
77057 2000-10-17  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/quote.h (PARAMS): Define and use.
77060         Reported by Akim Demaille.
77061
77062         * lib/getopt.c: Update from libc.
77063
77064 2000-10-16  Jim Meyering  <meyering@lucent.com>
77065
77066         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77067         setlocale.
77068         From Jan Fedak.
77069
77070 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77071
77072         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77073
77074 2000-09-25  Jim Meyering  <meyering@lucent.com>
77075
77076         * lib/md5.h (rol): Define (from GnuPG).
77077
77078         * lib/sha.c: Give credit (GnuPG) where due.
77079         (M): Use rol rather than open-coding it.
77080         Add a FIXME comment.
77081
77082 2000-09-21  Jim Meyering  <meyering@lucent.com>
77083
77084         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77085         Reported by Michael Stone.
77086
77087 2000-09-20  Jim Meyering  <meyering@lucent.com>
77088
77089         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77090         (noinst_HEADERS): Add sha.h.
77091         Based on code from Scott G. Miller and from GnuPG.
77092
77093 2000-09-18  Jim Meyering  <meyering@lucent.com>
77094
77095         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77096         LIBS. Otherwise, everyone ends up linking with -lelf for some
77097         configurations.
77098         Reported by Mike Stone.
77099
77100 2000-09-15  Jim Meyering  <meyering@lucent.com>
77101
77102         * lib/regex.c: Update from libc.
77103
77104 2000-09-10  Jim Meyering  <meyering@lucent.com>
77105
77106         * lib/getopt.c (_getopt_internal): Update from glibc.
77107
77108 2000-09-09  Jim Meyering  <meyering@lucent.com>
77109
77110         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77111         think it should be used as a general replacement for isascii.
77112         * lib/fnmatch.c: Likewise.
77113         * lib/mbswidth.c: Likewise
77114         * lib/regex.c: Likewise.
77115
77116         Don't use atoi.
77117         * lib/userspec.c: Include sys/param.h and limits.h.
77118         Include xstrtol.h.
77119         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77120         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77121         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77122         UID, GID.  Check range.
77123
77124 2000-09-06  Jim Meyering  <meyering@lucent.com>
77125
77126         * lib/getopt.c (_getopt_internal): Update from glibc.
77127
77128 2000-08-30  Jim Meyering  <meyering@lucent.com>
77129
77130         * lib/strftime.c: Merge in changes from GNU libc.
77131
77132 2000-08-26  Jim Meyering  <meyering@lucent.com>
77133
77134         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77135         * m4/fpending.m4: New file.
77136
77137 2000-08-26  Jim Meyering  <meyering@lucent.com>
77138
77139         * lib/closeout.c: Include "__fpending.h".
77140         (close_stdout_status): Return right away if there's nothing to flush.
77141
77142         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77143         * lib/__fpending.c: New file.
77144         * lib/__fpending.h: New file.
77145
77146 2000-08-20  Jim Meyering  <meyering@lucent.com>
77147
77148         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77149         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77150         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77151
77152 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77153
77154         Improve fileutils installation on systems where running
77155         programs (like install) can't be unlinked.
77156         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77157         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77158
77159 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77160
77161         Standardize on "memory exhausted" instead of "Memory exhausted"
77162         or "virtual memory exhausted".
77163         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77164         "virtual memory exhausted".
77165         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77166         our own message.
77167         * lib/userspec.c (parse_user_spec): Likewise.
77168         * lib/bumpalloc.h: comment fix
77169         * lib/same.c, userspec.c: Include xalloc.h.
77170
77171         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77172         not char *const and pointing to a constant array.
77173         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77174         (xrealloc): Comment fix.
77175
77176         * lib/userspec.c (parse_user_spec):
77177         Don't translate a message until just before returning,
77178         to avoid unnecessary translation.
77179
77180 2000-08-07  Jim Meyering  <meyering@lucent.com>
77181
77182         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77183         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77184         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77185         getgroups.c, gethostname.c, getopt.h, group-member.c,
77186         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77187         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77188         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77189         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77190         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77191         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77192         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77193         yesno.c: Back out Copyright date changes for each file with no change
77194         this year.  This eases coordination with other programs using the same
77195         source code modules.  From Paul Eggert.
77196
77197 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77198
77199         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77200         not char, for compatibility with glibc 2.1.3 strftime.c.
77201
77202 2000-08-03  Greg McGary  <greg@mcgary.org>
77203
77204         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77205         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77206         (EXTEND_BUFFER): Use them.
77207
77208 2000-08-01  Jim Meyering  <meyering@lucent.com>
77209
77210         * lib/dirname.c (ISSLASH): Define.
77211         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77212         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77213         both `\' and `/' may be use as path separators.
77214         Based on a patch from Prashant TR.
77215
77216 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77217
77218         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77219         slot vector a constant, since it might get modified.
77220
77221 2000-07-31  Jim Meyering  <meyering@lucent.com>
77222
77223         * lib/xmalloc.c: Use `virtual memory exhausted', not
77224         `Memory exhausted'.
77225         * lib/obstack.c (print_and_abort): Likewise.
77226
77227 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77228
77229         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77230         buffer, so that the caller can always quote one small
77231         component of a "memory exhausted" message in slot 0.
77232         From a suggestion by Jim Meyering.
77233
77234 2000-07-30  Jim Meyering  <meyering@lucent.com>
77235
77236         * lib/makepath.c (make_path): Quote the other instance, too.
77237
77238         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77239         (STATIC_BUF_SIZE): Define.
77240         (quotearg_n_options): Use only statically allocated storage when
77241         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77242         than STATIC_BUF_SIZE.
77243
77244 2000-07-29  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77247         * lib/dirname.c (dir_name): Likewise.
77248
77249         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77250         `/'.
77251
77252         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77253         (dir_name): Assert that there are no trailing slashes.
77254
77255 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77256
77257         * lib/mbswidth.h (mbswidth): Add a flags argument.
77258         (mbswidth): New declaration.
77259         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77260         * lib/mbswidth.c (mbswidth): Add a flags argument.
77261         (mbsnwidth): New function.
77262
77263 2000-07-24  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77266
77267 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77268
77269         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77270
77271 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77272
77273         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77274         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77275         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77276         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77277         invoke multibyte primitives.
77278
77279 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77280
77281         * lib/quotearg.c:
77282         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77283         so that mbstate_t is always defined.
77284
77285         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77286         be 1 in at least one GCC installation, and this configuration
77287         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77288         performance on hosts that have mbrtowc but have only unibyte
77289         locales, but I assume these hosts are rare.
77290
77291 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77292
77293         * lib/mbswidth.c (_XOPEN_SOURCE):
77294         Don't define; this causes problems on Solaris 7.
77295         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77296
77297 2000-07-23  Jim Meyering  <meyering@lucent.com>
77298
77299         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77300         too: getgrgid, getpwuid, getuid.
77301
77302 2000-07-23  Jim Meyering  <meyering@lucent.com>
77303
77304         * lib/basename.c (base_name): Add an assertion.
77305
77306 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77307
77308         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77309         shadow its mbsinit function.
77310
77311 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77312
77313         * lib/mbswidth.h: New file.
77314         * lib/mbswidth.c: New file.
77315         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77316         (noinst_HEADERS): Add mbswidth.h.
77317
77318 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77319
77320         * lib/config.charset: Add support for FreeBSD. Improve support for
77321         HP-UX and IRIX 6.
77322
77323 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77324
77325         * m4/mbswidth.m4: New file.
77326         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77327
77328 2000-07-15  Jim Meyering  <meyering@lucent.com>
77329
77330         * lib/makepath.c: Include quote.h.
77331         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77332         corresponding argument in a `quote (...)' call.
77333         Give better diagnostics.
77334
77335         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77336         (noinst_HEADERS): Add quote.h.
77337
77338         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77339         from tar's src/misc.c.
77340         * lib/quote.h: New file.  Prototypes for same.
77341
77342 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77343
77344         From a suggestion by Bruno Haible.
77345         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77346         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77347         to decide whether to define the BeOS workaround macro;
77348         this adjusts to the change to AC_MBSTATE_T.
77349
77350 2000-07-14  Jim Meyering  <meyering@lucent.com>
77351
77352         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77353         jm_AC_TYPE_UINTMAX_T.
77354
77355 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77356
77357         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77358
77359         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77360         quotearg_buffer_restyled): Add support for
77361         clocale_quoting_style.  Undo previous change to
77362         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77363         and "{RIGHT QUOTATION MARK}" msgids.
77364
77365 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77366
77367         From a suggestion by Bruno Haible.
77368         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77369         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77370         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77371         and mbstate_t, to a single-part test that simply defines mbstate_t.
77372         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77373         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77374
77375 2000-07-10  Jim Meyering  <meyering@lucent.com>
77376
77377         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77378
77379         * m4/gnu-source.m4: Output to confdefs.h directly.
77380         Suggestion from Akim Demaille.
77381
77382 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77383
77384         The old behavior of quoting `like this' doesn't look good with
77385         newer, ISO-style fonts.  See:
77386         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77387
77388         Instead, quote "like this" by default.  Let the translator
77389         tailor the locale-specific quoting behavior by providing
77390         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77391
77392         * lib/quotearg.c (N_): New macro.
77393         (gettext_default): New function.
77394         (quotearg_buffer_restyled): Use
77395         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77396         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77397
77398 2000-07-09  Jim Meyering  <meyering@lucent.com>
77399
77400         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77401         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77402
77403         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77404         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77405
77406 2000-07-09  Jim Meyering  <meyering@lucent.com>
77407
77408         * lib/Most files: Update copyright dates to include 2000.
77409
77410 2000-07-08  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77413         if not defined.
77414         (xgethostname): Remove now-unnecessary #ifdef.
77415         Move declaration of `err' into loop where it's used.
77416
77417 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77418         and Bruno Haible  <haible@clisp.cons.org>
77419
77420         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77421         only if the test for an object-type mbstate_t fails.  This
77422         prevents us from mistakenly reporting that mbstate_t is a
77423         system object type after we "#define mbstate_t int" to work
77424         around its lack.
77425
77426 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77427         and Bruno Haible  <haible@clisp.cons.org>
77428
77429         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77430
77431 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77432
77433         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77434         to strerror_r.
77435         Include <ctype.h> for use of isalpha.
77436
77437 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77438
77439         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77440         by allocating a larger buffer. Test the gethostname return value for
77441         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77442         returns an error and ENAMETOOLONG isn't defined.
77443
77444 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77445
77446         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77447         dimension.
77448
77449 2000-07-04  Jim Meyering  <meyering@lucent.com>
77450
77451         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77452         of the deprecated AC_CHECKING.
77453
77454 2000-07-04  Jim Meyering  <meyering@lucent.com>
77455
77456         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77457         Reported by Bruno Haible.
77458
77459 2000-07-04  Jim Meyering  <meyering@lucent.com>
77460
77461         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77462         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77463         lacks mbrtowc.
77464
77465 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77466
77467         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77468         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77469
77470 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77471         and Bruno Haible  <haible@clisp.cons.org>
77472
77473         * lib/quotearg.c (mbrtowc):
77474         Assign to *pwc, and return 1 only if result is nonzero.
77475         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77476
77477 2000-07-03  Jim Meyering  <meyering@lucent.com>
77478
77479         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77480
77481 2000-07-03  Jim Meyering  <meyering@lucent.com>
77482
77483         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77484         This is necessary to get a definition of e.g., UTMP_FILE on
77485         HP-UX 10.20.
77486         From Bob Proulx.
77487
77488 2000-07-02  Jim Meyering  <meyering@lucent.com>
77489
77490         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77491
77492         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77493         AC_LIBOBJ(function_name).
77494         * m4/chown.m4: Likewise.
77495         * m4/fnmatch.m4: Likewise.
77496         * m4/ftruncate.m4: Likewise.
77497         * m4/getgroups.m4: Likewise.
77498         * m4/getline.m4: Likewise.
77499         * m4/group-member.m4: Likewise.
77500         * m4/jm-macros.m4: Likewise.
77501         * m4/lstat.m4: Likewise.
77502         * m4/malloc.m4: Likewise.
77503         * m4/memcmp.m4: Likewise.
77504         * m4/nanosleep.m4: Likewise.
77505         * m4/putenv.m4: Likewise.
77506         * m4/realloc.m4: Likewise.
77507         * m4/regex.m4: Likewise.
77508         * m4/stat.m4: Likewise.
77509         * m4/strftime.m4: Likewise.
77510
77511 2000-07-02  Jim Meyering  <meyering@lucent.com>
77512
77513         * lib/quotearg.c (mbstate_t): Don't define here.
77514
77515 2000-07-02  Jim Meyering  <meyering@lucent.com>
77516
77517         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77518
77519 2000-07-01  Jim Meyering  <meyering@lucent.com>
77520
77521         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77522
77523 2000-07-01  Jim Meyering  <meyering@lucent.com>
77524
77525         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77526         problem.
77527
77528 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77529
77530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77531         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77532
77533 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77534
77535         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77536         per change in ../m4/ls-mntd-fs.m4.
77537         (read_filesystem_list): Ignore symbolic links.
77538
77539 2000-06-29  Jim Meyering  <meyering@lucent.com>
77540
77541         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77542         for declaration of strcmp.
77543
77544         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77545
77546         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77547         Avoid warning by casting result to `char *' to remove `const'.
77548
77549 2000-06-28  Jim Meyering  <meyering@lucent.com>
77550
77551         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77552         included by quotearg.c, for which we perform this test.  From
77553         Bruno Haible.
77554
77555 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77556
77557         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77558         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77559         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77560
77561 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77562
77563         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77564
77565 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77566
77567         savedir now sets errno on failure and invokes xmalloc to get memory.
77568         Fix a couple of other minor bugs while we're at it.
77569
77570         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77571         (NAMLEN): Remove macro.
77572         (malloc, realloc): Remove decls.
77573         (stpcpy): Likewise.
77574         ("xalloc.h"): Include.
77575         (NAME_SIZE_DEFAULT): New macro.
77576         (savedir): Use xmalloc / xrealloc to allocate memory.
77577         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77578         Skip "" directory entries.
77579         Use strlen to calculate directory entry length, since the old method
77580         is rarely used these days and isn't worth supporting.
77581         Don't use a pointer after freeing it.
77582         Check for integer overflow when calculating allocation size.
77583         Use memcpy to copy entries, instead of stpcpy.
77584         Set errno properly when returning NULL.
77585         Check for readdir error.
77586
77587 2000-06-26  Jim Meyering  <meyering@lucent.com>
77588
77589         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77590
77591 2000-06-25  Jim Meyering  <meyering@lucent.com>
77592
77593         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77594         Linux header bug when _XOPEN_SOURCE is defined to 500.
77595
77596 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77597
77598         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77599         deficiency.
77600
77601 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77602
77603         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77604         Include xalloc.h.
77605         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77606
77607 2000-06-24  Jim Meyering  <meyering@lucent.com>
77608
77609         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77610         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77611         for which strerror does return char*, but which lacks a conveniently
77612         accessible declaration of the function.  If the compile-test says
77613         strerror_r doesn't work, then resort to a `run'-test that works on
77614         BeOS and segfaults on DEC Unix.
77615
77616 2000-06-24  Jim Meyering  <meyering@lucent.com>
77617
77618         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77619
77620 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77621
77622         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77623         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77624
77625 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77626
77627         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77628         (mbrtowc, mbstate_t): Define substitutes if
77629         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77630         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77631         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77632
77633 2000-06-23  Jim Meyering  <meyering@lucent.com>
77634
77635         * m4/afs.m4: Add missing AC_MSG_RESULT.
77636         Reported by Bruno Haible.
77637
77638         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77639         Suggestion from Bruno Haible.
77640
77641 2000-06-23  Jim Meyering  <meyering@lucent.com>
77642
77643         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77644
77645 2000-06-21  Jim Meyering  <meyering@lucent.com>
77646
77647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77648
77649 2000-06-21  Jim Meyering  <meyering@lucent.com>
77650
77651         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77652         (noinst_HEADERS): Add getstr.h.
77653
77654         * lib/getline.c (getstr): Move into a separate file.
77655         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77656         the following changes: new parameter, delim2; both delim[12]
77657         parameters have type `int', not `char'.  The latter would lose
77658         with 8-bit delimiters.
77659         * lib/getstr.h: New file.
77660
77661 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77662
77663         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77664         than 1024, return a memory chunk of least possible size, instead
77665         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77666         Use free/xmalloc instead of xrealloc to avoid copying for very long
77667         paths.
77668
77669 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77670
77671         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77672         the empty string.
77673
77674 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77675
77676         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77677         address, not strdup.  Include <stdlib.h> and don't declare free().
77678
77679 2000-06-19  Jim Meyering  <meyering@lucent.com>
77680
77681         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77682
77683 2000-06-18  Jim Meyering  <meyering@lucent.com>
77684
77685         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77686
77687         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77688         `checking whether...' message to be consistent with that of the
77689         lstat test.
77690
77691 2000-06-18  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77694         Besides, these days every porting target provides a mkdir function.
77695
77696         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77697         needed. (this snippet comes from src/system.h).
77698
77699 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77700
77701         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77702
77703 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77704
77705         * lib/human.c (adjust_value): New function.
77706         (human_readable_inexact): Apply rounding style even when
77707         printing approximate values.
77708
77709 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77710
77711         * lib/human.c (human_readable_inexact): Allow an input block
77712         size that is not a multiple of the output block size, and vice versa.
77713         Reported by Piergiorgio Sartor.
77714
77715 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77716
77717         * lib/getdate.y (get_date): Apply relative times after time
77718         zone indicator, not before.  Reported by Todd A. Jacobs.
77719
77720 2000-06-13  Jim Meyering  <meyering@lucent.com>
77721
77722         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77723
77724         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77725
77726 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77727
77728         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77729
77730 2000-06-12  Jim Meyering  <meyering@lucent.com>
77731
77732         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77733         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77734         optional argument.
77735         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77736         the optional argument, `lib'.
77737
77738 2000-06-08  Jim Meyering  <meyering@lucent.com>
77739
77740         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77741
77742 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77743
77744         Rewrite largefile configuration so that we don't need to run
77745         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77746         AC_CANONICAL_HOST in configure.in -- jmm]
77747
77748         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77749         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77750         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77751         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77752         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77753         All uses changed.
77754         Instead of inspecting the output of getconf, try to compile the
77755         test program without and with the macro definition.
77756         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77757         for getconf.  Instead, check for the needed flags by compiling
77758         test programs.
77759
77760 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77761
77762         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77763
77764 2000-06-04  Jim Meyering  <meyering@lucent.com>
77765
77766         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77767         SunOS 4.1.4 for which gid_t is an unsigned type.
77768
77769 2000-06-03  Jim Meyering  <meyering@lucent.com>
77770
77771         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77772         now that autoconf requires that.
77773
77774         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77775         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77776         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77777
77778 2000-06-03  Jim Meyering  <meyering@lucent.com>
77779
77780         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77781
77782 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77783
77784         * m4/glibc21.m4: New file.
77785         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77786
77787 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77788
77789         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77790         newer, don't install charset.alias.
77791         * lib/config.charset: Change the Linux/glibc rules so they become empty
77792         on glibc-2.1 or newer.
77793
77794 2000-06-02  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/mountlist.c: Back out last change.  Instead, do this...
77797         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77798         me_dummy member using the same `ignore'-testing code.
77799         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77800         fs_type strings.
77801         From Mark D. Roth.
77802
77803 2000-05-29  Jim Meyering  <meyering@lucent.com>
77804
77805         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77806         mounts with the `ignore' attribute.  Based on a patch from
77807         Mark D. Roth.
77808
77809 2000-05-28  Jim Meyering  <meyering@lucent.com>
77810
77811         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77812         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77813         * m4/stat.m4: Likewise.
77814         * m4/lstat.m4: Likewise.
77815         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77816
77817         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77818         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77819
77820 2000-05-26  Jim Meyering  <meyering@lucent.com>
77821
77822         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77823
77824 2000-05-24  Jim Meyering  <meyering@lucent.com>
77825
77826         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77827         autoconf requires that.
77828         * m4/lib-check.m4: Likewise.
77829         * m4/jm-macros.m4: Likewise.
77830         * m4/strftime.m4: Likewise.
77831
77832         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77833         AC_CHECK_DECLS, now that autoconf requires that.
77834
77835 2000-05-22  Jim Meyering  <meyering@lucent.com>
77836
77837         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77838         * m4/lstat.m4: Likewise.
77839
77840 2000-05-22  Jim Meyering  <meyering@lucent.com>
77841
77842         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77843
77844 2000-05-20  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77847         (jm_PREREQ): Use it.
77848
77849 2000-05-18  Jim Meyering  <meyering@lucent.com>
77850
77851         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77852         back, too, since it may have been modified by allocate_entry.
77853         (hash_delete): Rewrite to use neither the assignment operator
77854         nor the comma operator in an if-expression.
77855
77856 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77857
77858         * lib/closeout.c:
77859         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77860         Remove; no longer needed.
77861         "quotearg.h": Add include.
77862         (file_name): Do not bother to explicitly initialize to NULL; it's less
77863         efficient on some hosts.
77864         (close_stdout_status): Remove test as to whether stdout was already
77865         closed; it breaks for the case "echo x | sort >&-".
77866         Quote file name colons.
77867         Do not assume that _("write error") lacks format strings.
77868
77869 2000-05-15  Jim Meyering  <meyering@lucent.com>
77870
77871         * lib/version-etc.c (version_etc_copyright): Update the copyright
77872         string used in all --version output.
77873
77874 2000-05-14  Jim Meyering  <meyering@lucent.com>
77875
77876         * lib/closeout.c (close_stdout_set_file_name): New function.
77877         (close_stdout_status): Use new file-scoped global.
77878         Return right away if fstat says the stdout file descriptor is invalid.
77879         * lib/closeout.h (close_stdout_set_file_name): Declare.
77880
77881 2000-05-10  Jim Meyering  <meyering@lucent.com>
77882
77883         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77884         (close_stdout_set_status): New function.
77885         * lib/closeout.h (close_stdout_set_status): Declare.
77886
77887 2000-05-09  Jim Meyering  <meyering@lucent.com>
77888
77889         * m4/gettext.m4: Rename this...
77890         * m4/libintl.m4: ...to this.
77891
77892 2000-05-08  Jim Meyering  <meyering@lucent.com>
77893
77894         * lib/long-options.c: Don't include closeout.h.
77895         (parse_long_options): Don't call close_stdout for --version.
77896
77897 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77898
77899         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77900         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77901         2.1.3 bug.  This avoids a clash when files like regex.c define
77902         _GNU_SOURCE.
77903
77904 2000-05-06  Jim Meyering  <meyering@lucent.com>
77905
77906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77907         (AC_REPLACE_FUNCS): Add strnlen.
77908
77909         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77910         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77911
77912         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77913         AC_SEARCH_LIBS call for nanosleep.
77914         (LIB_NANOSLEEP): Set and AC_SUBST.
77915
77916 2000-05-06  Jim Meyering  <meyering@lucent.com>
77917
77918         * lib/strnlen.c: Undefine __strnlen and strnlen.
77919         [!weak_alias]: Define __strnlen to strnlen.
77920
77921         * lib/atexit.c: New file, from libiberty.
77922
77923 2000-05-06  Jim Meyering  <meyering@lucent.com>
77924
77925         * lib/closeout.c (close_stdout_status): Also check for errors on the
77926         stderr stream.
77927
77928 2000-05-05  Jim Meyering  <meyering@lucent.com>
77929
77930         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77931         AC_SEARCH_LIBS call for clock_gettime.
77932         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77933
77934         * m4/search-libs.m4: Update from autoconf.
77935
77936         su doesn't work on Solaris 2.6.
77937         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77938         <shadow.h>.  Reported by Dragos Harabor.
77939
77940 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77941
77942         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77943         memcpy instead of xmalloc, xrealloc, path_concat.
77944         (locale_charset): Treat empty environment variables as absent.
77945         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77946
77947 2000-05-04  Jim Meyering  <meyering@lucent.com>
77948
77949         * lib/getopt.c: Update from glibc.
77950         * lib/obstack.c: Likewise.
77951         * lib/obstack.h: Likewise.
77952         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77953         file
77954
77955         * lib/regex.h: Likewise.
77956         * lib/strndup.c: Likewise.
77957         * lib/strnlen.c: New file, from glibc.
77958
77959 2000-05-03  Jim Meyering  <meyering@lucent.com>
77960
77961         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77962
77963 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77964
77965         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77966         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77967         compile-time test, rather than inspecting host and OS, to
77968         decide whether to define _LARGEFILE_SOURCE.
77969
77970 2000-05-01  Jim Meyering  <meyering@lucent.com>
77971
77972         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77973
77974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77975         Based on a patch from Bruno Haible.
77976
77977 2000-05-01  Jim Meyering  <meyering@lucent.com>
77978
77979         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77980
77981 2000-04-29  Jim Meyering  <meyering@lucent.com>
77982
77983         * lib/path-concat.c: Declare strdup only if it's not defined.
77984         * lib/canon-host.c: Likewise.
77985
77986 2000-04-28  Jim Meyering  <meyering@lucent.com>
77987
77988         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77989         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77990         is included first, then limits.h is included by locale.h by libintl.h.
77991         From John David Anglin.
77992
77993 2000-04-25  Jim Meyering  <meyering@lucent.com>
77994
77995         * lib/makepath.c (S_IRWXUGO): Define.
77996         (make_path): Always perform explicit chmod if MODE specifies any
77997         of the `special' permission bits.  Prompted by a bug report against
77998         install from Mate Wierdl and Joost van Baal.
77999
78000 2000-04-18  Jim Meyering  <meyering@lucent.com>
78001
78002         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78003         (jm_PREREQ): Use it.
78004
78005 2000-04-18  Jim Meyering  <meyering@lucent.com>
78006
78007         * lib/README: New file.
78008
78009         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78010         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78011
78012 2000-04-17  Jim Meyering  <meyering@lucent.com>
78013
78014         Get it right :-)
78015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78016         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78017         Suggestion from Akim Demaille.
78018
78019 2000-04-17  Jim Meyering  <meyering@lucent.com>
78020
78021         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78022         the definition of it to rpl_strftime also defined-away the system's
78023         declaration.
78024
78025 2000-04-15  Jim Meyering  <meyering@lucent.com>
78026
78027         Use `C' to denote so-called `contiguous' files, the same way
78028         that tar does.
78029         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78030         (ftypelet): Use S_ISCTG.
78031         From Michael Deutschmann.
78032
78033 2000-04-14  Jim Meyering  <meyering@lucent.com>
78034
78035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78036         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78037         clobbered.
78038
78039 2000-04-14  Jim Meyering  <meyering@lucent.com>
78040
78041         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78042
78043 2000-04-13  Jim Meyering  <meyering@lucent.com>
78044
78045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78046         AH_VERBATIM to insert required #ifndef into config.h.in.
78047         Suggestion from Akim Demaille.
78048
78049 2000-04-12  Jim Meyering  <meyering@lucent.com>
78050
78051         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78052         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78053         Christian Krackowizer.
78054
78055         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78056         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78057         (AC_SYS_LARGEFILE): Require.
78058         (AM_C_PROTOTYPES): Require.
78059
78060 2000-04-08  Jim Meyering  <meyering@lucent.com>
78061
78062         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78063         names don't conflict.  Reported by Eli Zaretskii.
78064
78065 2000-04-07  Jim Meyering  <meyering@lucent.com>
78066
78067         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78068         sys/types.h, to work around system header problems on AIX 3.2.5.
78069         From Bruno Haible.
78070
78071 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78072
78073         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78074         bug.  Deal with the different error behavior of Irix iconv.
78075
78076 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78077
78078         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78079         IRIX if the installer said otherwise.
78080
78081 2000-04-05  Jim Meyering  <meyering@lucent.com>
78082
78083         Portability tweaks required for ultrix4.3.
78084         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78085         (jm_CHECK_DECLS): Add getutent to the list of functions.
78086         (_jm_DECL_HEADERS): Add utmpx.h.
78087         From John David Anglin.
78088
78089         * m4/strftime.m4: Back out the 2000-04-02 change.
78090         Instead of that change, simply undefine putenv in the test program.
78091
78092 2000-04-05  Jim Meyering  <meyering@lucent.com>
78093
78094         Portability tweaks required for ultrix4.3.
78095         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78096         getutent.
78097         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78098         * lib/canon-host.c: Declare strdup.
78099         * lib/path-concat.c: Likewise.
78100         From John David Anglin.
78101
78102 2000-04-04  Jim Meyering  <meyering@lucent.com>
78103
78104         Be more DOS 8.3-friendly.
78105         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78106         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78107         * lib/Makefile.am: Reflect renaming.
78108         Reported by Eli Zaretskii.
78109
78110         Use a temporary file name that won't clash with `charset.alias'
78111         in the DOS 8.3 name space.
78112         * lib/Makefile.am (charset_tmp): Define.
78113         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78114         (uninstall-local): Likewise.
78115         Reported by Eli Zaretskii.
78116
78117 2000-04-03  Jim Meyering  <meyering@lucent.com>
78118
78119         * m4/gettext.m4: Fix typo in comment.
78120
78121         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78122         textutils/configure.in).  Suggestion from Paul Eggert.
78123         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78124
78125 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78126
78127         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78128         variable in the shell rather than using putenv, which isn't
78129         portable.  This avoids the configure-time inter-test dependency
78130         on the potentially-renamed putenv function.
78131
78132 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78133
78134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78135         before checking struct stat.st_blksize, so that
78136         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78137
78138 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78139
78140         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78141         since strftime.c uses HAVE_STRFTIME to decide whether to use
78142         the underlying strftime.
78143
78144 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78145
78146         * lib/time/strftime.c (my_strftime): Make sure we call the system
78147         strftime, not ourselves, when invoking the underlying strftime.
78148
78149 2000-03-24  Jim Meyering  <meyering@lucent.com>
78150
78151         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78152         (charset_alias): Define.
78153         (install-exec-local): Factor out common code.
78154         (uninstall-local): Split lines longer than 80.
78155         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78156         (SUFFIXES): Define.
78157         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78158         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78159
78160 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78161
78162         * lib/config.charset: Output a line containing "Packages using this
78163         file".
78164         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78165         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78166         ref-del.sed): New rules.
78167
78168 2000-03-17  Jim Meyering  <meyering@lucent.com>
78169
78170         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78171         Otherwise, include <strings.h>
78172
78173 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78174
78175         * lib/unicodeio.c (utf8_wctomb): New function.
78176         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78177         format instead of in UCS-4 with platform dependent endianness.
78178
78179 2000-03-10  Jim Meyering  <meyering@lucent.com>
78180
78181         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78182         From Marco Franzen.
78183
78184 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78185
78186         * lib/savedir.c (savedir): Work even if directory size is
78187         negative; this can happen with some screwy NFS configurations.
78188
78189 2000-03-06  Jim Meyering  <meyering@lucent.com>
78190
78191         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78192         if it's NULL (because we ran out of memory).  From Bruno Haible.
78193
78194 2000-03-05  Jim Meyering  <meyering@lucent.com>
78195
78196         * lib/localcharset.c ("path-concat.h"): Include.
78197         (get_charset_aliases): Use path_concat instead of ANSI string
78198         concatenation.
78199
78200         * lib/unicodeio.h (PARAMS): Define.
78201         Use it to guard prototype.
78202
78203 2000-03-04  Jim Meyering  <meyering@lucent.com>
78204
78205         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78206         for lib/localcharset.c.
78207
78208 2000-03-04  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78211         installing into it.
78212         (uninstall-local): Uncomment this rule so `make distcheck' works
78213         once again.
78214
78215         * lib/unicodeio.c (<errno.h>): Include it.
78216         (errno): Declare if not defined.
78217
78218         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78219
78220         * lib/config.charset: New version, incorporating remarks from a linux
78221         i18n mailing list.  From Bruno Haible.
78222
78223 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78224
78225         * m4/codeset.m4: New file.
78226         * m4/iconv.m4: New file.
78227         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78228
78229 2000-03-03  Jim Meyering  <meyering@lucent.com>
78230
78231         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78232
78233 2000-03-02  Jim Meyering  <meyering@lucent.com>
78234
78235         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78236         the messages come out on separate lines.
78237
78238         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78239         rather than jm_CHECK_DECLARATIONS.
78240         * m4/decl.m4: Remove now-unused file.
78241
78242         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78243         geteuid.
78244
78245 2000-03-02  Jim Meyering  <meyering@lucent.com>
78246
78247         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78248
78249 2000-03-01  Jim Meyering  <meyering@lucent.com>
78250
78251         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78252         * lib/unicodeio.c: Likewise.
78253
78254 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78255
78256         * lib/config.charset: New file.
78257         * lib/localcharset.c: New file.
78258         * lib/unicodeio.h, lib/unicodeio.c: New files.
78259         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78260         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78261         (noinst_HEADERS): Add unicodeio.h.
78262         (all-local, install-exec-local, charset.alias): New targets.
78263
78264 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78265
78266         * lib/quotearg.c (ALERT_CHAR): New macro.
78267         (quotearg_buffer_restyled): Use it.
78268
78269 2000-02-27  Jim Meyering  <meyering@lucent.com>
78270
78271         * m4/check-decl.m4: Add getenv to the list.
78272
78273 2000-02-27  Jim Meyering  <meyering@lucent.com>
78274
78275         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78276         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78277
78278         * lib/backupfile.c: Guard inclusion of stdlib.h with
78279         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78280         Declare malloc if needed.
78281
78282         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78283         `#ifndef HAVE_DECL..'
78284         now that autoconf always defines the HAVE_DECL_ symbols.
78285         * lib/human.c: Likewise.
78286         * lib/same.c: Likewise.
78287         * lib/strtoumax.c: Likewise.
78288
78289         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78290         declaration check was not run.
78291         * lib/hash.c: Likewise.
78292         * lib/human.c: Likewise.
78293         * lib/same.c: Likewise.
78294         * lib/strtoumax.c: Likewise.
78295
78296         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78297         `.', then first look up the entire `.'-containing string as a login
78298         name.
78299
78300 2000-02-23  Jim Meyering  <meyering@lucent.com>
78301
78302         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78303         in place of my hack.
78304
78305 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78306
78307         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78308         (textint): New typedef.
78309         (parser_control): Member year changed from int to textint.
78310         All uses changed.
78311         (YYSTYPE): Removed; replaced by %union with int and textint members.
78312         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78313         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78314         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78315         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78316         (date, number, to_year): Use width of number in digits, not its value,
78317         to determine whether it's a 2-digit year, or a 2-digit time.
78318         (yylex): Store number of digits of numeric tokens.
78319         Reported by John Kendall.
78320
78321         (parser_control): Changed from struct parser_control to typedef (for
78322         consistency).  All uses changed.
78323
78324         (tID): Removed; not used.
78325         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78326
78327 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78328
78329         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78330         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78331
78332 2000-02-12  Jim Meyering  <meyering@lucent.com>
78333
78334         * lib/userspec.c (ISDIGIT): Define it.
78335         (isdigit): Remove definition.
78336         (is_number): Use ISDIGIT, not isdigit.
78337         <libintl.h>: Include.
78338         (_ and N_): Define.
78339         (parse_user_spec): Mark translatable strings.
78340
78341 2000-02-10  Jim Meyering  <meyering@lucent.com>
78342
78343         With these changes, nanosleep.[ch] are finally enough like the other
78344         lib/* replacement files to compile on a few more losing systems.
78345
78346         * lib/nanosleep.h: Don't include config.h.
78347         Remove prototype from declaration of nanosleep.
78348         (PARAMS): Remove now-unneeded definition.
78349         * lib/nanosleep.c: #undef nanosleep.
78350         (rpl_nanosleep): Rename from nanosleep.
78351
78352 2000-02-10  Jim Meyering  <meyering@lucent.com>
78353
78354         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78355         gnu_nanosleep to rpl_nanosleep.
78356
78357 2000-02-09  Jim Meyering  <meyering@lucent.com>
78358
78359         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78360         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78361
78362 2000-02-08  Akim Demaille  <akim@epita.fr>
78363
78364         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78365         `[' and `]' and remove uses of `changequote'.
78366         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78367         (AC_SYS_LARGEFILE): Likewise.
78368         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78369         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78370         of changequote.
78371         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78372         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78373         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78374         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78375
78376 2000-02-05  Jim Meyering  <meyering@lucent.com>
78377
78378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78379         Remove explicit use of AC_HEADER_TIME.  It is required by
78380         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78381         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78382         in autoconf whereby the expansion of the latter ended up preceding
78383         the expansion of its prerequisite, AC_HEADER_TIME.
78384         Reported by Volker Borchert.
78385
78386 2000-02-03  Jim Meyering  <meyering@lucent.com>
78387
78388         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78389
78390 2000-02-03  Jim Meyering  <meyering@lucent.com>
78391
78392         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78393         rather than with `#if HAVE_UTMPNAME'.
78394
78395 2000-02-02  Jim Meyering  <meyering@lucent.com>
78396
78397         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78398         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78399         Reported by Eli Zaretskii.
78400
78401 2000-02-01  Jim Meyering  <meyering@lucent.com>
78402
78403         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78404
78405 2000-01-31  Jim Meyering  <meyering@lucent.com>
78406
78407         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78408         functions.  Add the time.h and sys/time.h headers along with the
78409         AC_REQUIRE'ment of AC_HEADER_TIME.
78410
78411 2000-01-31  Jim Meyering  <meyering@lucent.com>
78412
78413         * lib/nanosleep.h (nanosleep): Guard declaration with
78414         `#if ! HAVE_DECL_NANOSLEEP'.
78415         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78416         the declaration in that vendor's sys/timers.h.
78417         Reported by Christian Krackowizer.
78418
78419         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78420         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78421         (ISPRINT): Likewise.
78422         Reported by Tom Tromey.
78423
78424 2000-01-30  Jim Meyering  <meyering@lucent.com>
78425
78426         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78427
78428         * m4/prereq.m4 (utmp_includes): Define.
78429         Check for ut_user and ut_name members in both struct utmpx
78430         and struct utmp.
78431
78432 2000-01-30  Jim Meyering  <meyering@lucent.com>
78433
78434         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78435         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78436         header files where only utmpx.ut_user is declared.
78437
78438         * lib/readutmp.h (UT_USER): Define.
78439
78440 2000-01-29  Jim Meyering  <meyering@lucent.com>
78441
78442         * m4/lib-check.m4: New file containing library-related checks from
78443         fileutils and sh-utils (textutils had none).
78444
78445 2000-01-28  Jim Meyering  <meyering@lucent.com>
78446
78447         * m4/perl.m4: Change format of warning message to look more like that
78448         from the missing script.  Suggestion from François Pinard.
78449
78450 2000-01-25  Jim Meyering  <meyering@lucent.com>
78451
78452         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78453         well as time.h in the compile check.
78454         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78455         Fix typo in cross-compiling case: s/yes/no/.
78456
78457 2000-01-23  Jim Meyering  <meyering@lucent.com>
78458
78459         * m4/jm-macros.m4: Move df-related tests here from
78460         fileutils/configure.in
78461
78462         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78463         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78464
78465         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78466         s/space/ac_fsusage_space/.
78467         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78468
78469         * m4/ftruncate.m4: New file (derived from part of
78470         fileutils/configure.in).
78471         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78472         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78473
78474         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78475         AC_SUBST these here, rather than just in sh-util/configure.in, so
78476         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78477         all the same.
78478         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78479         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78480         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78481         (AC_SUBST(POW_LIBM)): Likewise.
78482         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78483
78484 2000-01-23  Jim Meyering  <meyering@lucent.com>
78485
78486         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78487         obstack.c.
78488
78489 2000-01-22  Jim Meyering  <meyering@lucent.com>
78490
78491         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78492
78493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78494
78495         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78496         configure.in
78497         (AC_CHECK_HEADERS): Likewise for sh-utils.
78498         (AC_CHECK_HEADERS): Likewise for textutils.
78499         Merge the three lists of headers.
78500
78501         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78502         from fileutils' configure.in.
78503
78504         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78505         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78506         check-decl.m4.
78507
78508         * m4/check-decl.m4: Use #if rather than #ifdef.
78509         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78510         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78511         (_jm_DECL_HEADERS): Define new function.
78512         (jm_CHECK_DECLARATIONS): Require it.
78513
78514 2000-01-22  Jim Meyering  <meyering@lucent.com>
78515
78516         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78517         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78518         Required for some AIX systems.  Reported by Christian Krackowizer.
78519         [TESTING] (main): New function.
78520
78521         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78522         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78523         letters.
78524
78525         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78526         iswprint.
78527
78528         * lib/strverscmp.c (ISDIGIT): Define.
78529         (strverscmp): Use ISDIGIT, not isdigit.
78530
78531 2000-01-19  Jim Meyering  <meyering@lucent.com>
78532
78533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78534         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78535         defines `struct timespec' in <sys/time.h>
78536
78537         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78538         Thanks to Akim for explaining.
78539
78540 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78541
78542         * lib/nanosleep.c (nanosleep):
78543         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78544         POSIX.1 doesn't require SA_INTERRUPT and some systems
78545         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78546         it's been part of POSIX.1 since day 1 (in 1988).
78547
78548 2000-01-17  Jim Meyering  <meyering@lucent.com>
78549
78550         * lib/interlock: Remove unused file.  Reported by François Pinard.
78551
78552 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78553
78554         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78555         alert, backslash, formfeed, and vertical tab unnecessarily in
78556         shell quoting style.
78557
78558 2000-01-16  Jim Meyering  <meyering@lucent.com>
78559
78560         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78561         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78562         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78563         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78564
78565 2000-01-16  Jim Meyering  <meyering@lucent.com>
78566
78567         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78568         because the latter didn't work.
78569
78570 2000-01-15  Jim Meyering  <meyering@lucent.com>
78571
78572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78573         (AC_REPLACE_FUNCS): Add memcpy and memset.
78574         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78575         Add strpbrk.
78576         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78577
78578 2000-01-12  Jim Meyering  <meyering@lucent.com>
78579
78580         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78581         (jm_PREREQ): Use it.
78582         (jm_PREREQ_READUTMP): New macro.
78583         (jm_PREREQ): Use it.
78584
78585 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78586
78587         Quote multibyte characters correctly.
78588         * m4/c-bs-a.m4: New file.
78589         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78590         (jm_PREREQ): Use it.
78591
78592 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78593
78594         * m4/uintmax_t.m4: Port to autoconf 2.13.
78595
78596 2000-01-08  Jim Meyering  <meyering@ascend.com>
78597
78598         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78599         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78600
78601 2000-01-04  Jim Meyering  <meyering@ascend.com>
78602
78603         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78604         jm_STRUCT_DIRENT_D_TYPE.
78605         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78606         jm_STRUCT_DIRENT_D_INO.
78607         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78608         jm_STRUCT_UTIMBUF.
78609         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78610         renamings.
78611         * m4/utime.m4: Likewise.
78612
78613         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78614         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78615
78616 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78617
78618         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78619         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78620
78621 2000-01-02  Jim Meyering  <meyering@ascend.com>
78622
78623         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78624         remember if this is necessary.
78625
78626 1999-12-26  Jim Meyering  <meyering@ascend.com>
78627
78628         * m4/jm-macros.m4: Use it here.
78629         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78630
78631 1999-12-23  Jim Meyering  <meyering@ascend.com>
78632
78633         * m4/jm-macros.m4: Check for clock_gettime (moved from
78634         fileutils/configure.in)
78635         Check for gettimeofday.
78636
78637 1999-12-20  Jim Meyering  <meyering@ascend.com>
78638
78639         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78640         autoconf-2.14a-1999-12-20.
78641
78642 1999-12-19  Jim Meyering  <meyering@ascend.com>
78643
78644         * m4/lstat-slash.m4: New file.
78645         * m4/jm-macros.m4: Use the new macro:
78646         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78647
78648 1999-12-07  Jim Meyering  <meyering@ascend.com>
78649
78650         * m4/perl.m4: Require that File::Compare be available, too.
78651         Too many systems seem to lack it.
78652
78653         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78654         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78655
78656 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78657
78658         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78659         problem with the QNX 4.25 shell, which doesn't propagate exit
78660         status of failed commands inside shell assignments.
78661
78662 1999-11-17  Jim Meyering  <meyering@ascend.com>
78663
78664         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78665
78666 1999-11-07  Jim Meyering  <meyering@ascend.com>
78667
78668         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78669
78670 1999-11-06  Jim Meyering  <meyering@ascend.com>
78671
78672         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78673         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78674
78675 1999-11-05  Jim Meyering  <meyering@ascend.com>
78676
78677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78678         configure.in of textutils, fileutils, and sh-utils into this one
78679         (shared between those packages) file.
78680         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78681         AC_STRUCT_ST_BLKSIZE.
78682
78683 1999-11-03  Jim Meyering  <meyering@ascend.com>
78684
78685         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78686         of AC_CHECK_TYPE checks includes unistd.h.
78687         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78688         Suggestion from Akim Demaille.
78689
78690 1999-10-30  Jim Meyering  <meyering@ascend.com>
78691
78692         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78693         m4-quoted string.
78694         * m4/ls-mntd-fs.m4: Likewise.
78695         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78696         * m4/jm-winsz1.m4: Likewise.
78697
78698         * m4/const.m4: Remove file, since the fix made it into the experimental
78699         version of autoconf.
78700         * m4/mktime.m4: Likewise.
78701
78702         * m4/check-type.m4: Remove file, now that the latest version of
78703         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78704
78705         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78706         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78707         AC_CHECK_TYPE.
78708
78709 1999-10-04  Jim Meyering  <meyering@ascend.com>
78710
78711         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78712
78713 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78714
78715         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78716         2.95.1 bug with HP-UX 10.20.
78717
78718 1999-09-17  Jim Meyering  <meyering@ascend.com>
78719
78720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78721         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78722         due to missing strdup (against sh-utils-2.0).
78723
78724 1999-08-29  Jim Meyering  <meyering@ascend.com>
78725
78726         * m4/jm-macros.m4: Require jm_BISON.
78727         * m4/bison.m4: New file.
78728
78729 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78730
78731         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78732         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78733
78734 1999-08-05  Jim Meyering  <meyering@ascend.com>
78735
78736         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78737         to avoid conflicts with `conftest' on 8+3 filesystems.
78738         Suggestion from Eli Zaretskii.
78739
78740 1999-08-04  Jim Meyering  <meyering@ascend.com>
78741
78742         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78743         fileutils and sh-utils (textutils's getline test was inadequate).
78744         (AM_FUNC_GETLINE): Run this test.
78745         (AC_CHECK_FUNCS): Check for getdelim.
78746         Reported by Bob Proulx.
78747
78748 1999-08-02  Jim Meyering  <meyering@ascend.com>
78749
78750         * m4/jm-macros.m4: Add a comment.
78751
78752 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78753
78754         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78755         <inttypes.h> defines strtoumax as a macro (and not as a
78756         function).
78757
78758 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78759
78760         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78761         that we can shift, multiply and divide unsigned long long
78762         values; Ultrix cc can't do it.
78763
78764 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78765
78766         * m4/mktime.m4: New file, which is a preview of what should appear
78767         in the next public autoconf release.
78768
78769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78770
78771         * m4/lfs.m4: Remove this file.
78772         * m4/largefile.m4: New file.  It contains the old contents of
78773         lfs.m4, except that all names with prefix AC_LFS have been
78774         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78775         compatible with future autoconf versions.  Also, some minor m4
78776         quoting problems have been fixed.
78777
78778 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78779
78780         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78781         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78782         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78783         and simplify the shell code.
78784
78785 1999-08-01  Jim Meyering  <meyering@ascend.com>
78786
78787         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78788         m4.
78789
78790 1999-07-20  Jim Meyering  <meyering@ascend.com>
78791
78792         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78793
78794 1999-07-15  Jim Meyering  <meyering@ascend.com>
78795
78796         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78797
78798 1999-05-22  Jim Meyering  <meyering@ascend.com>
78799
78800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78801
78802 1999-05-20  Jim Meyering  <meyering@ascend.com>
78803
78804         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78805         Add a colon after each `then' in case $4 is empty.
78806
78807 1999-05-16  Jim Meyering  <meyering@ascend.com>
78808
78809         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78810
78811 1999-05-10  Jim Meyering  <meyering@ascend.com>
78812
78813         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78814
78815         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78816         AC_FUNC_MKTIME.
78817
78818 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78819
78820         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78821
78822 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78823
78824         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78825         not CPPFLAGS, so that linking works correctly in IRIX.
78826
78827 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78828
78829         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78830
78831 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78832
78833         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78834         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78836         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78837         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78838
78839         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78840
78841 1999-04-20  Jim Meyering  <meyering@ascend.com>
78842
78843         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78844         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78845         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78846
78847 1999-04-18  Jim Meyering  <meyering@ascend.com>
78848
78849         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78850         * m4/jm-macros.m4: Use it.
78851
78852 1999-04-06  Jim Meyering  <meyering@ascend.com>
78853
78854         * m4/strftime.m4: Remove test for %f.
78855
78856 1999-03-29  Jim Meyering  <meyering@ascend.com>
78857
78858         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78859         superset of the AC_TYPE_* checks in the textutils, fileutils,
78860         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78861         AC_TYPE_PID_T.
78862
78863 1999-03-28  Jim Meyering  <meyering@ascend.com>
78864
78865         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78866         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78867         replaced e.g., in the *.sh files of the sh-utils.
78868
78869 1999-03-20  Jim Meyering  <meyering@ascend.com>
78870
78871         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78872         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78873         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78874
78875 1999-03-19  Jim Meyering  <meyering@ascend.com>
78876
78877         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78878
78879 1999-03-12  Jim Meyering  <meyering@ascend.com>
78880
78881         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78882
78883 1999-03-07  Jim Meyering  <meyering@ascend.com>
78884
78885         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78886         declared.
78887
78888 1999-02-17  Jim Meyering  <meyering@ascend.com>
78889
78890         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78891         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78892
78893 1999-02-07  Jim Meyering  <meyering@ascend.com>
78894
78895         * m4/group-member.m4: New file -- extracted from sh-utils'
78896         configure.in.
78897
78898         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78899         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78900
78901 1999-02-06  Jim Meyering  <meyering@ascend.com>
78902
78903         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78904         * m4/fnmatch.m4: Likewise.
78905         * m4/getgroups.m4: Likewise.
78906         * m4/lstat.m4: Likewise.
78907         * m4/malloc.m4: Likewise.
78908         * m4/putenv.m4: Likewise.
78909         * m4/realloc.m4: Likewise.
78910         * m4/regex.m4: Likewise.
78911         * m4/stat.m4: Likewise.
78912         * m4/strftime.m4: Likewise.
78913         Suggestion from Alain Magloire.
78914
78915         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78916         * m4/fnmatch.m4: Likewise.
78917         * m4/getgroups.m4: Likewise.
78918         * m4/getline.m4: Likewise.
78919         * m4/lstat.m4: Likewise.
78920         * m4/malloc.m4: Likewise.
78921         * m4/memcmp.m4: Likewise.
78922         * m4/putenv.m4: Likewise.
78923         * m4/realloc.m4: Likewise.
78924         * m4/regex.m4: Likewise.
78925         * m4/stat.m4: Likewise.
78926         * m4/strftime.m4: Likewise.
78927         Suggestion from Alain Magloire.
78928
78929         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78930         an argument.
78931
78932         * m4/regex.m4: Add a run-time Test for proper operation of
78933         re_compile_pattern.
78934
78935 1999-01-31  Jim Meyering  <meyering@ascend.com>
78936
78937         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78938
78939 1999-01-30  Jim Meyering  <meyering@ascend.com>
78940
78941         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78942
78943         * m4/jm-mktime.m4: Make this a wrapper around the official
78944         AM_FUNC_MKTIME rather than my private copy, now that the official one
78945         is up to date.
78946         * m4/mktime.m4: Remove file.
78947
78948         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78949         * m4/uptime.m4: Likewise.
78950         * m4/uintmax_t.m4: Likewise.
78951
78952 1999-01-28  Jim Meyering  <meyering@ascend.com>
78953
78954         * m4/jm-macros.m4: Use jm_AFS.
78955         * m4/afs.m4: New file (from fileutils' configure.in).
78956
78957         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78958         * m4/chown.m4: Likewise.
78959         * m4/d-ino.m4: Likewise.
78960         * m4/d-type.m4: Likewise.
78961         * m4/fnmatch.m4: Likewise.
78962         * m4/getgroups.m4: Likewise.
78963         * m4/gettext.m4: Likewise.
78964         * m4/jm-mktime.m4: Likewise.
78965         * m4/jm-winsz2.m4: Likewise.
78966         * m4/lcmessage.m4: Likewise.
78967         * m4/ls-mntd-fs.m4: Likewise.
78968         * m4/malloc.m4: Likewise.
78969         * m4/memcmp.m4: Likewise.
78970         * m4/putenv.m4: Likewise.
78971         * m4/realloc.m4: Likewise.
78972         * m4/st_mtim.m4: Likewise.
78973         * m4/strftime.m4: Likewise.
78974
78975 1999-01-16  Jim Meyering  <meyering@ascend.com>
78976
78977         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78978         (ARGMATCH_DIE_DECL): Define.
78979
78980 1999-01-12  Jim Meyering  <meyering@ascend.com>
78981
78982         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78983         Reported by Lars Hecking.
78984
78985 1999-01-10  Jim Meyering  <meyering@ascend.com>
78986
78987         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78988         gross kludge.
78989         * m4/inttypes_h.m4: Likewise.
78990         * m4/lstat.m4: Likewise.
78991         * m4/malloc.m4: Likewise.
78992         * m4/readdir.m4: Likewise.
78993         * m4/realloc.m4: Likewise.
78994         * m4/st_dm_mode.m4: Likewise.
78995         * m4/stat.m4: Likewise.
78996         * m4/utimbuf.m4: Likewise.
78997         * m4/utimes.m4: Likewise.
78998
78999         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79000         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79001         comments in config.h.in are meaningful.
79002
79003         * m4/jm-macros.m4: Require autoconf-2.13 here.
79004
79005         * m4/regex.m4: By default, don't use the included regex.c on systems
79006         with glibc 2.  Suggestion from Uli Drepper.
79007
79008 1999-01-02  Jim Meyering  <meyering@ascend.com>
79009
79010         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79011
79012 1998-12-18  Jim Meyering  <meyering@ascend.com>
79013
79014         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79015         Based on a suggestion from Lars Hecking.
79016
79017 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79018
79019         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79020
79021 1998-11-16  Jim Meyering  <meyering@ascend.com>
79022
79023         * m4/lfs.m4: Double-quote the `uname...` expression.
79024
79025 1998-11-14  Jim Meyering  <meyering@ascend.com>
79026
79027         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79028         * m4/stat.m4: Likewise.
79029
79030 1998-11-03  Jim Meyering  <meyering@ascend.com>
79031
79032         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79033         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79034
79035 1998-10-18  Jim Meyering  <meyering@ascend.com>
79036
79037         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79038
79039 1998-10-17  Jim Meyering  <meyering@ascend.com>
79040
79041         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79042         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79043         calls for those previously hard-coded headers.  Instead, take a new
79044         parameter.
79045         (jm_CHECK_DECLARATIONS): Reflect interface change.
79046         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79047         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79048
79049         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79050
79051 1998-10-14  Jim Meyering  <meyering@ascend.com>
79052
79053         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79054         instead of "TZ=America/Vancouver".  From Paul Eggert.
79055
79056 1998-10-11  Jim Meyering  <meyering@ascend.com>
79057
79058         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79059         This adds a test for a recently added compatibility fix for mktime.c.
79060         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79061
79062 1998-09-27  Jim Meyering  <meyering@ascend.com>
79063
79064         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79065
79066         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79067         ../configure.in, including a change from Gordon Matzigkeit to allow
79068         cross-compiling for the Hurd.
79069
79070         * m4/glibc.m4: New file/macro to test for the GNU C Library
79071         versions 1 and 2.  From Gordon Matzigkeit.
79072         Indent.
79073
79074 1998-09-21  Jim Meyering  <meyering@ascend.com>
79075
79076         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79077
79078 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79079
79080         Port nanosecond-resolution times to UnixWare 2.1.2 and
79081         pedantic Solaris 2.6.
79082
79083         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79084         AC_STRUCT_ST_MTIM.
79085         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79086         Generate name of ns member, instead of just 1 or undef.
79087         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79088
79089 1998-08-15  Jim Meyering  <meyering@ascend.com>
79090
79091         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79092         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79093         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79094         instead of jm_TYPE_SSIZE_T.
79095
79096 1998-08-12  Jim Meyering  <meyering@ascend.com>
79097
79098         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79099
79100 1998-08-02  Jim Meyering  <meyering@ascend.com>
79101
79102         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79103         in acconfig.h manually.
79104
79105 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79106
79107         * m4/st_mtim.m4: New file.
79108
79109 1998-07-28  Jim Meyering  <meyering@ascend.com>
79110
79111         * m4/utimes.m4: Undef stat.
79112
79113 1998-07-25  Jim Meyering  <meyering@ascend.com>
79114
79115         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79116         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79117
79118 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79119
79120         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79121         uid and gid actually remain unchanged.
79122
79123 1998-07-07  Jim Meyering  <meyering@ascend.com>
79124
79125         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79126
79127 1998-07-04  Jim Meyering  <meyering@ascend.com>
79128
79129         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79130         to prove that this macro can be used in packages without regex.c.
79131
79132 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79133
79134         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79135         is to be used.
79136
79137 1998-07-03  Jim Meyering  <meyering@ascend.com>
79138
79139         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79140
79141         * m4/gettext.m4: New file -- from gettext-0.10.35.
79142         * m4/lcmessage.m4: Likewise.
79143         * m4/progtest.m4: Likewise.
79144
79145         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79146         * m4/jm-macros.m4: Require the new macro.
79147
79148 1998-06-29  Jim Meyering  <meyering@ascend.com>
79149
79150         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79151         for the definition of NGROUPS (used in a system header included
79152         by sys/mount.h).
79153
79154 1998-06-28  Jim Meyering  <meyering@ascend.com>
79155
79156         * m4/ls-mntd-fs.m4: New file.
79157         * m4/fstypename.m4: New file.
79158
79159         * m4/jm-macros.m4: Require the new macro.
79160         * m4/jm-glibc-io.m4: New file.
79161
79162 1998-05-19  Jim Meyering  <meyering@ascend.com>
79163
79164         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79165         * m4/lchown.m4: New file.
79166
79167         * m4/Makefile.am.in: New file.
79168         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79169
79170 1998-05-14  Jim Meyering  <meyering@ascend.com>
79171
79172         * m4/Makefile.am (EXTRA_DIST): Add them.
79173         * m4/jm-macros.m4: New file.
79174         * m4/utimbuf.m4: New file.
79175
79176 1998-05-12  Jim Meyering  <meyering@ascend.com>
79177
79178         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79179
79180 1998-05-11  Jim Meyering  <meyering@ascend.com>
79181
79182         * m4/isc-posix.m4: New file.
79183
79184 1998-05-10  Jim Meyering  <meyering@ascend.com>
79185
79186         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79187
79188 1998-05-09  Jim Meyering  <meyering@ascend.com>
79189
79190         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79191         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79192         with automake.
79193
79194         * m4/ssize_t.m4: New file.
79195         * m4/mktime.m4: Remove file -- the new automake has this now.
79196
79197 1998-04-26  Jim Meyering  <meyering@ascend.com>
79198
79199         * m4/assert.m4: New file.
79200         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79201
79202 1998-04-05  Jim Meyering  <meyering@ascend.com>
79203
79204         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79205         (jm_PREREQ): Use it here.
79206
79207 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79208
79209         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79210         in acconfig.h.
79211
79212 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79213
79214         * m4/prereq.m4: New file.
79215         * m4/error.m4: New file.
79216         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79217
79218 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79219
79220         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79221         cache-check for the same variable -- that defeated the purpose of
79222         the test; the test program was never run.  This was a problem only
79223         on systems with losing getline functions -- HP-UX 10.20 is one.
79224         Reported by Bjorn Helgaas.
79225
79226 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79227
79228         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79229
79230 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79231
79232         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79233
79234         * m4/const.m4: New file.  Use an initializer in this declaration
79235         typedef int charset[2]; const charset x;
79236         Reported by Bob Glickstein.
79237
79238 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79239
79240         * m4/chown.m4: Fix reversed types on -1 args to chown.
79241         From Kaveh Ghazi.
79242
79243 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79244
79245         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79246         Add lseek and memchr.
79247
79248         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79249         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79250         have a 20-character limit on names.
79251
79252 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79253
79254         * m4/inttypes_h.m4: New file.
79255         * m4/uintmax_t.m4: New file.
79256         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79257
79258
79259         -----
79260
79261         Local Variables:
79262         coding: utf-8
79263         End:
79264
79265         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79266
79267         Copying and distribution of this file, with or without
79268         modification, are permitted provided the copyright notice
79269         and this notice are preserved.